mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-20 09:31:15 +00:00
fix(e2e): add claude and codex to .spawnrc fallback in provision.sh (#2511)
When Sprite (or another cloud) times out during provisioning, provision.sh falls back to constructing .spawnrc manually over SSH. The claude and codex agents were missing from the agent-specific case block, so: - claude: ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN were never written, causing verify_claude's openrouter.ai check to fail - codex: OPENAI_API_KEY and OPENAI_BASE_URL were never written Discovered during E2E run: sprite/claude failed with .spawnrc timeout + missing openrouter.ai in fallback .spawnrc. Co-authored-by: spawn-qa-bot <qa@openrouter.ai> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
6c535ac1e8
commit
6ef7dfc99d
1 changed files with 12 additions and 0 deletions
|
|
@ -197,12 +197,24 @@ CLOUD_ENV
|
|||
|
||||
# Add agent-specific env vars
|
||||
case "${agent}" in
|
||||
claude)
|
||||
{
|
||||
printf 'export ANTHROPIC_BASE_URL=%q\n' "https://openrouter.ai/api"
|
||||
printf 'export ANTHROPIC_AUTH_TOKEN=%q\n' "${api_key}"
|
||||
} >> "${env_tmp}"
|
||||
;;
|
||||
openclaw)
|
||||
{
|
||||
printf 'export ANTHROPIC_API_KEY=%q\n' "${api_key}"
|
||||
printf 'export ANTHROPIC_BASE_URL=%q\n' "https://openrouter.ai/api"
|
||||
} >> "${env_tmp}"
|
||||
;;
|
||||
codex)
|
||||
{
|
||||
printf 'export OPENAI_API_KEY=%q\n' "${api_key}"
|
||||
printf 'export OPENAI_BASE_URL=%q\n' "https://openrouter.ai/api/v1"
|
||||
} >> "${env_tmp}"
|
||||
;;
|
||||
zeroclaw)
|
||||
{
|
||||
printf 'export ZEROCLAW_PROVIDER=%q\n' "openrouter"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue