# AnyRouter Docs

> Universal OpenAI-compatible LLM gateway: 250+ models across 17+ providers, unified billing, audit logs, and a remote MCP server.

Every page is available as raw markdown by appending `.md` to its URL (e.g. `/docs/getting-started/quickstart.md`). This index links to those raw versions so it is self-contained for offline and LLM use.

## Start here

- [Quickstart](/docs/getting-started/quickstart.md) — first request in under five minutes
- [Authentication](/docs/getting-started/authentication.md) — keys, rotation, BYOK
- [AI agent integration](/docs/guides/ai-agent-integration.md) — paste-prompt for coding agents
- [MCP server](/docs/mcp.md) — Claude Desktop, Cursor, Claude Code, OpenCode

## All sections

### Getting Started

- [Quickstart](/docs/getting-started/quickstart.md) — Make your first AnyRouter request in under five minutes by pointing any OpenAI-compatible client at one base URL.
- [Authentication](/docs/getting-started/authentication.md) — Generate, scope, and rotate AnyRouter API keys — bearer tokens, per-environment isolation, and bring-your-own-key.

### CLI & SDK

- [AnyRouter CLI](/docs/cli.md) — Launch Claude Code, Codex, and other coding agents through AnyRouter with one command — one key, automatic failover, unified billing.
- [AnyRouter SDK](/docs/sdk.md) — Official TypeScript SDK for the AnyRouter API — one key and one base URL for chat, embeddings, the Responses API, and the Anthropic Messages API, with a typed client and a Vercel AI SDK provider.
- [anyr claude](/docs/cli/claude-code.md) — Route Claude Code through AnyRouter for unified billing, audit logs, and a single API key that unlocks every model. One command via the AnyRouter CLI, or set two environment variables yourself.
- [anyr codex](/docs/cli/codex.md) — Route Codex through AnyRouter for unified billing, audit logs, and one key that reaches every model. One command via the AnyRouter CLI, or set two environment variables yourself.
- [anyr opencode](/docs/cli/opencode.md) — Route OpenCode through AnyRouter for unified billing, audit logs, and one key that reaches every model. One CLI command, or a custom provider in opencode.json.
- [AnyRouter CLI Agent (deprecated)](/docs/agent.md) — Deprecated — use anyr with Claude Code, Codex, or another launcher instead.
- [Configuration](/docs/cli/configuration.md) — Reference for the AnyRouter CLI — the config file, project-level anyrouter.yaml, profile fields, per-tool overrides, every CLI flag, and the management commands.
- [Login with AnyRouter](/docs/cli/login.md) — How the AnyRouter CLI signs you in — automatic browser login, device code on SSH, paste or key flags, and where credentials are stored.
- [Plan and implement with anyr task](/docs/cli/task.md) — Run a two-phase pipeline from the terminal — one model writes a step-by-step plan, a second model executes it. Pick a strong planner and a fast implementer to balance quality and cost.
- [Accounts and keys in the CLI](/docs/cli/accounts-and-keys.md) — Use several AnyRouter accounts side by side, see who you are signed in as, sign out cleanly, and manage API keys without leaving the terminal.
- [Delegate tasks between coding agents](/docs/cli/delegate.md) — Hand a task to Claude Code, Codex, or opencode headlessly from the terminal — or let a running agent delegate a subtask to another agent — all through one AnyRouter key.
- [Usage, logs & transactions](/docs/cli/usage.md) — See credits remaining, recent spend, request logs, and your credit ledger from the terminal with the AnyRouter CLI.
- [CLI Changelog](/docs/cli/changelog.md) — Release history for the AnyRouter CLI (anyr) — the launcher for Claude Code, Codex, Grok, and other coding agents.
- [SDK Changelog](/docs/sdk/changelog.md) — Release history for the AnyRouter TypeScript SDK (@anyr/sdk) and the Vercel AI SDK provider (@anyr/ai-sdk-provider).

### Guides

