# Example profile: OpenRouter (custom preset)
# Sign up: https://openrouter.ai/
#
# Presets let you configure model selection and provider preferences once on
# OpenRouter's side, then reference the result by slug. To use this profile:
#   1. Create a preset at https://openrouter.ai/workspaces/default/presets
#      (e.g. choose "DeepSeek V4 Pro" under Model Selection, then under
#      Provider Preferences pick "only: DeepSeek" - up to you).
#   2. Note the preset slug it gives you.
#   3. Import this file, then run `ccode edit-config` and replace
#      "@preset/your-preset-slug" with your real "@preset/<slug>" string.
#
# Add to your config with:
#   ccode add-profile --from-url https://ccode.kronis.dev/configuration-examples/openrouter-preset.yaml
#
# ccode will prompt you for the auth token during import.

openrouter-preset:
  anthropic_base_url: "https://openrouter.ai/api"
  models:
    model:
      model: "@preset/your-preset-slug"
      name: "OpenRouter Preset"
      description: "Custom OpenRouter preset via ccode"
    opus:
      model: "@preset/your-preset-slug"
      name: "OpenRouter Preset"
      description: "Custom OpenRouter preset via ccode"
    sonnet:
      model: "@preset/your-preset-slug"
      name: "OpenRouter Preset"
      description: "Custom OpenRouter preset via ccode"
    haiku:
      model: "@preset/your-preset-slug"
      name: "OpenRouter Preset"
      description: "Custom OpenRouter preset via ccode"
    subagent:
      model: "@preset/your-preset-slug"
      name: "OpenRouter Preset (subagent)"
      description: "Custom OpenRouter preset via ccode"
  # 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"
  env:
    CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS: "1"
  prompt:
    - anthropic_auth_token
