#Confused about claude
1 messages Β· Page 1 of 1 (latest)
I can see the issue here. Since this question was asked in #general (not #help), I should provide guidance but encourage them to move the discussion to #help for proper troubleshooting.
Most likely cause: The setup-claude command generates an API key, not an OAuth token. There might be confusion between the two, or the key wasn't copied correctly.
Quick things to check:
- Version first! Ask them to run
clawdbot --versionβ version mismatches cause weird errors - Confirm they ran
setup-claude(not some other setup command) - Verify the full key was copied (no truncation, no extra spaces)
- Check the config format β it should be JSON5 with the key under
apiKeys.anthropic
Response draft for #general:
Hey! π A few things to check:
- First:
clawdbot --versionβ version mismatch is a common culprit- Did you run
setup-claudeorsetup-anthropic? It generates an API key (not OAuth)- Make sure the full key is in your config under
apiKeys.anthropic(JSON5 format)
If that doesn't fix it, let's continue in #help β we can dig deeper there with more context! π¦
Want me to send this response, or would you prefer I draft something different?
Its version 2026.1.23-1. I ran setup-claude, it says my oauth token is generated (in yellow) and I donβt know where to look for apikeys.anthropic
Found it! This is a classic setup-token issue. From the docs:
The problem: 401 with "invalid bearer token" usually means the setup-token was either:
- Generated on a different machine than where the Gateway runs, or
- Not properly imported into the gateway's auth profile
The fix: Run this on the machine where the Gateway is running:
# Option 1: Generate a new token on the gateway host
clawdbot models auth setup-token --provider anthropic
# Option 2: If you already generated it elsewhere, paste it
clawdbot models auth paste-token --provider anthropic
Why this happens: Auth profiles are per-agent and stored on the gateway host. If you ran claude setup-token on your laptop but the Gateway runs on a VPS (or vice versa), the token isn't where Clawdbot expects it.
Response for #general:
That's a setup-token import issue! π¦ The token needs to be on the same machine where your Gateway runs.
If your Gateway is on a VPS: SSH to that server and run:
clawdbot models auth setup-token --provider anthropicThen paste the token.
Or if you already have the token locally: copy it over and run:
clawdbot models auth paste-token --provider anthropicThis is why it's showing 401 β Clawdbot can't find valid auth where it's actually running. Let me know if that fixes it, or let's continue in #help if you need more hands-on debugging!
I get error: no claude code cβi credentials found after setup-token. Expected aith profile anthropic:claude-cli. i do see the oauth token generated just above
Ah, that's the key! The setup-token command needs Claude Code CLI installed on the gateway host. Since you already have the token, use paste-token instead:
clawdbot models auth paste-token --provider anthropic
Then paste the token you generated.
If Claude CLI isn't installed on your gateway host, you have two options:
-
Install Claude CLI on that machine first:
# Then try again clawdbot models auth setup-token --provider anthropic -
Or just paste the token you already have on your current machine into the gateway host using
paste-token
The token needs to exist as an auth profile on the machine running the Gateway, not just on your local machine.
Let me know which path works for you! π¦
make sure there's no space on the token. copy and paste on a notepad first, check if it's a continuous string and try again
BobbyGkng makes a good point about spaces! β Check that first.
But the real issue: Claude Code CLI must be installed on the gateway host for setup-token to work. Since you already have the token generated (you see it in yellow), just skip the CLI dependency entirely:
# Paste the token directly into the gateway
clawdbot models auth paste-token --provider anthropic
Steps:
- Copy the token from your local machine (check for spaces as Bobby mentioned)
- SSH to your gateway host
- Run the paste-token command above
- Paste when prompted
This bypasses the need for Claude CLI on the gateway entirely.
Let me know if that works! π¦
Still not working. Do you need to buy credit on claude code or it is supposed to work on a proplan? I subscribed to a proplan only
Ah, that's the issue! π―
Claude Pro (web) β Claude Code CLI
- Claude Pro = web subscription for claude.ai
- Claude Code CLI = developer tool (separate product/billing)
The setup-token command is for Claude Code CLI users, not Claude Pro web subscribers.
You have two options:
- Use an API key (recommended for your setup):
- Go to Anthropic Console
- Add a payment method and buy credits
- Generate an API key
- Run:
clawdbot onboard --anthropic-api-key "sk-ant-..."
- Switch to Claude Code CLI:
- Install Claude Code CLI (has its own subscription)
- Then
setup-tokenwill work
For a Claude Pro web subscription: The API key path is what you need. Claude Pro doesn't include API access by default β you need to add credits in the Anthropic Console.
Does that make sense? π¦
Is there a montlhy plan i can use or i need to mandatory add credit ?
Unfortunately no β Anthropic API is pay-as-you-go, not subscription-based.
You add credits to your Anthropic Console account, and usage is deducted based on the models you run. No minimum commitment, no monthly fee.
Quick options:
-
Add credits to Anthropic Console β Generate API key β Use with Clawdbot
- Only charged for what you use
-
Try Claude Code CLI β Has its own subscription, might be a better fit if you want a monthly cost
- Different billing from the API
For Clawdbot with Claude Pro web, the API key route is your only option. The Pro plan covers claude.ai usage, not API access.
Does that help clarify? π¦
Ok so i donβt need the pro plan, only credits
Exactly! π―
Claude Pro = claude.ai web usage
API credits = programmatic access (what Clawdbot needs)
You can cancel Pro if you're only using the API, or keep it for both. The API doesn't require any subscription tier β just credits in the Console.
Good luck getting set up! π¦
Ok i bought some credits, change in clawdbot configure to use anthropic api key. But i still get a http 401 in telegram
Let's debug this. Run these commands on your gateway host to see what's actually configured:
# Check what auth profiles are active
clawdbot models status
# Check if the API key is visible
clawdbot models status --json | grep -A5 anthropic
Also check where you added the key β the Gateway service might be using a different config than your CLI. Run:
clawdbot gateway status
This will show you which config path the service is actually using.
Common issue: You might have added the key to ~/.clawdbot/clawdbot.json (CLI config) but the Gateway service is reading from a different location (like /etc/clawdbot/ or a systemd path).
Share the outputs and we'll figure it out! π¦
I<ll break it down in multiple messages nemo@vmclwd:~$ clawdbot models status --json | grep -A5 anthropic
"defaultModel": "anthropic/claude-opus-4-5",
"resolvedDefault": "anthropic/claude-opus-4-5",
"fallbacks": [],
"imageModel": null,
"imageFallbacks": [],
"aliases": {
"opus": "anthropic/claude-opus-4-5"
},
"allowed": [
"anthropic/claude-opus-4-5"
],
"auth": {
"storePath": "/home/nemo/.clawdbot/agents/main/agent/auth-profiles.json",
"shellEnvFallback": {
"enabled": false,
"anthropic (2)"
],
"missingProvidersInUse": [],
"providers": [
{
"provider": "anthropic",
"effective": {
"kind": "profiles",
"detail": "~/.clawdbot/agents/main/agent/auth-profiles.json"
},
"profiles": {
--
"anthropic:default=sk-ant-a...azOw7gAA [disabled:billing 4h]",
"anthropic:clawd=token:sk-ant-o...spalGl73 [cooldown 13m]",
"anthropic:manual=token:sk-ant-o...n6-I0Ujm"
]
}
}
],
"unusableProfiles": [
"profileId": "anthropic:clawd",
"provider": "anthropic",
"kind": "cooldown",
"until": 1769353867044,
"remainingMs": 754146
},
{
"profileId": "anthropic:default",
"provider": "anthropic",
"kind": "disabled",
"reason": "billing",
"until": 1769367896054,
"remainingMs": 14783156
}
--
"profileId": "anthropic:clawd",
"provider": "anthropic",
"type": "token",
"status": "static",
"source": "store",
"label": "anthropic:clawd"
},
{
"profileId": "anthropic:default",
"provider": "anthropic",
"type": "api_key",
"status": "static",
"source": "store",
"label": "anthropic:default"
},
{
"profileId": "anthropic:manual",
"provider": "anthropic",
"type": "token",
"status": "static",
"source": "store",
"label": "anthropic:manual"
}
],
"providers": [
{
"provider": "anthropic",
"status": "ok",
"profiles": [
{
"profileId": "anthropic:clawd",
"provider": "anthropic",
"type": "token",
"status": "static",
"source": "store",
"label": "anthropic:clawd"
},
{
"profileId": "anthropic:default",
"provider": "anthropic",
"type": "api_key",
"status": "static",
"source": "store",
"label": "anthropic:default"
},
{
"profileId": "anthropic:manual",
"provider": "anthropic",
"type": "token",
"status": "static",
"source": "store",
"label": "anthropic:manual"
}
]
}
]
}
nemo@vmclwd:~$ clawdbot gateway status
π¦ Clawdbot 2026.1.23-1 (c8afa82)
I don't judge, but your missing API keys are absolutely judging you.
β
β
Service: systemd (enabled)
File logs: /tmp/clawdbot/clawdbot-2026-01-25.log
Command: /usr/bin/node /home/nemo/.npm-global/lib/node_modules/clawdbot/dist/entry.js gateway --port 18789
Service file: ~/.config/systemd/user/clawdbot-gateway.service
Service env: CLAWDBOT_GATEWAY_PORT=18789
Config (cli): ~/.clawdbot/clawdbot.json
Config (service): ~/.clawdbot/clawdbot.json
Gateway: bind=loopback (127.0.0.1), port=18789 (service args)
Probe target: ws://127.0.0.1:18789
Dashboard: http://127.0.0.1:18789/
Probe note: Loopback-only gateway; only local clients can connect.
Runtime: running (pid 8456, state active, sub running, last exit 0, reason 0)
RPC probe: ok
Listening: 127.0.0.1:18789
Troubles: run clawdbot status
Troubleshooting: https://docs.clawd.bot/troubleshooting
done
Found it! π―
Look at the status: anthropic:default=sk-ant-... [disabled:billing 4h]
The key is disabled due to billing, not an invalid token. Anthropic is rejecting it because of a payment/billing issue.
What to check:
-
Go to Anthropic Console β Billing
- Verify the credits actually added
- Check if payment method is valid
- Look for any billing holds
-
Wait a bit β sometimes it takes a few minutes for credits to activate after purchase
-
Check usage limits β you might have hit a spending cap
The 401 is a billing problem, not an auth problem. Fix the payment/credits in the Console and it should start working! π¦
Yep, that confirms it:
anthropic:defaultβ disabled: billing βanthropic:clawdβ cooldown (rate limit) β³
The billing issue is blocking the default key. This is on Anthropic's side β not a Clawdbot config problem.
Next steps:
- Log into Anthropic Console
- Check Billing β Payment Methods β Verify everything is valid
- Check Usage β Credits balance
- Look for any "account hold" or "payment failed" notifications
Sometimes it takes 5-10 minutes for new credits to activate. If everything looks good on your end, you might need to contact Anthropic support about the billing hold.
Once the billing issue clears, the profile will re-enable automatically! π¦
Everything on the Clawdbot side looks good! β
- Config paths match β
- Gateway is running β
- RPC probe ok β
The blocker is entirely in Anthropic Console.
Visit https://console.anthropic.com/ and look at:
- Billing tab β payment method and credits balance
- Notifications bell β any account holds
Once your account is clear, Clawdbot will pick it up automatically. No config changes needed!
Let us know what you find in the Console! π¦
Done meaning... β
- Credits are showing now?
- Payment went through?
If it looks good, run clawdbot models status again and check if anthropic:default is still showing disabled:billing or if it's back to normal!
If it's still disabled, might just need a few more minutes for the system to update. Let me know what you see! π¦
no i have finished copy pasting the command. I see the available credits but when I do /startt in telegram I still have http 401
The Console showing credits is good, but Clawdbot might not have refreshed yet!
Check the current auth status:
clawdbot models status --json | grep -A10 '"anthropic"'
Look for:
- Is
anthropic:defaultstill showingdisabled:billing? - Or is it now showing
status: "ok"?
If it's still disabled, try:
# Restart the gateway to force a fresh auth check
clawdbot gateway restart
# Then check again
clawdbot models status
Sometimes billing takes a few minutes to propagate to the API. Let me know what you see after the restart! π¦
i don<t see un=usable profile anymore but I still ghet a 401 invalid bearer token in my telegram /start command
Progress! Billing cleared. But now we need to see which profile Telegram is actually using.
# Full auth status
clawdbot models status
# Check for any remaining issues
clawdbot models status --json | grep -E "(unusableProfiles|anthropic)"
Also check the logs for the 401:
clawdbot logs --follow
Then try /start in Telegram again β the log should show exactly which auth profile is being used and why it's failing.
Share the outputs and we'll find the culprit! π¦
"unusableProfiles": [
{
"profileId": "anthropic:clawd",
"provider": "anthropic",
"kind": "cooldown",
"until": 1769353867044,
"remainingMs": 197005
},
{
"profileId": "anthropic:default",
"provider": "anthropic",
"kind": "disabled",
"reason": "billing",
"until": 1769367896054,
"remainingMs": 14226015
}
],
"oauth": {
"warnAfterMs": 86400000,
"profiles": [
{
"profileId": "anthropic:clawd",
"provider": "anthropic",
"type": "token",
"status": "static",
"source": "store",
"label": "anthropic:clawd"
},
{
"profileId": "anthropic:default",
"provider": "anthropic",
"type": "api_key",
"status": "static",
"source": "store",
"label": "anthropic:default"
},
{
"profileId": "anthropic:manual",
"provider": "anthropic",
"type": "token",
"status": "static",
"source": "store",
"label": "anthropic:manual"
}
],
Wait, the profile is still showing disabled:billing β
The billing issue isn't resolved yet. The credits might show in the Console, but something is still blocking the API.
Check these in Anthropic Console:
- Billing β Payment Methods β is there a valid card on file?
- Billing β Usage β do you see a "pending" charge or a hold?
- Notifications bell β any warnings about your account?
Sometimes:
- Payment method declined
- Credits purchased but not activated yet
- Account flagged for review
If everything looks good in the Console but it's still disabled, you may need to contact Anthropic support β there might be a backend hold on the account.
Let me know what you find! π¦
should I rerinstall clawdbot^
could it be a preivous config with the copy paste of the oauth token that is still lingering^
Good thought! Let's check what's actually in your auth store:
cat ~/.clawdbot/agents/main/agent/auth-profiles.json
But here's the thing: The disabled:billing status is coming from Anthropic's API, not from Clawdbot's config. Even if you have old tokens, the API is rejecting the default profile due to billing.
Try using a different profile:
The anthropic:manual profile might work if it's not affected by the billing issue. Check:
clawdbot models status --json | grep -A2 '"anthropic:manual"'
If anthropic:manual isn't showing as disabled, you can try setting it as default:
# In your config, add:
{
agents: {
defaults: {
model: { primary: "anthropic/claude-sonnet-4-5" }
}
},
auth: {
profile: "anthropic:manual"
}
}
Or... first fix the billing hold on anthropic:default since that's your main key. What does the Console actually show for your account status? π¦
because the first time i had the LLM request rejected: your balance is too low. But since I tried to copy pasted the skt-oaut token i get 401. is there any file I can manually edit to remove the oauth
I couldnβt get it working. Installed codex and it fixed it all for me.
That's a valid workaround! Codex (OpenAI) has its own subscription and auth that doesn't have this billing hold issue. β
For RevertThatCodePlease β two paths:
-
Fix the Anthropic billing hold (simpler if you want to stick with Claude)
- Contact Anthropic support to clear the account hold
- Then everything works as-is
-
Switch to Codex (what Meesh did)
- Install:
curl -fsSL https://clawd.bot/install.sh | bash -s -- --install-method git(if you want Claude Code) - Or just use OpenAI Codex subscription with
clawdbot onboard --auth-choice codex
- Install:
If you want to try Codex quickly:
# If you have Codex CLI