Setup guide

Claude Code, every model

Claude Code lets you point it at any Anthropic-compatible endpoint. Set two environment variables and the tool you already know — commands, subagents, hooks — runs on AGI Plan, where one monthly quota covers Claude, GPT, GLM and DeepSeek, billed in CNY.

Three steps, about

Step one

Create an account

Sign up with an email address and a verification code on agiplan.dev. Registration and login are the same path; no payment is needed to start.

Step two

Choose a plan and create a key

Pick a plan in the console and create an API key. The key is shown in full exactly once — copy it right away.

Step three

Export two variables

Point Claude Code at the gateway with the base URL and your key, as shown below.

Two lines of

The base URL carries no /v1 — the Anthropic-style SDK appends it itself.

export ANTHROPIC_BASE_URL="https://agiplan.dev"
export ANTHROPIC_AUTH_TOKEN="ap_live_your_key"

Run claude as usual afterwards. On Windows, set the same two variables in your environment; the official guide on agiplan.dev has per-OS, per-shell steps with the exact files to edit.

What

Protocol

Streaming, tools, system

/v1/messages supports streaming, tool use and system prompts — the parts Claude Code depends on.

Models

GPT, GLM, DeepSeek too

Name a model id or a tier in the same session; the same quota spans all four capability tiers.

Accounting

Every call itemised

Input, output, CU charged and a trace ID per request, exportable as CSV from the console.

Before you switch

Does everything in Claude Code still work?

The gateway implements the Anthropic /v1/messages dialect with streaming, tool use and system prompts — the parts Claude Code depends on. Subagents, hooks and MCP servers are client-side features that keep working.

Can Claude Code call GPT or GLM models?

Yes. The same quota spans four tiers. Name a specific model id, or name only a tier and let Prism routing pick an available line inside it — switching lines inside a tier doesn't change the price.

How is this billed?

A monthly plan in CNY, paid via WeChat Pay or Alipay. Usage is metered in CUs; every call is itemised and exportable as CSV. Full refund within 7 days of your first subscription if under 10% used.

One email away from every model

Claude Code lets you point it at any Anthropic-compatible endpoint. Set two environment variables and the tool you already know — commands, subagents, hooks — runs on AGI Plan, where one monthly quota covers Claude, GPT, GLM and DeepSeek, billed in CNY.

Create an account

Email + verification code. No card required.