#Confused about claude

1 messages Β· Page 1 of 1 (latest)

slow grove
#

I bought claude pro pplan, I choose anthropic and I rab setup-claude that gave me my oauth token and copy pasted it in the config and I still have http 401 invalid bearer token. Any idea why?

blissful geyserBOT
# slow grove I bought claude pro pplan, I choose anthropic and I rab setup-claude that gave m...

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:

  1. Version first! Ask them to run clawdbot --version β€” version mismatches cause weird errors
  2. Confirm they ran setup-claude (not some other setup command)
  3. Verify the full key was copied (no truncation, no extra spaces)
  4. Check the config format β€” it should be JSON5 with the key under apiKeys.anthropic

Response draft for #general:

Hey! πŸ‘‹ A few things to check:

  1. First: clawdbot --version β€” version mismatch is a common culprit
  2. Did you run setup-claude or setup-anthropic? It generates an API key (not OAuth)
  3. 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?

slow grove
#

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

blissful geyserBOT
# slow grove Its version 2026.1.23-1. I ran setup-claude, it says my oauth token is generated...

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:

  1. Generated on a different machine than where the Gateway runs, or
  2. 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 anthropic

Then paste the token.

Or if you already have the token locally: copy it over and run:

clawdbot models auth paste-token --provider anthropic

This 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!

slow grove
#

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

blissful geyserBOT
# slow grove I get error: no claude code c’i credentials found after setup-token. Expected ai...

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:

  1. Install Claude CLI on that machine first:

    # Then try again
    clawdbot models auth setup-token --provider anthropic
    
  2. 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! 🦐

summer gust
blissful geyserBOT
# summer gust make sure there's no space on the token. copy and paste on a notepad first, chec...

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:

  1. Copy the token from your local machine (check for spaces as Bobby mentioned)
  2. SSH to your gateway host
  3. Run the paste-token command above
  4. Paste when prompted

This bypasses the need for Claude CLI on the gateway entirely.

#

Let me know if that works! 🦐

slow grove
#

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

blissful geyserBOT
# slow grove Still not working. Do you need to buy credit on claude code or it is supposed to...

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:

  1. 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-..."
#
  1. Switch to Claude Code CLI:
    • Install Claude Code CLI (has its own subscription)
    • Then setup-token will 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? 🦐

slow grove
#

Is there a montlhy plan i can use or i need to mandatory add credit ?

blissful geyserBOT
# slow grove 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:

  1. Add credits to Anthropic Console β†’ Generate API key β†’ Use with Clawdbot

    • Only charged for what you use
  2. 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? 🦐

slow grove
#

Ok so i don’t need the pro plan, only credits

blissful geyserBOT
slow grove
#

Ok i bought some credits, change in clawdbot configure to use anthropic api key. But i still get a http 401 in telegram

blissful geyserBOT
# slow grove Ok i bought some credits, change in clawdbot configure to use anthropic api ke...

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! 🦐

slow grove
#

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

blissful geyserBOT
# slow grove I<ll break it down in multiple messages nemo@vmclwd:~$ clawdbot models status --...

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:

  1. Go to Anthropic Console β†’ Billing

    • Verify the credits actually added
    • Check if payment method is valid
    • Look for any billing holds
  2. Wait a bit β€” sometimes it takes a few minutes for credits to activate after purchase

  3. 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! 🦐

blissful geyserBOT
# slow grove "unusableProfiles": [ -- "profileId": "anthropic:clawd", "provid...

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:

  1. Log into Anthropic Console
  2. Check Billing β†’ Payment Methods β†’ Verify everything is valid
  3. Check Usage β†’ Credits balance
  4. 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! 🦐

blissful geyserBOT
# slow grove nemo@vmclwd:~$ clawdbot gateway status 🦞 Clawdbot 2026.1.23-1 (c8afa82) I d...

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! 🦐

blissful geyserBOT
# slow grove done

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! 🦐

slow grove
#

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

blissful geyserBOT
#
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! 🦐

slow grove
#

i don<t see un=usable profile anymore but I still ghet a 401 invalid bearer token in my telegram /start command

blissful geyserBOT
# slow grove i don<t see un=usable profile anymore but I still ghet a 401 invalid bearer toke...

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! 🦐

slow grove
#

"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"
}
],

blissful geyserBOT
# slow grove "unusableProfiles": [ { "profileId": "anthropic:clawd", "p...

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:

  1. Billing β†’ Payment Methods β€” is there a valid card on file?
  2. Billing β†’ Usage β€” do you see a "pending" charge or a hold?
  3. 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! 🦐

slow grove
#

should I rerinstall clawdbot^

#

could it be a preivous config with the copy paste of the oauth token that is still lingering^

blissful geyserBOT
# slow grove could it be a preivous config with the copy paste of the oauth token that is sti...

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? 🦐

slow grove
#

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

glass lantern
#

I couldn’t get it working. Installed codex and it fixed it all for me.

blissful geyserBOT
# glass lantern 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:

  1. 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
  2. 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

If you want to try Codex quickly:

# If you have Codex CLI