| 1234567891011121314151617181920212223242526272829 |
- # Example cc-switch configuration.
- # Copy this to ~/.config/cc-switch/config.yaml and chmod 600 it, then replace
- # the placeholder values with real keys — or better, use env:VAR indirection
- # and keep secrets out of this file entirely.
- claude_path: ~/.claude/local/claude
- default_provider: official
- providers:
- official:
- description: Anthropic official
- env:
- # Indirection: at launch time, cc-switch will read MY_ANTHROPIC_KEY from
- # the parent shell and substitute its value here.
- ANTHROPIC_API_KEY: env:MY_ANTHROPIC_KEY
- ANTHROPIC_BASE_URL: https://api.anthropic.com
- openrouter:
- description: OpenRouter (Anthropic-compatible endpoint)
- env:
- ANTHROPIC_BASE_URL: https://openrouter.ai/api/v1
- ANTHROPIC_AUTH_TOKEN: sk-or-replace-me
- ANTHROPIC_MODEL: anthropic/claude-opus-4
- deepseek:
- env:
- ANTHROPIC_BASE_URL: https://api.deepseek.com/anthropic
- ANTHROPIC_AUTH_TOKEN: sk-replace-me
- ANTHROPIC_MODEL: deepseek-chat
|