AI Assistants
You must configure at least one AI assistant. Both can be configured if desired.
Claude Code
Section titled “Claude Code”Recommended for Claude Pro/Max subscribers.
Authentication Options
Section titled “Authentication Options”Claude Code supports three authentication modes via CLAUDE_USE_GLOBAL_AUTH:
- Global Auth (set to
true): Uses credentials fromclaude /login - Explicit Tokens (set to
false): Uses tokens from env vars below - Auto-Detect (not set): Uses tokens if present in env, otherwise global auth
Option 1: Global Auth (Recommended)
Section titled “Option 1: Global Auth (Recommended)”CLAUDE_USE_GLOBAL_AUTH=trueOption 2: OAuth Token
Section titled “Option 2: OAuth Token”# Install Claude Code CLI first: https://docs.claude.com/claude-code/installationclaude setup-token
# Copy the token starting with sk-ant-oat01-...CLAUDE_CODE_OAUTH_TOKEN=sk-ant-oat01-xxxxxOption 3: API Key (Pay-per-use)
Section titled “Option 3: API Key (Pay-per-use)”- Visit console.anthropic.com/settings/keys
- Create a new key (starts with
sk-ant-)
CLAUDE_API_KEY=sk-ant-xxxxxClaude Configuration Options
Section titled “Claude Configuration Options”You can configure Claude’s behavior in .archon/config.yaml:
assistants: claude: model: sonnet # or 'opus', 'haiku', 'claude-*', 'inherit' settingSources: - project # Default: only project-level CLAUDE.md - user # Optional: also load ~/.claude/CLAUDE.mdThe settingSources option controls which CLAUDE.md files the Claude Code SDK loads. By default, only the project-level CLAUDE.md is loaded. Add user to also load your personal ~/.claude/CLAUDE.md.
Set as Default (Optional)
Section titled “Set as Default (Optional)”If you want Claude to be the default AI assistant for new conversations without codebase context, set this environment variable:
DEFAULT_AI_ASSISTANT=claudeAuthenticate with Codex CLI
Section titled “Authenticate with Codex CLI”# Install Codex CLI first: https://docs.codex.com/installationcodex login
# Follow browser authentication flowExtract Credentials from Auth File
Section titled “Extract Credentials from Auth File”On Linux/Mac:
cat ~/.codex/auth.jsonOn Windows:
type %USERPROFILE%\.codex\auth.jsonSet Environment Variables
Section titled “Set Environment Variables”Set all four environment variables in your .env:
CODEX_ID_TOKEN=eyJhbGc...CODEX_ACCESS_TOKEN=eyJhbGc...CODEX_REFRESH_TOKEN=rt_...CODEX_ACCOUNT_ID=6a6a7ba6-...Codex Configuration Options
Section titled “Codex Configuration Options”You can configure Codex’s behavior in .archon/config.yaml:
assistants: codex: model: gpt-5.3-codex modelReasoningEffort: medium # 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' webSearchMode: live # 'disabled' | 'cached' | 'live' additionalDirectories: - /absolute/path/to/other/repoSet as Default (Optional)
Section titled “Set as Default (Optional)”If you want Codex to be the default AI assistant for new conversations without codebase context, set this environment variable:
DEFAULT_AI_ASSISTANT=codexHow Assistant Selection Works
Section titled “How Assistant Selection Works”- Assistant type is set per codebase via the
assistantfield in.archon/config.yamlor theDEFAULT_AI_ASSISTANTenv var - Once a conversation starts, the assistant type is locked for that conversation
DEFAULT_AI_ASSISTANT(optional) is used only for new conversations without codebase context- Workflows can override the assistant on a per-node basis with
providerandmodelfields - Configuration priority: workflow-level options > config file defaults > SDK defaults