[BUG] Auth token and base URL wiped after navigating to agents panel and back
Open 💬 1 comment Opened Jun 23, 2026 by falcon283
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When using a custom LiteLLM proxy (via ANTHROPIC_AUTH_TOKEN and ANTHROPIC_BASE_URL environment variables), navigating to the agents panel using the double-left-arrow shortcut and returning to the conversation causes the auth token and base URL to be lost.
Checking /status after returning shows both fields empty/reset.
What Should Happen?
Environment variables persist for the lifetime of the Claude Code process. Navigating between panels should not affect the active configuration.
Error Messages/Logs
Not logged in · Please run /login
Steps to Reproduce
- Set ANTHROPIC_AUTH_TOKEN and ANTHROPIC_BASE_URL in your shell environment (e.g. pointing to a LiteLLM proxy)
- Launch claude
- Run /status — confirm auth token and base URL are correctly shown
- Press the left arrow twice to open the agents panel
- Navigate back to the conversation
- Run /status again — auth token and base URL are now wiped
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
Claude Code v2.1.186
Platform
Other
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