Claude Code
Two environment variables: ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN. Claude Code speaks Anthropic’s format, so it runs the Claude models.
Coding agents: setup and test results
Which setup each of six agent tools needs on one base URL, which of them we ran, and the prompt-cache reads and tool tests measured on two abliterated ids.
Claude Code Router
The router puts GLM, DeepSeek and Kimi behind Claude Code’s Anthropic-format calls: one provider on this base URL, tested end to end. The Claude models need no router.
Claude Agent SDK
ANTHROPIC_BASE_URL and ANTHROPIC_API_KEY through the env option of query(), a TypeScript and a Python agent, and the haiku alias set to a live id.
Cursor
Paste the key as the OpenAI API key and override the OpenAI base URL. Any model on the list works in chat and agent; Tab stays on Cursor’s own models.
OpenCode and OpenCode Zen
One provider block in opencode.json with the openai-compatible package, and OpenCode Zen’s list-price rates next to ours for the same ids.
Cline
Pick OpenAI Compatible, paste the base URL and key, type a model id and click Verify.
Roo Code and Zoo Code
Roo Code shut down on 2026-05-15. Zoo Code, the community fork, keeps the same OpenAI Compatible panel: one model id, native tool calls only.
Kilo Code API key
Kilo’s credits at provider rates plus a 5% fee, or your own key as a custom provider in VS Code or kilo.json. Kilo fetches the model list for you.
OpenClaw
One provider block under models.providers in ~/.openclaw/openclaw.json, with api set to openai-completions.
Codex CLI
One model_providers table in ~/.codex/config.toml with the base URL and env_key, wire_api responses. Any model id on the list, Claude included.
pi coding agent
One provider block in ~/.pi/agent/models.json: base URL, key, the model ids you want. Every model on one key, pay as you go.
omp
One provider block in ~/.omp/agent/models.yml: the base URL, a key from the console, the model ids you want.
Hermes Agent
A providers entry in ~/.hermes/config.yaml, the key in .env, one model id. Every model, pay as you go, no subscription.
DeepSeek Harness
One key for every model, Claude included, as a Custom model API provider in cordis.patch.yml. Pay per token from prepaid credit.
Aider
Two environment variables and --model openai/<id>. One key, every model, Claude included, billed per token.
OpenHands
Advanced settings: Custom Model openai/<id>, the base URL and the key. Any model on the list, Claude included.
Continue
One block in config.yaml: provider openai, apiBase, apiKey, any model id on the list. Pay per token, no subscription.
GitHub Copilot Chat BYOK
A Custom Endpoint in chatLanguageModels.json puts every chat model on the list in Copilot’s model picker, billed per token.
Open WebUI
One OpenAI-compatible connection: the base URL with /v1 and a key, Verify Connection, and a Model IDs allowlist for the models you want in the selector.
Cherry Studio
Paste your key and Add to Cherry Studio imports the provider in one click; by hand it is provider type OpenAI, the API host and the key.
Chatbox
A one-click provider import with your key and a live starting set of models, or OpenAI API compatible by hand with the API host and a model id.
TypingMind
Each model as a custom model: OpenAI Chat Completions API, the endpoint URL, an Authorization header and the model id with its context length.
Msty Studio
An OpenAI-compatible provider under Model Providers: the base URL with /v1, your key, Fetch Models, and the models you select.
BoltAI
The Custom provider in Settings › AI Providers: Friendly Name, key, the base URL with /v1, then tick the models and set a default.
SillyTavern
API Chat Completion, source Custom (OpenAI-compatible), the base URL as the custom endpoint, your key, then Connect and pick the model id from the list it loads. Eight roleplay builds priced live and a preset to import.
OpenAI, Anthropic and Gemini SDKs
Set OPENAI_BASE_URL or ANTHROPIC_BASE_URL and keep your code. Also the Gemini SDK and the Vercel AI SDK.
Change base_url safely
Origin, versioned base and full endpoint told apart, why some clients send /v1/v1, and how to read the path a client really sends.
OpenAI Python base URL
base_url on OpenAI and AsyncOpenAI, the OPENAI_BASE_URL variable, which one wins, and why a client built earlier keeps its old host.
OpenAI Node base URL
The camel-case baseURL option on a server-side client, loading the environment before construction, and an ES module example.
Anthropic Python base URL
base_url and ANTHROPIC_BASE_URL on the Anthropic client, the /v1/v1/messages path the gateway folds, and the native Messages call.
Anthropic API migration
A cutover worksheet for a Messages app: inventory the features, keep or change the model, test each one, and keep a one-step rollback.
LangChain
ChatOpenAI with base_url set, in Python and JavaScript. Tool calls, streaming and structured output on Claude, GPT and DeepSeek.
LiteLLM
SDK and proxy on one key: model openai/<id> with api_base, or a config.yaml model_list. Every chat model, pay per token.
Vercel AI SDK
createOpenAICompatible with the base URL and key, then generateText or streamText on any model id.
Strands Agents
The SDK’s OpenAIModel with client_args for the base URL and key, in Python and TypeScript. Agents with tools on Claude, GPT and DeepSeek.
Strix
STRIX_LLM, LLM_API_KEY and LLM_API_BASE for the pentest agent, with the red-team builds and what one turn costs.
Images, video, speech and 3D
OpenAI’s image API for the image models, and one generations endpoint for the rest. Failed generations are not charged.
Nano Banana pricing
Price per image for Pro, 2, 2.1 and Lite next to Google’s, and how to generate and edit with the OpenAI SDK.
Seedream API
How to get a Seedream API key, every version’s price per image, image sets of up to 15 and edits.
Seedance API pricing
Price per second for Seedance 2.5, 2, 2 Fast and 2 Mini at every resolution, what a 15-second clip costs, and the call.
Grok Imagine API
How to get a key, the 6 and 10 second clip prices next to xAI’s per-second rate, modes and aspect ratios, and the call.
Kling API
Kling 3.0, 3.0 Turbo and O3 per second, Kling 2.6, 2.5 and 2.1 per clip, next to Kling’s own unit rate; sound, elements, multi-shot and the call.
Sora 2 API
The Sora 2 API shut down on September 24, 2026: what it cost per second, Kling 3.0, Veo 3.1 and Seedance 2.5 priced next to it, and a Sora request mapped field by field.
ElevenLabs API
How to get a key, Eleven v3 and Turbo v2.5 per 1,000 characters and Eleven Music per minute, worked per chapter and per track next to ElevenLabs’ rates.
Veo 3.1 API pricing
Veo 3.1, Fast and Lite per second and per 8-second clip next to Google’s rate, a month of clips, the generations call, and what the Veo 3 API means today.
LlamaIndex
OpenAILike with api_base set, embeddings on the same key and function calling. Every chat model in query engines, chat engines and agents.
CrewAI
The LLM class with an openai/ model id and base URL, a model per agent to control cost, and the env-var and version gotchas.
Pydantic AI
OpenAIProvider on the base URL and OpenAIChatModel, typed outputs and tools, and a FallbackModel chain across vendors on one key.
n8n
Point the OpenAI credential at one base URL and every chat model shows in the OpenAI Chat Model node for AI Agent workflows.
Dify
The OpenAI-API-compatible provider: API Base URL, a catalog id as Model Name, the context and function-call fields, and a key check outside Dify.
Flowise
The OpenAI Custom Model node with Base Path set, a free-text catalog id, and one curl that separates a credential fault from a flow fault.
DSPy
dspy.LM with an openai/ prefix, api_base and key; one direct call before any optimizer, and a second model through dspy.context.
Haystack
OpenAIChatGenerator with api_base_url and a Secret from the environment, one pipeline step after ChatPromptBuilder, and a connection check.
Mastra
A model object with id, url and apiKey on the agent, a createTool passed in the constructor, and a retry onto a second catalog id.
Semantic Kernel
AddOpenAIChatCompletion with an endpoint in .NET, an AsyncOpenAI client handed to the Python connector, and function choice set to auto.
Agno
The OpenAILike model class with id, api_key and base_url, a Python function as a tool, and what moved for a Phidata agent.
Character chat · guides on RelaySwitch, the same URL and key
Janitor AI
Provider Proxy, + New: the full chat completions URL (ending /chat/completions) as the proxy URL, your key, a model id typed exactly, Save, then refresh.
Chub AI (Venus)
Secrets: OpenAI with the reverse proxy option, the base URL ending /v1 and your key; the model id in Configuration.
RisuAI
Custom API model entry: the base URL, Key/Password, the model id as Request Model, Format OpenAI-compatible.
Agnai
A Third-Party preset: OpenAI Compat (Chat), the base URL as Third Party URL, the key in Third Party Key/Password, the model id in OpenAI Model Override.
WyvernChat
A Provider (API URL Type OpenAI, the base URL, Stored API Key) and a Connection with Fetch Models and a Context Length per model.
Sophia's LoreBary
A hop, not a client: the proxy URL it hands you, your key and a model id go into Janitor AI, Chub or Wyvern; My Custom Proxy for an API not on its list.
KoboldAI Lite
The OpenAI Compatible API provider in the browser: the base URL, API Key (Required), Fetch or a typed id, Chat-Completions API on, CORS proxy off.
What every guide shares
Each guide changes two things in your tool: the base URL and the key. The model ids, the prices and the balance are the same in every tool.
Base URL https://api.uplinkswitch.com/v1
Auth Authorization: Bearer sk-uplink-live-...
(x-api-key works too)
Models GET https://api.uplinkswitch.com/v1/models- One key from the console. The balance is prepaid from $10, with no subscription, and each top-up locks prices for 30 days.
- Three wire formats behind one URL. Every chat model takes the OpenAI format (
/chat/completions). The Claude models also take Anthropic's (/messages), and the Gemini models Google's. Each model on the Models page lists its formats. - A model costs the same in every format, so the Anthropic and OpenAI SDKs pay the same rate for the same Claude model.
- The key goes in a header. A key in the URL is refused.
- Every request shows on the console's Usage page with its tokens and its charge.
Which guide to follow
Follow the guide for the tool you already use. They differ in where the setting lives and in which format the tool speaks.
- Anthropic format only. Claude Code sends Anthropic requests, so it runs the Claude models. For GPT, Gemini, DeepSeek or Kimi in an agent, use one of the OpenAI-compatible tools below.
- OpenAI-compatible editors and agents. Cursor, Cline, Roo Code, Kilo Code and OpenHands take a base URL and a key in a settings panel; GitHub Copilot Chat takes them as a Custom Endpoint in VS Code. Every model on the list works, Claude included.
- Config files. OpenCode, OpenClaw, Codex CLI, pi, omp, Hermes Agent, DeepSeek Harness and Continue read a provider block from a JSON, YAML or TOML file, so the setup can live in a dotfiles folder; Aider takes two environment variables and
--model openai/<id>. Keep the key in an environment variable, not in the file. - Roleplay. SillyTavern takes the base URL and key as a Custom (OpenAI-compatible) source; Janitor AI takes the full chat completions URL as a proxy; Chub AI takes the same URL and key as a reverse proxy under Secrets; RisuAI takes them in a Custom API model entry; Agnai, WyvernChat, LoreBary and KoboldAI Lite have their own pages in the row above. The uncensored builds run in all of them.
- Your own code. The SDK guide covers the OpenAI, Anthropic, Gemini and Vercel AI SDKs. The OpenAI and Anthropic SDKs read the base URL from an environment variable, so no code changes. Agent frameworks take it as a setting: LangChain through ChatOpenAI and Strands Agents through OpenAIModel, LiteLLM through api_base or a proxy model_list, and the Vercel AI SDK through createOpenAICompatible. The pentest agent Strix reads STRIX_LLM and LLM_API_BASE from the environment.
- Images, video, speech and 3D. Start with the media guide. The Nano Banana Pro, Veo 3.1, Kling and ElevenLabs pages add per-unit prices.
Questions
Can I use one key in several tools at once? Yes. Every key on an account draws on the same prepaid balance. To tell tools apart, create a key per tool in the console and filter the Usage page by key.
How do I check a key before I open a tool? curl https://api.uplinkswitch.com/v1/models with the key in an Authorization: Bearer header lists the models it can call. Most tool guides have the exact command.
What happens when the balance runs out? Requests return 402 with the code insufficient_balance until you top up. The same message reaches whichever tool sent the request.