Guide for integrating the Claude Popusk API with popular AI coding tools: Claude Code, Cline, Kilo Code, OpenCode and Roo Code.
Click a card to jump to the detailed instructions for that tool.
ANTHROPIC_AUTH_TOKEN and ANTHROPIC_BASE_URL variables are not set in your environment. If they are present in ~/.bashrc / ~/.zshrc — remove them and restart your terminal.
Node.js 18+ is required. Install via npm:
npm install -g @anthropic-ai/claude-code
Create the file ~/.claude/settings.json (on Windows: %USERPROFILE%\.claude\settings.json) and paste the configuration below. Replace YOUR_API_KEY with your API key.
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.claude-popusk.shop",
"ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY",
"ANTHROPIC_MODEL": "popusk/claude-opus-4-7",
"ANTHROPIC_SMALL_FAST_MODEL": "popusk/claude-sonnet-4-6",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "popusk/claude-sonnet-4-6",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "popusk/claude-opus-4-7"
}
}
Alternative — export the environment variables manually:
export ANTHROPIC_BASE_URL="https://api.claude-popusk.shop"
export ANTHROPIC_AUTH_TOKEN="YOUR_API_KEY"
cd /path/to/your/project
claude
In VS Code open Extensions (Ctrl/Cmd + Shift + X), search for Cline and click Install.
In the Cline side panel click the gear icon and choose API Key as the authentication method.
OpenAI Compatible
https://api.claude-popusk.shop/v1popusk/claude-opus-4-7, popusk/gpt-5.5Save the settings and pick your newly connected model from the model dropdown. Cline is ready to go.
Find Kilo Code in the VS Code Marketplace and click Install.
OpenAI Compatible
https://api.claude-popusk.shop/v1popusk/claude-opus-4-7 or popusk/gpt-5.5Save the settings and switch the model in chat to the one you just added.
Via curl (recommended):
curl -fsSL https://opencode.ai/install | bash
Or via npm:
npm i -g opencode-ai
Create the file ~/.config/opencode/opencode.json with the following contents:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"claude-popusk": {
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://api.claude-popusk.shop/v1",
"apiKey": "YOUR_API_KEY"
},
"models": {
"popusk/claude-opus-4-7": { "name": "popusk/claude-opus-4-7" },
"popusk/claude-sonnet-4-6": { "name": "popusk/claude-sonnet-4-6" },
"popusk/gpt-5.5": { "name": "popusk/gpt-5.5" }
}
}
}
}
Don't forget to substitute your YOUR_API_KEY. The models list can be extended.
cd /path/to/your/project
opencode
Inside OpenCode run the /models command and pick the model.
Find Roo Code in the VS Code Marketplace and install it.
In the Roo Code side panel open Settings → Providers.
OpenAI Compatiblehttps://api.claude-popusk.shop/v1popusk/claude-sonnet-4-6Save the settings. Pick your model from the chat header — and start writing tasks.
Use the exact model name when configuring your client. Click any item to copy.
popusk/claude-opus-4-7popusk/claude-opus-4-6popusk/claude-opus-4-5-20251101popusk/claude-opus-4-5popusk/claude-opus-4-1-20250805popusk/claude-opus-4-1popusk/claude-opus-4-20250514popusk/claude-opus-4-0popusk/claude-sonnet-4-6popusk/claude-sonnet-4-5-20250929popusk/claude-sonnet-4-5popusk/claude-sonnet-4-20250514popusk/claude-sonnet-4-0popusk/claude-haiku-4-5-20251001popusk/claude-haiku-4-5popusk/gpt-5.5popusk/gpt-5.5-2026-04-23popusk/gpt-5.5-propopusk/gpt-5.5-pro-2026-04-23popusk/gpt-5.4popusk/gpt-5.4-2026-03-05popusk/gpt-5.4-propopusk/gpt-5.4-pro-2026-03-05popusk/gpt-5.4-minipopusk/gpt-5.4-mini-2026-03-17popusk/gpt-5.4-nanopopusk/gpt-5.4-nano-2026-03-17popusk/gpt-5.3-chat-latestpopusk/gpt-5.3-chatpopusk/gpt-5.3-codexpopusk/gpt-5.2popusk/gpt-5.2-2025-12-11popusk/gpt-5.2-propopusk/gpt-5.2-pro-2025-12-11popusk/gpt-5.2-chat-latestpopusk/gpt-5.2-chatpopusk/gpt-5.2-codexpopusk/gpt-5.1popusk/gpt-5.1-2025-11-13popusk/gpt-5.1-chat-latestpopusk/gpt-5.1-codexpopusk/gpt-5.1-codex-maxpopusk/gpt-5.1-codex-minipopusk/gpt-5popusk/gpt-5-2025-08-07popusk/gpt-5-chat-latestpopusk/gpt-5-chatpopusk/gpt-5-propopusk/gpt-5-pro-2025-10-06popusk/gpt-5-minipopusk/gpt-5-mini-2025-08-07popusk/gpt-5-nanopopusk/gpt-5-nano-2025-08-07popusk/gpt-5-codexpopusk/gpt-5-search-apipopusk/gpt-5-search-api-2025-10-14popusk/o3popusk/o3-2025-04-16popusk/o3-propopusk/o3-pro-2025-06-10popusk/o3-deep-researchpopusk/o3-deep-research-2025-06-26popusk/o3-minipopusk/o3-mini-2025-01-31popusk/o4-minipopusk/o4-mini-2025-04-16popusk/o4-mini-deep-researchpopusk/o4-mini-deep-research-2025-06-26popusk/gemini-3.1-pro-previewpopusk/gemini-3.1-pro-preview-customtoolspopusk/gemini-3.1-flash-lite-previewpopusk/gemini-3-pro-previewpopusk/gemini-3-deep-think-previewpopusk/gemini-3-flash-preview