Messages-API compatible. Point the Anthropic SDK (or Claude Code) at idapt with one base URL.
Settings → Gateway → API keys. Scoped keys with optional USD spend caps.
Create an API keySet the base URL to https://idapt.app/api/anthropic/v1 and use your uk_ key as the API key. Claude Code needs just the two env vars.
Requests route to Claude models via the cheapest live path (Anthropic-native or aggregated). Add your own Anthropic key to pin billing to your account.
- https://api.anthropic.com
+ https://idapt.app/api/anthropic/v1Claude Code: export ANTHROPIC_BASE_URL=https://idapt.app/api/anthropic/v1 and ANTHROPIC_API_KEY=<your uk_ key>.
| Anthropic API | In idapt | How |
|---|---|---|
| POST /v1/messages (stream, tools, system) | Identical Messages endpointTool_use/tool_calls and SSE shapes translate 1:1. | Automatic |
| GET /v1/models | Model list + detail | Automatic |
| Claude Code | Works via ANTHROPIC_BASE_URL; billing runs through your idapt included usage or credit balance | Automatic |
| Batches / Files / Admin APIs | Not on the compat surface | No equivalent |
Also yours to keep: Local AI runs open models on hardware you own, free, beside the 200+ cloud models in the same chat.