Skip to main content
The Anthropic Python SDK reads ANTHROPIC_API_KEY from the environment by default. Authsome can supply it through the proxy or through export.

Add Anthropic as a custom provider

Anthropic isn’t in the bundled set today. Register it as a custom provider:
Get a key from console.anthropic.com/settings/keys. See Custom providers for the full template.
The SDK initializes with ANTHROPIC_API_KEY=authsome-proxy-managed. Outbound requests to api.anthropic.com are intercepted and authenticated at the proxy layer.

Alternative: export into the environment

Or read the key in Python after export:

Multi-account workflows

What’s next

Custom providers

The custom-provider walkthrough.

Run agents with the proxy

The injection model.