Anthropic()
Claude models direct from Anthropic, with your own API key. Costs go direct to the vendor at their rates — no markup, nothing on your Axon balance.
export default defineProfile({
providers: [Anthropic()],
})
Serves anthropic/*.
Credentials
Set the environment variable, or pass key on the declaration:
ANTHROPIC_API_KEY=...
providers: [Anthropic({ key: process.env.MY_OWN_VAR })]
You can also store this key in your Axon account vault through the cloud client:
await cloud.user.vault.connections.get("anthropic").connect({ key: apiKey })
A fresh host signed into the same account can use the connection. Profiles without
an explicit providers list discover active account connections automatically;
an explicit list continues to restrict which providers that machine uses.
Explicit keys and environment variables take precedence over the account vault.
A custom url requires an explicit credential. Provider SDKs ship with Axon.
Options
Anthropic(options?: ProviderOptions)
| Option | Default | Description |
|---|---|---|
key | ANTHROPIC_API_KEY | Your own credential, passed directly |
url | the provider's API | Endpoint override |
slots | unbounded | Ceiling on concurrent calls a fanned-out role may spend here |
Model ids
Anthropic's own ids replace the version dot with a dash — the canonical
anthropic/claude-sonnet-4.6 is claude-sonnet-4-6 here:
export default defineAgent({ model: "anthropic:claude-sonnet-4-6" })
The translation is automatic when a role resolves; you only write this form when pinning.
Not the same as Claude Code
This is the Anthropic API, billed per token against your API key. A Claude Pro or Max subscription is a different product and cannot be used as an inference source here.