Configuration
Config File Location
Default config file:
text
~/.clawgo/config.jsonIn debug mode:
text
.clawgo/config.jsonTop-Level Structure
The current top-level shape is:
agentschannelsmodelsgatewaycrontoolsloggingsentinelmemory
Normalized View
The persisted file remains raw config, but some APIs also expose a normalized view:
core.default_providercore.default_modelcore.main_agent_idcore.subagentsruntime.routerruntime.providers
Important detail: the normalized core still uses core.subagents, not core.agents.
agents.defaults
Important fields:
workspacemodel.primarymax_tokenstemperaturemax_tool_iterationsheartbeatcontext_compactionexecutionsummary_policy
model.primary uses:
text
provider/modelFor example:
json
{
"model": {
"primary": "codex/gpt-5.4"
}
}agents.router
The router dispatches requests between main and the registered subagents.
Important fields:
enabledmain_agent_idstrategypolicy.intent_max_input_charspolicy.max_rounds_without_userrulesallow_direct_agent_chatmax_hopsdefault_timeout_secsticky_thread_owner
agents.communication
This section controls threaded agent-to-agent communication.
Fields:
modepersist_threadspersist_messagesmax_messages_per_threaddead_letter_queuedefault_message_ttl_sec
agents.subagents
This is the main role-registry section.
Common fields:
enabledtypetransportparent_agent_idnotify_main_policydisplay_nameroledescriptionsystem_prompt_filememory_namespaceaccept_fromcan_talk_torequires_main_mediationdefault_reply_totools.allowlisttools.denylisttools.max_parallel_callsruntime.providerruntime.modelruntime.temperatureruntime.timeout_secruntime.max_retriesruntime.retry_backoff_msruntime.max_task_charsruntime.max_result_charsruntime.max_parallel_runs
Current rules:
- enabled local subagents must define
system_prompt_file system_prompt_filemust be workspace-relativeaccept_fromandcan_talk_tomust reference declared subagents
models.providers
Provider configuration lives under:
json
{
"models": {
"providers": {}
}
}Common fields:
api_keyapi_basemodelssupports_responses_compactauthtimeout_secruntime_persistruntime_history_fileruntime_history_maxoauthresponses
Supported auth values:
beareroauthhybridnone
tools.mcp
Current MCP transports include:
stdiohttpstreamable_httpsse
Common per-server fields:
enabledtransportcommandargsurlworking_dirpermissionpackage
Minimal Raw Shape
json
{
"agents": {
"router": {
"enabled": true,
"main_agent_id": "main",
"strategy": "rules_first",
"rules": []
},
"subagents": {
"main": {
"enabled": true,
"type": "router",
"role": "orchestrator",
"system_prompt_file": "agents/main/AGENT.md"
},
"coder": {
"enabled": true,
"type": "worker",
"role": "code",
"system_prompt_file": "agents/coder/AGENT.md"
}
}
},
"models": {
"providers": {
"openai": {
"api_key": "YOUR_KEY",
"api_base": "https://api.openai.com/v1",
"models": ["gpt-5.4"],
"auth": "bearer"
}
}
}
}