Connect AI tools to the Kiree API
Claude Code, Codex CLI, Cursor and other tools run through the kiree.net gateway: one sk-… key, Base URL https://kiree.net/v1, pay only for actual usage. Pick a tool — inside are working configs and a check.
Claude Code
Terminal agentsConnect Claude Code to the kiree.net gateway through environment variables: an Anthropic-compatible endpoint, tokens billed from the shared balance.
Setup →Codex CLI
Terminal agentsConnect Codex CLI to kiree.net through ~/.codex/config.toml: an OpenAI-compatible provider, GPT models from the catalog, billed by tokens.
Setup →Qwen Code
Terminal agentsConnect Qwen Code to kiree.net through a Custom Provider or OPENAI_* variables: Qwen3 models from the catalog, billed by tokens, no Alibaba account.
Setup →Cursor
IDE & editorsConnect Cursor to kiree.net: Override OpenAI Base URL, a sk-… key and catalog models in Chat and Composer.
Setup →Cline
IDE & editorsConnect Cline in VS Code to kiree.net: OpenAI Compatible provider, Base URL https://kiree.net/v1, a key and catalog models.
Setup →Aider
Terminal agentsConnect Aider to kiree.net with OPENAI_API_BASE and OPENAI_API_KEY: pair programming in the terminal with catalog models.
Setup →Cherry Studio
Chat clientsConnect Cherry Studio to kiree.net: an OpenAI-compatible provider, the gateway address, a key and a model list — Claude, GPT, Qwen and DeepSeek in one client.
Setup →NextChat
Chat clientsConnect NextChat to kiree.net via BASE_URL and OPENAI_API_KEY: a ChatGPT-style web interface with catalog models, billed by tokens.
Setup →n8n
Automation & botsConnect n8n to kiree.net: an OpenAI credential with Base URL https://kiree.net/v1 or an HTTP Request node — AI steps in workflows and Telegram bots, billed by tokens.
Setup →AI Telegram Bot
Automation & botsA ready bot.py for a Telegram bot with an LLM: aiogram 3 or python-telegram-bot, dialog history, 4096-character reply splitting, base_url https://kiree.net/v1, billed by tokens.
Setup →OpenCode
Terminal agentsConnect OpenCode to kiree.net through opencode.json: a @ai-sdk/openai-compatible provider, the gateway baseURL and catalog models.
Setup →Windsurf
IDE & editorsConnect Windsurf to kiree.net: a custom OpenAI-compatible provider in the Cascade/Models settings — Base URL, key and a catalog model ID.
Setup →Roo Code
IDE & editorsConnect Roo Code in VS Code to kiree.net: OpenAI Compatible provider, Base URL https://kiree.net/v1, a key and catalog models in every agent mode.
Setup →Continue
IDE & editorsConnect Continue (VS Code / JetBrains) to kiree.net via config.yaml: provider openai, apiBase https://kiree.net/v1, a key and catalog models.
Setup →LobeChat
Chat clientsConnect LobeChat to kiree.net: OPENAI_PROXY_URL=https://kiree.net/v1, OPENAI_API_KEY and OPENAI_MODEL_LIST — a self-hosted chat with Claude, GPT and Qwen on one key.
Setup →Open WebUI
Chat clientsConnect Open WebUI to kiree.net: Settings → Connections → OpenAI API (https://kiree.net/v1 + key) or OPENAI_API_BASE_URL / OPENAI_API_KEY variables.
Setup →LangChain
SDKs & frameworksConnect LangChain to kiree.net: ChatOpenAI(base_url="https://kiree.net/v1", api_key="sk-…") — chains, agents and RAG with catalog models.
Setup →Vercel AI SDK
SDKs & frameworksConnect the Vercel AI SDK to kiree.net: createOpenAICompatible({ baseURL: "https://kiree.net/v1", apiKey }) — generateText and streamText with catalog models.
Setup →Trae
IDE & editorsConnect Trae to kiree.net: Settings → Models → a custom model with OpenAI or Anthropic API format, the gateway address, a key and a catalog model ID.
Setup →Kimi Code
Terminal agentsConnect Kimi Code CLI to kiree.net through ~/.kimi-code/config.toml: an openai or anthropic provider with the gateway base_url, Claude/GPT/Qwen models, billed by tokens.
Setup →Chatbox
Chat clientsConnect Chatbox to kiree.net: OpenAI API Compatible provider, API Host https://kiree.net/v1, a key and catalog models — desktop and web.
Setup →Copilot Chat
IDE & editorsConnect the Copilot chat in VS Code to kiree.net via a BYOK Custom Endpoint: chatLanguageModels.json with vendor customendpoint, Chat Completions or Messages API type and the gateway address.
Setup →OpenClaw
Automation & botsConnect OpenClaw to kiree.net: models.providers in openclaw.json with the gateway baseUrl and api openai-completions, catalog models; check with a headless agent exec.
Setup →Hermes Agent
Terminal agentsConnect Hermes Agent to kiree.net: ~/.hermes/config.yaml with a custom provider, the gateway base_url and a required max_tokens; catalog models, billed by tokens.
Setup →DeepSeek Harness
Terminal agentsConnect DeepSeek Harness to kiree.net: patch llm-pi-ai.providers with the gateway baseURL and apiKeyEnv, set agent-default-model to kiree/gpt-4o-mini; check with dsh --profile headless.
Setup →Do not see your tool? Any OpenAI-compatible client connects with the shared guide below: Base URL https://kiree.net/v1 and a sk-… key.
Setup for any client
Get a key
Create a sk-… key in the kiree.net console.
Point to the gateway
Base URL https://kiree.net/v1 and the key in the OpenAI Compatible / Custom provider settings.
Pick a model
Model ID from the catalog; the response format is standard OpenAI or Anthropic — no client change needed.
API key: sk-…
Model: gpt-4o-mini