# Toolken ## Docs - [Introduction](https://docs.toolken.ai/index.md): Toolken is a managed LLM gateway. Change one base URL to get cost per agent, feature, and customer, with rate limits, and nothing to host. - [Quickstart](https://docs.toolken.ai/get-started/quickstart.md): Make your first attributed request through Toolken in under two minutes. - [How Toolken Works](https://docs.toolken.ai/get-started/how-toolken-works.md): The request path, what you can do today, and what's coming. - [Authentication](https://docs.toolken.ai/get-started/authentication.md): How your Toolken key and your provider key work together. - [Overview](https://docs.toolken.ai/features/observability/overview.md): See and slice your LLM metrics by agent, feature, or customer. - [Custom Properties](https://docs.toolken.ai/features/observability/custom-properties.md): Tag requests with metadata headers so you can slice every metric by agent, customer, environment, or anything else that matters to you. - [Dimensions & Filtering](https://docs.toolken.ai/features/observability/dimensions.md): The built-in dimensions you can group and filter by, and how filtering works across every dashboard view. - [Dashboard](https://docs.toolken.ai/features/observability/dashboard.md): Five views out of the box: Overview, Cost, Usage, Performance, and Reliability. Each supports grouping and filtering by any dimension. - [Providers & Routing](https://docs.toolken.ai/features/providers-routing/overview.md): One gateway URL, 13 providers, your own keys. The gateway detects the right provider from the model name and forwards your request. - [Choosing a Provider](https://docs.toolken.ai/features/providers-routing/choose-provider.md): The gateway picks the right provider automatically. Use X-Toolken-Provider to be explicit or to reach ambiguous models. - [Anthropic & Gemini](https://docs.toolken.ai/features/providers-routing/anthropic-gemini.md): Anthropic uses its native Messages API at /v1/messages. Gemini routes through the OpenAI-compatible endpoint and the gateway translates the request. - [Rate Limits](https://docs.toolken.ai/features/budgets-rate-limits/rate-limits.md): Per-workspace request-rate and concurrent-stream limits enforced at the edge. Requests that exceed the limit get a 429 before reaching your provider. - [OpenClaw](https://docs.toolken.ai/integrations/openclaw.md): Point OpenClaw at Toolken by adding one custom provider. Every call from every agent is tracked automatically. - [Hermes](https://docs.toolken.ai/integrations/hermes.md): Hermes can send requests to the Toolken gateway, but full attribution support is not available yet. - [CrewAI](https://docs.toolken.ai/integrations/crewai.md): Route every CrewAI agent call through Toolken. See cost, tokens, and latency per agent in your dashboard with no changes to your crew logic. - [LangGraph](https://docs.toolken.ai/integrations/langgraph.md): Route LangGraph node calls through Toolken. Attribute cost and tokens per node, graph, or feature with one model config change. - [Claude Code](https://docs.toolken.ai/integrations/claude-code.md): Route Claude Code through Toolken. Use your Anthropic API key or your Claude subscription, for one developer or your whole team. - [Codex](https://docs.toolken.ai/integrations/codex.md): Route OpenAI Codex CLI traffic through Toolken by defining a custom provider in config.toml. Every request is attributed and visible in the dashboard. - [Continue](https://docs.toolken.ai/integrations/continue.md): Add Toolken as a model provider in Continue's config.yaml. Every AI request from your editor is attributed and visible in the dashboard. - [Cursor](https://docs.toolken.ai/integrations/cursor.md): Cursor can point at the Toolken gateway but does not send custom headers yet. Full support is coming soon. - [OpenAI SDK](https://docs.toolken.ai/integrations/openai-sdk.md): Route OpenAI SDK calls through Toolken with one base URL change. No SDK swap, no redeploy. - [Anthropic SDK](https://docs.toolken.ai/integrations/anthropic-sdk.md): Use Claude models through Toolken with the native Anthropic SDK. One base URL change, no protocol translation needed. - [Gemini SDK](https://docs.toolken.ai/integrations/gemini-sdk.md): Use Google Gemini models through Toolken via the OpenAI-compatible endpoint. No separate Gemini SDK needed. - [Cost Per Agent](https://docs.toolken.ai/use-cases/cost-per-agent.md): Tag each agent's requests so you can see exactly what each agent spends. - [Per-Customer Cost](https://docs.toolken.ai/use-cases/per-customer-cost.md): Attribute LLM spend to each end-customer so you know the margin behind every account. - [Compare Providers by Cost](https://docs.toolken.ai/use-cases/compare-providers-by-cost.md): Send the same prompt to different providers through one URL and see which one is cheapest. - [Cost by Environment](https://docs.toolken.ai/use-cases/cost-by-environment.md): Separate production and staging LLM spend so you can budget each independently. - [Gateway API Overview](https://docs.toolken.ai/api-reference/overview.md): What the Toolken Gateway API is, how the base URL works, and how authentication works for OpenAI-compatible and Anthropic requests. - [Headers Reference](https://docs.toolken.ai/api-reference/headers.md): Every Toolken request header: what it does, whether it is required, and how it relates to attribution dimensions in the dashboard. - [API Errors](https://docs.toolken.ai/api-reference/errors.md): Gateway error response shape and every error code the gateway can return, grounded in the source. - [Chat Completions](https://docs.toolken.ai/api-reference/endpoints/chat-completions.md) - [Messages (Anthropic)](https://docs.toolken.ai/api-reference/endpoints/anthropic-messages.md) - [Responses](https://docs.toolken.ai/api-reference/endpoints/responses.md) - [Embeddings](https://docs.toolken.ai/api-reference/endpoints/embeddings.md) - [Audio](https://docs.toolken.ai/api-reference/endpoints/audio.md) - [Images](https://docs.toolken.ai/api-reference/endpoints/images.md) - [List Models](https://docs.toolken.ai/api-reference/endpoints/list-models.md) - [Toolken API](https://docs.toolken.ai/api-reference/toolken-api.md): REST API for managing your Toolken account: API keys and usage data. - [General](https://docs.toolken.ai/faq/general.md): Common questions about what Toolken is, how it works, and who it is for. - [Cost & Billing](https://docs.toolken.ai/faq/cost-billing.md): How Toolken calculates LLM cost and what you are charged for. - [Security & BYOK](https://docs.toolken.ai/faq/security-byok.md): How Toolken handles your provider keys, your data, and what BYOK means in practice. - [Troubleshooting](https://docs.toolken.ai/faq/troubleshooting.md): Common errors and fixes when integrating with the Toolken gateway. ## OpenAPI Specs - [openapi](https://docs.toolken.ai/api-reference/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.