config.example.yaml 997 B

1234567891011121314151617181920212223242526272829
  1. # Example cc-switch configuration.
  2. # Copy this to ~/.config/cc-switch/config.yaml and chmod 600 it, then replace
  3. # the placeholder values with real keys — or better, use env:VAR indirection
  4. # and keep secrets out of this file entirely.
  5. claude_path: ~/.claude/local/claude
  6. default_provider: official
  7. providers:
  8. official:
  9. description: Anthropic official
  10. env:
  11. # Indirection: at launch time, cc-switch will read MY_ANTHROPIC_KEY from
  12. # the parent shell and substitute its value here.
  13. ANTHROPIC_API_KEY: env:MY_ANTHROPIC_KEY
  14. ANTHROPIC_BASE_URL: https://api.anthropic.com
  15. openrouter:
  16. description: OpenRouter (Anthropic-compatible endpoint)
  17. env:
  18. ANTHROPIC_BASE_URL: https://openrouter.ai/api/v1
  19. ANTHROPIC_AUTH_TOKEN: sk-or-replace-me
  20. ANTHROPIC_MODEL: anthropic/claude-opus-4
  21. deepseek:
  22. env:
  23. ANTHROPIC_BASE_URL: https://api.deepseek.com/anthropic
  24. ANTHROPIC_AUTH_TOKEN: sk-replace-me
  25. ANTHROPIC_MODEL: deepseek-chat