# Prism > Prism is a self-hosted adaptive AI gateway. Connect supported AI providers once; Prism gives your applications one API, selects a suitable route, switches around unavailable or exhausted accounts, and keeps cost, access and diagnostics in one place. - Self-hosted: you run the gateway on your own Linux or macOS machine and control its configuration and operational data. - One OpenAI-compatible API: /v1/chat/completions, /v1/responses, /v1/embeddings, /v1/rerank, /v1/models; also native Anthropic Messages, Gemini and Ollama API endpoints. - Name a model, or leave the choice to a selector: auto, fast, smart, cheap, local. - Connect provider API keys and supported subscription accounts, and route across them under one policy. - Four editions, prices per user per month before tax, tax added on top: Prism Free (up to 3 people, no charge), Pro (up to 5 people, 4 EUR), Teams (up to 10 people in one team, 6 EUR) and Enterprise (several teams, from 8 EUR, at least 5 seats). A year costs ten months. The paid editions are not on sale yet. Provider usage and infrastructure may still cost money. Every page has a Markdown copy at the same address plus `index.html.md`. The whole site in one file: https://prism.tm/llms-full.txt ## Pages - [Prism](https://prism.tm/index.html.md): what the gateway does, how it routes, use cases and measured performance - [Pricing](https://prism.tm/pricing/index.html.md): Prism Free, Pro, Teams and Enterprise, prices and what each edition includes - [How Prism compares](https://prism.tm/compare/index.html.md): Prism next to AI gateways, routers, subscription proxies and platforms - [Documentation](https://prism.tm/docs/index.html.md): install, connect clients, API, CLI and configuration reference - [FAQ](https://prism.tm/faq/index.html.md): setup, providers, subscriptions and failover, cost, privacy, editions - [Blog](https://prism.tm/blog/index.html.md): notes and releases - [Request access](https://prism.tm/request-access/index.html.md): Prism is not available for download yet; this form is the way to get in touch ## Documentation ### Getting started - [Prism documentation](https://prism.tm/docs/index.html.md): Install Prism, connect your AI tools to it, and look up its API, CLI and configuration. - [Install Prism](https://prism.tm/docs/getting-started/install/index.html.md): Install Prism on Linux or macOS with one command, from a Debian package, or from a release archive. - [Quick start](https://prism.tm/docs/getting-started/quick-start/index.html.md): Open the console, add a provider and send the first request through Prism. - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/index.html.md): Start, stop and restart Prism under systemd or launchd, read its logs, and set up the service for a manual install. - [Update Prism](https://prism.tm/docs/getting-started/update/index.html.md): Update Prism from the web console or with prism update, install a specific version, and how automatic rollback works. - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/index.html.md): Back up Prism's state with prism backup, check the archive, and move Prism to another machine. - [Uninstall](https://prism.tm/docs/getting-started/uninstall/index.html.md): Remove Prism installed with the one-command installer, the Debian package or by hand, with or without its data. ### Connect clients - [Connect clients](https://prism.tm/docs/clients/index.html.md): Point Claude Code, Codex CLI, the OpenAI and Anthropic SDKs, Gemini CLI, Ollama clients and curl at Prism. - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/index.html.md): Documents an agent can fetch from Prism to configure itself and to learn which model answered. - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/index.html.md): Control the model and strategy of a conversation from a chat window that cannot send custom headers. - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/index.html.md): An app gets a Prism key by showing a link and a code that a person allows in the Prism console. What the person sees, and the endpoints an app developer calls. ### API reference - [Endpoints](https://prism.tm/docs/api/endpoints/index.html.md): Every HTTP endpoint Prism serves on its main address, with method and purpose. - [Ingress dialects](https://prism.tm/docs/api/dialects/index.html.md): Which fields of the OpenAI, Anthropic, Gemini and Ollama APIs Prism carries, drops or rejects. - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/index.html.md): Model names, strategies, headers and the routing intent object that decide which model serves a request. - [Headers](https://prism.tm/docs/api/headers/index.html.md): Request headers Prism reads and response headers it sets. - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/index.html.md): Error shapes and codes Prism returns, its timeouts, and when it tries another model. - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/index.html.md): How Prism adjusts request parameters a provider does not accept, and how it tells you. - [Local control API](https://prism.tm/docs/api/control-api/index.html.md): Change Prism's defaults, inspect sessions and recover providers with POST /prism/control. - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/index.html.md): The addresses Prism listens on, what each serves, and which token or key each needs. ### Web console - [Web console overview](https://prism.tm/docs/web-console/overview/index.html.md): What the Prism web console does, how to sign in, and what each section of the menu is for. - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/index.html.md): Make the web console reachable over a tailnet, a LAN or HTTPS, or through an SSH tunnel. - [Updates in the console](https://prism.tm/docs/web-console/updates/index.html.md): The Versions page, its release source, mirrors, tokens and release components. - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/index.html.md): What to check when the web console does not open, refuses the token or cannot restart Prism. - [Installed packages](https://prism.tm/docs/web-console/plugins/index.html.md): Install and manage Prism extension packages and open their panels in the web console. - [Exporters](https://prism.tm/docs/web-console/exporters/index.html.md): Send Prism's usage to an OpenTelemetry collector such as Langfuse, or spend alerts to Telegram or Slack, with official plugin packages. - [Provider packages](https://prism.tm/docs/web-console/provider-packages/index.html.md): Add Amazon Bedrock, Google Vertex AI, Meta Muse Code, Azure OpenAI / Foundry, Cloudflare Workers AI, Z.ai, MiniMax, Novita AI, Parasail, SambaNova Cloud, Vercel AI Gateway, SubQ, Inception and Command Code from the plugin catalog. ### Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/index.html.md): Prism starts, stops and powers your own model servers and GPU machines, so a self-hosted model runs only when it is needed. - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/index.html.md): What OpenAI's Usage Policies, effective 2026-11-20, require of an organization that serves OpenAI models to its people through Prism Teams or Enterprise. - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/index.html.md): Pair a model machine with Prism from the console with one command, then choose the model servers Prism should manage. - [Service agent](https://prism.tm/docs/managed-inference/service-agent/index.html.md): What prism-service-agent does on a model machine, what it refuses, how it updates itself, and how to install it without the console. - [System services](https://prism.tm/docs/managed-inference/system-services/index.html.md): Let Prism start and stop a model server that runs as a system service, with a one-time polkit grant limited to that unit. - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/index.html.md): A stopped model server starts when a request names its model, and stops after a period without requests. - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/index.html.md): Connect a Nebius account, or another cloud through a plugin package, so Prism powers an existing GPU machine on before a model starts and off after idle time. - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/index.html.md): Power a paired machine on with a Wake-on-LAN packet from another machine in the same network, and off through its own agent, without a cloud account. - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/index.html.md): Give an agent a scoped token so it adds model servers and starts, stops and powers machines through Prism instead of over SSH. - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/index.html.md): What your own model machines cost, day by day, next to API spend, and a monthly budget that warns before it is spent. ### Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/index.html.md): The data Prism keeps on your machine, the requests it sends on its own, and what leaves the machine only when you turn it on. - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/index.html.md): Exactly what Prism sends for optional usage statistics and for a Pro, Teams or Enterprise subscription, and when. - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/index.html.md): What Prism's experiments do with your requests, who turns them on, and exactly what the optional experiment metrics send to PostHog. - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/index.html.md): An opt-in export of pseudonymized routing metadata to a receiver you name; off by default and never enabled remotely. - [Install signal](https://prism.tm/docs/privacy/install-signal/index.html.md): The one anonymous "install finished" request the installer sends when its link carries a token, and how to skip it. ### CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/index.html.md): Every user-facing prism command with its flags, as printed by the command itself. ### Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/index.html.md): Every public config.toml section with its keys, types and defaults. - [[admission]](https://prism.tm/docs/reference/configuration/admission/index.html.md): Queue limits for concurrent requests (off by default). - [[budget]](https://prism.tm/docs/reference/configuration/budget/index.html.md): Spending limits per period and what Prism does when a threshold is reached. - [[catalog]](https://prism.tm/docs/reference/configuration/catalog/index.html.md): Sources of the model capability and class catalogs. - [[console]](https://prism.tm/docs/reference/configuration/console/index.html.md): The web console listener, its TLS, the owner token file, restarts and updates from the console. - [[egress]](https://prism.tm/docs/reference/configuration/egress/index.html.md): Outbound proxy for requests to providers. - [[fleet]](https://prism.tm/docs/reference/configuration/fleet/index.html.md): Opt-in export of pseudonymized routing metadata to a receiver you name (off by default). - [[harness]](https://prism.tm/docs/reference/configuration/harness/index.html.md): Served-model metadata for agent harnesses and prompt cache refreshes. - [[health]](https://prism.tm/docs/reference/configuration/health/index.html.md): Provider health checks, rate-limit cooldowns and funding probes. - [[implicit_outcomes]](https://prism.tm/docs/reference/configuration/implicit_outcomes/index.html.md): Judging whether a served turn worked from the traffic that follows it (on by default, nothing stored but hashes). - [[inference]](https://prism.tm/docs/reference/configuration/inference/index.html.md): Model servers and machines that Prism starts, stops and powers (lifecycle control needs Pro). - [[license]](https://prism.tm/docs/reference/configuration/license/index.html.md): The subscription service of Pro, Teams and Enterprise. - [[local]](https://prism.tm/docs/reference/configuration/local/index.html.md): Local model servers given by address only. - [[mail]](https://prism.tm/docs/reference/configuration/mail/index.html.md): SMTP server for sign-in links, invitations and notifications. - [[metrics]](https://prism.tm/docs/reference/configuration/metrics/index.html.md): An optional separate listener for Prometheus metrics. - [[personal]](https://prism.tm/docs/reference/configuration/personal/index.html.md): Owner profile, users, sign-in sessions and passkeys behind the web console. - [[pricing]](https://prism.tm/docs/reference/configuration/pricing/index.html.md): Source of the model price catalog. - [[profiles]](https://prism.tm/docs/reference/configuration/profiles/index.html.md): Named routing profiles that an agent or request can select. - [[providers]](https://prism.tm/docs/reference/configuration/providers/index.html.md): Model providers: name, address, key source, routing role, limits and declared models. - [[routing]](https://prism.tm/docs/reference/configuration/routing/index.html.md): Default routing strategy, model denylist, role aliases, provider failover and account selection. - [[runtime_policy]](https://prism.tm/docs/reference/configuration/runtime_policy/index.html.md): Timeouts of upstream requests and streams, and internal buffer sizes. - [[secrets]](https://prism.tm/docs/reference/configuration/secrets/index.html.md): Reading provider keys from 1Password instead of environment variables. - [[server]](https://prism.tm/docs/reference/configuration/server/index.html.md): Addresses Prism listens on for model requests, request limits, browser origins and the optional managed and control listeners. - [[statistics]](https://prism.tm/docs/reference/configuration/statistics/index.html.md): Optional anonymous usage statistics (off by default). - [[storage]](https://prism.tm/docs/reference/configuration/storage/index.html.md): Where Prism keeps its state and how long it keeps request history. - [[traffic_guard]](https://prism.tm/docs/reference/configuration/traffic_guard/index.html.md): Optional checks of model traffic for credentials and personal data (off by default). - [[v2]](https://prism.tm/docs/reference/configuration/v2/index.html.md): The orchestration layer for selector-routed requests (on by default). ## Comparisons - [LiteLLM vs Prism](https://prism.tm/compare/litellm/index.html.md) - [Bifrost vs Prism](https://prism.tm/compare/bifrost/index.html.md) - [Portkey vs Prism](https://prism.tm/compare/portkey/index.html.md) - [Helicone vs Prism](https://prism.tm/compare/helicone/index.html.md) - [Requesty vs Prism](https://prism.tm/compare/requesty/index.html.md) - [LLM Gateway vs Prism](https://prism.tm/compare/llm-gateway/index.html.md) - [TensorZero vs Prism](https://prism.tm/compare/tensorzero/index.html.md) - [Not Diamond vs Prism](https://prism.tm/compare/not-diamond/index.html.md) - [vLLM Semantic Router vs Prism](https://prism.tm/compare/vllm-semantic-router/index.html.md) - [Sakana Fugu vs Prism](https://prism.tm/compare/sakana-fugu/index.html.md) - [CLIProxyAPI vs Prism](https://prism.tm/compare/cliproxyapi/index.html.md) - [9Router vs Prism](https://prism.tm/compare/9router/index.html.md) - [OmniRoute vs Prism](https://prism.tm/compare/omniroute/index.html.md) - [OpenRouter vs Prism](https://prism.tm/compare/openrouter/index.html.md) - [Cloudflare AI Gateway vs Prism](https://prism.tm/compare/cloudflare-ai-gateway/index.html.md) - [Kong AI Gateway vs Prism](https://prism.tm/compare/kong-ai-gateway/index.html.md) - [Vercel AI Gateway vs Prism](https://prism.tm/compare/vercel-ai-gateway/index.html.md) ## Blog posts - [A 200 from the backup model is not a recovery](https://prism.tm/blog/llm-fallback-routing-strategy-before-the-outage/index.html.md): Adding a second provider is not a fallback plan. Which errors should move a request, which backup to choose, how to cap its cost and how to see which model answered. - [Making our secret scanner 50× faster without changing a single finding](https://prism.tm/blog/secret-scanner-50x-faster-same-findings/index.html.md): Prism scans every request body for keys and personal data before it leaves your network. At 1.4 MB/s a 16 MiB request waited 12 seconds. Here is how we made it 50 times faster and proved it finds exactly the same things. - [a16z consumer AI report: who pays for more than one AI product](https://prism.tm/blog/a16z-consumer-ai-report-more-than-one-ai-product/index.html.md): Most people who pay for AI pay for one product, and a small group of heavy users accounts for much of the spending. We go through what a16z's Top 100 Gen AI Consumer Apps report says about them, and what Prism does for people who use several AI subscriptions and API keys. - [How we measured Prism under load](https://prism.tm/blog/how-we-measured-prism-under-load/index.html.md)