feat(claude-profile): add provider selection (model + endpoint + credentials)
Introduces provider files (`data/claude-profile/providers/*.yaml`) that bundle model ID, API base URL, API key source, and extra env vars. Phase 2.5 (provider selection) added between mode selection and launch, with a default derived from the mode's driver field so existing Anthropic usage is unchanged. Ships 5 providers: anthropic-haiku/sonnet/opus/opus-1m and minimax-sonnet. MiniMax token decrypted from agent-runtimes SOPS env, stored at ~/.claude-secrets/minimax-auth-token. Adding new providers = one YAML file, no script changes. 58 dryrun tests passing (up from 37). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -39,3 +39,10 @@ hybrid-day:
|
||||
project: cluster-bootstrap
|
||||
time_horizon: hours
|
||||
async: yes
|
||||
|
||||
# Quick session via MiniMax (Sonnet-class, pay-per-token, no subscription)
|
||||
quick-minimax:
|
||||
profile: oreillyit
|
||||
mode: quick
|
||||
provider: minimax-sonnet
|
||||
project: small-scripts
|
||||
|
||||
3
data/claude-profile/providers/anthropic-haiku.yaml
Normal file
3
data/claude-profile/providers/anthropic-haiku.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
name: anthropic-haiku
|
||||
display: Anthropic (Haiku)
|
||||
model_id: claude-haiku-4-5-20251001
|
||||
3
data/claude-profile/providers/anthropic-opus-1m.yaml
Normal file
3
data/claude-profile/providers/anthropic-opus-1m.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
name: anthropic-opus-1m
|
||||
display: Anthropic (Opus 1M ctx)
|
||||
model_id: "claude-opus-4-6[1m]"
|
||||
3
data/claude-profile/providers/anthropic-opus.yaml
Normal file
3
data/claude-profile/providers/anthropic-opus.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
name: anthropic-opus
|
||||
display: Anthropic (Opus)
|
||||
model_id: claude-opus-4-6
|
||||
3
data/claude-profile/providers/anthropic-sonnet.yaml
Normal file
3
data/claude-profile/providers/anthropic-sonnet.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
name: anthropic-sonnet
|
||||
display: Anthropic (Sonnet)
|
||||
model_id: claude-sonnet-4-6
|
||||
10
data/claude-profile/providers/minimax-sonnet.yaml
Normal file
10
data/claude-profile/providers/minimax-sonnet.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
name: minimax-sonnet
|
||||
display: MiniMax (Sonnet)
|
||||
model_id: claude-sonnet-4-20250514
|
||||
base_url: https://api.minimax.io/anthropic
|
||||
api_key_env: ANTHROPIC_AUTH_TOKEN
|
||||
api_key_file: ~/.claude-secrets/minimax-auth-token
|
||||
extra_env:
|
||||
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS: "1"
|
||||
DISABLE_PROMPT_CACHING: "1"
|
||||
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: "1"
|
||||
Reference in New Issue
Block a user