#Help fixing msg error on telegran anfter generating a new anthropic token
1 messages ยท Page 1 of 1 (latest)
This error means Clawdbot can't find your Anthropic credentials. Since you just generated a new token, you need to configure it in Clawdbot.
Quick fix - run this command:
clawdbot configure
Then select "Anthropic" and enter your new API key.
Or manually add it to your config (~/.clawdbot/clawdbot.json):
{
"anthropic": {
"apiKey": "your-new-anthropic-api-key-here"
}
}
After configuring, restart the gateway:
clawdbot gateway restart
The key needs to be set in Clawdbot's config, not just available as an environment variable for Claude Code. Let me know if that resolves it! ๐ฆ
it's not an api key, its a auth token:
Long-lived authentication token created successfully!
Your OAuth token (valid for 1 year): sk-......
Store this token securely. You won't be able to see it again.
Use this token by setting: export CLAUDE_CODE_OAUTH_TOKEN=<token>
Ah, that's the Claude Code OAuth token! You need to set it in Clawdbot's config, not as an API key.
Add this to your ~/.clawdbot/clawdbot.json:
{
"anthropic": {
"token": "sk-..."
}
}
Then restart:
clawdbot gateway restart
If you already have an anthropic section, just add the token field. The token field is for OAuth tokens (like Claude Code), while apiKey is for standard Anthropic API keys. Let me know if it works! ๐ฆ
my config looks like this: "auth": {
"profiles": {
"anthropic:claude-cli": {
"provider": "anthropic",
"mode": "token"
}
Your profile is defined, but the actual token value is missing! You need to add the token to your config.
Try adding it like this:
{
"anthropic": {
"token": "sk-..."
},
"auth": {
"profiles": {
"anthropic:claude-cli": {
"provider": "anthropic",
"mode": "token"
}
}
}
}
The profile references the provider, but the actual token value needs to be stored under anthropic.token. Try that and restart! ๐ฆ
check if this looks right: },
"gateway": {
"mode": "local",
"remote": {
"url": "ws://voxyl-vps:18789"
},
{
"anthropic": {
"token": "sk-..."
},
"auth": {
"profiles": {
"anthropic:claude-cli": {
"provider": "anthropic",
"mode": "token"
}
}
}
}
There's a syntax error! After "remote": { "url": "ws://voxyl-vps:18789" } you have a comma followed by { "anthropic"... but there's no key name.
It should be:
}, "gateway": {
"mode": "local",
"remote": {
"url": "ws://voxyl-vps:18789"
}
},
"anthropic": {
"token": "sk-..."
},
"auth": {
"profiles": {
"anthropic:claude-cli": {
"provider": "anthropic",
"mode": "token"
}
}
}
Or if you want them inside gateway:
}, "gateway": {
"mode": "local",
"remote": {
"url": "ws://voxyl-vps:18789"