Drop-in Claude API replacement — works with Claude Code, Cursor, Cline, and the official Anthropic SDK. Two environment variables and you're done. ~60 seconds to first response.
Official Anthropic installer. One command per platform — picks up automatic updates.
Windows tip: install Git for Windows first so Claude Code can use Bash. Otherwise it falls back to PowerShell.
Two environment variables — ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN. Set them either for the current shell only, or persistently for every future session.
Good for trying it out or one-off scripts. Variables disappear when you close the terminal.
Recommended for normal use. Survives reboots and new terminal windows.
Don't have a key yet? Create an account → Dashboard → API Keys → Create. Keys start with sk-.
Open any project folder and run claude. That's it.
Type /model to pick which Claude model handles your messages. The next prompt uses the selected one.
Same identifiers as the official Anthropic API. Pick by task.
| Model ID | Best for | Context |
|---|---|---|
claude-opus-4-7 | Hardest reasoning, planning, autonomous agents | 200K / 1M |
claude-opus-4-6 | Deep analysis, advanced coding | 200K |
claude-sonnet-4-6 | Everyday coding, fast responses | 200K / 1M |
claude-haiku-4-5 | Quick tasks, classification, tool dispatch | 200K |
The same two env vars work in every Anthropic-SDK-compatible tool.
Settings → Models → Override OpenAI Base URL. Set to https://aiprimetech.io/v1 (Cursor uses OpenAI format) and paste your sk- key.
API Provider: Anthropic. Base URL: https://aiprimetech.io. Paste your key.
Set both env vars before running aider --model claude-opus-4-7.
Settings → Provider → Anthropic. API Proxy URL = https://aiprimetech.io. (Some regions blocked.)
Self-hosted agent framework. Same env vars work; supports per-role model assignment. Full guide on the blog.
ANTHROPIC_AUTH_TOKEN isn't loaded or has a typo. Verify with echo $ANTHROPIC_AUTH_TOKEN (Linux/Mac) or echo $env:ANTHROPIC_AUTH_TOKEN (PowerShell). Should start with apt-. If empty, restart your terminal after running setx — it only takes effect in NEW shells.ANTHROPIC_BASE_URL is set to exactly https://aiprimetech.io (no trailing slash, no /v1). Claude Code adds the path itself.unset ANTHROPIC_BASE_URL ANTHROPIC_AUTH_TOKEN. Claude Code will fall back to your Anthropic.com login./model inside the session. Models map to different upstream account pools — if one is rate-limited, the others usually aren't.