- [Dashboard Tour](/docs/guides/dashboard-tour.md) — A guided walkthrough of every dashboard page, in the order a new team typically uses them — from first API call to a governed, multi-seat account.
- [Claude Code with AnyRouter — free models, one API key](/docs/guides/claude-code.md) — Run Claude Code through AnyRouter — set ANTHROPIC_BASE_URL, use free models with anyrouter/free, or any model with one sk-ar- key.
- [Codex with AnyRouter — free models, one API key](/docs/guides/codex.md) — Run Codex through AnyRouter — set the OpenAI base URL, use free models with anyrouter/free, or any model with one sk-ar- key.
- [OpenCode with AnyRouter — free models, one API key](/docs/guides/opencode.md) — Point OpenCode at AnyRouter's base URL. Use free models with anyrouter/free, or any Chat Completions model with one sk-ar- key.
- [Cline with AnyRouter — free models, one API key](/docs/guides/cline.md) — Use Cline with AnyRouter's OpenAI-compatible base URL. Run free models with anyrouter/free, or any catalog model with one sk-ar- key.
- [Hermes Agent](/docs/guides/hermes-agent.md) — Run Nous Research's Hermes Agent on AnyRouter — install the first-class provider plugin, drop in one key, and get a model picker that only offers tool-capable routes.
- [Kilo Code with AnyRouter — free models, one API key](/docs/guides/kilo-code.md) — Add AnyRouter to Kilo Code as a custom OpenAI-compatible provider. Set the base URL, then run free models with anyrouter/free.
- [OpenClaw](/docs/guides/openclaw.md) — Run OpenClaw against AnyRouter — one key across every model and messaging channel, unified billing, and audit logs on every request.
- [Cherry Studio](/docs/guides/cherry-studio.md) — Connect Cherry Studio to AnyRouter — one API key across the whole catalog, unified billing, and audit logs, in a settings-only change.
- [Continue with AnyRouter — free models, one API key](/docs/guides/continue.md) — Point Continue's config.yaml at AnyRouter's OpenAI-compatible base URL. Run free models with anyrouter/free, or any model with one key.
- [Get a provider API key](/docs/guides/byok-provider-keys.md) — Step-by-step instructions for creating an API key at every BYOK-supported provider — where to sign up, the exact console page, the key format, and how to add it to AnyRouter.
- [Pi](/docs/guides/pi.md) — Run Pi against AnyRouter as a custom OpenAI-compatible provider — one key, unified billing, and any AnyRouter model from a single config file.
- [Grok Bot, Herdr, and Anyr CLI](/docs/guides/grok-bot-herdr-anyr.md) — Run coding work with Grok Bot assigning goals, Herdr showing the box, and Anyr CLI launching Claude Code when Cursor cloud is blocked.
- [Unblock free-model rate limits with your own OpenRouter key](/docs/guides/unblock-free-model-rate-limits-openrouter-key.md) — Hitting 429s on :free models? Add your own OpenRouter key so free models run on your OpenRouter quota instead of the shared pool.
- [Free capacity with your own keys](/docs/guides/free-capacity-with-your-own-keys.md) — Providers with a free tier you can add as BYOK keys, so free usage runs on your own quota instead of the shared free pool.
- [AI Agent Integration](/docs/guides/ai-agent-integration.md) — Hand a coding agent everything it needs to wire AnyRouter into an existing project — base URL, key, and model ids.
- [Streaming](/docs/guides/streaming.md) — Receive completions incrementally via server-sent events to cut perceived latency and render tokens as they arrive.
- [Using Responses API](/docs/guides/migrate-to-responses.md) — Use AnyRouter's Responses endpoint for modern agent and tool workflows with structured output items.
- [OpenAI](/docs/guides/migrate-from-openai.md) — Move an OpenAI Chat Completions or Responses client to AnyRouter by changing the base URL, API key, and model id.
- [Anthropic](/docs/guides/migrate-from-anthropic.md) — Point Anthropic Messages clients at AnyRouter — change the base URL and key, keep the anthropic-version header.
- [OpenRouter](/docs/guides/migrate-from-openrouter.md) — Move OpenRouter Chat Completions requests to AnyRouter, including provider preferences for ordering, price caps, and fallbacks.
- [AnyRouter vs OpenRouter](/docs/guides/anyrouter-vs-openrouter.md) — An honest comparison of AnyRouter and OpenRouter — one-command agent launcher, BYO keys + subscriptions, config that follows you, and failover across your own pool.
- [Errors](/docs/guides/errors.md) — HTTP status codes, the error envelope, and recommended retry behavior for every AnyRouter API error.
- [Security Settings](/docs/guides/security-settings.md) — Find risky API keys, clean up unused ones, and restrict API keys to a list of trusted IP addresses.
- [Provider Routing](/docs/guides/provider-routing.md) — Route requests across upstream providers. Customize ordering, sorting, fallbacks, performance thresholds, data policies, and pricing budgets per request.
- [Model Fallbacks](/docs/guides/model-fallbacks.md) — Configure automatic failover between AI models when providers are down, rate-limited, or return retryable errors.
- [Sign in with AnyRouter](/docs/guides/sign-in-with-anyrouter.md) — Let users sign in to your app with their AnyRouter account and run AI requests billed to them — no API keys to collect or store.
- [OAuth PKCE](/docs/guides/oauth-pkce.md) — Let users connect their AnyRouter account in one click and hand your app their own API key, using the same PKCE flow as OpenRouter.
- [OpenAI SDK](/docs/guides/openai-sdk.md) — Use the official OpenAI SDK for Python or TypeScript with AnyRouter. Change the base URL and key, then call free or paid models from one endpoint.
- [Latency Overhead](/docs/guides/latency-overhead.md) — How much latency AnyRouter adds compared to calling the upstream provider directly — and when AnyRouter is actually faster.
- [Vercel AI SDK](/docs/guides/vercel-ai-sdk.md) — Use the Vercel AI SDK with AnyRouter. Point the OpenAI provider at one endpoint to generate and stream text from free or paid models.
- [LangChain](/docs/guides/langchain.md) — Use LangChain with AnyRouter. Point ChatOpenAI at one endpoint to run chains and agents on free or paid models, in Python or TypeScript.
- [LlamaIndex](/docs/guides/llamaindex.md) — Use LlamaIndex with AnyRouter. Connect OpenAILike (Python) or the OpenAI LLM (TypeScript) to power RAG and agents on free or paid models.
- [LiteLLM](/docs/guides/litellm.md) — Route LiteLLM client calls and proxy models through AnyRouter as a custom OpenAI-compatible provider.
- [curl](/docs/guides/curl.md) — Call AnyRouter's OpenAI-compatible API straight from the terminal with curl — for quick tests, scripts, and CI.

