# Example profile: OpenRouter (custom model - prompts for every model slot)
# Sign up: https://openrouter.ai/
# Model catalog: https://openrouter.ai/models
#
# Unlike the standard openrouter.yaml (which ships with sensible Claude model
# defaults), this variant asks you to pick a model slug for every slot at
# import time. Useful if you want to wire up non-Anthropic models (Llama,
# Mistral, GPT, Gemini, DeepSeek, etc.) without hand-editing the file after
# import. You will be prompted for the full models: block; press ENTER to
# skip and edit the config by hand with `ccode edit-config`.
#
# Add to your config with:
#   ccode add-profile --from-url https://ccode.kronis.dev/configuration-examples/openrouter-model.yaml
#
# ccode will prompt you for the auth token and the models block during import.

openrouter-model:
  anthropic_base_url: "https://openrouter.ai/api"
  # the API key and model slugs are part of the prompt field below; fill them
  # in at import time. Example values below show the structure - you can paste
  # a flow-style YAML inline when prompted:
  #   {model: {model: "anthropic/claude-sonnet-4.6"}, opus: {model: "anthropic/claude-opus-4.8"}, sonnet: {model: "anthropic/claude-sonnet-4.6"}, haiku: {model: "anthropic/claude-haiku-4.5"}, subagent: {model: "anthropic/claude-haiku-4.5"}}
  # Or press ENTER to skip, then edit the config with `ccode edit-config` and
  # add a models: block by hand.
  # anthropic_auth_token: "YOUR_OPENROUTER_API_KEY_HERE"
  env:
    CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS: "1"
  prompt:
    - anthropic_auth_token
    - models
