Coding agents
VectorAxis speaks both the OpenAI API and Anthropic’s Messages API, so Claude Code and any AI coding tool that accepts a custom base_url routes through it with a single configuration change: no plugin, no wrapper. Your whole engineering team gets cost tracking, provider fallbacks, caching, budgets, and guardrails without changing how the tools work.
Because the gateway is OpenAI-compatible, you send OpenAI-format chat requests and VectorAxis translates them to whatever provider the key points at. So a coding tool that only speaks “OpenAI” can still use Anthropic, Groq, and more: create a virtual key for that provider, pick a model it serves (e.g. claude-haiku-4-5), and VectorAxis handles the format under the hood (see OpenAI SDK).
Claude Code talks to Anthropic’s Messages API, which VectorAxis serves at the same paths (see Claude SDK). Point it at the gateway with an Anthropic virtual key:
export ANTHROPIC_BASE_URL=https://api.vectoraxis.ai export ANTHROPIC_AUTH_TOKEN=vk-c7d4e1f2a3b95a8b.Rq8mT2vX5nL9pW3kY7cJ1hF4dS6gB0zN2aE8uV5tQ1c claude
Or set the same two variables under env in ~/.claude/settings.json (or a project’s .claude/settings.json) to apply them to every session. ANTHROPIC_AUTH_TOKEN sends the key as a bearer token; ANTHROPIC_API_KEY works as well, but Claude Code asks you to approve a custom API key the first time.
- Models. Claude Code uses more than one model (a main model, and a small fast one for background work). If the key has a model allowlist, include every model it uses.
- Everything local works. Reading and editing files, the shell, and the MCP servers you configure in Claude Code all run on your machine; only model calls go through VectorAxis.
- Web search does not. Claude Code’s web search runs as an Anthropic server tool, which the gateway refuses with a 400 rather than letting Anthropic do work it cannot govern or bill.
- Every request is logged against the key, with its cost, prompt-cache savings included.
| Tool | How to point it at VectorAxis |
|---|---|
| Claude Code | Set ANTHROPIC_BASE_URL=https://api.vectoraxis.ai and ANTHROPIC_AUTH_TOKEN=vk-… (an Anthropic virtual key). Above. |
| Codex CLI | Add a model provider in ~/.codex/config.toml with base_url = "https://api.vectoraxis.ai/v1", wire_api = "responses" and a virtual key in its env_key. Codex speaks the Responses API, which VectorAxis serves for every provider: Responses API. |
| Cursor | Settings → Models → OpenAI API Key: enable “Override OpenAI Base URL”, set it to https://api.vectoraxis.ai/v1, and paste a virtual key as the API key. |
| Continue.dev | In ~/.continue/config.json, set each model’s apiBase and apiKey (see example below). |
| Cody (Sourcegraph) | Add a custom OpenAI-compatible provider in Cody settings with the VectorAxis base URL and a virtual key. |
| Aider | Set OPENAI_API_BASE=https://api.vectoraxis.ai/v1 and OPENAI_API_KEY=vk-… (or the matching CLI flags). |
| Any OpenAI SDK / tool | Set base_url + api_key (a VectorAxis API key). |
from openai import OpenAI
client = OpenAI(
base_url="https://api.vectoraxis.ai/v1",
api_key="vk-1a2b3c4d5e6f7a8b.Xk3pQ9vN2mR7tY1wZ8bC4dF6gH0jK5lM3nP7qS9uV2w", # your VectorAxis API key
)
# model + everything else stays the same
client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Explain this function"}],
)Two models, each behind its own virtual key: a GPT key and a Claude key. Both use the openai provider type (that just means “OpenAI-compatible protocol”); VectorAxis routes to the real provider based on the key.
{
"models": [
{
"title": "VectorAxis -> GPT-4o",
"provider": "openai",
"model": "gpt-4o",
"apiBase": "https://api.vectoraxis.ai/v1",
"apiKey": "vk-1a2b3c4d5e6f7a8b.Xk3pQ9vN2mR7tY1wZ8bC4dF6gH0jK5lM3nP7qS9uV2w"
},
{
"title": "VectorAxis -> Claude",
"provider": "openai",
"model": "claude-haiku-4-5",
"apiBase": "https://api.vectoraxis.ai/v1",
"apiKey": "vk-c7d4e1f2a3b95a8b.Rq8mT2vX5nL9pW3kY7cJ1hF4dS6gB0zN2aE8uV5tQ1c"
}
]
}| Capability | How it helps with coding agents |
|---|---|
| Cost visibility | See exactly what each developer, team, or project spends on AI, broken down by model and day, in Analytics. |
| Provider fallback | If a provider has a bad minute mid-session, retry & fallback keeps the IDE responding instead of erroring out. |
| Caching | Repeated prompts (“explain this function”, autocomplete) can be served from the cache, cutting latency and cost. |
| Budget controls | Give each dev or team a virtual key with a credit limit and rate limits, so no one can blow the monthly budget. |
| Guardrails | Block or redact secrets and PII in a snippet before it ever leaves your network with guardrails. |
| Model flexibility | Send cheap tasks to a small model and hard ones to a frontier model with a routing config, with no tool change. |