### Scenario Examples

- [How to Unify AI Subscriptions with AnyRouter](/docs/scenario-examples/unify-ai-subscriptions.md) — Bring Z-AI, Kimi, OpenAI, Anthropic, and other provider accounts into one AnyRouter preset, then launch Claude Code through one CLI wrapper.
- [Cut LLM Costs with Automatic Provider Fallback](/docs/scenario-examples/cut-costs-provider-fallback.md) — Route one model id across multiple upstreams so AnyRouter picks the cheapest healthy provider and falls back automatically when one is down.
- [Add BYOK to an Existing App](/docs/scenario-examples/add-byok-to-existing-app.md) — Attach your own provider keys to AnyRouter so your existing integration bills against your provider accounts at list price, with one base URL change.
- [Run Claude Code Against AnyRouter](/docs/scenario-examples/run-claude-code-on-anyrouter.md) — Point Claude Code at AnyRouter so every coding session is billed once, logged, and free to use any Messages-compatible model in the catalog.
- [Run OpenCode Against AnyRouter](/docs/scenario-examples/run-opencode-on-anyrouter.md) — Point OpenCode at AnyRouter so every coding session is billed once, logged, and free to use any Chat Completions model in the catalog.
- [A/B Compare Models in the Playground](/docs/scenario-examples/ab-compare-models-playground.md) — Send the same prompt to several models from one AnyRouter key and compare answers, latency, and cost side by side before you commit to one.
- [Build an Agentic Coding Loop with GLM](/docs/scenario-examples/agentic-coding-loop-with-glm.md) — Wire an AI SDK tool-calling loop to a GLM coding model through AnyRouter, with streaming, multi-step tool use, and an optional BYOK Z-AI key.

### Features

