Claude Code
What is the Claude Code config file location and format?
QUICK ANSWER
The config file is located at '~/.config/claude-code/config.json'. It is a standard JSON file containing keys for your active model, custom system prompt, and registered MCP servers.
Configuration Locations
- macOS/Linux:
~/.config/claude-code/config.json - Windows:
%USERPROFILE%\.config\claude-code\config.json
Format Template
{
"model": "claude-3-5-sonnet-20241022",
"systemPrompt": "",
"theme": "dark",
"mcpServers": {}
}
Verified against: Claude Code CLI v0.2.5