Coding Agents for Teams

Give every developer their own VoidLLM key, put budgets and rate limits on the team, and connect Claude Code, Codex CLI and other coding tools through the proxy.

Coding Agents for Teams

How to run AI coding tools for a team through VoidLLM: one key per developer, one budget per team, a service account for CI, and an honest list of which tools can use the proxy today.

What works today

VoidLLM serves three API formats on /v1:

  • the OpenAI-compatible API (/v1/chat/completions and the other endpoints listed in the API reference), for every provider,
  • the Anthropic Messages API (POST /v1/messages, POST /v1/messages/count_tokens), forwarded natively to models with provider: anthropic,
  • the OpenAI Responses API (POST /v1/responses), forwarded natively to models with provider: openai, custom, vllm or ollama.

The native endpoints are what Claude Code and Codex CLI use. A request to a native endpoint for a model whose provider does not support it is rejected with 400 endpoint not supported for this model. Details are in the API reference.

This table only lists what was run on 2026-11-22 against a local VoidLLM build, not what should work in theory:

ClientVersionResult
curl, OpenAI model (/v1/chat/completions)-Works
curl, Anthropic model (/v1/chat/completions, translated to the Messages API)-Works
curl, Anthropic model, POST /v1/messages with streaming-Works
Claude Code, ANTHROPIC_BASE_URL pointed at VoidLLM2.1.330Works
Claude Code, key with exhausted token budget2.1.330Stops at once: API Error: Request rejected (429) · token budget exceeded
Claude Code, VoidLLM as MCP server (claude mcp list)2.1.330Connected
Codex CLI, custom provider pointed at VoidLLM0.169.1Works
Codex CLI, key with exhausted token budget0.169.1Stops at once: ERROR: Quota exceeded. Check your plan and billing details.
Cursor-Not tested
Windsurf-Not tested

Claude Code

Claude Code sends its requests to /v1/messages under ANTHROPIC_BASE_URL (see Anthropic’s gateway compatibility guide). Set the base URL to the VoidLLM root, without /v1, and the credential to a VoidLLM key:

export ANTHROPIC_BASE_URL=https://voidllm.example.com
export ANTHROPIC_AUTH_TOKEN=vl_uk_...   # sent as Authorization: Bearer
# or
export ANTHROPIC_API_KEY=vl_uk_...      # sent as x-api-key

Claude Code sends Anthropic model IDs, so the models it asks for must exist in VoidLLM with provider: anthropic, either under that exact name or as an alias. That is the main model and, for background tasks, possibly the default Haiku model: Anthropic’s guide says that behind ANTHROPIC_BASE_URL background tasks use the main model, or the default Haiku model when ANTHROPIC_API_KEY is set and ANTHROPIC_AUTH_TOKEN is not. To pin the models to names you have configured, set ANTHROPIC_MODEL (or use --model) and ANTHROPIC_DEFAULT_HAIKU_MODEL, see the Claude Code model configuration.

/v1/messages/count_tokens is served too, so /context shows exact counts. It creates no usage record.

Anthropic’s guide asks gateways to forward anthropic-beta verbatim. VoidLLM forwards it only when it is a comma-separated list of lowercase letters, digits and hyphens, without spaces and at most 512 bytes; otherwise the header is dropped. See Which headers reach the provider.

Codex CLI

Codex CLI uses the Responses API for a custom provider (wire_api = "responses", see the Codex configuration reference). In ~/.codex/config.toml:

model = "your-model"          # a VoidLLM model name or alias
model_provider = "voidllm"

[model_providers.voidllm]
name = "VoidLLM"
base_url = "https://voidllm.example.com/v1"
env_key = "VOIDLLM_API_KEY"
wire_api = "responses"

Then export VOIDLLM_API_KEY=vl_uk_.... The model must be a VoidLLM model (or alias) with provider: openai, custom, vllm or ollama, and the upstream must implement /responses. VoidLLM proxies the Responses API statelessly: it sets store: false when the request does not set store, and rejects previous_response_id, conversation and background: true.

When a budget runs out

When a key’s daily or monthly token budget (or one inherited from its team, membership or org) is used up, VoidLLM answers 429 with x-should-retry: false and Retry-After set to the seconds until the budget resets (next midnight UTC for a daily budget, the 1st of the next month UTC for a monthly one). On /v1/responses the error also carries type: insufficient_quota. Both CLIs then stop with the error instead of retrying, as in the table above. A request rate limit (requests_per_minute, requests_per_day) also sets Retry-After, but not x-should-retry.

Cursor documents that requests made with your own API key are routed through Cursor’s servers (bring your own API key). The current Cursor docs list OpenAI, Anthropic, Google, Azure and AWS Bedrock keys and do not describe a custom base URL. We did not test Cursor against VoidLLM, so check that your Cursor version has the setting before you plan around it.

