#getting no output on responses now
1 messages ยท Page 1 of 1 (latest)
The "invalid bearer token" error typically means your Claude OAuth token expired or was invalidated. This commonly happens if you used the same Claude/Codex account in multiple places (Clawdbot + Claude Code CLI can invalidate each other's tokens).
Quick fix:
-
Generate a fresh setup-token:
clawdbot models auth setup-token --provider anthropicOr if you have Claude Code CLI installed elsewhere: run
claude setup-tokenthere, then paste it:clawdbot models auth paste-token --provider anthropic -
Verify:
clawdbot models status
Why this happens:
OAuth tokens can expire or get revoked, especially if you authenticated the same account in multiple clients. The setup-token approach is more stable for subscription accounts.
If you switched to Codex and it's also broken:
The same applies - re-run OAuth for Codex:
clawdbot models auth login --provider openai-codex
Version check:
Before diving deeper, what does clawdbot --version show? Version mismatches can cause weird auth issues too.
Docs: OAuth troubleshooting | Auth setup
i got this error Error: No Claude Code CLI credentials found after setup-token. Expected auth profile anthropic:claude-cli.
@crimson crypt
@crimson crypt
Just sharing the thread continuation? The mention @crimson crypt is likely a ping to someone (could be a bot or user).
Do you want me to respond in the thread? If so, I can drop the troubleshooting steps I already prepared.
Or is there something else gala needs help with? ๐ฆ
yes respond in the thread
The "invalid bearer token" error usually means your OAuth token expired or got revoked. This commonly happens if you used the same Claude/Codex account in multiple places (Clawdbot + Claude Code CLI can invalidate each other's tokens).
Quick fix:
-
Generate a fresh setup-token:
clawdbot models auth setup-token --provider anthropicOr if you have Claude Code CLI installed elsewhere: run
claude setup-tokenthere, then paste it:clawdbot models auth paste-token --provider anthropic -
Verify:
clawdbot models status
If you switched to Codex and it's also broken:
clawdbot models auth login --provider openai-codex
Also check:
clawdbot --version โ version mismatches can cause weird auth issues too.
Docs: https://docs.clawd.bot/gateway/troubleshooting#oauth-token-refresh-failed-anthropic-claude-subscription | https://docs.clawd.bot/concepts/oauth
Sent! ๐ฆ
ot this error Error: No Claude Code CLI credentials found after setup-token. Expected auth profile anthropic:claude-cli.
That error means the setup-token was stored, but under a different profile name than what Clawdbot expects. Let's check what profiles you have and fix it:
Check existing auth profiles:
clawdbot models status
Or view the raw profiles:
cat ~/.clawdbot/agents/*/agent/auth-profiles.json 2>/dev/null | jq '.'
Fix options:
- If you see an anthropic profile (maybe
anthropic:defaultor similar):
Rename it to match what Clawdbot expects, or update your config to use the existing profile name.
-
Re-run setup-token and specify the profile explicitly:
clawdbot models auth setup-token --provider anthropic --profile anthropic:claude-cli -
Or copy the existing profile to the expected location:
# Find the profile file and copy it with the right name
Quick check: What does clawdbot models status show for Anthropic? It should list the available auth profiles.
Docs: Auth profiles
The profile is named correctly (anthropic:claude-cli) and the setup-token is stored, but the actual credentials aren't being extracted. This suggests the token might not have been stored properly.
Let's check the raw auth file:
cat ~/.clawdbot/agents/*/agent/auth-profiles.json | jq '.'
Try the paste-token approach instead:
- Generate a fresh token:
claude setup-token(on any machine with Claude Code) - Then paste it:
clawdbot models auth paste-token --provider anthropic --profile anthropic:claude-cli
Or try re-running setup-token directly:
clawdbot models auth setup-token --provider anthropic --profile anthropic:claude-cli
If still failing, check file permissions:
ls -la ~/.clawdbot/agents/*/agent/auth-profiles.json
What do you see when you run those commands? The token might be malformed or there could be a file permission issue.
seems like the token is still static for anthropic
"Static" token likely means the credentials aren't refreshing or the stored token isn't valid for Clawdbot's use.
Nuclear auth reset (start clean):
-
Wipe existing Anthropic auth:
rm -f ~/.clawdbot/agents/*/agent/auth-profiles.json rm -f ~/.clawdbot/agents/*/agent/auth.json -
Generate fresh setup-token on a machine with Claude Code:
claude setup-tokenCopy the entire token output.
-
Paste it into Clawdbot:
clawdbot models auth paste-token --provider anthropic
- Verify:
clawdbot models status
Alternative: Use API key instead of OAuth
If you have an Anthropic API key (from console.anthropic.com):
clawdbot models auth api-key --provider anthropic
Also check:
clawdbot --version
If you're on an old version, there might be a bug in how setup-tokens are handled. Updating might help:
clawdbot update
clawdbot gateway restart
Which approach do you want to try? ๐ฆ
getting this back
Ah, that's a zsh glob issue! When the wildcard doesn't match any files, zsh throws "no matches found" instead of passing the pattern.
Fix for zsh:
# Option 1: Quote the pattern or use explicit path
rm -f ~/.clawdbot/agents/default/agent/auth-profiles.json
rm -f ~/.clawdbot/agents/default/agent/auth.json
# Option 2: Use nullglob (won't error if no matches)
setopt NULL_GLOB
rm -f ~/.clawdbot/agents/*/agent/auth-profiles.json
rm -f ~/.clawdbot/agents/*/agent/auth.json
Then retry fresh auth:
# Generate on machine with Claude Code CLI
claude setup-token
# Paste here
clawdbot models auth paste-token --provider anthropic
# Verify
clawdbot models status
What does ls ~/.clawdbot/agents/ show? That'll confirm the agent directory structure. ๐ฆ
i updated clawdbot and got this critical message regarding state integrity
That's actually good news! ๐
The "CRITICAL" was just about a missing directory (~/.clawdbot/credentials), and Clawdbot Doctor already fixed it by creating the directory.
Now continue with fresh auth:
# Generate fresh setup-token on a machine with Claude Code CLI
claude setup-token
# Paste it into Clawdbot
clawdbot models auth paste-token --provider anthropic
# Verify
clawdbot models status
After this, test a message to see if responses work now. The update likely also fixed any bugs in the auth handling. ๐ฆ
I see the issue! You're using a setup-token but it's being stored as a "manual token" (API key format). They look similar but work differently:
- API key:
sk-ant-api03-...(from console.anthropic.com) - Setup-token:
sk-ant-o...(fromclaude setup-token)
Fix: Use the right auth method for setup-tokens
# Clear the incorrectly stored token
rm -f ~/.clawdbot/agents/main/agent/auth-profiles.json
# Re-add as Claude CLI credentials (not manual token)
clawdbot models auth setup-token --provider anthropic --profile anthropic:claude-cli
# Verify it shows "claude-cli" not "manual token"
clawdbot models status
If you don't have Claude Code CLI available, use an API key instead:
# Get an API key from https://console.anthropic.com/
# Then paste it:
clawdbot models auth api-key --provider anthropic
Which auth method do you have access to โ Claude Code CLI (claude setup-token) or an Anthropic API key from the console? ๐ฆ
@crimson crypt
Hey disco! ๐ What do you need help with?
If it's related to the OAuth/token issues gala was having, I can share the summary. Or if you have a different issue, just let me know! ๐ฆ
Providers w/ OAuth/tokens (1): anthropic (1)
- anthropic effective=profiles:~/.clawdbot/agents/main/agent/auth-profiles.json | profiles=1 (oauth=0, token=1, api_key=0) | anthropic:default=token
at /chat the replies are always U
"U" as in just the letter U? That's weird โ sounds like a truncated response.
A few questions:
- What model are you using? (
/modelin chat orclawdbot models status) - What were you asking about? (What should the full response have been?)
- Is it every message or just some?
- Does
/model statuswork and show proper auth?
Try a simple test:
- Send just "hello" โ do you get "U" back or does it hang?
- Try
/model statusโ does that reply properly?
This could be:
- A streaming truncation issue
- Model response getting cut off
- Auth issue (model returning empty/error)
What's your setup? ๐ฆ
Current: anthropic/claude-opus-4-5
Switch: /model <provider/model>
Browse: /models (providers) or /models (models)
More: /model status
when I send hello, I get back a U
Current: anthropic/claude-opus-4-5
Default: anthropic/claude-opus-4-5
Agent: main
Auth file: ~/.clawdbot/agents/main/agent/auth-profiles.json
[anthropic] endpoint: default auth: anthropic:default=token:redacted...redacted (next, lastGood) (auth-profiles.json: ~/.clawdbot/agents/main/agent/auth-profiles.json)
โข anthropic/claude-opus-4-5 (opus)
Current: anthropic/claude-opus-4-5
Switch: /model <provider/model>
Browse: /models (providers) or /models (models)
More: /model status
when I send hello, I get back a U
Current: anthropic/claude-opus-4-5
Default: anthropic/claude-opus-4-5
Agent: main
Auth file: ~/.clawdbot/agents/main/agent/auth-profiles.json
[anthropic] endpoint: default auth: anthropic:default=token:redacted...redacted (next, lastGood) (auth-profiles.json: ~/.clawdbot/agents/main/agent/auth-profiles.json)
โข anthropic/claude-opus-4-5 (opus)
pls ser pls 
@krill
HTTP 401: authentication_error: Invalid bearer token
getting this when I message in Telegram.
clawdbot config get channels.telegram.botToken returns the valid token
how can it be?
Based on my research, I believe there's a misunderstanding about where the error is coming from. The "Invalid bearer token" error is NOT from Telegram - it's from your model provider (Anthropic Claude).
Looking at the context:
- You mentioned "had things working with claude oauth, but then ran into invalid bearer token problems"
- The error format "HTTP 401: authentication_error: Invalid bearer token" matches Anthropic API errors, not Telegram Bot API
The issue: Your Claude OAuth/setup-token has likely expired or become invalid, so when the bot tries to generate a response, the model request fails with a 401.
To fix this:
-
Check model auth status:
clawdbot models status -
Re-authenticate with Anthropic:
# Option A: Re-run setup-token auth
clawdbot models auth setup-token --provider anthropic
# Option B: Use API key instead
clawdbot models auth api-key --provider anthropic
- Restart the gateway after re-authenticating:
clawdbot gateway restart
Why the token shows as valid in config:
clawdbot config get channels.telegram.botToken only shows the Telegram bot token - it has nothing to do with Anthropic auth. The Anthropic token is stored separately in auth profiles.
The Telegram channel is working fine - it's the model's ability to reply that's broken because Claude can't authenticate.