- [Skills & Knowledge Hub](/docs/hub.md) — One source of truth for your AI agent's skills, prompts, knowledge, and plugins — managed in the dashboard and synced to every machine and agent with one command.
- [Dashboard Overview](/docs/features/dashboard-overview.md) — Check whether anything needs you, scan requests/errors/spend, and open the last five requests from the AnyRouter dashboard home.
- [Usage Explorer](/docs/features/usage-explorer.md) — Build cost, token, and request charts grouped by model, key, or time. Filter by date range, export, and read percentile latency.
- [Request Logs](/docs/features/request-logs.md) — Inspect individual chat/completion requests — latency breakdown, tokens, cost, upstream provider, and full body when privacy permits.
- [Managing API Keys](/docs/features/api-keys.md) — Create, rotate, scope, and rate-limit AnyRouter API keys from the dashboard. Track usage per key and revoke compromised keys instantly.
- [Prompt Caching](/docs/features/caching.md) — Cache long system prompts and reusable context across requests to cut cost and latency on conversational, RAG, and agent workloads.
- [Pricing & Plans](/docs/features/pricing.md) — AnyRouter's Free, Go, Pro, Pro+, and Max plans, how included credits and pay-as-you-go top-ups fit together, and where each billing surface lives in the dashboard.
- [Bring Your Own Key (BYOK)](/docs/features/byok.md) — Attach your own upstream API keys so AnyRouter routes requests through your provider accounts at list price, with no AnyRouter markup.
- [Credits & Billing](/docs/features/credits.md) — How AnyRouter credits work — the two credit buckets, how request cost is calculated, plan monthly credits, top-ups, and reading your balance from the API.
- [Response Caching](/docs/features/response-caching.md) — Cache identical AI Gateway responses so repeat requests return instantly at zero upstream cost — automatic for deterministic calls, and controllable per request.
- [BYOK Provider Setup Guide](/docs/features/byok-providers.md) — Bring your own API keys for every supported upstream provider — pick a provider for step-by-step key setup, then add it under Dashboard → BYOK.
- [Share a Key to the Shared Pool](/docs/features/shared-pool.md) — Donate one of your provider keys to the community shared pool, earn up to 8% of the token cost back as credits, and withdraw anytime — a step-by-step guide.
- [Models Catalog](/docs/features/models-catalog.md) — Browse models you can call in your workspace, with pricing, context limits, capabilities, and active-use signals. Show all models lists the full catalog.
- [Tool Use](/docs/features/tool-use.md) — Define tools, let the model call them, and feed results back. Build agents, function-calling workflows, and structured outputs across every model.
- [Free Tier](/docs/features/free-tier.md) — Call a curated set of free models through anyrouter/free — no BYOK setup, no credit deduction, and no daily cap on any plan.
- [Latest Model Aliases](/docs/features/latest-model-aliases.md) — Use a "-latest" model id such as google/gemini-flash-latest to always call the newest available model in a family, with automatic fallback when a model is retired or unavailable.
- [Presets](/docs/features/presets.md) — Create reusable configuration bundles with default models, system prompts, and sampling parameters. Reference them from API requests with @preset syntax.
- [Free-tier Aggregation](/docs/features/free-tier-aggregation.md) — Combine multiple providers' free API tiers behind one endpoint, with smart key balancing, automatic quota detection, and an opt-in paid fallback.
- [App Attribution](/docs/features/app-attribution.md) — Attribute your API usage to your app with HTTP-Referer and X-AnyRouter headers and appear in public rankings and analytics.
- [Privacy & Logging Controls](/docs/features/privacy-controls.md) — Control what AnyRouter retains — request body capture, PII redaction, zero-data-retention routing, blocked providers, and data residency.
- [Smart Routing](/docs/features/routing.md) — How AnyRouter picks an upstream provider for each request — priority order, automatic failover, model aliases, and explicit override controls.
- [How AnyRouter Chooses a Credential](/docs/features/credential-selection.md) — The order AnyRouter checks your own provider keys, the shared pool, and AnyRouter credits — and what happens when a key is rate limited or fails.
- [AnyRouter Agent](/docs/features/anyrouter-agent.md) — Free on-site support copilot on anyrouter.dev — ask docs, models, and (after you opt in) your plan and keys without leaving the page.
- [Organizations & Workspaces](/docs/features/organizations.md) — Invite teammates, set roles, switch between workspaces, and isolate billing per organization.
- [Account Settings](/docs/features/account-settings.md) — Manage your AnyRouter profile, email addresses, authentication methods, and connected devices.
- [Local Relay — Serve Models From Your Own Machine](/docs/features/local-relay.md) — Route requests to a model running on your own computer (Apple Foundation Models, Ollama, LM Studio) through your AnyRouter API key, and optionally donate idle capacity to the shared pool for credits.
- [Rate Limits](/docs/features/rate-limits.md) — AnyRouter's per-IP and per-key rate limits, how tiers are picked, what 429 vs 403 mean, and how to handle them in your client.
- [AI/ML API (BYOK)](/docs/features/byok-providers/aimlapi.md) — How to create an API key for AI/ML API and add it to AnyRouter via Bring Your Own Key.
- [AI21 (BYOK)](/docs/features/byok-providers/ai21.md) — How to create an API key for AI21 and add it to AnyRouter via Bring Your Own Key.
- [AIHubMix (BYOK)](/docs/features/byok-providers/aihubmix.md) — How to create an API key for AIHubMix and add it to AnyRouter via Bring Your Own Key.
- [AionLabs (BYOK)](/docs/features/byok-providers/aionlabs.md) — How to create an API key for AionLabs and add it to AnyRouter via Bring Your Own Key.
- [AkashML (BYOK)](/docs/features/byok-providers/akash.md) — How to create an API key for AkashML and add it to AnyRouter via Bring Your Own Key.
- [Alibaba Cloud Int. (BYOK)](/docs/features/byok-providers/alibaba-cloud.md) — How to create an API key for Alibaba Cloud Int. and add it to AnyRouter via Bring Your Own Key.
- [Amazon Bedrock (BYOK)](/docs/features/byok-providers/amazon-bedrock.md) — How to create an API key for Amazon Bedrock and add it to AnyRouter via Bring Your Own Key.
- [Anthropic (BYOK)](/docs/features/byok-providers/anthropic.md) — How to create an API key for Anthropic and add it to AnyRouter via Bring Your Own Key.
- [Antigravity (Google) (BYOK)](/docs/features/byok-providers/antigravity.md) — How to create an API key for Antigravity (Google) and add it to AnyRouter via Bring Your Own Key.
- [Arcee AI (BYOK)](/docs/features/byok-providers/arcee.md) — How to create an API key for Arcee AI and add it to AnyRouter via Bring Your Own Key.
- [AutoJev (BYOK)](/docs/features/byok-providers/autojev.md) — How to create an API key for AutoJev and add it to AnyRouter via Bring Your Own Key.
- [Azure (BYOK)](/docs/features/byok-providers/azure.md) — How to create an API key for Azure and add it to AnyRouter via Bring Your Own Key.
- [Azure Foundry (Claude) (BYOK)](/docs/features/byok-providers/azure-claude.md) — How to create an API key for Azure Foundry (Claude) and add it to AnyRouter via Bring Your Own Key.
- [Baseten (BYOK)](/docs/features/byok-providers/baseten.md) — How to create an API key for Baseten and add it to AnyRouter via Bring Your Own Key.
- [Blackbox AI (BYOK)](/docs/features/byok-providers/blackbox.md) — How to create an API key for Blackbox AI and add it to AnyRouter via Bring Your Own Key.
- [Cerebras (BYOK)](/docs/features/byok-providers/cerebras.md) — How to create an API key for Cerebras and add it to AnyRouter via Bring Your Own Key.
- [Chutes (BYOK)](/docs/features/byok-providers/chutes.md) — How to create an API key for Chutes and add it to AnyRouter via Bring Your Own Key.
- [Cirrascale (BYOK)](/docs/features/byok-providers/cirrascale.md) — How to create an API key for Cirrascale and add it to AnyRouter via Bring Your Own Key.
- [Clarifai (BYOK)](/docs/features/byok-providers/clarifai.md) — How to create an API key for Clarifai and add it to AnyRouter via Bring Your Own Key.
- [Cline (BYOK)](/docs/features/byok-providers/cline.md) — How to create an API key for Cline and add it to AnyRouter via Bring Your Own Key.
- [Cloudflare (BYOK)](/docs/features/byok-providers/cloudflare.md) — How to create an API key for Cloudflare and add it to AnyRouter via Bring Your Own Key.
- [Cohere (BYOK)](/docs/features/byok-providers/cohere.md) — How to create an API key for Cohere and add it to AnyRouter via Bring Your Own Key.
- [CommandCode (BYOK)](/docs/features/byok-providers/commandcode.md) — How to create an API key for CommandCode and add it to AnyRouter via Bring Your Own Key.
- [Crusoe (BYOK)](/docs/features/byok-providers/crusoe.md) — How to create an API key for Crusoe and add it to AnyRouter via Bring Your Own Key.
- [DeepInfra (BYOK)](/docs/features/byok-providers/deepinfra.md) — How to create an API key for DeepInfra and add it to AnyRouter via Bring Your Own Key.
- [DeepSeek (BYOK)](/docs/features/byok-providers/deepseek.md) — How to create an API key for DeepSeek and add it to AnyRouter via Bring Your Own Key.
- [Experiential (BYOK)](/docs/features/byok-providers/experiential.md) — How to create an API key for Experiential and add it to AnyRouter via Bring Your Own Key.
- [Fastino (BYOK)](/docs/features/byok-providers/fastino.md) — How to create an API key for Fastino and add it to AnyRouter via Bring Your Own Key.
- [Featherless (BYOK)](/docs/features/byok-providers/featherless.md) — How to create an API key for Featherless and add it to AnyRouter via Bring Your Own Key.
- [Fireworks (BYOK)](/docs/features/byok-providers/fireworks.md) — How to create an API key for Fireworks and add it to AnyRouter via Bring Your Own Key.
- [FPT Cloud (BYOK)](/docs/features/byok-providers/fpt.md) — How to create an API key for FPT Cloud and add it to AnyRouter via Bring Your Own Key.
- [Freebuff (BYOK)](/docs/features/byok-providers/freebuff.md) — How to create an API key for Freebuff and add it to AnyRouter via Bring Your Own Key.
- [Friendli (BYOK)](/docs/features/byok-providers/friendli.md) — How to create an API key for Friendli and add it to AnyRouter via Bring Your Own Key.
- [GMICloud (BYOK)](/docs/features/byok-providers/gmicloud.md) — How to create an API key for GMICloud and add it to AnyRouter via Bring Your Own Key.
- [Google AI Studio (BYOK)](/docs/features/byok-providers/google-ai-studio.md) — How to create an API key for Google AI Studio and add it to AnyRouter via Bring Your Own Key.
- [Google Vertex (BYOK)](/docs/features/byok-providers/google-vertex.md) — How to create an API key for Google Vertex and add it to AnyRouter via Bring Your Own Key.
- [Google Vertex AI (Claude) (BYOK)](/docs/features/byok-providers/vertex-claude.md) — How to create an API key for Google Vertex AI (Claude) and add it to AnyRouter via Bring Your Own Key.
- [Groq (BYOK)](/docs/features/byok-providers/groq.md) — How to create an API key for Groq and add it to AnyRouter via Bring Your Own Key.
- [Hugging Face (BYOK)](/docs/features/byok-providers/huggingface.md) — How to create an API key for Hugging Face and add it to AnyRouter via Bring Your Own Key.
- [Inception (BYOK)](/docs/features/byok-providers/inception.md) — How to create an API key for Inception and add it to AnyRouter via Bring Your Own Key.
- [Inceptron (BYOK)](/docs/features/byok-providers/inceptron.md) — How to create an API key for Inceptron and add it to AnyRouter via Bring Your Own Key.
- [Infermatic (BYOK)](/docs/features/byok-providers/infermatic.md) — How to create an API key for Infermatic and add it to AnyRouter via Bring Your Own Key.
- [Inflection (BYOK)](/docs/features/byok-providers/inflection.md) — How to create an API key for Inflection and add it to AnyRouter via Bring Your Own Key.
- [io.net (BYOK)](/docs/features/byok-providers/io-net.md) — How to create an API key for io.net and add it to AnyRouter via Bring Your Own Key.
- [Liquid (BYOK)](/docs/features/byok-providers/liquid.md) — How to create an API key for Liquid and add it to AnyRouter via Bring Your Own Key.
- [LLM Gateway (BYOK)](/docs/features/byok-providers/llmgateway.md) — How to create an API key for LLM Gateway and add it to AnyRouter via Bring Your Own Key.
- [LongCat (BYOK)](/docs/features/byok-providers/longcat.md) — How to create an API key for LongCat and add it to AnyRouter via Bring Your Own Key.
- [Mancer (BYOK)](/docs/features/byok-providers/mancer.md) — How to create an API key for Mancer and add it to AnyRouter via Bring Your Own Key.
- [MiniMax (BYOK)](/docs/features/byok-providers/minimax.md) — How to create an API key for MiniMax and add it to AnyRouter via Bring Your Own Key.
- [Mistral (BYOK)](/docs/features/byok-providers/mistral.md) — How to create an API key for Mistral and add it to AnyRouter via Bring Your Own Key.
- [Moonshot AI (BYOK)](/docs/features/byok-providers/moonshot.md) — How to create an API key for Moonshot AI and add it to AnyRouter via Bring Your Own Key.
- [Morph (BYOK)](/docs/features/byok-providers/morph.md) — How to create an API key for Morph and add it to AnyRouter via Bring Your Own Key.
- [MuleRouter (BYOK)](/docs/features/byok-providers/mulerouter.md) — How to create an API key for MuleRouter and add it to AnyRouter via Bring Your Own Key.
- [Nace AI (BYOK)](/docs/features/byok-providers/nace-ai.md) — How to create an API key for Nace AI and add it to AnyRouter via Bring Your Own Key.
- [Nebius Token Factory (BYOK)](/docs/features/byok-providers/nebius.md) — How to create an API key for Nebius Token Factory and add it to AnyRouter via Bring Your Own Key.
- [NextBit (BYOK)](/docs/features/byok-providers/nextbit.md) — How to create an API key for NextBit and add it to AnyRouter via Bring Your Own Key.
- [Nous Research (BYOK)](/docs/features/byok-providers/nousresearch.md) — How to create an API key for Nous Research and add it to AnyRouter via Bring Your Own Key.
- [NovitaAI (BYOK)](/docs/features/byok-providers/novita.md) — How to create an API key for NovitaAI and add it to AnyRouter via Bring Your Own Key.
- [NVIDIA NIM (BYOK)](/docs/features/byok-providers/nvidia.md) — How to create an API key for NVIDIA NIM and add it to AnyRouter via Bring Your Own Key.
- [Ollama Cloud (BYOK)](/docs/features/byok-providers/ollama.md) — How to create an API key for Ollama Cloud and add it to AnyRouter via Bring Your Own Key.
- [OpenAI (BYOK)](/docs/features/byok-providers/openai.md) — How to create an API key for OpenAI and add it to AnyRouter via Bring Your Own Key.
- [OpenCode Zen (BYOK)](/docs/features/byok-providers/opencode-zen.md) — How to create an API key for OpenCode Zen and add it to AnyRouter via Bring Your Own Key.
- [OpenCode Zen Go (BYOK)](/docs/features/byok-providers/opencode-go.md) — How to create an API key for OpenCode Zen Go and add it to AnyRouter via Bring Your Own Key.
- [OpenInference (BYOK)](/docs/features/byok-providers/openinference.md) — How to create an API key for OpenInference and add it to AnyRouter via Bring Your Own Key.
- [OpenRouter (BYOK)](/docs/features/byok-providers/openrouter.md) — How to create an API key for OpenRouter and add it to AnyRouter via Bring Your Own Key.
- [OrcaRouter (BYOK)](/docs/features/byok-providers/orcarouter.md) — How to create an API key for OrcaRouter and add it to AnyRouter via Bring Your Own Key.
- [OVHcloud (BYOK)](/docs/features/byok-providers/ovhcloud.md) — How to create an API key for OVHcloud and add it to AnyRouter via Bring Your Own Key.
- [Parasail (BYOK)](/docs/features/byok-providers/parasail.md) — How to create an API key for Parasail and add it to AnyRouter via Bring Your Own Key.
- [Perplexity (BYOK)](/docs/features/byok-providers/perplexity.md) — How to create an API key for Perplexity and add it to AnyRouter via Bring Your Own Key.
- [Phala (BYOK)](/docs/features/byok-providers/phala.md) — How to create an API key for Phala and add it to AnyRouter via Bring Your Own Key.
- [Poolside (BYOK)](/docs/features/byok-providers/poolside.md) — How to create an API key for Poolside and add it to AnyRouter via Bring Your Own Key.
- [Qwen (Alibaba) (BYOK)](/docs/features/byok-providers/qwen.md) — How to create an API key for Qwen (Alibaba) and add it to AnyRouter via Bring Your Own Key.
- [QwenCloud (BYOK)](/docs/features/byok-providers/qwencloud.md) — How to create an API key for QwenCloud and add it to AnyRouter via Bring Your Own Key.
- [Ramp Router (BYOK)](/docs/features/byok-providers/router.md) — How to create an API key for Ramp Router and add it to AnyRouter via Bring Your Own Key.
- [Reka AI (BYOK)](/docs/features/byok-providers/reka.md) — How to create an API key for Reka AI and add it to AnyRouter via Bring Your Own Key.
- [Relace (BYOK)](/docs/features/byok-providers/relace.md) — How to create an API key for Relace and add it to AnyRouter via Bring Your Own Key.
- [Requesty (BYOK)](/docs/features/byok-providers/requesty.md) — How to create an API key for Requesty and add it to AnyRouter via Bring Your Own Key.
- [Respan (BYOK)](/docs/features/byok-providers/respan.md) — How to create an API key for Respan and add it to AnyRouter via Bring Your Own Key.
- [Sakana AI (BYOK)](/docs/features/byok-providers/sakana.md) — How to create an API key for Sakana AI and add it to AnyRouter via Bring Your Own Key.
- [SambaNova (BYOK)](/docs/features/byok-providers/sambanova.md) — How to create an API key for SambaNova and add it to AnyRouter via Bring Your Own Key.
- [SiliconFlow (BYOK)](/docs/features/byok-providers/siliconflow.md) — How to create an API key for SiliconFlow and add it to AnyRouter via Bring Your Own Key.
- [StepFun (BYOK)](/docs/features/byok-providers/stepfun.md) — How to create an API key for StepFun and add it to AnyRouter via Bring Your Own Key.
- [StepFun Step Plan (BYOK)](/docs/features/byok-providers/stepplan.md) — How to create an API key for StepFun Step Plan and add it to AnyRouter via Bring Your Own Key.
- [Strands Decider (BYOK)](/docs/features/byok-providers/strands-decider.md) — How to create an API key for Strands Decider and add it to AnyRouter via Bring Your Own Key.
- [SubQ (BYOK)](/docs/features/byok-providers/subq.md) — How to create an API key for SubQ and add it to AnyRouter via Bring Your Own Key.
- [Switchpoint (BYOK)](/docs/features/byok-providers/switchpoint.md) — How to create an API key for Switchpoint and add it to AnyRouter via Bring Your Own Key.
- [Together (BYOK)](/docs/features/byok-providers/together.md) — How to create an API key for Together and add it to AnyRouter via Bring Your Own Key.
- [TypeSafe (BYOK)](/docs/features/byok-providers/typesafe.md) — How to create an API key for TypeSafe and add it to AnyRouter via Bring Your Own Key.
- [Unbiased (BYOK)](/docs/features/byok-providers/unbiased.md) — How to create an API key for Unbiased and add it to AnyRouter via Bring Your Own Key.
- [Venice (BYOK)](/docs/features/byok-providers/venice.md) — How to create an API key for Venice and add it to AnyRouter via Bring Your Own Key.
- [Vercel AI Gateway (BYOK)](/docs/features/byok-providers/vercel.md) — How to create an API key for Vercel AI Gateway and add it to AnyRouter via Bring Your Own Key.
- [Wafer (BYOK)](/docs/features/byok-providers/wafer.md) — How to create an API key for Wafer and add it to AnyRouter via Bring Your Own Key.
- [Weights & Biases (BYOK)](/docs/features/byok-providers/wandb.md) — How to create an API key for Weights & Biases and add it to AnyRouter via Bring Your Own Key.
- [xAI (BYOK)](/docs/features/byok-providers/xai.md) — How to create an API key for xAI and add it to AnyRouter via Bring Your Own Key.
- [Xiaomi (BYOK)](/docs/features/byok-providers/xiaomi.md) — How to create an API key for Xiaomi and add it to AnyRouter via Bring Your Own Key.
- [Z.ai (BYOK)](/docs/features/byok-providers/z-ai.md) — How to create an API key for Z.ai and add it to AnyRouter via Bring Your Own Key.
- [Z.ai (Coding Plan) (BYOK)](/docs/features/byok-providers/z-ai-coding.md) — How to create an API key for Z.ai (Coding Plan) and add it to AnyRouter via Bring Your Own Key.
- [ZenMux (BYOK)](/docs/features/byok-providers/zenmux.md) — How to create an API key for ZenMux and add it to AnyRouter via Bring Your Own Key.

