Skip to main content

Configuration Reference

File Locations

FileDescription
~/.zen/zen.jsonMain configuration file
~/.zen/zend.logDaemon log
~/.zen/zend.pidDaemon PID file
~/.zen/logs.dbRequest log database (SQLite)

Full Configuration Example

{
"version": 7,
"default_profile": "default",
"default_client": "claude",
"proxy_port": 19841,
"web_port": 19840,
"providers": {
"anthropic": {
"base_url": "https://api.anthropic.com",
"auth_token": "sk-ant-xxx",
"model": "claude-sonnet-4-5",
"claude_env_vars": {
"CLAUDE_CODE_MAX_OUTPUT_TOKENS": "64000"
}
}
},
"profiles": {
"default": {
"providers": ["anthropic"]
}
},
"project_bindings": {
"/path/to/project": {
"profile": "work",
"client": "codex"
}
}
}

Field Reference

FieldDescription
versionConfig file version number
default_profileDefault profile name
default_clientDefault CLI client (claude/codex/opencode)
proxy_portProxy server port (default: 19841)
web_portWeb management interface port (default: 19840)
providersProvider configuration collection
profilesProfile configuration collection
project_bindingsProject binding configuration
syncConfig sync settings (optional)