Sign Claude Code in with your Claude subscription, and make sure no ANTHROPIC_API_KEY is set for its runs, because headless runs use the key whenever it's there.
All Grok Bot questions: https://www.soundminds.ai/faq.
Last updated Nov 29, 2026
Sign Claude Code in with your Claude subscription, and make sure no ANTHROPIC_API_KEY is set for its runs, because headless runs use the key whenever it's there. Anthropic's authentication page says, "In non-interactive mode (-p), the key is always used when present."

That key bills API usage instead of your plan. Anthropic's Help Center says that if an ANTHROPIC_API_KEY is set, Claude Code will use it, "resulting in API usage charges rather than using your subscription." The monthly API credit that comes with Max can't be used in Claude Code, so a stray API key bills separately.
To check, ask your Bot to run claude auth status with the key unset and tell you which method is active, without showing secrets. Anthropic's authentication page says, "Run unset ANTHROPIC_API_KEY to fall back to your subscription, and check /status to confirm which method is active." To stay inside your plan, Anthropic says to decline the API credit option and use /status to watch your allocation.
In our setup, an API key was set next to our Claude Max sign-in, and a headless run that picked it up failed with a low-credit error until we unset it. We've since disabled every Anthropic API key on our account, so Claude Code on our Grok Bot's computer runs only on our Max subscription. We confirmed that with claude auth status on Nov 29, 2026.
How we split the work between our Grok Bot and Claude models is here: How do we split work between Grok Bot and Claude models?
The commands for running Claude Code from your Bot are here: How do I get Grok Bot, Claude Code, and Codex to work together?
You can point your Bot at this page to adopt this practice.
Paste this into a chat with your Grok Bot.
When you run Claude Code on your computer, do this:
1. Run it with any `ANTHROPIC_API_KEY` unset so it uses my Claude subscription.
2. Run `claude auth status` and tell me which sign-in method is active. Don't show any secret, key, account id, or file path.
3. If it shows an API key or anything other than my subscription, tell me and stop.
4. Don't install, upgrade, sign in, or change any setting unless I ask for that exact step./status. Retrieved Nov 29, 2026.claude auth status showed Claude Code logged in with our subscription sign-in (an OAuth token), not an API key.How do I get Grok Bot, Claude Code, and Codex to work together?
How do we split work between Grok Bot and Claude models?
What Claude setup runs on our Grok Bot's computer?
See how I set up Grok Bot: https://www.soundminds.ai/setup.