Getting started
Get started with the LMU AI API in three steps: create an account, subscribe or top up, create an API key, then connect Claude Code, Codex CLI, and Cursor.
For plan advice and quotes, join the pre-sales group. After purchase, join the after-sales group first for hands-on help.
Pre-sales QQ group: 1042851564 — questions about plans, models and setup; open to join

After-sales QQ group: 1044817922 — approval requires your payment order number

Step 1 — Create an account
Go to the sign-up page: https://api.lmuai.ai/register?ref=vJaWWr4T
Enter your email and a password to finish registration.
Step 2 — Subscribe or top up
After logging in, click "Top up / Subscribe" in the left menu:
- Subscribe: pick a plan and get a fixed monthly quota
- Top up: add balance on demand and use any model flexibly
You're ready to go as soon as payment completes.
Step 3 — Create an API key
- Click "API Keys" in the left menu
- Click "Create key" and give it any name
- Once created, save your API key (the value that starts with
sk-)
Step 4 — Configure your tool
API base URL:
Pick the base URL that matches your tool's protocol:
Anthropic protocol (Claude Code, Cherry Studio, Trae, Kilo Code with Claude / Chinese models, etc.):
https://api.lmuai.aiOpenAI protocol (Codex CLI, Codex App, VS Code / Cursor with GPT, Kilo Code with OpenAI models, etc.):
https://api.lmuai.ai/v1The difference (the most common mistake)
- The Anthropic protocol has no
/v1suffix - The OpenAI protocol must include the
/v1suffix
Using the wrong protocol causes 401 / 404 errors. For full protocol details, SDK / curl examples and Claude Max group limits, see API protocols →.
Keep these three things handy — every tool setup below needs them:
- API Key: the
sk-key you created in the console (shared by both protocols) - Anthropic base URL:
https://api.lmuai.ai - OpenAI base URL:
https://api.lmuai.ai/v1
Next steps
Pick the setup guide for your tool:
| Tool | Guide |
|---|---|
| CC Switch (one-click import, recommended) | CC Switch guide |
| Claude Code | Claude Code guide |
| Codex CLI (Mac / Linux) | Mac / Linux guide |
| Cursor | Cursor guide |
Last updated:
Still have questions? Ask in the LMU AI Community (in Chinese) and sign in with your console account.
Get an LMU AI key and start using Claude, Codex and more
Free sign-up, flexible plans, one key across Claude Code, Codex CLI, Cursor, VS Code, OpenCode, Cherry Studio and other AI tools.
Sign up