Configuration Reference
Agent Config
How to configure each agent CLI. File locations, formats, sections, and best practices — set up your agent once, use it everywhere.
Side-by-Side Comparison
Equivalent config files across different agent CLIs.
| CLI | Config File |
|---|---|
| Claude Code | CLAUDE.md (or AGENTS.md) |
| Codex | AGENTS.md or .codex/config.json |
| GitHub Copilot CLI | .github/copilot-instructions.md |
| Gemini CLI | GEMINI.md |
| opencode | opencode.json / opencode.jsonc |
| Cursor | .cursorrules |
| Windsurf | .windsurfrules |
| Amazon Q CLI | .amazonq/ |