#authentication_error

1 messages Β· Page 1 of 1 (latest)

limpid stump
#

i'm getting HTTP 401: authentication_error: Invalid bearer token (request_id: req_011CXVyzfWLZS3z1MZBqpHx3), how can i fix this?

#

?

unkempt hollyBOT
# limpid stump ?

Hey! πŸ‘‹ 🦐 I see you're in the #authentication_error channel β€” looks like you might be running into some trouble with Clawdbot authentication.

What's going on? Feel free to share any error messages or describe what's happening, and I'll help you figure it out!

Just a quick reminder: before troubleshooting, it helps to know your Clawdbot version. If you can run clawdbot --version and share that, it often saves us some back-and-forth. 🦐

limpid stump
#

i have clawdbot set up on a vps, and i set up telegram, but when i write anything in telegram i get this error: HTTP 401: authentication_error: Invalid bearer token (request_id: req_011CXVzFqFeAT8EVJ9bHRimz)

version: root@ubuntu-8gb-nbg1-1:~# clawdbot --version
2026.1.24-3

#

?

#

hello?

unkempt hollyBOT
# limpid stump hello?

Hey there! πŸ‘‹ 🦐 Yep, I'm still here!

Just making sure I saw your question β€” are you still having authentication trouble with Clawdbot? If so, any details you can share would help:

  1. What error message are you seeing?
  2. Clawdbot version (clawdbot --version)
  3. What platform (Discord, WhatsApp, etc.)?

The more context, the faster I can help! 🦐

limpid stump
#

i have clawdbot set up on a vps, and i set up telegram, but when i write anything in telegram i get this error: HTTP 401: authentication_error: Invalid bearer token (request_id: req_011CXVzFqFeAT8EVJ9bHRimz)

version: root@ubuntu-8gb-nbg1-1:~# clawdbot --version
2026.1.24-3

unkempt hollyBOT
# limpid stump i have clawdbot set up on a vps, and i set up telegram, but when i write anythin...

Ah, that error! πŸ”‘ HTTP 401 authentication_error means Clawdbot can't authenticate with Telegram's API.

This is almost always one of these issues:

1. Check your Telegram bot token

The token format should be: 123456789:ABCdefGHIjklMNOpqrsTUVwxyz

Run this to verify it's set:

echo $TELEGRAM_BOT_TOKEN

If nothing shows up, the env var isn't set properly.

2. Common fixes:

  • Restart the gateway after setting the token:
#
  clawdbot gateway restart
  • Check for extra spaces in the token (copy/paste carefully!)
  • Verify the bot still exists with @BotFather on Telegram

3. Where to set it:

  • Environment variable: TELEGRAM_BOT_TOKEN=your_token_here
  • Or in config file (usually ~/.clawdbot/config.json5 or similar)

Can you run echo $TELEGRAM_BOT_TOKEN and let me know what it shows (you can mask the actual token, just tell me if it's empty or has a value)? 🦐

limpid stump
#

this is what i see root@ubuntu-8gb-nbg1-1:~# echo $TELEGRAM_BOT_TOKEN

root@ubuntu-8gb-nbg1-1:~# echo $5939864885
939864885
root@ubuntu-8gb-nbg1-1:~# echo 5939864885
5939864885
root@ubuntu-8gb-nbg1-1:~#

#

@unkempt holly ?

unkempt hollyBOT
# limpid stump <@1457407575476801641> ?

Yep, I see you! 🦐 Just waiting on you to run that command:

echo $TELEGRAM_BOT_TOKEN

Just tell me: empty or has a value (you don't need to show the actual token) β€” that will tell me if the token is even being picked up by Clawdbot!

limpid stump
#

Error: No provider plugins found. Install one via clawdbot plugins install.
root@ubuntu-8gb-nbg1-1:~# cat ~/.clawdbot/agents/main/agent/auth-profiles.json
{
"version": 1,
"profiles": {
"anthropic:claude-cli": {
"type": "oauth",
"provider": "anthropic",
"access": "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",
"refresh": "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",
"expires": 1769445311665
},
"anthropic:default": {
"type": "token",
"provider": "anthropic",
"token": "sk-ant-oat01-gJLdYj5Ue9eIGF-bwgWQCp4OfT_I1SmfdHONp5iHaY_maiZeC2ZCrG6fLPG3P7HVzg5"
}
},
"lastGood": {
"anthropic": "anthropic:default"
},
"usageStats": {
"anthropic:default": {
"errorCount": 0,
"lastFailureAt": 1769430432552,
"lastUsed": 1769430432561
}
}
}

#

????

unkempt hollyBOT
#
export TELEGRAM_BOT_TOKEN="your_bot_token_here"

Or add it to your config file. Then:

3. Restart the gateway:

clawdbot gateway restart

The "No provider plugins found" error means Clawdbot doesn't have the Telegram plugin installed yet. That's why it's failing to authenticate β€” it literally doesn't know how to talk to Telegram!

Let me know once you've installed the plugin and set up the token. 🦐

unkempt hollyBOT
# limpid stump ????

Simpler version:

  1. Run this command:
clawdbot plugins install telegram
  1. Then set your token:
export TELEGRAM_BOT_TOKEN="your_bot_token_here"
  1. Restart:
clawdbot gateway restart
#

That's it! The plugin gives Clawdbot the ability to talk to Telegram. Without it, you get that 401 error. 🦐

limpid stump
#

how do i get my bot token?

unkempt hollyBOT
# limpid stump how do i get my bot token?

Easy! 🎯

  1. Open Telegram and search for @BotFather (the official Telegram bot creator)
  2. Start a chat with BotFather
  3. Send this command:
    /newbot
    
  4. Follow the prompts:
    • Give your bot a name
    • Give it a username (must end in "bot")
  5. BotFather will give you a token β€” copy it!

The token looks like:

123456789:ABCdefGHIjklMNOpqrsTUVwxyz
#

Save that token, then set it in Clawdbot as I showed before. 🦐

limpid stump
#

Done! Congratulations on your new bot. You will find it at t.me/mark_asd_mark_bot. You can now add a description, about section and profile picture for your bot, see /help for a list of commands. By the way, when you've finished creating your cool bot, ping our Bot Support if you want a better username for it. Just make sure the bot is fully operational before you do this.

Use this token to access the HTTP API:
8477149307:AAG2p1e73Fbsoy1zLr8SvKlzv4PMx95eWxk
Keep your token secure and store it safely, it can be used by anyone to control your bot.

For a description of the Bot API, see this page: https://core.telegram.org/bots/api

#

where do i set my bot id?

#

@unkempt holly ?

unkempt hollyBOT
# limpid stump where do i set my bot id?

You don't set it in a config file usually β€” just export it as an environment variable before starting Clawdbot:

Quickest way:

export TELEGRAM_BOT_TOKEN="your_token_here"
clawdbot gateway restart

Or add it permanently to your shell profile (~/.bashrc or ~/.zshrc):

echo 'export TELEGRAM_BOT_TOKEN="your_token_here"' >> ~/.bashrc
source ~/.bashrc
clawdbot gateway restart