Skip to main content
The Nito Plugin adds /nito: commands alongside Claude Code’s own model. Manual routing sends Claude Code’s ordinary model requests through the Nito API. Choose the route that matches the session you want.

Configuration

Claude Code speaks the Anthropic Messages API, and Nito serves it at POST /v1/messages. Four environment variables route the session through Nito.
You can keep the non-secret settings in the env block of ~/.claude/settings.json and supply ANTHROPIC_AUTH_TOKEN from your shell or secret manager. Keep keys out of a project’s .claude/settings.json, which can be committed and shared.
Start a new Claude Code session after changing these settings. The host root in ANTHROPIC_BASE_URL is deliberate: Claude Code appends /v1/messages. A /v1 suffix there produces the wrong path. Choose an anthropic/... ID available to your account from the catalog. Use a :confidential ID only if that exact Claude variant appears in the live catalog.

Check the route

Ask for a one-sentence reply, then try a small file task that uses Claude Code’s client tools. The first request checks model and key access; the second checks the tool loop. A Nito API key is separate from any Claude Code subscription or login. If you get 401, check the exported ANTHROPIC_AUTH_TOKEN in the process that starts Claude Code. For 404, check the base URL and the exact model ID. A 400 mentioning context_management or experimental beta fields points to CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 being absent from the launched process.

What This Route Supports

Nito serves /v1/messages and /v1/messages/count_tokens with text, image, and document blocks, client tools, thinking controls, and Anthropic web-search tool definitions, which map to Nito’s web search. Rejected on this route: other Anthropic server-side tools, context_management, mcp_servers, computer-use tools, and the Chat Completions model feature suffixes. Previous thinking blocks in history are accepted and dropped. Claude Code’s manual provider route is for Claude model IDs; use the Nito Plugin to call other models inside Claude Code.

Anthropic SDK Drop-in

The Messages endpoint from code.

Messages Endpoint

Fields and limits.

Codex

Manual routing through the Responses endpoint.