providers
Claude (Anthropic)
Claude, natively — mantis speaks the real Messages API (x-api-key), not a translation layer. Gateways/OAuth work via Bearer tokens.
| endpoint | https://api.anthropic.com/v1 |
| env var | ANTHROPIC_API_KEY |
| get a key | console.anthropic.com |
Get an API key
- Sign in at console.anthropic.com
- Open Settings → API Keys
- Click 'Create Key' and name it
- Copy the sk-ant- key (shown once)
- Add credits under Settings → Billing
No ongoing free tier; buy prepaid credits (small trial credit may apply).
Enable
export ANTHROPIC_API_KEY=... # shell profile — survives foreveror in the terminal — validates the key live before saving:
/enable anthropicor pick any locked 🔒 Claude (Anthropic) model in /models and paste the key inline.
Models
Starter menu (once enabled, /models fetches the provider's full live list):
claude-opus-4-8claude-sonnet-5claude-haiku-4-5-20251001claude-fable-5
Switch anytime — /model claude-opus-4 fuzzy-matches; context carries over.
SDK
from mantis_agent import MantisAgentOptions
options = MantisAgentOptions(
model="claude-opus-4-8",
backend="https://api.anthropic.com/v1", # key read from $ANTHROPIC_API_KEY
)Notes
- Behind a gateway or OAuth? Set
ANTHROPIC_AUTH_TOKENinstead of the API key — mantis sendsAuthorization: Bearerand preserves your gateway URL. - Tool definitions are converted to Anthropic's
input_schemashape automatically.