### MCP

- [AnyRouter MCP Overview](/docs/mcp.md) — Bring AnyRouter into Claude Desktop, Claude Code, Cursor, OpenCode, and any other MCP-aware client with one URL and OAuth consent.
- [MCP Gateway — connect your tools once](/docs/mcp/gateway.md) — Point any MCP client at one URL and get AnyRouter's native tools plus every connected third-party MCP server, with auth managed for you.
- [AnyRouter MCP with Claude Desktop](/docs/mcp/claude-desktop.md) — Add the AnyRouter MCP server to Claude Desktop via the built-in Connectors UI, or with a manual mcp-remote bridge.
- [AnyRouter MCP with Claude Code](/docs/mcp/claude-code.md) — Add the AnyRouter MCP server to Claude Code (CLI) with one command or by editing .mcp.json.
- [AnyRouter MCP with Cursor](/docs/mcp/cursor.md) — Add the AnyRouter MCP server to Cursor via the Settings UI or by editing ~/.cursor/mcp.json.
- [AnyRouter MCP with Windsurf](/docs/mcp/windsurf.md) — Add the AnyRouter MCP server to Windsurf via the Cascade Settings UI or by editing ~/.codeium/windsurf/mcp_config.json.
- [AnyRouter MCP with Cline](/docs/mcp/cline.md) — Add the AnyRouter MCP server to Cline (VS Code extension) via the MCP Servers panel or cline_mcp_settings.json.
- [AnyRouter MCP with GitHub Copilot](/docs/mcp/github-copilot.md) — Add the AnyRouter MCP server to GitHub Copilot Chat in VS Code via .vscode/mcp.json or settings.json.
- [AnyRouter MCP with OpenCode](/docs/mcp/opencode.md) — Add the AnyRouter MCP server to OpenCode via a project-local or global opencode.json.
- [AnyRouter MCP with other clients](/docs/mcp/other-clients.md) — Connect any MCP-aware client to AnyRouter using the standard remote HTTP transport, OAuth, or a static API key.

