AI coding tools

One key for the AI coding tools you already use

Cursor, Cline, Kilo Code, TRAE, OpenCode and other tools all accept a custom model endpoint. Pick the right API for the model, fill in the base URL, key and model ID, and call GPT and Claude from the tools you know.

Every tool needs just these three fieldstext
# GPT models: OpenAI API
Base URL  https://api.unioapi.com/v1
API Key   <UNIO_API_KEY>
Model     gpt-6.1-sol

# Claude models: Anthropic API
Base URL  https://api.unioapi.com
API Key   <UNIO_API_KEY>
Model     claude-sonnet-5-5

Tools that append /v1 themselves (such as TRAE) take the base URL without /v1; each tool's guide has the details.

14 guides
Step-by-step client setup
2 APIs
Official OpenAI and Anthropic formats
3 fields
Base URL, API key, model ID
1 key
Works for every tool and endpoint

Power your coding tools with UnioAPI

Guides for popular tools

Cursor, Cline, Kilo Code, TRAE, OpenCode, Cherry Studio, Claude Code, Codex and more each have step-by-step setup and a troubleshooting table.

Pick the API by model

GPT models use the OpenAI API with /v1 in the base URL; Claude models use the Anthropic API without /v1. A request sent with the wrong API returns 404.

Official features, as sent

Tool calls, streaming, reasoning effort and prompt caching run in the official format, so coding tools get the same features as with the official APIs.

One key for everything

One key works on every endpoint — or create a key per tool, each with its own spend cap, to keep usage separate.

Switch setups in one click

CC Switch keeps several setups for Claude Code, Codex and the Claude desktop app and switches between them without editing files.

Usage per key

Request logs filter by key and endpoint, so you can see which models each tool called, how many tokens it used and what it was charged.

Connect any coding tool in four steps

  1. Step 1

    Create an API key

    Create a key in the console; with several tools, give each its own named key so you can track them separately.

    Read the docs
  2. Step 2

    Check the model and API

    Look up the model ID and its supported endpoints on the model pages or GET /v1/models to decide between the OpenAI and Anthropic API in your tool.

    Read the docs
  3. Step 3

    Fill in your tool's settings

    Follow your tool's guide; for tools without one, fill in the three common fields.

    Read the docs
  4. Step 4

    Send a message and check

    A normal reply means you're connected; then check the call's model and usage in your console request logs.

    Read the docs

Billed by actual token usage

Whichever tool sends it, every model call is settled from its response usage: input, output, cache reads and cache writes are priced separately. The model pages list current prices.

Coding tools setup FAQ

Yes, as long as it accepts a custom OpenAI-compatible or Anthropic endpoint: fill in the base URL, API key and model ID. See Other compatible clients.

Further reading

Related topics

Bring UnioAPI into your coding tools

Create an API key, fill in three fields following your tool's guide, and use GPT and Claude in minutes.