IDE & tools
Cursor, Continue, Cline, Roo, Claude Code, Codex CLI, …
The mainstream AI coding tools all connect to AlayaCode out of the box. Group by which protocol your tool speaks and follow the matching section.
Tools that speak OpenAI
Set the tool's OPENAI_BASE_URL / Custom base URL:
https://codingplan.alayanew.com/v1API key is your sk-... token.
Cursor
Cursor → Settings → Models:
- Disable the default models
- Add custom model → model name
minimax-m2.5(or whichever ID you prefer) - OpenAI API Key →
sk-... - Tick Override OpenAI Base URL →
https://codingplan.alayanew.com/v1
Cmd+L chat and Cmd+I inline completion both flow through AlayaCode.
Continue (VS Code / JetBrains)
In config.json:
{
"models": [{
"title": "AlayaCode · MiniMax M2.5",
"provider": "openai",
"model": "minimax-m2.5",
"apiBase": "https://codingplan.alayanew.com/v1",
"apiKey": "sk-your-key-here"
}]
}Codex CLI / OpenAI official CLI
export OPENAI_BASE_URL=https://codingplan.alayanew.com/v1
export OPENAI_API_KEY=sk-your-key-here
codex # or: openai api chat.completions.create -m minimax-m2.5 ...Tools that speak Anthropic
Set ANTHROPIC_BASE_URL:
https://codingplan.alayanew.com/anthropicSet ANTHROPIC_AUTH_TOKEN (not ANTHROPIC_API_KEY) to sk-....
Claude Code
export ANTHROPIC_BASE_URL=https://codingplan.alayanew.com/anthropic
export ANTHROPIC_AUTH_TOKEN=sk-your-key-here
export ANTHROPIC_MODEL=minimax-m2.5
claudeClaude Code's
ANTHROPIC_MODELenv var decides the default model. If you skip it, the CLI falls back to Anthropic's default ID (which doesn't exist on AlayaCode). Set it.
Cline (VS Code)
Cline → Settings → API Provider → Anthropic, then:
Anthropic Base URL:https://codingplan.alayanew.com/anthropicAnthropic API Key:sk-your-key-hereModel:minimax-m2.5(or other)
Roo Code (VS Code)
Same as Cline — pick Anthropic provider, fill the three fields.
MCP (Model Context Protocol)
If your tool drives models through an MCP server, configure the server's LLM provider as OpenAI-compatible with base_url pointing here. Servers that speak the Anthropic protocol (e.g. @modelcontextprotocol/server-anthropic) work the same — just swap the base URL.
Smoke test
curl https://codingplan.alayanew.com/v1/models \
-H "Authorization: Bearer sk-your-key-here"A model array means you're connected. 401 / 404 → see Errors.
My tool isn't listed
Any tool that exposes "custom OpenAI / Anthropic base URL" should work — this is wire-level compat, not SDK-bound. If yours doesn't let you override the base URL, file a ticket and we'll add an adapter guide on the tech blog.
Last updated on
