Connecting Your Anthropic Account via API Key
Table of Contents
This guide shows you how to connect your Anthropic account to an Agento agent so it can use Claude models like Claude Sonnet 4.5 and Claude Opus 4. Connect by pasting an API key.
Prerequisites
Before you start, make sure you have:
- An Agento account with at least one agent created
- An Anthropic account at console.anthropic.com
- A funded API key (free-tier keys work but have lower rate limits)
Get Your API Key
- Log in to console.anthropic.com
- Navigate to API Keys in the left sidebar
- Click Create Key
- Give it a descriptive name like "Agento Agent"
- Copy the key. you won't be able to see it again
Keep your API key secure. Never share it publicly or commit it to version control.
Add the Key to Your Agent
- Open the Agento dashboard and click on your agent
- Go to the Settings tab
- Under AI Provider, select Anthropic
- Paste your API key into the API Key field
- Click Save
Agento encrypts your key at rest and never exposes it in the UI after saving.
Choose a Model
After connecting, select the model your agent should use:
| Model | Best For |
|---|---|
| Claude Sonnet 4.5 | Balanced speed and quality for most tasks |
| Claude Opus 4 | Complex reasoning and long-form content |
| Claude Haiku 3.5 | Fast responses and simple tasks |
You can change the model at any time without reconnecting.
Verify the Connection
Start your agent (or restart it if it was already running). Open the web chat or send a message through Telegram. If the agent responds, your Anthropic connection is working.
Disconnecting
To disconnect Anthropic:
- Go to your agent's Settings tab
- Click Remove Key
- The agent will stop using Anthropic and you'll need to configure a different provider
Troubleshooting
Agent shows "credential error": Double-check that you copied the full API key including the sk-ant- prefix.
Agent responds slowly or times out: Your Anthropic account may have hit rate limits. Check your usage at console.anthropic.com/settings/usage.
Agent won't start: Make sure your Anthropic account has billing set up. API keys without a payment method may be restricted.