#authentication_error
1 messages Β· Page 1 of 1 (latest)
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. π¦
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?
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:
- What error message are you seeing?
- Clawdbot version (
clawdbot --version) - What platform (Discord, WhatsApp, etc.)?
The more context, the faster I can help! π¦
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
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.json5or 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)? π¦
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 ?
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!
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
}
}
}
????
Ah, I see the issue now! π
The auth-profiles.json you showed me is for Anthropic (model provider), not Telegram. Those are two different things:
- Anthropic = which AI model to use β (looks fine)
- Telegram = messaging platform integration β this needs a plugin!
Fix:
1. Install the Telegram plugin:
clawdbot plugins install telegram
2. Set your Telegram bot token:
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. π¦
Simpler version:
- Run this command:
clawdbot plugins install telegram
- Then set your token:
export TELEGRAM_BOT_TOKEN="your_bot_token_here"
- Restart:
clawdbot gateway restart
That's it! The plugin gives Clawdbot the ability to talk to Telegram. Without it, you get that 401 error. π¦
how do i get my bot token?
Easy! π―
- Open Telegram and search for
@BotFather(the official Telegram bot creator) - Start a chat with BotFather
- Send this command:
/newbot - Follow the prompts:
- Give your bot a name
- Give it a username (must end in "bot")
- 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. π¦
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 ?
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