Skip to main content

Configure

Phonton reads ~/.phonton/config.toml and also checks provider-specific environment variables.

[provider]
name = "gemini"
model = "gemma-4-31b-it"

[budget]
max_tokens = 120000
max_usd_cents = 200

Environment-variable examples:

export ANTHROPIC_API_KEY="..."
export OPENAI_API_KEY="..."
export GEMINI_API_KEY="..."
export OPENROUTER_API_KEY="..."

Windows PowerShell:

$env:GEMINI_API_KEY = "..."

Verify provider setup:

phonton doctor --provider

BYOK model

Phonton should not be positioned as a hosted model proxy. The product promise is that the developer controls provider routing and credentials.

Configuration checklist

  • Pick a provider and model.
  • Set the provider key as an environment variable.
  • Set a task budget.
  • Run phonton doctor --provider.
  • Use phonton config show to inspect resolved configuration.