### API Reference

- [API Overview](/docs/api-reference/overview.md) — Choose the right AnyRouter inference surface — Chat Completions, Messages, Responses, Embeddings — plus catalog and status endpoints.
- [Chat Completions API](/docs/api-reference/chat-completions.md) — POST /api/v1/chat/completions — the OpenAI-compatible chat endpoint. Send messages, get a completion, across every model in the catalog.
- [Messages API](/docs/api-reference/messages.md) — POST /api/v1/messages — the Anthropic-compatible Messages endpoint. Point any Anthropic SDK or Claude Code at AnyRouter by swapping the base URL.
- [Responses API](/docs/api-reference/responses.md) — /api/v1/responses — the OpenAI Responses-compatible lifecycle. Send input, stream or retrieve responses, continue state, and inspect input items.
- [Images API](/docs/api-reference/images.md) — Image generation is not supported. AnyRouter is a text and embeddings API.
- [OCR API](/docs/api-reference/ocr.md) — POST /api/v1/ocr/extract — extract text from images and documents as Markdown, powered by Cloudflare Workers AI.
- [Embeddings API](/docs/api-reference/embeddings.md) — POST /api/v1/embeddings — generate text embeddings for semantic search, clustering, and classification. OpenAI-compatible.
- [Decisions API](/docs/api-reference/systemone.md) — POST /api/v1/decisions — typed decisions. Send state and typed questions; get structured answers. Not chat. POST /api/v1/systemone is the same handler.
- [Rerank API](/docs/api-reference/rerank.md) — POST /api/v1/rerank — score how relevant each document is to a query. Cohere-compatible request and response.
- [Moderations API](/docs/api-reference/moderations.md) — POST /api/v1/moderations — classify text for harmful content. OpenAI-compatible, served by guard models.
- [Models API](/docs/api-reference/models.md) — GET /api/v1/models — list models you can call, plus pricing, context windows, capabilities, and live provider routing. Pass all=1 for the full catalog.
- [Providers API](/docs/api-reference/providers.md) — List the upstream backends AnyRouter can dispatch requests to.
- [Health API](/docs/api-reference/health.md) — GET /api/v1/health — live snapshot with status, checked_at, and per-component health.
- [Management API Keys](/docs/api-reference/management-keys.md) — Programmatic credentials for managing your AnyRouter account — keys, presets, BYOK, and credits.
- [API Keys](/docs/api-reference/keys.md) — Inspect, create, update, and delete AnyRouter LLM API keys.
- [Presets API](/docs/api-reference/presets.md) — Create, list, update, and delete reusable preset configurations.
- [OAuth](/docs/api-reference/oauth.md) — Mint a scoped API key from an existing key (PKCE), exchange an OpenRouter-compatible PKCE code, or authorize a browser-less device. For "let my users sign in with their AnyRouter account," see the Sign in with AnyRouter guide instead.
- [Credits API](/docs/api-reference/credits.md) — Check the remaining credit balance for your AnyRouter workspace.
- [MCP API Reference](/docs/api-reference/mcp.md) — JSON-RPC tool catalog, scopes, error shapes, and manual authentication for the AnyRouter MCP server.
- [Network Stats API](/docs/api-reference/network-stats.md) — Public aggregate network analytics — total tokens processed, top models, and activity trends.

## Other formats

- [llms.txt](/llms.txt) — short index optimised for LLM ingestion
- [llms-full.txt](/llms-full.txt) — every doc concatenated into one file
- [docs/index.json](/docs/index.json) — machine-readable manifest
