claude-sub.yml
672 Bytes
# Claude Code 订阅(OAuth token,sk-ant-oat…)作为 dsh provider;
# 用法:run-headless.sh --patch ~/dsh/patches/claude-sub.yml "任务"
# token 来自 ~/dsh/.secrets.env 的 CLAUDE_CODE_OAUTH_TOKEN(run-headless.sh 会 source)
- id: llm-pi-ai
config:
providers:
anthropic-sub:
displayName: Claude (subscription OAuth)
apiKeyEnv: CLAUDE_CODE_OAUTH_TOKEN
api: anthropic-messages
baseURL: https://api.anthropic.com
models:
- id: claude-sonnet-5-5
contextWindow: 200000
maxTokens: 32768
- id: agent-default-model
config:
provider: anthropic-sub
model: claude-sonnet-5-5