#Help fixing msg error on telegran anfter generating a new anthropic token

1 messages ยท Page 1 of 1 (latest)

pastel mossBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> โœ… Mark Solution

covert micaBOT
#

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! ๐Ÿฆ

azure wraith
#

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>

covert micaBOT
#

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! ๐Ÿฆ

azure wraith
#

my config looks like this: "auth": {
"profiles": {
"anthropic:claude-cli": {
"provider": "anthropic",
"mode": "token"
}

covert micaBOT
#
  }
}

The profile references the provider, but the actual token value needs to be stored under anthropic.token. Try that and restart! ๐Ÿฆ

azure wraith
#

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

covert micaBOT
#
    "anthropic:claude-cli": {
      "provider": "anthropic",
      "mode": "token"
    }
  }
}

Or if you want them inside gateway:

}, "gateway": {
  "mode": "local",
  "remote": {
    "url": "ws://voxyl-vps:18789"