Anything that speaks OpenAI Chat Completions and lets you set a base URL can use the setup below. If you try one, tell us what happened in a GitHub issue.

The hierarchy

Access is organized as organization, team, user and key:

  • Each developer is a user in your org and gets their own vl_uk_ key. Their usage is attributed to them.
  • Each team has its own limits.
  • CI jobs use a service account with a vl_sa_ key, so no pipeline runs on a person’s key.

Limits (tokens per day and month, requests per minute and per day) can be set on the org, the team, the user’s org membership and the key. Every level is checked on each request, once the request has passed authentication and body validation, and the most restrictive one wins. 0 means unlimited at that level. See RBAC for the details.

Setup

The examples use $VOIDLLM for your base URL and $ADMIN_KEY for a vl_uk_ key with the org admin role. IDs come from the responses of the previous call.

1. Add models

models:
  - name: gpt-4o-mini
    provider: openai
    base_url: https://api.openai.com/v1
    api_key: ${OPENAI_API_KEY}
    aliases: [fast]
  - name: claude-haiku-4-5
    provider: anthropic
    base_url: https://api.anthropic.com
    api_key: ${ANTHROPIC_API_KEY}
    aliases: [claude-fast]

Aliases mean the tools only need to know a stable name. See Provider Setup and Aliases.

2. Create the team with limits

curl -X POST $VOIDLLM/api/v1/orgs/$ORG_ID/teams \
  -H "Authorization: Bearer $ADMIN_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Platform",
    "slug": "platform",
    "daily_token_limit": 2000000,
    "monthly_token_limit": 40000000,
    "requests_per_minute": 120
  }'

3. Create a user and a key per developer

# the user
curl -X POST $VOIDLLM/api/v1/users \
  -H "Authorization: Bearer $ADMIN_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "dev@example.com",
    "display_name": "Dev One",
    "password": "a-long-initial-password",
    "org_id": "'$ORG_ID'",
    "role": "member"
  }'

# add them to the team
curl -X POST $VOIDLLM/api/v1/orgs/$ORG_ID/teams/$TEAM_ID/members \
  -H "Authorization: Bearer $ADMIN_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_id": "'$USER_ID'", "role": "member"}'

# a key for them, counted against the team
curl -X POST $VOIDLLM/api/v1/orgs/$ORG_ID/keys \
  -H "Authorization: Bearer $ADMIN_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "dev-laptop",
    "key_type": "user_key",
    "user_id": "'$USER_ID'",
    "team_id": "'$TEAM_ID'",
    "daily_token_limit": 500000,
    "requests_per_minute": 30
  }'

The key is only returned once, in the key field of that response. If you prefer not to set passwords yourself, use invite links instead.

A per-developer cap that covers all of a person’s keys is set on the org membership: PATCH /api/v1/orgs/$ORG_ID/members/$MEMBERSHIP_ID with the same limit fields.

4. A service account for CI

curl -X POST $VOIDLLM/api/v1/orgs/$ORG_ID/service-accounts \
  -H "Authorization: Bearer $ADMIN_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "ci-bot", "team_id": "'$TEAM_ID'"}'

curl -X POST $VOIDLLM/api/v1/orgs/$ORG_ID/keys \
  -H "Authorization: Bearer $ADMIN_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "ci-key",
    "key_type": "sa_key",
    "service_account_id": "'$SA_ID'",
    "monthly_token_limit": 5000000
  }'

For a team service account the team comes from the service account. Passing team_id on the key is rejected with team_id must not be set for sa_key.

5. Restrict models

curl -X PUT $VOIDLLM/api/v1/orgs/$ORG_ID/teams/$TEAM_ID/model-access \
  -H "Authorization: Bearer $ADMIN_KEY" \
  -H "Content-Type: application/json" \
  -d '{"models": ["gpt-4o-mini"]}'

The same call exists for the org (/orgs/$ORG_ID/model-access) and for a single key (/orgs/$ORG_ID/keys/$KEY_ID/model-access). An empty list means no restriction at that level.

A key restricted to gpt-4o-mini that asks for another model gets:

{"error":{"code":"model_access_denied","message":"model access denied", ...}}

with status 403, and GET /v1/models lists only the models that key may use.

6. Point a tool at VoidLLM

For an OpenAI-compatible client:

export OPENAI_BASE_URL=https://voidllm.example.com/v1
export OPENAI_API_KEY=vl_uk_...

Many tools read these two variables, others have the same two fields in their settings. Use an alias or model name from GET /v1/models as the model. For Claude Code and Codex CLI, see Claude Code and Codex CLI above.

