mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-07 00:50:52 +00:00
Ubuntu's default .bashrc has an interactive-shell guard that exits early in non-interactive contexts. When SSH runs a command string (ssh -t user@host -- "cmd"), the shell is non-interactive, so env vars appended to .bashrc are never loaded — causing Claude Code to start without OpenRouter credentials and get rejected. Fix: write env vars to ~/.spawnrc and have .bashrc/.zshrc source it. Launch commands source ~/.spawnrc directly, bypassing the guard. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| common.sh | ||
| github-auth.sh | ||
| key-request.sh | ||