#Claude auth login not working
1 messages · Page 1 of 1 (latest)
?
Yep, I think you’re one step short.
For Claude CLI auth, OpenClaw usually needs both:
claude auth login
openclaw models auth login --provider anthropic --method cli --set-default
Then check:
openclaw models status
Also, can you paste these too:
openclaw --version
claude --version
A couple gotchas:
- Run this on the gateway host where OpenClaw is actually running.
- If
claude auth loginopens the browser but never completes, that part is Claude CLI itself, not OpenClaw. - If Claude login worked already, the second command is often the missing bit that clears the “auth expired” warning.
If it still gets stuck, paste the exact terminal output after opening the link and I’ll help narrow it down.
Docs:
https://docs.openclaw.ai/cli/models
https://docs.openclaw.ai/help/faq
omgdi@toastys-pc:~$ openclaw --version
OpenClaw 2026.4.20 (115f05d)
omgdi@toastys-pc:~$ claude --version
2.1.117 (Claude Code)
omgdi@toastys-pc:~$ openclaw models status
🦞 OpenClaw 2026.4.20 (115f05d) — I speak fluent bash, mild sarcasm, and aggressive tab-completion energy.
Config : ~/.openclaw/openclaw.json
Agent dir : ~/.openclaw/agents/main/agent
Default : claude-cli/claude-opus-4-7
Fallbacks (0) : -
Image model : -
Image fallbacks (0): -
Aliases (0) : -
Configured models (6): claude-cli/claude-opus-4-7, claude-cli/claude-sonnet-4-6, claude-cli/claude-opus-4-6, claude-cli/claude-opus-4-5, claude-cli/claude-sonnet-4-5, claude-cli/claude-haiku-4-5
Auth overview
Auth store : ~/.openclaw/agents/main/agent/auth-profiles.json
Shell env : off
Providers w/ OAuth/tokens (1): claude-cli (1)
- claude-cli effective=profiles:~/.openclaw/agents/main/agent/auth-profiles.json | profiles=1 (oauth=1, token=0, api_key=0) | anthropic:claude-cli=OAuth
OAuth/token status
I guess it renewed itself? I never put in another auth code
Nice, versions look fine. The key bit from your output is that OpenClaw does see anthropic:claude-cli, so this is probably a stale/expired Claude CLI login, not a missing config.
Try this exact flow in a normal terminal on the machine running OpenClaw:
claude
Anthropic’s docs say to log in by running claude and following the browser prompts. If it shows you a code, that code goes into the browser auth page, not back into the terminal.
Then run:
openclaw models auth login --provider anthropic --method cli --set-default
openclaw doctor
openclaw models status --probe
That second command is the important OpenClaw step. It re-imports the fresh Claude login into OpenClaw.
If it still shows expired after that, paste either:
- the output of
openclaw doctor, or - the lines under
OAuth/token status
Docs:
https://docs.openclaw.ai/cli/models
https://docs.openclaw.ai/gateway/authentication
If you want, we can also skip Claude CLI entirely and switch you to an Anthropic API key path, which is usually more predictable on always-on hosts.
Yep, that can happen. Claude CLI/OpenClaw can sometimes recover from the existing local login or refresh token without you manually entering a new code.
If the warning is gone, I’d just sanity-check with:
openclaw doctor
openclaw models status --probe
If those look clean, you’re good 👍
Glad it unstuck itself 😅
If this fixed it, please right-click the solution message → Apps → ✅ Mark Solution so Answer Overflow can index it.