# Example profile: OpenRouter
# Sign up: https://openrouter.ai/
#
# Add to your config with:
#   ccode add-profile --from-url https://ccode.kronis.dev/configuration-examples/openrouter.yaml
#
# ccode will prompt you for the auth token during import.

openrouter:
  anthropic_base_url: "https://openrouter.ai/api"
  # the API key is part of the prompt field below, user will fill this out when pulling
  # anthropic_auth_token: "YOUR_OPENROUTER_API_KEY_HERE"
  models:
    model:
      model: "anthropic/claude-sonnet-4.6"
      name: "Claude Sonnet 4"
      description: "Claude model via OpenRouter"
    opus:
      model: "anthropic/claude-opus-4.8"
      name: "Claude Opus 4"
      description: "Claude model via OpenRouter"
    sonnet:
      model: "anthropic/claude-sonnet-4.6"
      name: "Claude Sonnet 4"
      description: "Claude model via OpenRouter"
    haiku:
      model: "anthropic/claude-haiku-4.5"
      name: "Claude Haiku 4"
      description: "Claude model via OpenRouter"
    subagent:
      model: "anthropic/claude-haiku-4.5"
      name: "Claude Haiku 4 (subagent)"
      description: "Claude model via OpenRouter"
  env:
    CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS: "1"
  prompt:
    - anthropic_auth_token