What the limits look like in practice

These are the responses seen in the local test (commit a8a93d9, 2026-11-22). The numbers were small on purpose.

  • A key with requests_per_minute exhausted: 429 with rate_limit_exceeded.
  • A key whose daily_token_limit is used up: 429 with token_limit_exceeded, message token budget exceeded.
  • A key with no limit of its own, in a team whose daily_token_limit is used up: the same 429 token_limit_exceeded.

Limit changes on a key apply on the next request. Changes to org or team limits apply after the periodic key cache refresh (cache.key_ttl, default 30s, see the configuration reference), also when Redis is configured. In the test, the first request after lowering a team limit still passed, and the following ones were rejected.

Budgets are in tokens and requests, not currency. Cost figures in the usage views are estimates from the model prices you configure.

Which headers reach the provider

VoidLLM does not pass client headers through. For the requests it forwards, it copies only four allowlisted headers from the client: Content-Type, Accept, Accept-Language and X-Request-ID, plus the version and beta headers of the native endpoints described below. The client’s Authorization and x-api-key headers are not forwarded. The provider’s own authentication is set from the model config, and User-Agent is set to VoidLLM/0.1. The request body is held in memory and may be rewritten (model alias to model name), translated for providers such as Anthropic, or anonymized if you enable PII anonymization. It is never written to disk.

On the native endpoints the body is forwarded as sent, apart from the model name and, on /v1/responses, the store: false default. It is not translated, and it is not anonymized (see PII filtering).

  • /v1/messages and /v1/messages/count_tokens: the upstream key goes in x-api-key. The client’s anthropic-version is forwarded when it has the form YYYY-MM-DD, otherwise 2023-06-01 is sent. The client’s anthropic-beta is forwarded when it is a comma-separated list of lowercase letters, digits and hyphens, without spaces and at most 512 bytes; otherwise it is dropped.
  • /v1/responses: the upstream key goes in Authorization: Bearer. The client’s OpenAI-Beta is forwarded when it is a comma-separated list of lowercase letters, digits and -, _, ., =, at most 512 bytes; otherwise it is dropped.

For /v1/chat/completions on a model with provider: anthropic, the request is translated and sent to /v1/messages with the upstream key in x-api-key and anthropic-version: 2023-06-01. A client-supplied anthropic-version or anthropic-beta header is not forwarded on that path. We checked this against a local test upstream at commit a8a93d9: the upstream saw anthropic-version: 2023-06-01, the copied X-Request-ID, and no anthropic-beta or custom headers.

Usage per developer

Org admins see usage in the UI under Usage, grouped by Model, Team, User, Key, Day or Hour. The same data is available from the API:

curl "$VOIDLLM/api/v1/orgs/$ORG_ID/usage?from=2026-11-01T00:00:00Z&to=2026-12-01T00:00:00Z&group_by=user" \
  -H "Authorization: Bearer $ADMIN_KEY"

Each row has the group label (the developer’s display name), request count, prompt, completion and total tokens, an estimated cost and the average duration. Usage from a service-account key is listed in the same call, in a row without a user label.

Claude Code as MCP client

Claude Code can use VoidLLM as an MCP server, which gives it the management tools and any MCP servers you register. This is independent of routing its LLM requests through VoidLLM (see Claude Code above); you can use either or both.

Current Claude Code requires a type on remote servers, a url entry without it is skipped. Share this .mcp.json in a repository:

{
  "mcpServers": {
    "voidllm": {
      "type": "http",
      "url": "${VOIDLLM_URL:-http://localhost:8080}/api/v1/mcp/voidllm",
      "headers": {
        "Authorization": "Bearer ${VOIDLLM_API_KEY}"
      }
    }
  }
}

Each developer sets VOIDLLM_API_KEY to their own key, so the key never goes into the repository. Claude Code asks the developer to approve a project-scoped server the first time. The format and ${VAR} expansion are described in the Claude Code MCP docs. With Claude Code 2.1.330, claude mcp list reported the server as connected against a local build at commit a8a93d9.

If you manage Claude Code machines centrally, managed settings and managed-mcp.json are the documented way to distribute configuration. We have not tested a managed rollout with VoidLLM.

Privacy

VoidLLM does not store prompts or responses. It reads the model field to route the request and streams the rest through memory, applying only the in-memory rewriting described above. What it keeps is usage metadata: who, when, which model, token counts, duration. That metadata can be personal data when it is tied to a named developer, so tell your team what is recorded. The architecture is designed to support GDPR compliance, see Privacy.

Note that the provider still sees the prompts. Your agreement with OpenAI, Anthropic or whoever you route to applies to that content.