--- title: "Prism — Self-Hosted Adaptive AI Gateway" description: "Prism puts local models, paid API providers and subscription accounts behind one OpenAI-compatible API, with policy routing, bounded failover and budgets. Prism Free costs nothing." url: https://prism.tm/ --- PRISM — ADAPTIVE AI GATEWAY # One AI gateway for providers, accounts and models. Prism is a self-hosted adaptive AI gateway. Connect supported AI providers once — paid APIs, subscription accounts and local models — and give every app and agent one OpenAI-compatible API with policy-based LLM routing, bounded failover, budgets and per-request cost accounting. [Get started](https://prism.tm/pricing/) [Read the docs](https://prism.tm/docs/) One integration Applications and agents use one API instead of separate provider integrations. Adaptive routing Prism selects among eligible models, providers and accounts using policy and live signals, then performs bounded failover. Operational control Operators manage credentials, quotas, budgets, health, cost and diagnostics centrally. Self-hosted You run the gateway and control its configuration and operational data. SCALE ## 170+ providers. One endpoint. Connect provider presets, an embedded catalog of OpenAI-compatible providers, subscription accounts, local runtimes and self-hosted model servers — and route across all of them from one address. 11 provider presets, one key each 165+ catalog providers, ready to connect ∞ any OpenAI-compatible endpoint, added by URL and key 3,250+ priced models in the catalog - API key - OAuth subscriptions - local runtimes - self-hosted servers - any endpoint PROVIDERS ![](https://prism.tm/brands/openai.svg)![OpenAI](https://prism.tm/brands/openai-text.svg) ![](https://prism.tm/brands/anthropic.svg)![Anthropic](https://prism.tm/brands/anthropic-text.svg) ![](https://prism.tm/brands/gemini.svg)![Gemini](https://prism.tm/brands/gemini-text.svg) ![](https://prism.tm/brands/openrouter.svg)![OpenRouter](https://prism.tm/brands/openrouter-text.svg) ![](https://prism.tm/brands/groq.svg)![Groq](https://prism.tm/brands/groq-text.svg) ![](https://prism.tm/brands/deepseek.svg)![DeepSeek](https://prism.tm/brands/deepseek-text.svg) Preset and catalog marks shown; the catalog has 165+ OpenAI-compatible providers. HOW IT WORKS ## How a request flows through Prism. Your agents and apps call one API. Prism picks the model, provider and account for each request. The request can go to a paid API, to one of your subscription accounts or to a model on your own hardware. YOUR AGENTS AND APPS **Coding agents**Agents and IDE assistants that take a custom OpenAI, Anthropic or Ollama endpoint **Apps and scripts**Your own code on chat completions, Responses, embeddings and rerank **People**You and up to two others, free on Prism Free your policy + live signals capability, health, quota, funds, cost WHERE REQUESTS GO **Paid APIs**OpenAI, Anthropic, Google Gemini, OpenRouter and any OpenAI-compatible endpoint **Subscription accounts**Chat and coding plans you already pay for, several accounts each **Local models**Ollama, llama.cpp, vLLM, LM Studio and TEI on your own hardware ONE API · ADAPTIVE ROUTING ## One address for most API formats . Point your applications and agents at your Prism address. They keep sending requests in the API format they already use. Your policy determines which routes are eligible, and Prism chooses among them using live signals. Agents keep their own work loop, goals, tools and workspace; Prism is the gateway they call. REQUEST ``` curl https://[your-prism-host]/v1/chat/completions \ -H "Authorization: Bearer $PRISM_KEY" \ -d '{ "model": "auto", "messages": [{"role": "user", "content": "Hello"}] }' ``` ● model: auto, resolved per request Endpoints OPENAI /v1/chat/completions /v1/responses /v1/embeddings /v1/models ANTHROPIC /v1/messages GEMINI /v1beta/models/{model}:generateContent OLLAMA /api/chat /api/generate /api/embed /api/tags RERANK /v1/rerank - Bounded failover on a rate limit, billing error, timeout, outage, or a content-filter refusal that arrives before any output, Prism sends the request to the next eligible route - Out of funds a provider with no funds is skipped and rechecked automatically ROUTE request model: auto \[provider A\] · \[account 1\] quota exhausted ● \[provider A\] · \[account 2\] served Illustration of an account switch MODEL SELECTION ## Let Prism choose the model . Instead of a model name, put one of these five keywords in the request's `model` field. Prism calls them selectors. Each one sets the order in which Prism tries the models that can serve the request. - `auto` Tries the strongest cloud model first Applies when the `model` field is `auto` or empty. Strength is the model's Epoch Capabilities Index. Between two equally strong models, the cheaper one is tried first. Local models are tried last. - `fast` Tries the model with the lowest latency first Prism uses the latency it has measured on its own requests to each model. Between equally fast models, the cheaper one is tried first. - `smart` Tries the highest quality tier first The model catalog has four quality tiers: `frontier`, `strong`, `good` and `baseline`. Within a tier, the model with the highest Epoch Capabilities Index is tried first. Between two equally strong models, the cheaper one is tried first. - `cheap` Tries local models first, then the cheapest cloud model For work where cost matters more than answer quality. - `local` Uses local models only The request is never sent to a cloud provider. A default strategy, a budget rule or failover cannot change that. - If the first model fails with a retryable error, such as a rate limit or a timeout, Prism tries the next model in the order. - A selector applies to one request. In the console you can set a default strategy for the whole installation. It applies to requests that send `auto`. [Read more in the docs](https://prism.tm/docs/api/choosing-a-model/) COST AND ACCESS ## See what every request costs. Prism records the cost and tokens of every request and totals them by app, client program, agent, person and model. It shows metered API spend separately from what your subscription traffic would have cost at API prices. - Budgets for everyone, one person or one app: warn, switch to cheaper models, use only local models or reject - Keys per person and agent issue, rotate and revoke in the console; each person gets a key in one click - Lower-cost routes used when a request has the cheap selector or a budget rule switches to cheaper models - Health and diagnostics provider health checks, request log, status endpoint and Prometheus metrics SPEND ESTIMATE EXAMPLE API SPEND $412.80 SUBSCRIPTION VALUE $1,236.40 PLAN PRICES $220.00 Last 30 days. Subscription value is what subscription traffic would cost at API prices; plan prices are what the subscriptions cost per month. API spend subscription value per day illustration UNDER LOAD ## How much overhead Prism adds. Every request from your agents to a model provider passes through Prism, which decides where to send it. We measured three things: how much time Prism adds to a response, how many requests and open streams an ordinary 4 vCPU machine handles, and how much memory Prism uses. 1.0 ms Prism's own latency per request. Providers take seconds to answer, so this delay is not noticeable. 2,000 concurrent streaming responses on 4 vCPU. Every one completed; median time to first byte 0.1–0.3 s. ~250 MB of Prism's own memory after 80,000 requests from 32 clients, not counting database pages the operating system keeps cached. 2,000/s requests per second on 4 vCPU. Prism recorded the cost, tokens and a request log entry for each one, with per-person spend accounting, and no record was lost. Measured on 16 October 2026 on 4 logical cores of an Intel Core i5-13500 with NVMe storage, with one provider and one model; the host was shared with other work. The provider answers instantly, so the numbers show only Prism's own overhead. The figures apply to Prism v0.44.0 and later. Other hardware and disks will give different numbers. [How we measured](https://prism.tm/blog/how-we-measured-prism-under-load/) USE CASES ## What people run through Prism. One endpoint for every coding agent Point any coding agent, script or IDE assistant at Prism if it accepts a custom OpenAI-compatible or Anthropic endpoint. You configure your providers once, in Prism, not in every tool. With your API keys, Codex can use Claude, Gemini and other models, and Claude Code keeps its web search. one API · selectors · keys per agent Your Ollama, llama.cpp, vLLM or LM Studio models Enter Prism's address in the Ollama URL field of Open WebUI, Zed, Continue, Home Assistant or a similar app, and the app can use every model Prism routes to, cloud and local. The console's quick start shows the address to use. If the app has no field for a key, you can put your Prism key in the address (with Prism Teams, a key is required). Ollama API · main address · any model Use your subscription accounts Connect subscription accounts through OAuth sign-in and route through them alongside API keys. Prism picks the account per request. When an account returns an error, is rate-limited or has used up its quota, Prism sends the request to the next eligible account. Sign-in to Claude, Gemini, Cursor and Grok CLI subscriptions is closed by default. OAuth sign-in · per-request choice · failover Local models for routine work, cloud for hard requests Send routine requests with `local`, and they stay on your own machines. Send hard requests with `auto`, and Prism picks the strongest cloud model. local runtimes · local selector · private requests The model layer of your own product Your application calls one API. Prism connects to the providers, moves a failed request to another provider or account and records the cost of each request. one API · routing · operational controls MANAGED INFERENCE | TEAMS ## Prism manages your model servers and GPU machines. Prism starts the model server on your own GPU machine or a cloud GPU machine when a request needs that model, and stops it after the idle time you set. Add a machine in a few steps The Add machine wizard on the console's Compute providers page adds the server Prism runs on (often with no command at all), another Linux machine (with one command) or a new cloud instance, which connects itself when you paste the text the wizard shows into its user data. Existing machines in a Nebius account or another cloud account are added on the same page. Prism finds llama-server, vLLM, Ollama and SGLang servers automatically, including ones that run as system services. Tick the ones Prism should manage. Prism does nothing on the machine until you confirm, and you do not need to edit a config file or restart Prism. Servers start on request and stop when idle A request for a model waits while its server starts and is answered by that model once it is ready. An existing cloud machine is powered on for the request and powered off after the idle time you set. Support for Nebius is built in; Amazon EC2, Google Compute Engine, Microsoft Azure, Oracle Cloud, Alibaba Cloud ECS, Scaleway, Crusoe, Hyperstack, Paperspace and Oblivus are added with plugin packages. A machine on your own network is powered on with Wake-on-LAN and powered off through its own agent. Prism never powers a machine off while other processes are using its GPU. Prism never creates, resizes or deletes machines. See what your GPUs are doing The console shows GPU load, memory, temperature, power, cost and idle time for every machine, with history charts. Usage history shows GPU machine cost next to API spend; an opt-in monthly machine budget notifies you at 80% and 100% and does not power machines off. Machines that need attention are listed first, and the page works on a phone too. Prism alerts you when GPU memory fills up, a GPU gets too hot, a powered-on machine is idle or a machine stops responding. Your agents can start and stop model servers Give an agent a scoped key and it can start and stop model servers and power machines on and off through Prism, without SSH. That key cannot call models and gives no access to provider keys, users or the subscription. Managed inference is part of Prism Pro and the editions above it. Connecting to model servers that are already running is included in Prism Free. SELF-HOSTED ## Run Prism on your own machine . Prism runs on Linux and macOS. You control its configuration and operational data. Requests that Prism forwards to a provider are processed under that provider's own terms. - A single Go binary Prism needs no Python, Docker or database server. One command installs it as a service. - Local by default Prism listens on localhost and runs as a systemd service on Linux or a launchd service on macOS. - Prism Free costs nothing Free for any use, with no limit on your agents. Prism takes no percentage of what you pay providers. [Compare the editions](https://prism.tm/pricing/) [See how Prism compares](https://prism.tm/compare/) Full feature list What the gateway does API - OpenAI-compatible endpoints: chat completions, Responses, embeddings, rerank and models - Native Anthropic Messages and Gemini endpoints: Codex and Claude Code work through Prism with your API keys - Ollama API on Prism's main address - OpenAI-compatible image, audio, file and batch endpoints - Streaming and non-streaming responses - Name a specific provider and model as `provider::model`, or use a selector: `auto`, `fast`, `smart`, `cheap`, `local` - Chat Completions requests can be served through an upstream Responses endpoint Routing - Quality first by default: `auto` gives each request a quality floor, set higher for agent steps that use tools, and sends it to the strongest model at or above it, with price deciding only between equals; `cheap` tries an eligible local model first, then the cheapest; `smart` ranks by quality, `fast` by latency - When a selector such as `auto` picks a model that is available through several routes, Prism tries them in the order you choose - In the console you can exclude models from automatic selection: for example, one pattern removes all free variants, which are rate-limited and may train on your data - Failover across providers on rate limits, billing errors, timeouts and outages, and on content-filter refusals and answers that end abnormally before any output, with every attempt listed in the response headers - Prism records which models accept tools, image input and JSON output, from their answers and from the provider's model list, and does not choose a model for a request that needs something the model has rejected. A model whose support is unknown is still tried, after the models with confirmed support. If neither the provider nor an earlier answer has shown this, Prism sends one small test request per capability to API-key and local models; API providers bill these requests. The tests can be switched off - Providers that run out of funds are skipped and rechecked automatically - The `local` selector uses local models only, and `cheap` tries them first. A request marked `private` is never sent to a cloud provider Providers and accounts - Add a provider with just an API key; models are discovered automatically - Presets for OpenAI, Anthropic, Google Gemini, Meta Model API, OpenRouter, Groq, DeepSeek, Together AI, Fireworks AI, DeepInfra and Token Broker - Plugin packages from the catalog at [prism.tm/plugins](https://prism.tm/plugins/), installed, updated and removed on the console's Plugins page; Prism checks each package's signature before it enables it - Amazon Bedrock (Claude included), Google Vertex AI (Gemini and Claude models), Azure OpenAI / Foundry, Meta Muse Code, Cloudflare Workers AI, Z.ai, MiniMax, Novita AI, Parasail, SambaNova Cloud and Vercel AI Gateway through plugin packages. Bedrock connects with a Bedrock API key or an IAM access key, Vertex AI with a service-account key, Azure with your resource's API key, Meta Muse Code with your Meta account - Connect subscription accounts through OAuth sign-in; tokens are stored encrypted and refreshed automatically. Sign-in to subscriptions of providers whose terms forbid third-party programs is closed by default and opens only if the Prism team allows it for your installation - Local runtimes: Ollama, llama-server, LM Studio, vLLM, TEI - Connect a self-hosted model server by its address alone: Prism detects which API the server uses and connects without a key when none is needed - Your model servers and GPU machines started when a request needs them (Pro and higher) - An egress proxy per provider, HTTP or SOCKS5 Control and cost - Opt-in budgets for everyone, one person or one app, with actions: warn, switch to cheaper models, use only local models, reject requests - Spending limits for one API-key provider account or one model: an account that reaches its limit takes no requests until its period resets, and `auto` uses another model in place of one that has reached its limit - Spend alerts through a plugin package: a Telegram or Slack message when the day's spend crosses the percentages of a daily budget that you choose in the package and, with the first request of a new day, a summary of the previous day - Cost and tokens recorded for every request, including the reasoning tokens the provider reports; when the provider returns the amount it charged, Prism records that amount - Request log with the requested model, the reason for the choice and the trace ID of each request; usage history - Prism keys for your agents and for each person: issue, rotate and revoke them, and change a key's permissions without replacing it. Each person gets their own key in one click under My Prism key in the console, and requests made with it are recorded under that person's name - Status endpoint and Prometheus metrics - Role health without paid test requests: for each role (a name for a list of models tried in order), the console shows whether its first model, a backup model or no model is serving it. Prism notifies you when a role has no working model - Prism notifies you in the console and by webhook when it stops using a provider key after an authorization failure or stops using a model, and when the key or model is back in use; email notifications need Teams - Web console in English, German, Spanish, French, Italian, Hebrew, Russian, Ukrainian and Simplified Chinese. You change providers, routing, budgets and notifications in the console, without editing a config file. When Prism runs as a service, a saved setting that needs a restart is applied with the Restart now button Deployment - A single Go binary: no Python, no Docker, no database server - Linux with systemd and macOS with launchd - Listens on localhost by default - One-command installer Optional, off by default - Anonymous usage statistics, opt-in - OpenTelemetry export through a plugin package: one span per model attempt (model, provider, tokens, cost, latency, outcome) to Langfuse or any OTLP/HTTP collector, without prompt or response text - A line at the end of each chat answer that names the model that served it, for clients that hide response headers - Compression of repeated and long tool output before it is sent to the model, so agents use fewer tokens - Fleet telemetry, opt-in **Free:** up to 3 people **Pro, Teams, Enterprise:** from €4 per user / month, before tax (coming soon) [See pricing](https://prism.tm/pricing/) ## One gateway for your providers, accounts and models. Self-host it, connect your providers and point your agents at one API. Prism Free costs nothing, for any use. [Get started](https://prism.tm/pricing/) [Read the docs](https://prism.tm/docs/) --- title: "Blog — Prism" description: "Notes, measurements and releases from the Prism team." url: https://prism.tm/blog/ --- BLOG # Blog. 1. 26 November 2026 [A 200 from the backup model is not a recovery](https://prism.tm/blog/llm-fallback-routing-strategy-before-the-outage/) 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. 2. 20 October 2026 [Making our secret scanner 50× faster without changing a single finding](https://prism.tm/blog/secret-scanner-50x-faster-same-findings/) 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. 3. 17 October 2026 [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/) 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. 4. 16 October 2026 [How we measured Prism under load](https://prism.tm/blog/how-we-measured-prism-under-load/) The Under load section of prism.tm shows four figures: 1.0 ms, 2,000 streams, ~250 MB and 2,000 requests per second. We measured them on 16 October 2026. They apply to Prism v0.44.0 and later; earlier releases do not have the changes they depend on. --- title: "a16z Top 100 Gen AI Apps: who pays for more than one AI — Prism" description: "a16z's 2026 consumer AI report: 13% of AI payers pay for a second product and the top 1% spend $903 a month. What it means if you run several models." url: https://prism.tm/blog/a16z-consumer-ai-report-more-than-one-ai-product/ --- [BLOG](https://prism.tm/blog/) | 17 OCTOBER 2026 # a16z consumer AI report: who pays for more than one AI product 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. ![](https://images.unsplash.com/photo-1714974529316-7f85b7d1fde4?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8c2VhcmNofDYwfHxhaSUyMGNyZWRpdHxlbnwwfHx8fDE3OTIyNzEzNTV8MA&ixlib=rb-4.1.0&q=80&w=2000) In a16z's [Top 100 Gen AI Consumer Apps report](https://a16z.com/100-gen-ai-apps-7/) (7th edition, October 2026), 13% of people who pay for one AI product pay for another, and the top 1% of spenders average $903 a month. This post covers what the report says about these payers and what Prism does for people who run several AI models and accounts. On the first working day of the month, a developer goes through the receipts in their inbox. There is one from a coding agent, one from a chat subscription, one from an automation platform and one from an image generator. The last is an invoice from an API provider for the scripts that run at night. That makes five products and five bills, each with its own settings page. How many people pay for AI like this? The a16z report gives part of the answer. ## How many people pay for more than one AI product? According to a16z, 13% of people who pay for an AI product also pay for a second one. Most people who pay for AI pay for a single product. The report was published on 5 October 2026, and its spending figures come from YipitData's U.S. panels. It measures one pair of subscriptions directly: 8% of U.S. ChatGPT subscribers also subscribe to Claude. Paying for AI at all is still uncommon. In YipitData's e-receipt panel, the share of eligible U.S. consumers with a paid personal subscription to at least one of ChatGPT, Gemini or Claude rose from 2.1% in August 2025 to 4.5% in August 2026. The share more than doubled in a year. It also means that about 95 in 100 eligible consumers in the panel paid for none of the three. The figure covers these three subscriptions only, not AI products in general. a16z notes three limits on the spending data. It covers the U.S. only, it comes from panels rather than a census, and it should not be read as total company revenue. We would add a fourth gap, which follows from the method: consumer-card figures leave out seats paid for by an employer, business plans, and API usage billed to a company. a16z itself says work usage may be even higher than the consumer cards show. ## Who spends the most on AI? A small group of payers accounts for much of the money. a16z reports that the top 10% of spenders account for roughly half of observed consumer AI spending. The top 1% account for 19.5%, which is more than the bottom 50% combined (16.6%). As of August 2026, the top 1% spent an average of $903 a month on AI with consumer cards, up 80% over 18 months. The median payer spends $25 a month, and a16z reports that this figure has barely grown. $903 is about 36 times the median. It is also about nine times the $100 starting price of Claude Max. a16z describes these heavy spenders as prosumers. A prosumer is an individual who buys software to build, create and get work done. The top 10% buy more coding, productivity and creative tools than other payers. The top 1% buy more tools for automation and product building, such as n8n, fal and Manus, and more creative tools. In a separate comparison of the labs, a16z reports that 7.3% of Claude's consumer payers are on Max, which starts at $100 a month. On Google's and OpenAI's $100 plans, the shares are 1.3% and 1.1%. Does someone who spends $903 a month pay for more than one product? The report does not break the 13% down by spending level, so this is not measured. Our reading is that spending at that level means higher-tier plans, usage charges, several products, or some mix of these. We think a person in the top 1% is more likely than the median payer to be among the 13%. That is our inference, not a finding of the report. The same applies to the five receipts in the opening scene: they show what a heavy user's set might look like, not something a16z counted. ## Why does model choice keep changing? The labs release new models and products often, and subscribers move between them: a16z counts 127 launches by Anthropic, Google and OpenAI in six months. It describes a different focus for each lab: Anthropic almost entirely on prosumers, Google on creative models, and OpenAI on both consumers and enterprise. The report gives an example from this year. Earlier this year, Claude passed Gemini on U.S. consumer subscribers, and a16z says the two are now close. It links Claude's growth to new products, a new model and a burst of public attention. By mid-summer Claude's growth had slowed. YipitData's global desktop panel recorded fewer average daily Claude sessions in July and August, and its U.S. e-receipt panel showed fewer new Claude subscribers and rising churn. Over the same months, ChatGPT's growth sped up again after OpenAI's July launches of new models and of ChatGPT Work. a16z suggests asking how well each lab is doing with its own opportunity, rather than which lab leads overall. For someone who uses these models every day, our reading is simpler. The model that suits a task this month may not suit it in three months. If each tool calls one lab's API directly with one account, every change of model means editing the model name in each tool, and a change of lab also means a new key and base URL. ## What does the report say about products that offer several models? a16z lists access to models from several labs as one of the areas where startups still have an advantage. It names two examples: Cursor, which lets users choose models from different labs, and OpenRouter, which gives developers access to many providers. In the report's words: "Choosing models around the customer's task can be a product advantage." It adds that a lab selling its own model may have less reason to send a customer to a competitor. The same section names coding and productivity products as early beneficiaries. Lovable, Cursor, Base44 and Replit are all on the web list. Cursor rose from #41 to #35, and Base44 entered at #46. In its section on business models, a16z says high model costs have made it hard for consumer AI companies to go without early revenue. It expects this to get easier as open-source models spread and as builders separate tasks that need the most expensive frontier models from tasks that cheaper models can handle. ## What goes wrong when you use several models without a gateway? An AI gateway is a service that sits between your apps and the model providers: your tools call one API, and the gateway decides where each request goes. Without one, each tool is tied to the provider and account it was set up with, and someone has to change it by hand. The report does not describe how heavy users organize their tools, so this section is our reading. Take a developer on a Tuesday afternoon. Their coding agent stops halfway through a refactor because the subscription account it uses has hit its rate limit. They have a second subscription with quota left, but the agent is set up with the first account only. They open the agent's settings and paste in an API key, and the agent continues, now billed per token. By the next morning they have forgotten the change. How many tools are still using that key, and what did they cost overnight? The same problems come up in other forms: **Every tool keeps its own provider settings.** The coding agent, the IDE assistant, the automation platform and each script store their own keys, base URLs and model names. If you change provider and forget one tool, that tool keeps calling the old provider. You may only see it on the next invoice. **A rate limit or exhausted quota stops the tool.** The tool waits or fails, even when another account or another provider could answer the request. Someone has to switch it by hand. **A tool on an API key cannot use your subscription.** That work is billed to the key, per token, and the subscription you already pay for is not used for it. **No single place shows the whole bill.** Each provider reports spending on its own dashboard. Without a gateway, nothing in this setup shows the cost of each request across providers, or totals by app and model. ## What does Prism do for people with several AI subscriptions? Prism is a self-hosted AI gateway. Agents, scripts and other tools that accept a custom API endpoint can call Prism instead of each provider. On each request Prism picks the model, provider and account. The request can go to a paid API, to one of your subscription accounts or to a model on your own hardware. See [how a request is routed](https://prism.tm/#flow). - **One configuration.** You set up providers once, in Prism, instead of in every tool. Prism serves an OpenAI-compatible API plus native Anthropic Messages and Gemini endpoints, so most tools need only a new base URL and a Prism key. - **Several subscription accounts per service.** You connect them through OAuth sign-in, and Prism routes requests to them alongside your API keys, picking the account for each request. - **Failover with reasons.** When an account or provider returns an error, is rate-limited or has used up its quota, Prism sends the request to the next eligible account or provider. Response headers name the provider that served the request and list each attempt with its reason. - **Cost in one place.** Prism records the cost and tokens of every request and shows totals by app, agent and model. Metered API spend is shown separately from what your subscription traffic would have cost at API prices. See [cost and control](https://prism.tm/#control). - **Model choice.** If you put a selector (`auto`, `fast`, `smart`, `cheap` or `local`) in place of a model name, Prism decides the order in which it tries models. For example, `cheap` tries local models first and then the cheapest cloud model, and `local` uses local models only. With `provider::model`, the request stays on that provider unless you allow failover to other providers. See [selectors](https://prism.tm/#selectors). - **No Prism cloud.** Requests go straight from your machine to your providers. There is no telemetry unless you turn it on. Back to Tuesday afternoon. With Prism, the agent would call Prism instead of one account. When the first subscription hit its rate limit, Prism would send the request to the next eligible account or provider, and the response headers would say why. Nobody would need to open the agent's settings. One caveat applies to subscription accounts. Using a subscription through a third-party gateway may breach the provider's terms, and Prism shows a risk notice before every sign-in. The [comparison pages](https://prism.tm/compare/) show how Prism differs from other gateways and subscription proxies. Prism is not yet publicly available. If you pay for several AI subscriptions or API keys and want your agents and scripts to use them through one API, [request access to Prism Free](https://prism.tm/request-access/?topic=free). [Prism Free](https://prism.tm/pricing/#free) costs nothing for up to 3 people. * * * ## Questions and answers #### What percentage of AI subscribers pay for more than one AI tool? According to a16z's Top 100 Gen AI Consumer Apps report (7th edition, October 2026), 13% of people who pay for one AI product also pay for at least one other AI tool. The same report, citing YipitData's panel, finds that 8% of U.S. ChatGPT subscribers also subscribe to Claude. #### How much do the top AI spenders pay per month? a16z reports that the top 1% of consumer AI payers spent an average of $903 a month on consumer cards as of August 2026, up 80% over 18 months. The median payer spends $25 a month. These figures come from YipitData's U.S. panels and cover consumer cards only. a16z notes that work usage may be even higher; AI paid for by employers or billed to companies would not appear on consumer cards. #### How many Americans pay for ChatGPT, Gemini or Claude? In YipitData's U.S. e-receipt panel, cited by a16z, 4.5% of eligible consumers had a paid personal subscription to at least one of ChatGPT, Gemini or Claude in August 2026. A year earlier the share was 2.1%. The figure covers these three subscriptions only, not all AI products. #### What is an AI gateway? An AI gateway is a service that sits between your apps and AI model providers. Your apps call one API, and the gateway decides which provider, model and account serves each request, handles failover, and records usage and cost. Prism is a self-hosted AI gateway. #### Can I use an AI chat or coding subscription through an API gateway? Some gateways can sign in to chat and coding subscription accounts; which services are supported depends on the gateway. Prism connects several kinds of chat and coding subscription accounts through OAuth sign-in, several accounts per service. It routes requests to them alongside your API keys and fails over to the next eligible account or provider on errors, rate limits or exhausted quota. Using a subscription through a third-party gateway may breach the provider's terms, so read them first. Prism shows a risk notice before every sign-in. #### Is Prism self-hosted? Yes. Prism runs on your own Linux or macOS machine or server, and requests go straight from it to your providers. There is no Prism cloud in between and no telemetry unless you turn it on. Prism is not yet publicly available, and access is on request. #### Is Prism free? Prism Free costs nothing for up to 3 people, for any use, including by companies. Prism adds nothing to provider prices and takes no share of your usage. Prism is proprietary software, not open source. --- title: "How we measured the four figures in the Under load section of prism.tm: the machine, the test provider, the load, and what the test did not cover. — Prism" description: "The Under load section of prism.tm shows four figures: 1.0 ms, 2,000 streams, ~250 MB and 2,000 requests per second. We measured them on 16 October 2026. They apply to Prism v0.44.0 and later; earlier releases do not have the changes they depend on." url: https://prism.tm/blog/how-we-measured-prism-under-load/ --- [BLOG](https://prism.tm/blog/) | 16 OCTOBER 2026 # How we measured Prism under load ![](https://images.unsplash.com/photo-1595623654300-b27329804025?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8c2VhcmNofDE2fHxjb2RlJTIwZW5naW5lZXJpbmd8ZW58MHx8fHwxNzkyMTI0NjI4fDA&ixlib=rb-4.1.0&q=80&w=2000) The Under load section of prism.tm shows four figures: 1.0 ms, 2,000 streams, ~250 MB and 2,000 requests per second. We measured them on 16 October 2026. They apply to Prism v0.44.0 and later; earlier releases do not have the changes they depend on. This post describes the setup, what each figure means, and what the test did not cover. ## The setup **Machine.** Linux on an Intel Core i5-13500 (20 hardware threads) with NVMe storage. **Prism's share.** Prism was limited to 4 hardware threads (two performance cores with hyper-threading), comparable to a virtual machine with 4 vCPUs. The test provider and the load generator ran on other cores of the same machine. All connections were plain HTTP over loopback. **Shared machine.** The machine ran other work during the tests. The Linux load average was 11 to 16 on 20 hardware threads. **Test provider.** A small OpenAI-compatible server. For non-streaming requests it answers immediately (in about 0.1 ms when called directly), with 12 prompt tokens and 8 completion tokens. For streaming requests it sends 40 chunks 500 ms apart, so each answer takes 20 seconds. It reports the model as gpt-4o-mini, so Prism computes the cost of each answer from the gpt-4o-mini price in its model catalog. Prism had this one provider with one model, so it never had to choose between models. **Load generator.** It works in one of two modes: a fixed number of clients, each sending its next request when the previous one is answered; or a fixed number of requests per second, using up to one connection per 20 requests per second (at least 50 connections; 100 at 2,000 per second). Latency is measured from the moment a connection sends a request to the end of the answer. **Requests with a personal key.** Every request carried a Prism key issued to a person in a Prism Teams organization (Prism Teams is coming soon). For each such request Prism adds the cost and tokens to that person's spend and writes a request log entry; this takes about 15 to 17 KB in Prism's database per request. The tests used two keys of the same person: since v0.43.0 one person's key allows up to 1,024 requests in progress at the same time, and the stream test needed 2,000. **Empty database.** Each test started Prism with an empty database, with no earlier requests stored. The memory test used one Prism process for all of its requests. **Background work off.** The model catalog refresh, the price refresh and the provider health checks were turned off during the tests. ## What each figure means ### 1.0 ms added to each request One client sent 1,000 non-streaming requests, one after another. The median time per request was 0.98 ms; the 95th percentile was 2.74 ms and the 99th percentile 4.95 ms. The test provider takes about 0.1 ms of that, so almost all of it is Prism's own time. A real provider takes from several hundred milliseconds to several seconds to answer. ### 2,000 streams at the same time 2,000 clients, 1,000 per key, each opened a streaming request at the same moment, and each sent three 20-second streams one after another. We ran this test three times. All 6,000 streams completed in each run, 18,000 in total. The median time from sending a request to receiving the first byte of the answer was 0.10 to 0.33 seconds, and the 99th percentile about 1 second. This is longer than for a single request because 2,000 requests arrive at the same time. While the streams were open, the Prism process used up to about 0.9 GB of memory, including the database pages described in the next section. ### ~250 MB of memory We sent 80,000 non-streaming requests to one Prism process in four batches of 20,000, from 32 clients, without restarting it. Each batch took about 9 seconds, about 2,300 requests per second. Five seconds after each batch, Prism's own memory was 154, 182, 128 and 251 MB. Prism's own memory is the memory it allocated for its data; Linux reports it as RssAnon. Prism also maps its database file into memory. Counting those pages, the process used between 255 and 930 MB (558 MB after the last batch). The operating system can drop those pages when another program needs memory and read them from disk again later. Heavier load uses more memory: after the step at 2,500 requests per second, Prism's own memory was 536 MB. 80,000 requests are too few to show whether memory keeps growing over days of traffic. ### 2,000 requests per second The generator sent 2,000 requests per second for 30 seconds. Prism answered all 59,999 requests with HTTP 200. The median latency was 23 ms and the 99th percentile 102 ms. Prism's counters of dropped records and failed record writes (prism\_record\_sink\_dropped\_total and prism\_record\_sink\_write\_errors\_total) stayed at zero. Prism writes these records in the background; the answer does not wait for them. | Requests per second | Median | 99th percentile | Refused | | --- | --- | --- | --- | | 300 | 1.1 ms | 4.7 ms | 0 | | 600 | 1.0 ms | 7.2 ms | 0 | | 900 | 1.3 ms | 15 ms | 0 | | 1,200 | 2.7 ms | 30 ms | 0 | | 1,500 | 6.0 ms | 56 ms | 0 | | 2,000 | 23 ms | 102 ms | 0 | | 2,500 | 46 ms | 141 ms | 873 (1%) | At 2,500 requests per second the 30-second step took 32.4 seconds. Prism answered 74,127 requests, 2,288 per second, and refused 873 with HTTP 429 Too Many Requests. Prism sends this refusal before it forwards the request to the provider, so the provider does not receive or charge for a refused request, and the client can send it again. ## Requests without a key Without a key, Prism does less work per request. Measured the same day: a median of 0.63 ms per request with one client, 4,300 requests per second with 50 clients, and 3,000 requests per second for 60 seconds with every record kept (the only fixed rate we ran). In a longer run at about 3,500 requests per second, Prism dropped 1,292 records in the last batch of 130,000. ## What changed since September In September the Under load section showed 0.4 ms per request, a first token in 49 ms with 2,000 streams, ~260 MB of memory that did not grow over 500,000 requests, and 4,500 requests per second. Those figures were for requests without a key, measured on 27 and 28 September on Prism v0.14. The figures on prism.tm now describe requests with a personal key on Prism v0.44.0. The two sets are not directly comparable. ## What the test did not cover - One machine, shared with other work. Each fixed rate was sent for 30 seconds (60 seconds for the run without a key), and the memory test took about 35 seconds. We did not test hours of continuous load. - The test provider answers immediately, over plain HTTP on loopback. With HTTPS to real providers, Prism also spends CPU on encryption. A real provider takes seconds per answer, so the same rate means many more requests in progress at the same time: at 2,000 requests per second with 20-second answers, 40,000 requests would be in progress. In the 2,000-per-second test there were at most 100; in the stream test, 2,000. - One provider and one model, so Prism made no choice between models or providers. - The generator sent the same short request every time. Real requests are larger and all different. Prism takes longer to read a larger request, and when the same request body arrives again it reuses part of the work, so identical requests cost less than real traffic. - The model catalog refresh, the price refresh and the provider health checks were off. - Each test started with an empty database. A database that already holds months of requests is larger; we did not test how that changes the figures. - On our disk, appending 300 bytes to a file and flushing it to disk took a median of about 5.6 ms, and up to 17 ms. With Prism's database in memory (tmpfs), where flushing costs nothing, Prism also kept up with 2,000 requests per second (median 33 ms), and one client got 1.14 ms per request. ## Comparing with your setup - Prism had 4 hardware threads. Fewer threads mean fewer requests per second. - Multiply your requests per second by your provider's answer time to get the number of requests in progress at the same time. That number, not the rate alone, decides memory and connection use. - One person's key allows up to 1,024 requests in progress at the same time (Prism v0.43.0 and later). - To check that no record is lost on your installation, watch prism\_record\_sink\_dropped\_total and prism\_record\_sink\_write\_errors\_total in Prism's Prometheus metrics. - To compare your disk with ours, time a small append followed by fsync. We got a median of 5.6 ms. --- title: "Prism: a 200 from your backup model is not a recovery — Prism" description: "A backup model can return HTTP 200 and still break your JSON, tool calls and tone. How to set failover rules before an outage. Prism reports every switch." url: https://prism.tm/blog/llm-fallback-routing-strategy-before-the-outage/ --- [BLOG](https://prism.tm/blog/) | 26 NOVEMBER 2026 # A 200 from the backup model is not a recovery 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. On 11 December 2024 the OpenAI API, ChatGPT and Sora went down for hours after a new telemetry service overwhelmed the company's Kubernetes control planes, as [OpenAI's own incident report](https://status.openai.com/incidents/ctrsv3lwd797) explains. A product with a backup model would have switched to it, and a switch like that can return HTTP 200 and still be wrong for the app. Elroy Fernandes opens [a piece in Startup Fortune on 23 November](https://startupfortune.com/set-your-llm-fallback-model-routing-strategy-before-the-outage-not-during-it/) with this outage and argues that the fallback rule must be set before the outage, with numbers in it. This post follows that argument and adds what a gateway can take off your plate. This post is for developers and small teams whose agents and scripts depend on more than one model: how to decide what counts as an outage, what the backup should be, and how to find out afterwards which model actually answered. [Prism](https://prism.tm/) is a self-hosted AI gateway that makes those switches and reports every one of them. ## A green dashboard and a broken parser The common setup is a second API key and a retry. The primary provider starts erroring, the code retries against the backup, a 200 comes back, and the monitoring goes green. Nobody checks what the 200 contains. The problems are in that content. Providers do not agree on request or response shapes. Anthropic's Messages API requires `max_tokens` on every request and takes the system prompt as a top-level field; OpenAI's chat format expects it as a message in the list. OpenAI returns tool-call arguments as a JSON string; Anthropic returns them as an object inside a `tool_use` block. A gateway can translate those shapes. What no gateway can translate is behaviour: whether the second model picks the right tool, whether it wraps its JSON in a code fence and opens with a sentence of commentary, whether it answers in two sentences or two paragraphs, or whether it declines a request that the first model accepted. Some differences show up only on real traffic. Tokenizers differ, so a prompt that fits on one model can overflow another's context window. A model that writes twice as much doubles your output tokens and breaks any interface that assumed short answers. So the backup is not a spare key. It is a piece of your product, and switching to it deserves the same care as a release. ## Not every error is an outage The first decision is which failures should move a request elsewhere. These are reasonable defaults to tune against your own traffic: - **Fail over on time.** A connection error, a first token that takes too long, or a total request timeout. A model that answers after 40 seconds is down as far as a user in a chat is concerned. - **Fail over on server-side failure.** Any 5xx. Anthropic's `529 overloaded_error` reports provider capacity rather than anything wrong with the request; treat it like a rate limit, as Prism does. - **Treat rate limits as a signal about one model on one account.** A 429 means that model is limited on that account. With another account or provider available, moving is usually better than making the user wait. - **Do not fail over on request errors.** A malformed body or an invalid schema will be rejected by the second model for the same reason. Sending it there hides the bug and doubles the bill. There is one useful exception to the last rule, and it depends on who chose the model. When you name the model, a 400 is usually about your request. When the gateway chose the model and adapted the body for it, a 400 can be a fact about that model: it does not take a parameter the gateway sent. In that case, the next candidate receives a differently shaped body and may succeed. If every candidate rejects the request, you should get the 400 status back, with every attempt listed. One failure class never appears in status codes at all. If a growing share of responses stop passing your schema validation, the model is degraded for your purposes, even while the provider's status page stays green. ## The first rung: the same model somewhere else The easiest backup to trust is the model you already run, sold through another host. Claude models are also available on AWS Bedrock and Google Vertex AI; OpenAI models on Azure. Prompts, tool formats and behaviour carry over almost unchanged, so there is little to re-test. It will not help if the model itself has a bad day, so treat it as the first step, with a different model as the second. For a conversation in progress, this is a choice you can make once, in advance, instead of per incident. In Prism the setting **If the model does not answer mid-conversation** has two values: - **Next model in order** (the default): the conversation continues on the next model by price and quality tier. - **Same model at another provider**: Prism first tries the conversation's model at its other providers and only then moves to another model. A mid-conversation switch has a cost that is easy to forget: providers cache a conversation on their own side, so any switch to another provider or model loses that cache and the next request pays full price for the context again. A same-model backup still loses the cache; it just keeps the behaviour. Two more rules belong in the same decision. A request that names a provider, such as `provider::model`, stays on that provider and switches only between its accounts, unless you explicitly allow cross-provider failover for the deployment or for that request. And a request marked private never falls back to a cloud provider: if no local model can serve it, it fails, which is the result you want from a privacy setting. ## What Prism does when a model stops answering | What happens upstream | What Prism does | Reason it reports | | --- | --- | --- | | Connection error or timeout | Moves to the next eligible model, provider or account | `timeout`, `transport` | | 5xx from the provider | Moves to the next eligible route | `unavailable` | | Rate limit (429 or 529) | Moves; after 3 within a minute, excludes that model for a cooldown that starts at 30 seconds and doubles up to 10 minutes by default | `rate_limit` | | Billing refusal or exhausted quota | Moves to another account or provider; the unfunded account gets at most one probe per window, 15 minutes at first and doubling up to 2 hours while it stays unfunded | `billing` | | Model retired (404 or 410) | Moves to the next eligible route; for a pinned model, other providers serving it | `gone` | | Your pinned model rejects the request (400) | Stops and returns the error; an unsupported parameter or capability is first tried at another provider of that model | `bad_request` | | Request body too large (413) | Stops and returns the error | `payload_too_large` | | Private request, no local model available | Refuses with 503 and does not go to the cloud | `privacy_route_unavailable` | The last column matters as much as the second. The number of attempts, the providers tried and the reason for each are returned in the response headers (`X-Prism-Attempts`, `X-Prism-Attempt-Providers`, `X-Prism-Attempt-Reasons`) and shown in the console, and `X-Prism-Provider` and `X-Prism-Model` name the route that actually served the answer. When nobody can serve the request, the error body lists every attempt with its provider, model, status, reason and latency. Prism does not substitute a provider silently, so a switch can be found in the headers or the console. ## The cooldown, the probe and the bill Deciding request by request is expensive: every request during an outage pays the failed attempt first. The alternative is to remember the failure. In Prism, after repeated 429s inside a minute, the affected model is excluded from routing for a cooldown and then let back in when the cooldown expires. A provider that refused for billing reasons is excluded while it is unfunded, and Prism admits at most one probe for it per window; one successful probe clears the state immediately. The probe is the part people forget. Without it you stay on your more expensive backup long after the primary has recovered. Costs need a rule written before the incident, because traffic tends to spike during one: clients retry and users refresh, now on a model that is often pricier. Put the ceiling on the backup itself. In Prism, `[[budget.account_limits]]` caps one provider account per hour, day, week or month, and a spent account takes no traffic until its window resets. Set the cap for the account you expect to carry fallback traffic as a multiple of what it normally spends in that window, and an outage has a maximum price. For a model budget, `[budget] model_fallback` chooses how a spent model is replaced; the default is the nearest cheaper model that supports at least the same tools, image input and JSON output, so a budget switch cannot silently drop a capability your request needs. Then make the switch visible. Prism shows each routing role as **normal**, **on a backup target** or **dead**, with the target serving it, since when and why, and notifies the owner when a role has run on a backup for more than three hours. ## Rehearse it while nothing is broken A backup that has never served your real prompts is an assumption. The rehearsal does not need a special tool. In a test setup, disconnect the primary provider for an hour, send the requests your product really sends, and then read the request log: which model answered, how many outputs failed to parse, how long the answers were and what the hour cost. Fix the prompt for the backup if it needs one, and repeat until the backup's outputs parse and its answer length and cost are acceptable. Repeat the drill when you change a prompt or a provider ships a new version. ## Where Prism fits Your agents and applications call one Prism API, and on each request Prism chooses the model, provider and account from your policy and live signals: capability, health, remaining funds and cost. For failover that means: - **You decide what the backup is.** The same model at another provider, or the next model in order. See [how a request is routed](https://prism.tm/#flow). - **It switches on real outages, not on your bugs.** Timeouts, server errors, rate limits and exhausted quota move a request; a request the pinned model rejects comes back to you with the reason. - **It remembers and recovers.** A failing model is excluded for a cooldown, an unfunded provider is probed at most once per window, and both return by themselves without a restart. - **It never switches silently.** The attempts and their reasons are in the response headers and in the console. - **It knows what a model can do.** Where nobody has stated whether a model takes tools, images or JSON output, Prism checks it with a few small requests in the background and routes accordingly. - **Private stays private.** Requests marked private are served only by your local models, or refused. - **Fallback spend has a ceiling.** Account and model budgets apply during an outage exactly as on a normal day. Two limits. Prism cannot make a second model behave like the first: that is the rehearsal's job, and for some requests the right answer is a separate prompt per model. And Prism is not yet publicly available. If you run agents on several providers and want failover you can see and explain, [request access to Prism Free](https://prism.tm/request-access/?topic=free), which costs nothing for up to 3 people. The [comparison pages](https://prism.tm/compare/) show how Prism differs from other gateways, and the [FAQ](https://prism.tm/faq/) answers the rest. ## Questions and answers #### What errors should trigger a fallback to another model? Connection errors, timeouts, 5xx responses, Anthropic's 529 overloaded error, rate limits and exhausted quota. A malformed request should not: the body is broken or uses an unsupported schema, and the second model will reject it for the same reason. #### Should you fail over on a 400 error? Not when you named the model: the rejection is about your request. When the gateway chose the model and adapted the body for it, the 400 can mean that model does not support a parameter, so trying the next candidate is reasonable. If every candidate rejects the request, the error should reach you with every attempt listed. In Prism, a pinned model that rejects the request usually ends it with the reason bad\_request; a rejection of one parameter or of a missing capability is first tried at another provider of the same model. #### Is it better to fail over to the same model on another provider or to a different model? The same model on another provider keeps behaviour, so it needs little re-testing, but it does not help if the model itself is degraded. In Prism the setting "If the model does not answer mid-conversation" offers both: next model in order (the default) or the same model at another provider first. Any switch to another provider or model loses the conversation cache. #### How do you find out which model answered a request? Prism names the provider and model that served each response in the X-Prism-Provider and X-Prism-Model headers, gives the number of attempts in X-Prism-Attempts, and lists the providers tried and their results in X-Prism-Attempt-Providers and X-Prism-Attempt-Reasons. The same information appears in the console under Usage history, Request details. #### How do you stop a fallback from running up the bill? Cap the account that carries fallback traffic. In Prism, \[\[budget.account\_limits\]\] limits one provider account per hour, day, week or month, and a spent account receives no traffic until its window resets. #### What happens to a private request when local models are unavailable? It is refused. A request marked private is never sent to a cloud provider, so when no local model can serve it Prism answers with 503 privacy\_route\_unavailable. --- title: "Prism: a 50× faster secret scanner with the same findings — Prism" description: "How Prism's traffic guard went from 1.4 MB/s to 70 MB/s: literals derived from each regex, one Aho-Corasick pass, anchored matching, and a differential test." url: https://prism.tm/blog/secret-scanner-50x-faster-same-findings/ --- [BLOG](https://prism.tm/blog/) | 20 OCTOBER 2026 # Making our secret scanner 50× faster without changing a single finding 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. ![](https://images.unsplash.com/photo-1477039181047-efb4357d01bd?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8c2VhcmNofDE5fHxzZWNyZXQlMjBwYXNzd29yZHxlbnwwfHx8fDE3OTI0ODY5OTd8MA&ixlib=rb-4.1.0&q=80&w=2000) Prism is a self-hosted AI gateway. Every request your tools send to a model passes through it, and before it leaves your network the traffic guard looks through the body for credentials and personal data: API keys, bearer tokens, private keys, e-mail addresses, phone numbers. Depending on policy, it records, blocks or redacts what it finds. In October we stopped truncating that scan. Before, the guard looked at the first part of a large body and let the rest through; that is exactly the part where a pasted log or an attached file hides a key. After the change it read every byte, and we measured what that cost: about 1.4 MB/s. A 16 MiB request, which a coding agent can produce by attaching a few files, waited 12 seconds on one core before it was even sent. Two days later the same scan ran at about 70 MB/s, with the same findings on every input we could construct. This post is about how, and about the part that took most of the work: proving "the same findings". ## Twenty regular expressions, one megabyte The secret detector is a list of 20 rules. Each is a regular expression with a little post-processing: an entropy check, a digit-and-letter check, an allowlist. Some are specific (an AWS access key id starts with `AKIA`), some are not (`password = ...`, a generic high-entropy token). On top of those the traffic guard has its own rules for bearer tokens, e-mail, phone numbers and IPv4 addresses. The obvious implementation runs every rule over the text with `FindAllStringSubmatchIndex`. Go's `regexp` is RE2: matching time is linear in the input, guaranteed, and nobody can hand it a body that takes exponential time. Linear is not the same as fast, though. An unanchored search tries to start a match almost everywhere, and in ordinary text almost every attempt fails within a few bytes. Twenty-odd rules means twenty-odd such passes over the whole body. Nothing is wrong with any single rule; there are just a lot of them, and almost all of the work finds nothing. ## Every match contains a literal Almost every rule has text that every match must contain. An Anthropic key contains `sk-ant-`. An AWS key id starts with `AKIA`. An e-mail address contains `@`. A bearer header contains `bearer`. If none of these literals occur in a body, none of those rules can match, and the expensive pass is wasted. That is the classic prefilter, the idea behind tools like ripgrep and Hyperscan. The part that matters for correctness is where the literals come from. We do not write them down by hand next to each rule, where they would drift from the regex the first time someone edits it. At start-up Prism parses each rule with `regexp/syntax` and derives from the syntax tree: - the set of literals every match must contain; - how far from the start of the match each literal can sit (a minimum and a maximum). Then the scan becomes two steps: 1. **One Aho-Corasick pass** over the body finds every occurrence of every rule's literals at once, case-insensitively. 2. **Anchored matching.** For each hit, the rule's regex runs anchored, `\A(?:re)`, only at the start positions the hit allows. Most rules allow one position or a short range, so the regex reads a few dozen bytes instead of the whole body. One rule, a generic high-entropy token, has no literal at all: it is a single unbounded ASCII character class. That one becomes a plain byte-run scanner, because a match of such a pattern is just a maximal run of those bytes. A rule from which nothing usable can be derived keeps the old full pass. Today all 20 rules get a plan. ## Where it almost broke Deriving literals is easy to get almost right. The cases where "almost" would have meant a missed key were the interesting ones. **The Kelvin sign.** Rules are case-insensitive: `(?i)api_key` must match `API_KEY`. The obvious prefilter lowercases ASCII and searches for `api_key`. But in Go, `(?i)k` also matches U+212A, the Kelvin sign K, and `(?i)s` matches U+017F, the long s ſ. Both are Unicode simple case folds of ASCII letters: ```go re := regexp.MustCompile(`(?i)api_key`) re.MatchString("api_\u212Aey") // true: "api_Key" with a Kelvin sign ``` An ASCII-only prefilter would never see that text as a candidate, so a rule that matched before would silently stop matching. Nobody types a Kelvin sign into an API key name. But a scanner that can be bypassed by one Unicode character in the key name is not a scanner. The literal set now expands each letter to all of its case folds, which gives `k` and `s` a second alternative. Rules also carry Russian key names, written as character classes such as `[Пп][Аа][Рр][Оо][Лл][Ьь]` for «пароль»; small classes like these are expanded into literals the same way. **Word boundaries.** Many rules start with `\b`. Whether `\b` holds at a position depends on the byte before it, and an anchored regex run on a slice of the body does not see that byte. Run on the slice alone, `\btoken` would match inside `mytoken`. When the byte before the candidate is a word byte, the anchored attempt includes one byte of left context, `\A(?s:.)(?:re)`, so `\b` gives the same answer as it does in the full text. **Hostile input.** A prefilter has a worst case: text built to be full of literals. A body that is megabytes of repeated `eyJ`, the start of a base64-encoded JSON token, produces a hit every three bytes, and each hit starts an anchored attempt. To keep this linear, the anchored attempts read through a budgeted reader. Once a rule has read more than the length of the body plus 64 KiB, it gives up on the fast path and falls back to the full regex pass. That input is exactly as slow as before, not slower, and still linear. ## Amdahl's law shows up With the detector fixed, the profile moved. The traffic guard's own rules for e-mail, phone, IPv4 and bearer tokens were now most of the time, about 300 ms per MiB. They got the same machinery: e-mail has `@`, IPv4 has `.`, bearer has `bearer`, and for the rules that start with `\b` the boundary check comes first. Text normalisation, which strips zero-width and lookalike characters before the scan, now skips its per-rune table lookup unless a byte that can start such a character is present. What remains in a full traffic guard pass is mostly JSON decoding, the two literal passes, and a couple of anchored attempts per line for phone and IPv4 rules in text that contains digits. ## The numbers Measured on one pinned core of an Intel Core i5-13500, the commit before the change against the commit after, with the repository's own Go benchmarks. The body is ordinary English text, wrapped in a chat completion request, with an AWS key id, an e-mail address, a phone number, an IP address, a bearer token and a password planted in the middle. Each figure is the median of three runs. | Body size | Full traffic guard, before | After | Secret detector alone, before | After | | --- | --- | --- | --- | --- | | 1 MiB | 0.68 s (1.5 MB/s) | 15 ms (68 MB/s) | 0.63 s (1.7 MB/s) | 2.8 ms (376 MB/s) | | 4 MiB | 3.04 s (1.4 MB/s) | 63 ms (67 MB/s) | 2.48 s (1.7 MB/s) | 10.8 ms (388 MB/s) | | 16 MiB | 12.9 s (1.3 MB/s) | 236 ms (71 MB/s) | 9.78 s (1.7 MB/s) | 42 ms (396 MB/s) | The full traffic guard, which is what a request actually waits for, is about 50 times faster. The secret detector on its own is about 230 times faster. Bodies with no secrets at all give the same picture: 1.2 MB/s before, about 70 MB/s after. We are not claiming this is the fastest scanner around. ripgrep and Hyperscan reach gigabytes per second with SIMD, and our remaining cost is mostly JSON decoding. The point is that a 16 MiB request no longer waits seconds to be checked, so there is no reason left to skip checking it. ## "The same findings": proving it A faster scanner that misses one key is worse than a slow one. Nobody notices the missed key until it is in a provider's log. So the old implementation did not go away. It stays in the test suite as an unexported reference, `scanReference`, and a differential test compares the two: the final findings and also the raw per-rule match lists before post-processing. The inputs are: - every line of the shared golden set, raw and normalised; - 6,000 random texts with planted secrets for every rule: case variants, Cyrillic keywords, the Kelvin sign and long s, mutated and truncated secrets, adjacent and overlapping candidates, invalid UTF-8, zero-width characters; - every candidate at the very start and very end of the text, and next to long runs of word characters, where the `\b` handling matters; - flooding inputs that exhaust the budget and force the fallback; - empty and very short inputs. The traffic guard's PII and bearer rules have their own differential test against a regex-only reference, on 3,000 random texts. To check that the tests can actually fail, we ran ten hand-made mutations of the fast path: off-by-one start offsets, a dropped case fold, a missing left-context byte, and so on. The tests caught eight. The other two did not change any result: one removed a narrowing that only saves work, and the other was dead code, which we then deleted. ## What this does not fix - **Adversarial input is not faster.** A body built to defeat the literal search falls back to the old full pass. It is linear but slow, as before. - **The rules are the same rules.** This change makes the scanner faster. It does not make it smarter. A regex for `password = ...` still cannot tell a real password from a placeholder. That is a separate project: Prism now runs a small local classifier in shadow mode next to the rules, to learn where they are wrong before it is allowed to decide anything. - **JSON decoding** is now the biggest cost of a full pass, and we have not touched it. ## Where this runs in Prism The traffic guard sits in front of every request Prism sends to a model provider: - **Credentials and personal data are checked in the whole body**, not in a prefix. Recording, blocking or redacting is a policy you set per direction. - **It costs milliseconds**, so large agent requests with attached files and logs are checked like small ones, and Prism does not need to skip anything to stay fast. - **It runs on your machine.** The scan happens inside Prism, before the request leaves your network. Nothing is sent anywhere to be checked. The change shipped in Prism v0.49.0. The benchmarks are in the repository: `BenchmarkProtectLargeBody` and `BenchmarkProtectLargeBodySecrets` for the traffic guard, and `BenchmarkScan` for the secret detector. ## Questions and answers #### How fast is Prism's traffic guard? About 70 MB/s for a full check of a request body (credential and personal-data rules, including JSON decoding) on one core of an Intel Core i5-13500. A 16 MiB request is checked in about a quarter of a second. Before v0.49.0 the same check ran at about 1.4 MB/s. #### Did the speed-up change what Prism detects? No. The previous implementation stays in the test suite as a reference, and a differential test checks that both return the same findings and the same raw matches on the golden set, on 6,000 random texts with planted secrets, and on edge and flooding inputs. #### What is a regex prefilter? A cheap search for literal text that every match of a regular expression must contain. The expensive regex then runs only where that text occurs. Prism derives the literals automatically from each rule's syntax tree, finds all of them in one Aho-Corasick pass, and runs each rule anchored at the positions the hits allow. #### Why does the Kelvin sign matter for case-insensitive matching? In Go's regexp, (?i)k also matches the Kelvin sign U+212A, and (?i)s matches the long s U+017F. A prefilter that only lowercases ASCII would skip text the full regex matches, so a rule could stop matching. Prism's literal set includes every case fold of each letter. #### Can someone slow the scanner down with crafted input? They can make it as slow as it was before, but not slower. A rule whose anchored attempts read more than the body length plus 64 KiB falls back to the full regex pass. Go's regexp keeps every pass linear in the input size. --- title: "Prism vs AI Gateways — Compare LLM Routers" description: "Prism compared side by side with LiteLLM, OpenRouter, Portkey and 14 more AI gateways and LLM routers: deployment, licence, pricing, routing and where each fits, with sources." url: https://prism.tm/compare/ --- COMPARE # How Prism compares. Prism is a self-hosted adaptive AI gateway. One binary runs on your Linux or macOS machine — no Docker, no database server, no root — and puts local models, paid APIs and subscription accounts under one routing and operating policy, behind one API. Every response carries its cost, every failover attempt is reported, and requests go straight from your machine to your providers, not through a Prism server, with no telemetry unless you turn it on. Prism Free costs nothing, and there is no limit on agents, keys or provider accounts. The paid editions add managed inference and Smart routing (Pro), an organization with roles (Teams) and several teams (Enterprise) in the same binary, priced per user. Agents and keys never take a seat. **Prism is not yet publicly available.** [Request access](https://prism.tm/request-access/) Product What it is Deployment Licence Pricing Prism A self-hosted adaptive AI gateway: local models, paid APIs and subscription accounts under one routing policy, behind one API you control. One binary for Linux and macOS, installed with one command, no root. Built-in backup; signed updates with automatic rollback (opt-in). Proprietary. Free needs no licence. A paid edition is a subscription bound to your Prism installation, with no licence key and no reinstall. Free: no charge, with unlimited agents, keys and provider accounts. Pro, Teams and Enterprise: a subscription per user, before tax. ## AI gateways - [LiteLLM vs Prism →](https://prism.tm/compare/litellm/) The open-source Python proxy. If you want Docker, pip and Postgres, it's there today with a very long provider list. Prism is one Go binary that also routes subscription accounts alongside your API keys. - [Bifrost vs Prism →](https://prism.tm/compare/bifrost/) Maxim AI's Go gateway. Powerful CEL routing rules, if you want to write them. Prism picks model, provider and account per request from live signals instead. - [Portkey (Prisma AIRS) vs Prism →](https://prism.tm/compare/portkey/) Now part of Palo Alto Networks. A hosted control plane priced by recorded logs. Prism runs on your machine, sends requests straight to your providers, and charges per user, not per log. - [Helicone vs Prism →](https://prism.tm/compare/helicone/) Observability first. Self-hosting means running PostgreSQL, ClickHouse and MinIO. Prism is one binary. - [Requesty vs Prism →](https://prism.tm/compare/requesty/) A managed gateway you can't self-host, with a margin on pay-as-you-go model cost. Prism adds nothing to provider prices. - [LLM Gateway vs Prism →](https://prism.tm/compare/llm-gateway/) Open core with a fee on credit top-ups and custom-provider features behind Enterprise. Local models in Prism are free, even in the Free edition. ## Routing and learning - [TensorZero vs Prism →](https://prism.tm/compare/tensorzero/) Archived in 2026. Its evaluations and A/B testing are still worth reading; for a maintained gateway, see Prism. - [Not Diamond vs Prism →](https://prism.tm/compare/not-diamond/) Routing decisions from Not Diamond's cloud, billed per token routed. Prism decides on your machine, with no routing fee. - [vLLM Semantic Router vs Prism →](https://prism.tm/compare/vllm-semantic-router/) A semantic routing layer for Docker, Helm and Envoy. Prism is a whole gateway: accounts, budgets, console. - [Sakana Fugu vs Prism →](https://prism.tm/compare/sakana-fugu/) A hosted orchestration model. A different kind of product — and a possible Prism upstream. ## Subscriptions and multiple accounts - [CLIProxyAPI vs Prism →](https://prism.tm/compare/cliproxyapi/) The MIT-licensed proxy Prism learned from. Prism adds adaptive account choice, failover with reasons and separated cost accounting. - [9Router vs Prism →](https://prism.tm/compare/9router/) The npm router Prism re-implemented parts of in Go. Prism adds teams and one-binary deployment. - [OmniRoute vs Prism →](https://prism.tm/compare/omniroute/) A very long provider list and many OAuth providers. Prism keeps subscription value apart from API spend, not counted as zero. ## Platforms - [OpenRouter vs Prism →](https://prism.tm/compare/openrouter/) One account for hundreds of models, with a platform fee on credits. Prism adds nothing to provider prices — and can still use OpenRouter as an upstream. - [Cloudflare AI Gateway vs Prism →](https://prism.tm/compare/cloudflare-ai-gateway/) Routing on Cloudflare's network, with payload logging on by default. Prism's journal stores no prompt bodies. - [Kong AI Gateway vs Prism →](https://prism.tm/compare/kong-ai-gateway/) AI traffic on Kong's platform, billed per proxied model on Konnect Plus. Prism Free is the whole gateway in one free binary. - [Vercel AI Gateway vs Prism →](https://prism.tm/compare/vercel-ai-gateway/) Prepaid credits at list price, but budgets that don't count BYOK spend by default. Prism budgets count spend on your own keys. ## Prism and other products: questions General questions about setup, cost, privacy and editions are in the [Prism FAQ](https://prism.tm/faq/). ### Pricing and cost #### Is there a free tier? Yes. Prism Free costs nothing, and it places no limit on your agents, application keys or provider accounts. The paid editions (Pro, Teams and Enterprise) are priced per user, before tax; agents and keys never take a seat. The paid editions are not on sale yet. #### Does Prism charge anything on top of what I pay providers? No. Prism adds nothing to provider prices. You pay your providers directly; Prism's own pricing is a free edition and paid editions priced per user, never a percentage of your usage. Hosted marketplaces take a platform fee on credit purchases, and managed routers add a margin to pay-as-you-go model cost; Prism does neither. #### How does Prism count the cost of subscription traffic? Separately from API spend. Prism records the cost of every request and reports metered API spend apart from subscription value, which is what your subscription traffic would have cost at API prices. Some community routers show all traffic at estimated API prices or count subscription traffic as zero; Prism does neither. #### Is Prism priced by logs or usage? No. Prism's journal stores no prompt bodies, and there is no per-log or per-token billing. Hosted platforms that price by recorded logs charge you more the more you observe; Prism's observability costs nothing extra. ### Accounts and routing #### Can I connect several accounts of the same service? Yes, for subscription accounts: several per service, chosen per request. API keys are one per provider. Prism picks model, provider and account together for each request, from your policy and live signals, so you do not switch accounts by hand. #### Can I bring accounts from CLIProxyAPI? Yes. Prism imports CLIProxyAPI's typed auth files and keeps an account only after the provider accepts it. Codex files are imported by default. Some providers rotate credentials, so the original tool usually has to sign in again. #### Does Prism decide routing in a cloud, like Not Diamond? No. Prism decides in the process serving the request, on your machine. Learned routers that fetch every recommendation from a cloud service add a network round trip, send data about your requests outside your machine, and can charge per token routed. By default Prism does none of the three. ### Prism and other products #### How is Prism different from OpenRouter? OpenRouter is a hosted marketplace: one account for hundreds of models, nothing to install — and a platform fee on credit purchases, with requests passing through its cloud. Prism is a gateway on your machine: no fee on provider usage, keys and tokens stay with you, and local models, paid APIs and subscription accounts all route under one policy. The two also work together: Prism can use OpenRouter as an upstream and fail over between direct routes and it. #### LiteLLM or Bifrost — why Prism? All three are gateways. LiteLLM is the open-source Python proxy with a very long provider list; Bifrost is an open-core Go gateway with CEL routing rules. Both are solid products you can deploy today. Prism's difference is what it routes across: subscription accounts chosen per request and local runtimes under the same policy as paid APIs, in one binary with the console and storage built in. If you want open source above all, choose LiteLLM or Bifrost (both keep some enterprise features paid); Prism is proprietary. #### How does Prism compare with CLI proxies like CLIProxyAPI, 9Router or OmniRoute? They share a starting point — putting subscription accounts behind one local endpoint — and Prism credits them openly: its subscription-account support is modelled on CLIProxyAPI's published protocol work, parts are a Go re-implementation of 9Router's behaviour, and one account kind is a port of an OmniRoute integration, all under MIT licences with attribution. Prism adds what a gateway needs beyond the proxy: per-request account choice from live signals, failover with reasons, separated cost accounting, passkey sign-in, an organization with teams and roles in Prism Teams, and one-binary operation. #### Can Prism use Fugu or OpenRouter as an upstream? Yes. OpenRouter is a built-in Prism provider, and Fugu can be reached directly with a Sakana key or through OpenRouter. With several routes connected, Prism fails over between them and reports which one served the request. Not Diamond is different: it recommends a model rather than serving one, so it does not plug in as an upstream. #### Does Prism have SSO and SCIM like the big platforms? Not yet. SSO is under evaluation; SCIM is not available. Platforms aimed at large organizations ship these today — that is a real reason to choose them if centralized identity is a hard requirement. #### What does Prism not do? Prism has no response cache (exact or semantic); it keeps Claude prompt caches warm instead. There are no prompt-level logs or prompt management like Helicone's, no SSO or SCIM yet, and no content moderation or prompt-injection detection. Prism is not an MCP gateway for third-party tools. OpenTelemetry export is not built in; a plugin package adds it. Learning from verified task outcomes is planned, not shipped. Facts about other products were checked against their official pages on the date shown on each comparison page. Product names are trademarks of their owners; Prism is not affiliated with any product listed here. --- title: "9Router vs Prism — AI gateway comparison" description: "9Router and Prism compared: deployment, licence, pricing, routing, failover, subscription accounts, local models and more, with sources." url: https://prism.tm/compare/9router/ --- [COMPARE](https://prism.tm/compare/) | CHECKED 12 NOVEMBER 2026 # 9Router vs Prism. 9Router is an open-source local router by decolua that puts subscription accounts and low-cost and free providers behind one OpenAI-compatible endpoint for coding tools. Prism is a self-hosted adaptive AI gateway — and parts of Prism's subscription-account support and provider handling are an independent Go re-implementation of 9Router's behaviour (MIT licence, credited in Prism's third-party notices). **Prism is not yet publicly available.** In the table, opt-in means off by default; in development and planned mean not available yet. [Request access](https://prism.tm/request-access/) ## Why teams choose Prism over 9Router - **Account choice inside every request** Prism picks model, provider and account per request from capability, health, quota, funds and cost, and reports every attempt. 9Router routes within the model combos you define. - **Failover across subscription accounts** Several accounts per service; when one hits an error, a rate limit or its quota, Prism moves to the next eligible account and reports why. - **API spend and subscription value, kept apart** 9Router shows all traffic at estimated API prices; Prism keeps the two apart, with budgets that warn, downgrade, go local or reject. - **Local, paid and subscription under one policy** Add a URL for Ollama, llama.cpp, vLLM or LM Studio and Prism finds the models. Private requests stay local. - **One Go binary, no cloud sync or tunnel** 9Router runs on Node.js with optional cloud sync and Cloudflare-tunnel remote access. Prism is one Go binary; requests go straight to your providers, and telemetry is off by default. Where 9Router fits: an MIT-licensed router you can install today with npm or Docker, focused on chaining subscription, low-cost and free tiers for coding tools. 9Router Prism Runtime Node.js with SQLite; npm/Docker[source](https://github.com/decolua/9router) Single Go binary, storage built in Routing User-defined model combos; round-robin/priority[source](https://github.com/decolua/9router) Adaptive per-request selection from live signals Cost accounting All traffic at estimated API prices[source](https://github.com/decolua/9router) API spend and subscription value kept apart Teams SSO sign-in and scoped API keys; no organizations or roles[source 1](https://github.com/decolua/9router) [source 2](https://github.com/decolua/9router/blob/master/CHANGELOG.md) Free edition at no charge; Prism Teams adds an organization and roles Pricing Free; you pay providers[source 1](https://github.com/decolua/9router) [source 2](https://github.com/decolua/9router/blob/master/LICENSE) Free edition at no charge; paid editions priced per user Model servers Routes to model servers you run (Ollama, llama-server, vLLM); does not start or stop them[source 1](https://github.com/decolua/9router) [source 2](https://raw.githubusercontent.com/decolua/9router/master/README.md) [source 3](https://github.com/decolua/9router/blob/master/open-sse/providers/registry/ollama-local.js) Starts model servers on your own or cloud GPU machines when a request needs them, checks they are ready, stops them when idle and can power the machines off (Pro and higher editions) Prism notes: subscription operation is tested against test servers; sign-in to Claude, Gemini, Cursor and Grok CLI subscriptions is closed by default because these providers' terms forbid third-party programs, and other providers' terms may also restrict third-party gateway use — Prism shows a risk notice before every sign-in. More questions: [Prism FAQ](https://prism.tm/faq/) · [Prism and other products](https://prism.tm/compare/#faq) ## Sources 9Router facts were checked on 12 November 2026 against official pages from decolua and contributors; follow them for current details. Prism facts come from Prism's documentation as of 12 November 2026. 9Router is a trademark of its owner; Prism is not affiliated with it. - [github.com/decolua/9router](https://github.com/decolua/9router) - [github.com/decolua/9router/blob/master/CHANGELOG.md](https://github.com/decolua/9router/blob/master/CHANGELOG.md) - [github.com/decolua/9router/blob/master/LICENSE](https://github.com/decolua/9router/blob/master/LICENSE) - [raw.githubusercontent.com/decolua/9router/master/README.md](https://raw.githubusercontent.com/decolua/9router/master/README.md) - [github.com/decolua/9router/blob/master/open-sse/providers/registry/ollama-local.js](https://github.com/decolua/9router/blob/master/open-sse/providers/registry/ollama-local.js) - [9router.com/](https://9router.com/) Want to try Prism with your own providers? [Request access](https://prism.tm/request-access/?topic=free) --- title: "Bifrost vs Prism — AI gateway comparison" description: "Bifrost and Prism compared: deployment, licence, pricing, routing, failover, subscription accounts, local models and more, with sources." url: https://prism.tm/compare/bifrost/ --- [COMPARE](https://prism.tm/compare/) | CHECKED 12 NOVEMBER 2026 # Bifrost vs Prism. Bifrost is Maxim AI's open-core Go gateway for LLM, MCP and agent traffic: Docker, Kubernetes or a single binary, with weighted load balancing, CEL routing rules and a complexity router — adaptive load balancing in Enterprise. Prism is a self-hosted adaptive AI gateway that picks model, provider and account for every request from live signals, so there are no routing rules to write. **Prism is not yet publicly available.** In the table, opt-in means off by default; in development and planned mean not available yet. [Request access](https://prism.tm/request-access/) ## Why teams choose Prism over Bifrost - **No routing rules to write** Prism picks model, provider and account per request from capability, health, quota, remaining funds and cost. Bifrost routes by weights, CEL rules you write and a complexity router. - **Accounts chosen per request** Many kinds of subscription account, several each; when one hits an error, a rate limit or its quota, Prism moves to the next eligible account and reports why. - **API spend and subscription value, kept apart** Every response carries its cost; budgets warn, downgrade, go local or reject. - **Local, paid and subscription under one policy** Ollama, llama.cpp, vLLM and LM Studio found from a URL; private requests never fall back to cloud. - **From personal use to organization, in place** Prism Free costs nothing; Prism Teams adds an organization with roles and Enterprise several teams, without reinstalling. - **Starts and stops your GPU machines** Prism starts the model server on your own or a cloud GPU machine when a request needs it, stops it when idle, and can power the machine on and off (Pro and higher editions). Support for Nebius is built in; Amazon EC2, Google Compute Engine and other clouds are added with plugin packages. Where Bifrost fits: an open-core Go gateway you can deploy today, with an MCP gateway, response caching, and SSO, RBAC and audit logs in Enterprise. Bifrost Prism Routing Weights, CEL rules, complexity router; adaptive balancing in Enterprise[source 1](https://docs.getbifrost.ai/features/governance/routing) [source 2](https://docs.getbifrost.ai/providers/routing-rules) [source 3](https://docs.getbifrost.ai/features/complexity-router) [source 4](https://www.getmaxim.ai/pricing) Adaptive per-request selection from live signals; no rules to maintain Subscription accounts Claude Code and Codex sign-in; GitHub Copilot[source 1](https://www.getmaxim.ai/bifrost/guides/claude-code/claude-code-gateway) [source 2](https://docs.getbifrost.ai/providers/supported-providers/github-copilot) [source 3](https://docs.getbifrost.ai/cli-agents/codex-cli) Many kinds, several each, failover between accounts Caching Exact and semantic caching with a vector store[source](https://docs.getbifrost.ai/features/semantic-caching) No response cache; keeps Claude prompt caches warm and reports the cache-hit share Observability Request logs, OpenTelemetry, Prometheus[source 1](https://docs.getbifrost.ai/features/observability/default) [source 2](https://www.getmaxim.ai/pricing) Journal without prompt bodies, CSV export, Prometheus; OpenTelemetry export through a plugin package Pricing Core free; Enterprise custom[source](https://www.getmaxim.ai/pricing) Free edition at no charge; paid editions priced per user Model servers Routes to model servers you run; does not start or stop them[source 1](https://docs.getbifrost.ai/providers/supported-providers/vllm) [source 2](https://docs.getbifrost.ai/providers/supported-providers/ollama) [source 3](https://docs.getbifrost.ai/quickstart/gateway/provider-configuration) Starts model servers on your own or cloud GPU machines when a request needs them, checks they are ready, stops them when idle and can power the machines off (Pro and higher editions) Prism notes: subscription operation is tested against test servers; sign-in to Claude, Gemini, Cursor and Grok CLI subscriptions is closed by default because these providers' terms forbid third-party programs, and other providers' terms may also restrict third-party gateway use — Prism shows a risk notice before every sign-in. More questions: [Prism FAQ](https://prism.tm/faq/) · [Prism and other products](https://prism.tm/compare/#faq) ## Sources Bifrost facts were checked on 12 November 2026 against official pages from Maxim AI; follow them for current details. Prism facts come from Prism's documentation as of 12 November 2026. Bifrost is a trademark of its owner; Prism is not affiliated with it. - [docs.getbifrost.ai/features/governance/routing](https://docs.getbifrost.ai/features/governance/routing) - [docs.getbifrost.ai/providers/routing-rules](https://docs.getbifrost.ai/providers/routing-rules) - [docs.getbifrost.ai/features/complexity-router](https://docs.getbifrost.ai/features/complexity-router) - [www.getmaxim.ai/pricing](https://www.getmaxim.ai/pricing) - [www.getmaxim.ai/bifrost/guides/claude-code/claude-code-gateway](https://www.getmaxim.ai/bifrost/guides/claude-code/claude-code-gateway) - [docs.getbifrost.ai/providers/supported-providers/github-copilot](https://docs.getbifrost.ai/providers/supported-providers/github-copilot) - [docs.getbifrost.ai/cli-agents/codex-cli](https://docs.getbifrost.ai/cli-agents/codex-cli) - [docs.getbifrost.ai/features/semantic-caching](https://docs.getbifrost.ai/features/semantic-caching) - [docs.getbifrost.ai/features/observability/default](https://docs.getbifrost.ai/features/observability/default) - [docs.getbifrost.ai/providers/supported-providers/vllm](https://docs.getbifrost.ai/providers/supported-providers/vllm) - [docs.getbifrost.ai/providers/supported-providers/ollama](https://docs.getbifrost.ai/providers/supported-providers/ollama) - [docs.getbifrost.ai/quickstart/gateway/provider-configuration](https://docs.getbifrost.ai/quickstart/gateway/provider-configuration) - [www.getmaxim.ai/llm-info](https://www.getmaxim.ai/llm-info) - [github.com/maximhq/bifrost](https://github.com/maximhq/bifrost) - [docs.getbifrost.ai/mcp/overview](https://docs.getbifrost.ai/mcp/overview) Want to try Prism with your own providers? [Request access](https://prism.tm/request-access/?topic=free) --- title: "CLIProxyAPI vs Prism — AI gateway comparison" description: "CLIProxyAPI and Prism compared: deployment, licence, pricing, routing, failover, subscription accounts, local models and more, with sources." url: https://prism.tm/compare/cliproxyapi/ --- [COMPARE](https://prism.tm/compare/) | CHECKED 12 NOVEMBER 2026 # CLIProxyAPI vs Prism. CLIProxyAPI is an open-source Go proxy that exposes CLI subscription accounts and API keys through OpenAI-, Gemini-, Claude-, Codex- and Grok-compatible APIs. Prism is a self-hosted adaptive AI gateway that grew out of the same problem — and out of CLIProxyAPI's work. Prism owes a real debt to CLIProxyAPI: Prism's subscription-account support is modelled on its published protocol work, independently implemented with no source copied. Prism imports its Codex auth files and uses Router-For.ME's Claude model list for Claude subscription accounts; CLIProxyAPI is MIT-licensed, and both are credited. We thank their maintainers. **Prism is not yet publicly available.** In the table, opt-in means off by default; in development and planned mean not available yet. [Request access](https://prism.tm/request-access/) ## Why teams choose Prism over CLIProxyAPI - **The account is chosen per request** Prism picks model, provider and account together from your policy and live signals: capability, health, quota, remaining funds and cost. CLIProxyAPI chooses a provider by model name, alias or prefix, then round-robins, weights or fill-first across credentials. - **Failover across accounts, with reasons** Prism supports many kinds of subscription account, several each; when one hits an error, a rate limit or its quota, Prism moves to the next eligible account and reports why. - **API spend and subscription value apart** Every request returns its cost; budgets warn, downgrade, go local or reject. CLIProxyAPI has no built-in budgets. - **Local, paid and subscription models together** Ollama, llama.cpp, vLLM and LM Studio are found from a URL and routed by one policy. Private requests never fall back to cloud. - **From one person to an organization** Prism Free costs nothing and has passkey sign-in; Prism Teams adds an organization with roles and Enterprise several teams. CLIProxyAPI has client API keys in a config file. Where CLIProxyAPI fits: an MIT-licensed proxy focused on subscription accounts that you can deploy today — including on Windows — and extend with a Go SDK or plugins. You can bring your CLIProxyAPI Codex auth files to Prism. CLIProxyAPI Prism Licence MIT, source on GitHub[source 1](https://github.com/router-for-me/CLIProxyAPI/blob/main/LICENSE) [source 2](https://github.com/router-for-me/CLIProxyAPI) Proprietary; Free needs no licence Routing Name/alias/prefix + round-robin, weights, fill-first[source 1](https://raw.githubusercontent.com/router-for-me/CLIProxyAPI/main/config.example.yaml) [source 2](https://help.router-for.me/configuration/options.html) Adaptive per-request selection from live signals Cost controls No built-in budgets; optional usage plugin[source 1](https://github.com/router-for-me/CLIProxyAPI) [source 2](https://help.router-for.me/configuration/options.html) [source 3](https://help.router-for.me/plugin/usage-plugin.html) [source 4](https://github.com/router-for-me/CLIProxyAPIHome) [source 5](https://raw.githubusercontent.com/router-for-me/CLIProxyAPI-Plugins-Store/main/registry.json) Per-request cost, totals, budgets (opt-in) Teams API keys in config[source](https://raw.githubusercontent.com/router-for-me/CLIProxyAPI/main/config.example.yaml) Free edition with passkeys; Prism Teams adds an organization and roles Local models Not documented[source 1](https://github.com/router-for-me/CLIProxyAPI) [source 2](https://raw.githubusercontent.com/router-for-me/CLIProxyAPI/main/config.example.yaml) Ollama, llama.cpp, vLLM, LM Studio from a URL Prism notes: subscription operation is tested against test servers (live accounts not yet confirmed); sign-in to Claude, Gemini, Cursor and Grok CLI subscriptions is closed by default because these providers' terms forbid third-party programs, and other providers' terms may also restrict third-party gateway use — Prism shows a risk notice before every sign-in. More questions: [Prism FAQ](https://prism.tm/faq/) · [Prism and other products](https://prism.tm/compare/#faq) ## Sources CLIProxyAPI facts were checked on 12 November 2026 against official pages from Router-For.ME; follow them for current details. Prism facts come from Prism's documentation as of 12 November 2026. CLIProxyAPI is a trademark of its owner; Prism is not affiliated with it. - [github.com/router-for-me/CLIProxyAPI/blob/main/LICENSE](https://github.com/router-for-me/CLIProxyAPI/blob/main/LICENSE) - [github.com/router-for-me/CLIProxyAPI](https://github.com/router-for-me/CLIProxyAPI) - [raw.githubusercontent.com/router-for-me/CLIProxyAPI/main/config.example.yaml](https://raw.githubusercontent.com/router-for-me/CLIProxyAPI/main/config.example.yaml) - [help.router-for.me/configuration/options.html](https://help.router-for.me/configuration/options.html) - [help.router-for.me/plugin/usage-plugin.html](https://help.router-for.me/plugin/usage-plugin.html) - [github.com/router-for-me/CLIProxyAPIHome](https://github.com/router-for-me/CLIProxyAPIHome) - [raw.githubusercontent.com/router-for-me/CLIProxyAPI-Plugins-Store/main/registry.json](https://raw.githubusercontent.com/router-for-me/CLIProxyAPI-Plugins-Store/main/registry.json) - [help.router-for.me/introduction/quick-start.html](https://help.router-for.me/introduction/quick-start.html) Want to try Prism with your own providers? [Request access](https://prism.tm/request-access/?topic=free) --- title: "Cloudflare AI Gateway vs Prism — AI gateway comparison" description: "Cloudflare AI Gateway and Prism compared: deployment, licence, pricing, routing, failover, subscription accounts, local models and more, with sources." url: https://prism.tm/compare/cloudflare-ai-gateway/ --- [COMPARE](https://prism.tm/compare/) | CHECKED 3 OCTOBER 2026 # Cloudflare AI Gateway vs Prism. Cloudflare AI Gateway is a managed gateway on Cloudflare's network between your apps and AI providers: routing, caching, observability and unified billing. Prism is a self-hosted adaptive AI gateway that runs on your machine. **Prism is not yet publicly available.** In the table, opt-in means off by default; in development and planned mean not available yet. [Request access](https://prism.tm/request-access/) ## Why teams choose Prism over Cloudflare AI Gateway - **Requests go straight to your providers** Prism runs on your machine. Cloudflare proxies requests through its network and logs payloads by default (you can turn logging off). Prism's journal stores no prompt bodies. - **Subscription accounts, chosen per request** Prism supports many kinds of subscription account, several each, with failover between accounts. Cloudflare documents no subscription sign-in; its BYOK picks a key per request by an alias header. - **Local models under the same policy** Add a URL for Ollama, llama.cpp, vLLM or LM Studio; private requests stay local. Cloudflare reaches self-hosted models only as custom providers at an HTTPS base URL; HTTP is not supported. - **API spend and subscription value apart** Every response carries its cost; budgets warn, downgrade, go local or reject. Cloudflare's Unified Billing adds a percentage on credits. - **Failover with reasons** Prism moves to the next eligible provider or account and reports every attempt and its reason. Where Cloudflare AI Gateway fits: a managed gateway with nothing to install, for teams already using Cloudflare. Core features are free; Logs (for new customers), Guardrails and Logpush are billed. Cloudflare AI Gateway Prism Deployment Managed service on Cloudflare's network[source](https://developers.cloudflare.com/ai-gateway/get-started/) One self-hosted binary Pricing Core free; Logs (new customers)/Guardrails/Logpush billed; a fee on Unified Billing credits[source](https://developers.cloudflare.com/ai-gateway/reference/pricing/) Free edition at no charge; paid editions priced per user Logging On by default, including payloads; can be turned off[source](https://developers.cloudflare.com/ai-gateway/observability/logging/) Journal stores no prompt bodies Local models Custom HTTPS providers only[source](https://developers.cloudflare.com/ai-gateway/configuration/custom-providers/) Ollama, llama.cpp, vLLM, LM Studio from a URL; private stays local Subscription accounts None documented[source](https://developers.cloudflare.com/ai-gateway/configuration/bring-your-own-keys/) Many kinds, several each, failover between accounts Prism notes: subscription operation is tested against test servers; sign-in to Claude, Gemini, Cursor and Grok CLI subscriptions is closed by default because these providers' terms forbid third-party programs, and other providers' terms may also restrict third-party gateway use — Prism shows a risk notice before every sign-in. More questions: [Prism FAQ](https://prism.tm/faq/) · [Prism and other products](https://prism.tm/compare/#faq) ## Sources Cloudflare AI Gateway facts were checked on 3 October 2026 against official pages from Cloudflare; follow them for current details. Prism facts come from Prism's documentation as of 12 November 2026. Cloudflare AI Gateway is a trademark of its owner; Prism is not affiliated with it. - [developers.cloudflare.com/ai-gateway/get-started/](https://developers.cloudflare.com/ai-gateway/get-started/) - [developers.cloudflare.com/ai-gateway/reference/pricing/](https://developers.cloudflare.com/ai-gateway/reference/pricing/) - [developers.cloudflare.com/ai-gateway/observability/logging/](https://developers.cloudflare.com/ai-gateway/observability/logging/) - [developers.cloudflare.com/ai-gateway/configuration/custom-providers/](https://developers.cloudflare.com/ai-gateway/configuration/custom-providers/) - [developers.cloudflare.com/ai-gateway/configuration/bring-your-own-keys/](https://developers.cloudflare.com/ai-gateway/configuration/bring-your-own-keys/) - [www.cloudflare.com/products/ai-gateway/](https://www.cloudflare.com/products/ai-gateway/) - [developers.cloudflare.com/ai-gateway/features/unified-billing/](https://developers.cloudflare.com/ai-gateway/features/unified-billing/) Want to try Prism with your own providers? [Request access](https://prism.tm/request-access/?topic=free) --- title: "Helicone vs Prism — AI gateway comparison" description: "Helicone and Prism compared: deployment, licence, pricing, routing, failover, subscription accounts, local models and more, with sources." url: https://prism.tm/compare/helicone/ --- [COMPARE](https://prism.tm/compare/) | CHECKED 12 NOVEMBER 2026 # Helicone vs Prism. Helicone is an open-source LLM observability platform with an AI gateway. Its hosted service takes no new sign-ups. Prism is a self-hosted adaptive AI gateway in active development, in one Go binary. **Prism is not yet publicly available.** In the table, opt-in means off by default; in development and planned mean not available yet. [Request access](https://prism.tm/request-access/) ## Why teams choose Prism over Helicone - **Picks the account per request** Prism picks model, provider and account from capability, health, quota and cost, and fails over to the next eligible account with the reason. Helicone's gateway routes cheapest provider first. - **Gateway, keys and data stay yours** Requests go straight to your providers and the journal stores no prompt bodies. Helicone's cloud proxy mode passes requests through Helicone; self-hosting avoids this. - **API spend and subscription value kept apart** Each request returns its cost; budgets warn, downgrade, go local or reject. - **Local, paid and subscription under one policy** Many kinds of supported subscription account, plus local runtimes, all under the same rules; private requests never fall back to cloud. - **One binary with console and storage built in** Prism is one Go binary. Self-hosted Helicone runs PostgreSQL, ClickHouse and MinIO, plus its AI Gateway for proxying. Where Helicone fits: an observability platform with request logs, sessions, analytics and prompt management, as a self-hosted stack. For prompt-level logs and prompt management, Helicone goes further than Prism. Helicone Prism Product status No longer part of Mintlify[source 1](https://www.helicone.ai/) [source 2](https://us.helicone.ai/signin) In active development; not yet publicly available Deployment Managed cloud (no new sign-ups); self-host with Docker or Helm[source 1](https://docs.helicone.ai/getting-started/self-host/overview) [source 2](https://www.helicone.ai/pricing) [source 3](https://us.helicone.ai/signup) One binary, one command, no root Self-hosted runtime PostgreSQL, ClickHouse, MinIO + AI Gateway[source 1](https://docs.helicone.ai/getting-started/self-host/overview) [source 2](https://docs.helicone.ai/getting-started/self-host/docker) Single Go binary, storage built in Routing Cheapest first; latency/weighted/cost in the Rust gateway (beta)[source 1](https://docs.helicone.ai/gateway/provider-routing) [source 2](https://github.com/Helicone/ai-gateway) Adaptive per-request selection from live signals Subscription accounts None documented[source 1](https://docs.helicone.ai/gateway/overview) [source 2](https://docs.helicone.ai/gateway/provider-routing) Many kinds, several each, failover between accounts Pricing Free tier; paid plans plus usage[source](https://www.helicone.ai/pricing) Free edition at no charge; paid editions priced per user Prism notes: subscription operation is tested against test servers; sign-in to Claude, Gemini, Cursor and Grok CLI subscriptions is closed by default because these providers' terms forbid third-party programs, and other providers' terms may also restrict third-party gateway use — Prism shows a risk notice before every sign-in. More questions: [Prism FAQ](https://prism.tm/faq/) · [Prism and other products](https://prism.tm/compare/#faq) ## Sources Helicone facts were checked on 12 November 2026 against official pages from Helicone; follow them for current details. Prism facts come from Prism's documentation as of 12 November 2026. Helicone is a trademark of its owner; Prism is not affiliated with it. - [www.helicone.ai/](https://www.helicone.ai/) - [us.helicone.ai/signin](https://us.helicone.ai/signin) - [docs.helicone.ai/getting-started/self-host/overview](https://docs.helicone.ai/getting-started/self-host/overview) - [www.helicone.ai/pricing](https://www.helicone.ai/pricing) - [us.helicone.ai/signup](https://us.helicone.ai/signup) - [docs.helicone.ai/getting-started/self-host/docker](https://docs.helicone.ai/getting-started/self-host/docker) - [docs.helicone.ai/gateway/provider-routing](https://docs.helicone.ai/gateway/provider-routing) - [github.com/Helicone/ai-gateway](https://github.com/Helicone/ai-gateway) - [docs.helicone.ai/gateway/overview](https://docs.helicone.ai/gateway/overview) - [github.com/Helicone/helicone](https://github.com/Helicone/helicone) - [docs.helicone.ai/references/proxy-vs-async](https://docs.helicone.ai/references/proxy-vs-async) - [docs.helicone.ai/references/data-autonomy](https://docs.helicone.ai/references/data-autonomy) Want to try Prism with your own providers? [Request access](https://prism.tm/request-access/?topic=free) --- title: "Kong AI Gateway vs Prism — AI gateway comparison" description: "Kong AI Gateway and Prism compared: deployment, licence, pricing, routing, failover, subscription accounts, local models and more, with sources." url: https://prism.tm/compare/kong-ai-gateway/ --- [COMPARE](https://prism.tm/compare/) | CHECKED 12 NOVEMBER 2026 # Kong AI Gateway vs Prism. Kong AI Gateway manages LLM, MCP and agent-to-agent traffic, run through its own control plane in Kong's Konnect or as plugins on self-hosted Kong Gateway. Prism is a self-hosted adaptive AI gateway in one Go binary, with no control plane and no plugins to buy. **Prism is not yet publicly available.** In the table, opt-in means off by default; in development and planned mean not available yet. [Request access](https://prism.tm/request-access/) ## Why teams choose Prism over Kong AI Gateway - **A whole gateway in one binary** Console, storage and routing built in; installed with one command, no root. Konnect Plus bills monthly per LLM proxied, and several of Kong's AI features — semantic load balancing, circuit breaker, semantic cache, advanced guardrails, MCP proxy — are paid plugins. - **Subscription accounts, chosen per request** Many kinds of supported subscription account, several each, with failover between accounts. Kong documents no subscription sign-in. - **API spend kept apart from subscriptions** Every response carries its cost; budgets warn, downgrade, go local or reject. - **Local models under the same policy** Add a URL for Ollama, llama.cpp, vLLM or LM Studio and Prism finds the models. Private requests stay local, never falling back to cloud. - **Failover with reasons** Moves on errors, rate limits, exhausted funds or quota, retries recovered providers by itself, and reports every attempt and its reason. Where Kong AI Gateway fits: teams already running Kong Gateway or Konnect who want AI traffic under the same API management platform, available today. Kong AI Gateway Prism Deployment Konnect control plane (Kong-run) + your data planes; or self-hosted Kong + plugins[source 1](https://developer.konghq.com/ai-gateway/architecture/) [source 2](https://developer.konghq.com/ai-gateway/) One binary, your machine Pricing Konnect Plus subscription plus usage, billed per LLM proxied; Enterprise custom[source](https://konghq.com/pricing) Free edition at no charge; paid editions priced per user Routing Round-robin, latency, usage, semantic, priority (paid plugin)[source 1](https://developer.konghq.com/ai-gateway/load-balancing/) [source 2](https://developer.konghq.com/plugins/ai-proxy-advanced/) Adaptive per-request selection from live signals AI features Many behind paid plugins[source 1](https://github.com/Kong/kong) [source 2](https://developer.konghq.com/plugins/ai-proxy-advanced/) [source 3](https://developer.konghq.com/plugins/ai-semantic-cache/) [source 4](https://developer.konghq.com/plugins/ai-semantic-prompt-guard/) [source 5](https://developer.konghq.com/plugins/ai-sanitizer/) [source 6](https://developer.konghq.com/plugins/ai-mcp-proxy/) Built in; no plugins to buy (team features are in Prism Teams) Subscription accounts None documented[source 1](https://developer.konghq.com/plugins/ai-proxy/) [source 2](https://developer.konghq.com/ai-gateway/ai-providers/) Many kinds, several each, failover between accounts Model servers Routes to model servers you run (Ollama, vLLM via upstream URL); does not start or stop them[source 1](https://developer.konghq.com/ai-gateway/ai-providers/vllm/) [source 2](https://developer.konghq.com/ai-gateway/ai-providers/ollama/) [source 3](https://konghq.com/blog/product-releases/kong-operator-2-3) Starts model servers on your own or cloud GPU machines when a request needs them, checks they are ready, stops them when idle and can power the machines off (Pro and higher editions) Prism notes: subscription operation is tested against test servers; sign-in to Claude, Gemini, Cursor and Grok CLI subscriptions is closed by default because these providers' terms forbid third-party programs, and other providers' terms may also restrict third-party gateway use — Prism shows a risk notice before every sign-in. More questions: [Prism FAQ](https://prism.tm/faq/) · [Prism and other products](https://prism.tm/compare/#faq) ## Sources Kong AI Gateway facts were checked on 12 November 2026 against official pages from Kong Inc.; follow them for current details. Prism facts come from Prism's documentation as of 12 November 2026. Kong AI Gateway is a trademark of its owner; Prism is not affiliated with it. - [developer.konghq.com/ai-gateway/architecture/](https://developer.konghq.com/ai-gateway/architecture/) - [developer.konghq.com/ai-gateway/](https://developer.konghq.com/ai-gateway/) - [konghq.com/pricing](https://konghq.com/pricing) - [developer.konghq.com/ai-gateway/load-balancing/](https://developer.konghq.com/ai-gateway/load-balancing/) - [developer.konghq.com/plugins/ai-proxy-advanced/](https://developer.konghq.com/plugins/ai-proxy-advanced/) - [github.com/Kong/kong](https://github.com/Kong/kong) - [developer.konghq.com/plugins/ai-semantic-cache/](https://developer.konghq.com/plugins/ai-semantic-cache/) - [developer.konghq.com/plugins/ai-semantic-prompt-guard/](https://developer.konghq.com/plugins/ai-semantic-prompt-guard/) - [developer.konghq.com/plugins/ai-sanitizer/](https://developer.konghq.com/plugins/ai-sanitizer/) - [developer.konghq.com/plugins/ai-mcp-proxy/](https://developer.konghq.com/plugins/ai-mcp-proxy/) - [developer.konghq.com/plugins/ai-proxy/](https://developer.konghq.com/plugins/ai-proxy/) - [developer.konghq.com/ai-gateway/ai-providers/](https://developer.konghq.com/ai-gateway/ai-providers/) - [developer.konghq.com/ai-gateway/ai-providers/vllm/](https://developer.konghq.com/ai-gateway/ai-providers/vllm/) - [developer.konghq.com/ai-gateway/ai-providers/ollama/](https://developer.konghq.com/ai-gateway/ai-providers/ollama/) - [konghq.com/blog/product-releases/kong-operator-2-3](https://konghq.com/blog/product-releases/kong-operator-2-3) - [developer.konghq.com/plugins/ai-prompt-guard/](https://developer.konghq.com/plugins/ai-prompt-guard/) - [developer.konghq.com/plugins/ai-rate-limiting-advanced/](https://developer.konghq.com/plugins/ai-rate-limiting-advanced/) Want to try Prism with your own providers? [Request access](https://prism.tm/request-access/?topic=free) --- title: "LiteLLM vs Prism — AI gateway comparison" description: "LiteLLM and Prism compared: deployment, licence, pricing, routing, failover, subscription accounts, local models and more, with sources." url: https://prism.tm/compare/litellm/ --- [COMPARE](https://prism.tm/compare/) | CHECKED 12 NOVEMBER 2026 # LiteLLM vs Prism. LiteLLM is the open-source Python gateway from BerriAI: a very long provider list behind one OpenAI-format API, deployed with Docker, pip, Helm or Terraform. Prism is a self-hosted adaptive AI gateway in one Go binary that routes local models, paid APIs and subscription accounts under one policy. Prism builds on LiteLLM's open model price catalog (MIT, by BerriAI and contributors) and can use an existing LiteLLM proxy as an upstream provider. **Prism is not yet publicly available.** In the table, opt-in means off by default; in development and planned mean not available yet. [Request access](https://prism.tm/request-access/) ## Why teams choose Prism over LiteLLM - **Subscriptions routed alongside API keys** Prism signs in to many kinds of subscription account, several accounts each, and fails over between them on errors, limits or exhausted quota. LiteLLM documents ChatGPT, Claude and GitHub Copilot subscriptions. - **API spend and subscription value, apart** Each response carries its cost, and metered API spend is reported separately from subscription value. - **Local, paid and subscription under one policy** Add a URL for Ollama, llama.cpp, vLLM or LM Studio and Prism finds the models. Private requests stay local, never falling back to cloud. - **Failover with reasons** Prism moves to the next eligible provider or account on errors, rate limits or exhausted quota, and reports every attempt and its reason. - **One binary with console and storage built in** Prism needs no Python, Docker or Postgres. LiteLLM keeps spend data in Postgres. - **Starts and stops your GPU machines** Prism starts the model server on your own or a cloud GPU machine when a request needs it, stops it when idle, and can power the machine on and off (Pro and higher editions). Support for Nebius is built in; Amazon EC2, Google Compute Engine and other clouds are added with plugin packages. Where LiteLLM fits: an open-source gateway you can deploy today, with a very long provider list and integrations for caching, guardrails and observability. LiteLLM Prism Deployment Docker, pip, Helm or Terraform[source 1](https://docs.litellm.ai/docs/enterprise) [source 2](https://www.litellm.ai/) [source 3](https://docs.litellm.ai/docs/proxy/deploy) One binary, one command, no root; built-in backup, signed updates with rollback (opt-in) Licence MIT core; enterprise features separate[source](https://github.com/BerriAI/litellm/blob/main/LICENSE) Free needs no licence; paid editions are a subscription bound to your installation, no key Pricing Free core; Enterprise custom[source](https://docs.litellm.ai/docs/enterprise) Free edition at no charge; paid editions priced per user Routing Shuffle, usage, latency, cost, least-busy; auto router in beta[source 1](https://docs.litellm.ai/docs/routing) [source 2](https://docs.litellm.ai/docs/proxy/auto_routing) [source 3](https://docs.litellm.ai/docs/auto_router/) Adaptive: capability, health, quota, funds and cost per request; selectors auto/fast/smart/cheap/local Subscription accounts ChatGPT and GitHub Copilot; Claude Code token passthrough[source 1](https://docs.litellm.ai/docs/providers/chatgpt) [source 2](https://docs.litellm.ai/docs/providers/github_copilot) [source 3](https://docs.litellm.ai/docs/tutorials/claude_code_byok) Many kinds, several each, failover between accounts Runtime Python; Postgres for keys and spend tracking[source 1](https://docs.litellm.ai/docs/enterprise) [source 2](https://docs.litellm.ai/docs/proxy/virtual_keys) [source 3](https://docs.litellm.ai/docs/proxy/users) Single Go binary, console and storage built in Model servers Routes to model servers you run; does not start or stop them on demand[source 1](https://docs.litellm.ai/docs/providers/ollama) [source 2](https://docs.litellm.ai/docs/proxy/quick_start) [source 3](https://docs.litellm.ai/docs/providers/vllm) Starts model servers on your own or cloud GPU machines when a request needs them, checks they are ready, stops them when idle and can power the machines off (Pro and higher editions) Prism notes: subscription operation is tested against test servers (live accounts not yet confirmed); sign-in to Claude, Gemini, Cursor and Grok CLI subscriptions is closed by default because these providers' terms forbid third-party programs, and using another provider's subscription through a third-party gateway may also breach its terms — Prism shows a risk notice before every sign-in. More questions: [Prism FAQ](https://prism.tm/faq/) · [Prism and other products](https://prism.tm/compare/#faq) ## Sources LiteLLM facts were checked on 12 November 2026 against official pages from BerriAI; follow them for current details. Prism facts come from Prism's documentation as of 12 November 2026. LiteLLM is a trademark of its owner; Prism is not affiliated with it. - [docs.litellm.ai/docs/enterprise](https://docs.litellm.ai/docs/enterprise) - [www.litellm.ai/](https://www.litellm.ai/) - [docs.litellm.ai/docs/proxy/deploy](https://docs.litellm.ai/docs/proxy/deploy) - [github.com/BerriAI/litellm/blob/main/LICENSE](https://github.com/BerriAI/litellm/blob/main/LICENSE) - [docs.litellm.ai/docs/routing](https://docs.litellm.ai/docs/routing) - [docs.litellm.ai/docs/proxy/auto\_routing](https://docs.litellm.ai/docs/proxy/auto_routing) - [docs.litellm.ai/docs/auto\_router/](https://docs.litellm.ai/docs/auto_router/) - [docs.litellm.ai/docs/providers/chatgpt](https://docs.litellm.ai/docs/providers/chatgpt) - [docs.litellm.ai/docs/providers/github\_copilot](https://docs.litellm.ai/docs/providers/github_copilot) - [docs.litellm.ai/docs/tutorials/claude\_code\_byok](https://docs.litellm.ai/docs/tutorials/claude_code_byok) - [docs.litellm.ai/docs/proxy/virtual\_keys](https://docs.litellm.ai/docs/proxy/virtual_keys) - [docs.litellm.ai/docs/proxy/users](https://docs.litellm.ai/docs/proxy/users) - [docs.litellm.ai/docs/providers/ollama](https://docs.litellm.ai/docs/providers/ollama) - [docs.litellm.ai/docs/proxy/quick\_start](https://docs.litellm.ai/docs/proxy/quick_start) - [docs.litellm.ai/docs/providers/vllm](https://docs.litellm.ai/docs/providers/vllm) - [docs.litellm.ai/docs/](https://docs.litellm.ai/docs/) - [docs.litellm.ai/docs/proxy/caching](https://docs.litellm.ai/docs/proxy/caching) - [docs.litellm.ai/docs/proxy/guardrails/quick\_start](https://docs.litellm.ai/docs/proxy/guardrails/quick_start) - [docs.litellm.ai/docs/proxy/logging](https://docs.litellm.ai/docs/proxy/logging) Want to try Prism with your own providers? [Request access](https://prism.tm/request-access/?topic=free) --- title: "LLM Gateway vs Prism — AI gateway comparison" description: "LLM Gateway and Prism compared: deployment, licence, pricing, routing, failover, subscription accounts, local models and more, with sources." url: https://prism.tm/compare/llm-gateway/ --- [COMPARE](https://prism.tm/compare/) | CHECKED 12 NOVEMBER 2026 # LLM Gateway vs Prism. LLM Gateway is an open-core gateway with one OpenAI-compatible API, hosted or self-hosted with Docker or Kubernetes/Helm. Prism is a self-hosted adaptive AI gateway in one Go binary. **Prism is not yet publicly available.** In the table, opt-in means off by default; in development and planned mean not available yet. [Request access](https://prism.tm/request-access/) ## Why teams choose Prism over LLM Gateway - **Subscription accounts, chosen per request** Prism supports many kinds of subscription account, several each, with failover between accounts. LLM Gateway documents no subscription sign-in (it rotates between several of your own API keys for one provider). - **Local models in Prism Free** Add a URL and Prism finds local models; private requests stay local, never falling back to cloud. LLM Gateway's custom providers (how it reaches Ollama, vLLM and TGI) need its Enterprise plan. - **No fee on credits** LLM Gateway's hosted service adds a percentage to purchased credit top-ups (no fee with your own keys). Prism keeps metered API spend apart from subscription value and adds nothing to provider prices. - **One binary with console and storage built in** Prism is self-hosted as one Go binary. Self-hosted LLM Gateway runs on PostgreSQL and Redis. Where LLM Gateway fits: a gateway you can use today, hosted or self-hosted, with a wide model catalog and image, audio, video and OCR endpoints. LLM Gateway Prism Licence AGPLv3 core; Enterprise code (ee/) commercial[source 1](https://github.com/theopenco/llmgateway/blob/main/LICENSE) [source 2](https://github.com/theopenco/llmgateway/blob/main/ee/LICENSE) Proprietary; Free needs no licence; paid editions by subscription, no key Pricing Free plan: provider rates plus a fee on top-ups; Enterprise custom[source](https://llmgateway.io/pricing) Free edition at no charge; paid editions priced per user Local models As custom providers (Enterprise)[source 1](https://docs.llmgateway.io/features/custom-providers) [source 2](https://llmgateway.io/blog/custom-openai-compatible-providers) Free in Prism Free; found from a URL Subscription accounts None documented[source](https://docs.llmgateway.io/features/routing) Many kinds, several each, failover between accounts Self-hosted runtime TypeScript; Docker; PostgreSQL and Redis[source 1](https://github.com/theopenco/llmgateway) [source 2](https://docs.llmgateway.io/self-host) Single Go binary Model servers Routes to model servers you run (custom providers, Enterprise); does not start or stop them[source 1](https://docs.llmgateway.io/features/custom-providers) [source 2](https://docs.llmgateway.io/self-host) Starts model servers on your own or cloud GPU machines when a request needs them, checks they are ready, stops them when idle and can power the machines off (Pro and higher editions) Prism notes: subscription operation is tested against test servers; sign-in to Claude, Gemini, Cursor and Grok CLI subscriptions is closed by default because these providers' terms forbid third-party programs, and other providers' terms may also restrict third-party gateway use — Prism shows a risk notice before every sign-in. More questions: [Prism FAQ](https://prism.tm/faq/) · [Prism and other products](https://prism.tm/compare/#faq) ## Sources LLM Gateway facts were checked on 12 November 2026 against official pages from LLMGateway, Inc.; follow them for current details. Prism facts come from Prism's documentation as of 12 November 2026. LLM Gateway is a trademark of its owner; Prism is not affiliated with it. - [github.com/theopenco/llmgateway/blob/main/LICENSE](https://github.com/theopenco/llmgateway/blob/main/LICENSE) - [github.com/theopenco/llmgateway/blob/main/ee/LICENSE](https://github.com/theopenco/llmgateway/blob/main/ee/LICENSE) - [llmgateway.io/pricing](https://llmgateway.io/pricing) - [docs.llmgateway.io/features/custom-providers](https://docs.llmgateway.io/features/custom-providers) - [llmgateway.io/blog/custom-openai-compatible-providers](https://llmgateway.io/blog/custom-openai-compatible-providers) - [docs.llmgateway.io/features/routing](https://docs.llmgateway.io/features/routing) - [github.com/theopenco/llmgateway](https://github.com/theopenco/llmgateway) - [docs.llmgateway.io/self-host](https://docs.llmgateway.io/self-host) - [llmgateway.io/](https://llmgateway.io/) - [llmgateway.io/enterprise](https://llmgateway.io/enterprise) - [docs.llmgateway.io/llms.txt](https://docs.llmgateway.io/llms.txt) Want to try Prism with your own providers? [Request access](https://prism.tm/request-access/?topic=free) --- title: "Not Diamond vs Prism — AI gateway comparison" description: "Not Diamond and Prism compared: deployment, licence, pricing, routing, failover, subscription accounts, local models and more, with sources." url: https://prism.tm/compare/not-diamond/ --- [COMPARE](https://prism.tm/compare/) | CHECKED 12 NOVEMBER 2026 # Not Diamond vs Prism. Not Diamond is a learned model router. Not Diamond Code (early access) is a local proxy for Claude Code that picks model and reasoning effort per turn using recommendations from Not Diamond's cloud. Prism is a self-hosted adaptive AI gateway that decides on your machine, for any OpenAI-compatible client. **Prism is not yet publicly available.** In the table, opt-in means off by default; in development and planned mean not available yet. [Request access](https://prism.tm/request-access/) ## Why teams choose Prism over Not Diamond - **Routing decided on your machine** Prism picks model, provider and account in the process serving the request. Not Diamond Code asks Not Diamond's cloud for each recommendation. - **No per-token routing fee** Not Diamond's pay-as-you-go charges per million tokens routed (by waitlist). Prism Free costs nothing, and no telemetry is collected unless you turn it on. - **Many subscription accounts, not one credential** Prism supports many kinds of subscription account, several each, with failover between accounts. Not Diamond Code uses one credential per machine. - **Works with any client** Prism serves OpenAI-compatible, Anthropic Messages, Gemini and Ollama endpoints, so most clients need only a new base URL. Not Diamond Code's documentation covers Claude Code and its IDE extensions. - **API cost and subscription value, kept apart** Totals by app, agent and model, and per person. Where Not Diamond fits: teams on Claude Code who want a learned router to pick the model and reasoning effort for each turn. Prism ships no learned router; it routes by policy and live signals, records whether each turn worked, and learning from verified outcomes is planned. Not Diamond Prism Deployment Hybrid: local proxy per machine, cloud recommendations[source 1](https://code.notdiamond.ai/docs/) [source 2](https://code.notdiamond.ai/docs/getting-started/) [source 3](https://www.notdiamond.ai/pricing) Self-hosted binary; routing decided on your machine, no routing service Pricing Pay-as-you-go per tokens routed (waitlist); Enterprise custom[source](https://www.notdiamond.ai/pricing) Free edition at no charge; paid editions priced per user Clients Claude Code and IDE extensions (multi-harness listed on pricing)[source 1](https://code.notdiamond.ai/docs/getting-started/ide-extensions/) [source 2](https://www.notdiamond.ai/pricing) Any OpenAI-compatible, Anthropic or Gemini client Failover Not documented for Code; one credential per machine[source 1](https://code.notdiamond.ai/docs/getting-started/configuration/) [source 2](https://code.notdiamond.ai/docs/getting-started/) Next eligible provider/account on errors, limits or quota; every attempt reported Privacy Derived metadata kept long-term in cloud[source 1](https://code.notdiamond.ai/docs/data-privacy/data-dictionary/) [source 2](https://code.notdiamond.ai/docs/data-privacy/data-retention/) No telemetry unless you turn it on Prism notes: subscription operation is tested against test servers; sign-in to Claude, Gemini, Cursor and Grok CLI subscriptions is closed by default because these providers' terms forbid third-party programs, and other providers' terms may also restrict third-party gateway use — Prism shows a risk notice before every sign-in. More questions: [Prism FAQ](https://prism.tm/faq/) · [Prism and other products](https://prism.tm/compare/#faq) ## Sources Not Diamond facts were checked on 12 November 2026 against official pages from Not Diamond; follow them for current details. Prism facts come from Prism's documentation as of 12 November 2026. Not Diamond is a trademark of its owner; Prism is not affiliated with it. - [code.notdiamond.ai/docs/](https://code.notdiamond.ai/docs/) - [code.notdiamond.ai/docs/getting-started/](https://code.notdiamond.ai/docs/getting-started/) - [www.notdiamond.ai/pricing](https://www.notdiamond.ai/pricing) - [code.notdiamond.ai/docs/getting-started/ide-extensions/](https://code.notdiamond.ai/docs/getting-started/ide-extensions/) - [code.notdiamond.ai/docs/getting-started/configuration/](https://code.notdiamond.ai/docs/getting-started/configuration/) - [code.notdiamond.ai/docs/data-privacy/data-dictionary/](https://code.notdiamond.ai/docs/data-privacy/data-dictionary/) - [code.notdiamond.ai/docs/data-privacy/data-retention/](https://code.notdiamond.ai/docs/data-privacy/data-retention/) - [www.notdiamond.ai/](https://www.notdiamond.ai/) - [docs.notdiamond.ai/docs/quickstart-routing](https://docs.notdiamond.ai/docs/quickstart-routing) - [docs.notdiamond.ai/docs/router-training-quickstart](https://docs.notdiamond.ai/docs/router-training-quickstart) Want to try Prism with your own providers? [Request access](https://prism.tm/request-access/?topic=free) --- title: "OmniRoute vs Prism — AI gateway comparison" description: "OmniRoute and Prism compared: deployment, licence, pricing, routing, failover, subscription accounts, local models and more, with sources." url: https://prism.tm/compare/omniroute/ --- [COMPARE](https://prism.tm/compare/) | CHECKED 12 NOVEMBER 2026 # OmniRoute vs Prism. OmniRoute is an open-source TypeScript router that puts many providers — including pools of subscription accounts — behind one local OpenAI-compatible endpoint. Its website now reads "OmniRoute by Cheaper Inference" and says the project joined Cheaper Inference, a separate gateway that resells models; the code remains MIT-licensed. Prism's support for one kind of subscription account is a Go port of an OmniRoute integration, used under the MIT licence and credited in Prism's third-party notices. Prism's opt-in traffic guard adapts the boundary-policy idea from OmniRoute's guardrail design, without its code. We thank diegosouzapw and OmniRoute's contributors. **Prism is not yet publicly available.** In the table, opt-in means off by default; in development and planned mean not available yet. [Request access](https://prism.tm/request-access/) ## Why teams choose Prism over OmniRoute - **Failover with reasons** When an account hits an error, a rate limit or its quota, Prism moves to the next eligible account or provider and reports every attempt and its reason. - **API spend kept apart from subscriptions** OmniRoute's analytics show subscription and coding-plan traffic as zero or as an estimate. Prism records the cost of each request and reports metered API spend separately from subscription value. - **Local, paid and subscription, one policy** Models are found from a local runtime's URL and routed under the same policy; private requests never fall back to cloud. - **One binary with console and storage built in** Prism needs no Node.js, Bun or Docker. OmniRoute runs on Node.js (Bun also supported) with SQLite. - **From one person to an organization** Prism Free costs nothing for any use, with a few accounts in the console and passkey sign-in; Prism Teams adds an organization with roles and Enterprise several teams. OmniRoute has a single admin login with opt-in OIDC. Where OmniRoute fits: a free, open-source router you can install today, with a very long provider list and many OAuth providers. OmniRoute Prism Runtime TypeScript on Node.js/Bun, SQLite[source](https://github.com/cheaper-inference/OmniRoute) Single Go binary, storage built in Providers A very long registered list[source 1](https://github.com/cheaper-inference/OmniRoute) [source 2](https://www.omniroute.online/) Key-based providers, any OpenAI-compatible endpoint, OpenRouter, local runtimes, subscription accounts Cost accounting Subscription traffic counted as zero or estimated[source 1](https://github.com/cheaper-inference/OmniRoute#-whats-new) [source 2](https://github.com/cheaper-inference/OmniRoute/pull/11460) [source 3](https://github.com/cheaper-inference/OmniRoute/blob/main/docs/guides/TEAM_COST_CENTERS.md) API spend and subscription value kept apart Teams Single admin, opt-in OIDC[source 1](https://github.com/cheaper-inference/OmniRoute/blob/main/docs/architecture/AUTHZ_GUIDE.md) [source 2](https://github.com/cheaper-inference/OmniRoute) Free edition at no charge; Prism Teams adds an organization and roles Pricing Free[source 1](https://www.omniroute.online/) [source 2](https://github.com/cheaper-inference/OmniRoute) Free edition at no charge; paid editions priced per user Model servers Routes to model servers you run, such as Ollama; starts and stops only its bundled sidecars, not model servers[source 1](https://github.com/cheaper-inference/OmniRoute/blob/main/docs/guides/LOCAL_OLLAMA_DOCKER.md) [source 2](https://github.com/cheaper-inference/OmniRoute/blob/main/docs/frameworks/EMBEDDED-SERVICES.md) [source 3](https://github.com/cheaper-inference/OmniRoute/blob/main/docs/architecture/ROUTER_BACKENDS.md) [source 4](https://github.com/cheaper-inference/OmniRoute) Starts model servers on your own or cloud GPU machines when a request needs them, checks they are ready, stops them when idle and can power the machines off (Pro and higher editions) Prism notes: subscription operation is tested against test servers; sign-in to Claude, Gemini, Cursor and Grok CLI subscriptions is closed by default because these providers' terms forbid third-party programs, and other providers' terms may also restrict third-party gateway use — Prism shows a risk notice before every sign-in. More questions: [Prism FAQ](https://prism.tm/faq/) · [Prism and other products](https://prism.tm/compare/#faq) ## Sources OmniRoute facts were checked on 12 November 2026 against official pages from Cheaper Inference, diegosouzapw and contributors; follow them for current details. Prism facts come from Prism's documentation as of 12 November 2026. OmniRoute is a trademark of its owner; Prism is not affiliated with it. - [github.com/cheaper-inference/OmniRoute](https://github.com/cheaper-inference/OmniRoute) - [www.omniroute.online/](https://www.omniroute.online/) - [github.com/cheaper-inference/OmniRoute#-whats-new](https://github.com/cheaper-inference/OmniRoute#-whats-new) - [github.com/cheaper-inference/OmniRoute/pull/11460](https://github.com/cheaper-inference/OmniRoute/pull/11460) - [github.com/cheaper-inference/OmniRoute/blob/main/docs/guides/TEAM\_COST\_CENTERS.md](https://github.com/cheaper-inference/OmniRoute/blob/main/docs/guides/TEAM_COST_CENTERS.md) - [github.com/cheaper-inference/OmniRoute/blob/main/docs/architecture/AUTHZ\_GUIDE.md](https://github.com/cheaper-inference/OmniRoute/blob/main/docs/architecture/AUTHZ_GUIDE.md) - [github.com/cheaper-inference/OmniRoute/blob/main/docs/guides/LOCAL\_OLLAMA\_DOCKER.md](https://github.com/cheaper-inference/OmniRoute/blob/main/docs/guides/LOCAL_OLLAMA_DOCKER.md) - [github.com/cheaper-inference/OmniRoute/blob/main/docs/frameworks/EMBEDDED-SERVICES.md](https://github.com/cheaper-inference/OmniRoute/blob/main/docs/frameworks/EMBEDDED-SERVICES.md) - [github.com/cheaper-inference/OmniRoute/blob/main/docs/architecture/ROUTER\_BACKENDS.md](https://github.com/cheaper-inference/OmniRoute/blob/main/docs/architecture/ROUTER_BACKENDS.md) - [raw.githubusercontent.com/cheaper-inference/OmniRoute/main/LICENSE](https://raw.githubusercontent.com/cheaper-inference/OmniRoute/main/LICENSE) - [github.com/cheaper-inference/OmniRoute/blob/main/docs/reference/PROVIDER\_REFERENCE.md](https://github.com/cheaper-inference/OmniRoute/blob/main/docs/reference/PROVIDER_REFERENCE.md) Want to try Prism with your own providers? [Request access](https://prism.tm/request-access/?topic=free) --- title: "OpenRouter vs Prism — AI gateway comparison" description: "OpenRouter and Prism compared: deployment, licence, pricing, routing, failover, subscription accounts, local models and more, with sources." url: https://prism.tm/compare/openrouter/ --- [COMPARE](https://prism.tm/compare/) | CHECKED 12 NOVEMBER 2026 # OpenRouter vs Prism. OpenRouter is a hosted service with one API and one account for hundreds of models from many providers. Prism is a self-hosted adaptive AI gateway that runs on your machine — and can also route to OpenRouter as an upstream. **Prism is not yet publicly available.** In the table, opt-in means off by default; in development and planned mean not available yet. [Request access](https://prism.tm/request-access/) ## Why teams choose Prism over OpenRouter - **Your gateway, not a hosted one** Prism runs on your machine; keys, subscription tokens and the request journal stay with you. OpenRouter is a managed service that requests pass through. - **No fee on provider usage** You pay providers directly. OpenRouter adds a platform fee on credit purchases — a higher one on Business — and a percentage on high-volume bring-your-own-key usage. - **Subscription accounts inside every request** Prism signs in to many kinds of subscription account, several each, choosing the account per request and failing over between accounts on errors, limits or exhausted quota. OpenRouter documents no AI subscription sign-in. - **API spend and subscription value, kept apart** Each response carries its cost, and the overview sets what your subscriptions cost against what their traffic would cost at API prices. - **Local, paid and subscription under one policy** Local runtimes are found from a URL and routed by the same policy as paid APIs. Private requests stay local; OpenRouter reaches self-hosted deployments only on Enterprise. Where OpenRouter fits: a hosted service with nothing to install and one account for models from many providers. Keep using it through Prism if you like — with both connected, Prism fails over between direct routes and OpenRouter and reports which one served the request. OpenRouter Prism Deployment Hosted; EU/US regional endpoints (in-region on Business/Enterprise)[source 1](https://openrouter.ai/docs/guides/features/in-region-routing.md) [source 2](https://openrouter.ai/pricing) One self-hosted binary, Linux and macOS Fees A platform fee on credits (higher on Business); a fee on high-volume BYOK[source](https://openrouter.ai/pricing) None on provider usage Subscription accounts None documented (provider keys via BYOK)[source](https://openrouter.ai/docs/guides/overview/auth/byok.md) Many kinds, several each, failover between accounts Local models Self-hosted deployments on Enterprise[source](https://openrouter.ai/docs/guides/routing/private-endpoints.md) Ollama, llama.cpp, vLLM, LM Studio from a URL SSO and SCIM SAML SSO and SCIM on Enterprise[source 1](https://openrouter.ai/docs/guides/features/sso.md) [source 2](https://openrouter.ai/docs/guides/features/scim-mappings.md) SSO under evaluation; no SCIM Pricing Free tier; fees above[source](https://openrouter.ai/pricing) Free edition at no charge; paid editions priced per user Prism notes: subscription operation is tested against test servers; sign-in to Claude, Gemini, Cursor and Grok CLI subscriptions is closed by default because these providers' terms forbid third-party programs, and other providers' terms may also restrict third-party gateway use — Prism shows a risk notice before every sign-in. More questions: [Prism FAQ](https://prism.tm/faq/) · [Prism and other products](https://prism.tm/compare/#faq) ## Sources OpenRouter facts were checked on 12 November 2026 against official pages from OpenRouter; follow them for current details. Prism facts come from Prism's documentation as of 12 November 2026. OpenRouter is a trademark of its owner; Prism is not affiliated with it. - [openrouter.ai/docs/guides/features/in-region-routing.md](https://openrouter.ai/docs/guides/features/in-region-routing.md) - [openrouter.ai/pricing](https://openrouter.ai/pricing) - [openrouter.ai/docs/guides/overview/auth/byok.md](https://openrouter.ai/docs/guides/overview/auth/byok.md) - [openrouter.ai/docs/guides/routing/private-endpoints.md](https://openrouter.ai/docs/guides/routing/private-endpoints.md) - [openrouter.ai/docs/guides/features/sso.md](https://openrouter.ai/docs/guides/features/sso.md) - [openrouter.ai/docs/guides/features/scim-mappings.md](https://openrouter.ai/docs/guides/features/scim-mappings.md) - [openrouter.ai/](https://openrouter.ai/) - [openrouter.ai/docs/guides/privacy/data-collection](https://openrouter.ai/docs/guides/privacy/data-collection) Want to try Prism with your own providers? [Request access](https://prism.tm/request-access/?topic=free) --- title: "Portkey (Prisma AIRS AI Gateway) vs Prism — AI gateway comparison" description: "Portkey (Prisma AIRS AI Gateway) and Prism compared: deployment, licence, pricing, routing, failover, subscription accounts, local models and more, with sources." url: https://prism.tm/compare/portkey/ --- [COMPARE](https://prism.tm/compare/) | CHECKED 12 NOVEMBER 2026 # Portkey (Prisma AIRS AI Gateway) vs Prism. Portkey — acquired by Palo Alto Networks in 2026 and now branded Prisma AIRS AI Gateway — is a hosted AI gateway and LLMOps platform with an MIT-licensed open-source version. Prism is a self-hosted adaptive AI gateway in one binary. **Prism is not yet publicly available.** In the table, opt-in means off by default; in development and planned mean not available yet. [Request access](https://prism.tm/request-access/) ## Why teams choose Prism over Portkey - **Not priced by log volume** Portkey's hosted plans are priced by recorded logs. Prism's journal stores no prompt bodies and costs nothing extra: Free costs nothing, and the paid editions are priced per user. - **No vendor in the request path** On Portkey's hosted plans, prompts pass through its API; Enterprise hybrid syncs with its control plane. Prism runs on your machine, and requests go straight to your providers, not through a Prism server. - **Subscriptions routed alongside API keys** Many kinds of subscription account, several each, with failover between accounts. Portkey documents Claude Max for Claude Code and Codex personal access tokens on Enterprise. - **Local, paid and subscription, one policy** Add a URL and Prism finds local models. Private requests stay local, never falling back to cloud. - **Free to Teams, same binary** Prism Free costs nothing; Prism Teams adds an organization with roles and Enterprise several teams, no reinstall. Where Portkey fits: a hosted or open-source gateway you can use today, with extensive guardrails, an MCP gateway, semantic caching, RBAC and SSO on paid plans. Portkey (Prisma AIRS) Prism Deployment Hosted SaaS; self-hosted OSS gateway; Enterprise hybrid (data plane in your VPC)[source 1](https://github.com/Portkey-AI/gateway) [source 2](https://portkey.ai/docs/self-hosting/hybrid-deployments/architecture) [source 3](https://portkey.ai/pricing) One self-hosted binary, Linux and macOS, no root Pricing Free tier; paid plans priced by recorded logs; Enterprise custom[source](https://portkey.ai/pricing) Free edition at no charge; paid editions priced per user, no per-log pricing Routing Config-based: conditional, weighted, canary[source](https://portkey.ai/docs/product/ai-gateway) Adaptive per-request selection from capability, health, quota, funds and cost Subscription accounts Claude Max for Claude Code; Codex personal access tokens (Enterprise)[source 1](https://portkey.ai/docs/integrations/libraries/claude-code-anthropic) [source 2](https://portkey.ai/docs/changelog/enterprise) Many kinds, several each, failover between accounts Guardrails Extensive built-in guardrails and partner integrations[source 1](https://github.com/Portkey-AI/gateway) [source 2](https://portkey.ai/pricing) Opt-in credential and PII guard (email, IPv4, phone): observe, block or redact; matched text never stored OpenTelemetry Metrics export on Enterprise; log export (experimental) on Enterprise/self-hosted[source 1](https://portkey.ai/docs/product/observability/opentelemetry) [source 2](https://portkey.ai/docs/product/enterprise-offering/otel/otel) Through a plugin package: one span per model attempt over OTLP/HTTP, without prompt or response text Prism notes: subscription operation is tested against test servers; sign-in to Claude, Gemini, Cursor and Grok CLI subscriptions is closed by default because these providers' terms forbid third-party programs, and other providers' terms may also restrict third-party gateway use — Prism shows a risk notice before every sign-in. More questions: [Prism FAQ](https://prism.tm/faq/) · [Prism and other products](https://prism.tm/compare/#faq) ## Sources Portkey facts were checked on 12 November 2026 against official pages from Palo Alto Networks; follow them for current details. Prism facts come from Prism's documentation as of 12 November 2026. Portkey is a trademark of its owner; Prism is not affiliated with it. - [github.com/Portkey-AI/gateway](https://github.com/Portkey-AI/gateway) - [portkey.ai/docs/self-hosting/hybrid-deployments/architecture](https://portkey.ai/docs/self-hosting/hybrid-deployments/architecture) - [portkey.ai/pricing](https://portkey.ai/pricing) - [portkey.ai/docs/product/ai-gateway](https://portkey.ai/docs/product/ai-gateway) - [portkey.ai/docs/integrations/libraries/claude-code-anthropic](https://portkey.ai/docs/integrations/libraries/claude-code-anthropic) - [portkey.ai/docs/changelog/enterprise](https://portkey.ai/docs/changelog/enterprise) - [portkey.ai/docs/product/observability/opentelemetry](https://portkey.ai/docs/product/observability/opentelemetry) - [portkey.ai/docs/product/enterprise-offering/otel/otel](https://portkey.ai/docs/product/enterprise-offering/otel/otel) - [www.paloaltonetworks.com/company/press/2026/palo-alto-networks-completes-acquisition-of-portkey-to-secure-ai-agents](https://www.paloaltonetworks.com/company/press/2026/palo-alto-networks-completes-acquisition-of-portkey-to-secure-ai-agents) - [github.com/Portkey-AI/gateway/blob/main/LICENSE](https://github.com/Portkey-AI/gateway/blob/main/LICENSE) - [portkey.ai/docs/product/mcp-gateway](https://portkey.ai/docs/product/mcp-gateway) Want to try Prism with your own providers? [Request access](https://prism.tm/request-access/?topic=free) --- title: "Requesty vs Prism — AI gateway comparison" description: "Requesty and Prism compared: deployment, licence, pricing, routing, failover, subscription accounts, local models and more, with sources." url: https://prism.tm/compare/requesty/ --- [COMPARE](https://prism.tm/compare/) | CHECKED 12 NOVEMBER 2026 # Requesty vs Prism. Requesty is a managed AI gateway and LLM router with one OpenAI-compatible API, a global endpoint and regional endpoints in the EU, the US and Asia-Pacific; self-hosting is not offered. Prism is a self-hosted adaptive AI gateway that runs on your machine and adds nothing to provider prices. **Prism is not yet publicly available.** In the table, opt-in means off by default; in development and planned mean not available yet. [Request access](https://prism.tm/request-access/) ## Why teams choose Prism over Requesty - **Runs on your own machine** Requests go straight from your machine to your providers, and keys stay with you. Requesty routes requests through its hosted gateway. - **No markup on model cost** Requesty adds a margin to pay-as-you-go model cost (none with your own keys). Prism adds nothing to provider prices: Free costs nothing, and the paid editions are priced per user. - **Several subscription accounts per provider, chosen per request** Prism picks model, provider and account for every request and fails over to the next account on errors, limits or exhausted quota. Requesty's bring-your-own-keys allows one key per provider. - **Subscriptions and local models, one policy** Prism supports many kinds of subscription account and routes to local runtimes. Requesty documents neither; its Claude Code setup uses a Requesty key. - **API cost and subscription value, kept apart** Budgets can warn, downgrade, go local or reject (opt-in). Where Requesty fits: available today, with nothing to install, a large model catalog, and SSO, full RBAC and audit logs in Enterprise. Requesty Prism Deployment Vendor-managed; global, EU, US and Asia-Pacific endpoints; no self-hosting[source 1](https://www.requesty.ai/enterprise) [source 2](https://docs.requesty.ai/features/eu-routing.md) One self-hosted binary, Linux and macOS Pricing Free plan; a margin on pay-as-you-go; Enterprise custom[source 1](https://www.requesty.ai/pricing) [source 2](https://www.requesty.ai/enterprise) No usage markup; Free edition at no charge; paid editions priced per user Subscription accounts None documented; Claude Code uses a Requesty key[source](https://docs.requesty.ai/integrations/claude-code.md) Many kinds, several each, failover between accounts Local models None documented[source](https://docs.requesty.ai/llms.txt) Ollama, llama.cpp, vLLM, LM Studio from a URL Guardrails PII/secrets scanners, per-token fee outside Enterprise[source](https://docs.requesty.ai/features/guardrails.md) Opt-in credential and PII guard, no per-token billing Prism notes: subscription operation is tested against test servers; sign-in to Claude, Gemini, Cursor and Grok CLI subscriptions is closed by default because these providers' terms forbid third-party programs, and other providers' terms may also restrict third-party gateway use — Prism shows a risk notice before every sign-in. More questions: [Prism FAQ](https://prism.tm/faq/) · [Prism and other products](https://prism.tm/compare/#faq) ## Sources Requesty facts were checked on 12 November 2026 against official pages from Requesty; follow them for current details. Prism facts come from Prism's documentation as of 12 November 2026. Requesty is a trademark of its owner; Prism is not affiliated with it. - [www.requesty.ai/enterprise](https://www.requesty.ai/enterprise) - [docs.requesty.ai/features/eu-routing.md](https://docs.requesty.ai/features/eu-routing.md) - [www.requesty.ai/pricing](https://www.requesty.ai/pricing) - [docs.requesty.ai/integrations/claude-code.md](https://docs.requesty.ai/integrations/claude-code.md) - [docs.requesty.ai/llms.txt](https://docs.requesty.ai/llms.txt) - [docs.requesty.ai/features/guardrails.md](https://docs.requesty.ai/features/guardrails.md) - [www.requesty.ai/](https://www.requesty.ai/) - [docs.requesty.ai/features/bring-your-own-keys.md](https://docs.requesty.ai/features/bring-your-own-keys.md) Want to try Prism with your own providers? [Request access](https://prism.tm/request-access/?topic=free) --- title: "Sakana Fugu vs Prism — AI gateway comparison" description: "Sakana Fugu and Prism compared: deployment, licence, pricing, routing, failover, subscription accounts, local models and more, with sources." url: https://prism.tm/compare/sakana-fugu/ --- [COMPARE](https://prism.tm/compare/) | CHECKED 12 NOVEMBER 2026 # Sakana Fugu vs Prism. Fugu and Prism are different kinds of product, and they can work together. Fugu is a hosted model from Sakana AI that coordinates a pool of frontier and open models on each task behind one endpoint. Prism is a self-hosted gateway — and can reach Fugu directly with a Sakana key or through OpenRouter, failing over between the two. **Prism is not yet publicly available.** In the table, opt-in means off by default; in development and planned mean not available yet. [Request access](https://prism.tm/request-access/) ## Why teams choose Prism over Sakana Fugu - **You choose and see the models** Pin a model, or let Prism pick model, provider and account from your policy; responses name what served them. Fugu's models stay internal, by design. - **Your subscriptions, not another plan** Use the chat and coding plans you already pay for: many kinds of supported subscription account, several each, with failover between accounts. - **Local, paid and subscription models together** Add a local runtime's URL and Prism finds its models. Private requests stay local, never falling back to cloud. - **API spend and subscription value, apart** Every response carries its cost, with totals by app, agent and model. - **Runs on your machine, not a cloud** Fugu runs in Sakana AI's cloud (not yet available in the EU/EEA, and usage data may be used for training unless you opt out). Prism keeps keys with you and telemetry off. Where Sakana Fugu fits: teams that want Sakana AI to choose and coordinate the underlying models, billed by monthly plan or per token. Sakana Fugu Prism What it is Hosted orchestration model, one endpoint[source 1](https://sakana.ai/fugu/) [source 2](https://console.sakana.ai/get-started) Self-hosted adaptive gateway, one binary Availability Not yet in EU/EEA[source](https://sakana.ai/fugu/) Linux or macOS, x86-64 or Arm Pricing Monthly plans and per-token billing[source 1](https://console.sakana.ai/pricing) [source 2](https://sakana.ai/fugu/) Free edition at no charge; paid editions priced per user Model visibility Internal by design; usage/cost shown[source 1](https://sakana.ai/fugu/) [source 2](https://console.sakana.ai/pricing) Responses name what served them; every attempt reported Local models —[source 1](https://sakana.ai/fugu/) [source 2](https://console.sakana.ai/models) Ollama, llama.cpp, vLLM, LM Studio, TEI Prism notes: subscription operation is tested against test servers; sign-in to Claude, Gemini, Cursor and Grok CLI subscriptions is closed by default because these providers' terms forbid third-party programs, and other providers' terms may also restrict third-party gateway use — Prism shows a risk notice before every sign-in. More questions: [Prism FAQ](https://prism.tm/faq/) · [Prism and other products](https://prism.tm/compare/#faq) ## Sources Sakana Fugu facts were checked on 12 November 2026 against official pages from Sakana AI; follow them for current details. Prism facts come from Prism's documentation as of 12 November 2026. Sakana Fugu is a trademark of its owner; Prism is not affiliated with it. - [sakana.ai/fugu/](https://sakana.ai/fugu/) - [console.sakana.ai/get-started](https://console.sakana.ai/get-started) - [console.sakana.ai/pricing](https://console.sakana.ai/pricing) - [console.sakana.ai/models](https://console.sakana.ai/models) Want to try Prism with your own providers? [Request access](https://prism.tm/request-access/?topic=free) --- title: "TensorZero vs Prism — AI gateway comparison" description: "TensorZero and Prism compared: deployment, licence, pricing, routing, failover, subscription accounts, local models and more, with sources." url: https://prism.tm/compare/tensorzero/ --- [COMPARE](https://prism.tm/compare/) | CHECKED 12 NOVEMBER 2026 # TensorZero vs Prism. TensorZero was an open-source LLMOps platform — gateway, observability, evaluation and A/B testing — whose repository was archived in 2026. Its website says the code remains available. Prism is a self-hosted adaptive AI gateway in active development. **Prism is not yet publicly available.** In the table, opt-in means off by default; in development and planned mean not available yet. [Request access](https://prism.tm/request-access/) ## Why teams choose Prism over TensorZero - **Still developed, from one person to teams** Prism Free costs nothing; Prism Teams adds an organization with roles and Enterprise several teams. TensorZero is no longer maintained. - **Picks the account for every request** Prism picks model, provider and account per request, across many kinds of subscription account. TensorZero routes over provider lists and sampled variants set in config. - **API spend apart from subscription value** TensorZero reports cost only for models you configure with prices; Prism reports the cost of every request and keeps API spend separate from subscription value. - **Local models under the same policy** Add a URL and Prism finds local models; private requests never fall back to cloud. - **One binary with console and storage built in** TensorZero runs a separate UI container and stores data in Postgres or ClickHouse. Prism needs no separate UI container or database server. Where TensorZero fits: Apache 2.0 code you can fork and maintain yourself, with evaluations and A/B testing stored in your own database. Prism runs A/B tests and evaluations of its routing; it records whether each turn worked, and learning from verified task outcomes is planned. TensorZero Prism Status Archived 2026, no longer maintained[source 1](https://github.com/tensorzero/tensorzero) [source 2](https://www.tensorzero.com/) In active development; not yet publicly available Deployment Self-hosted only; Rust gateway + UI container + Postgres/ClickHouse[source 1](https://github.com/tensorzero/tensorzero/blob/main/docs/comparison/kong.mdx) [source 2](https://github.com/tensorzero/tensorzero/blob/main/docs/deployment/tensorzero-gateway.mdx) [source 3](https://github.com/tensorzero/tensorzero/blob/main/docs/deployment/tensorzero-ui.mdx) [source 4](https://github.com/tensorzero/tensorzero/blob/main/docs/deployment/postgres.mdx) One binary, one command, no root Routing Ordered provider lists in config; static and adaptive A/B sampling[source 1](https://github.com/tensorzero/tensorzero/blob/main/docs/gateway/guides/retries-fallbacks.mdx) [source 2](https://github.com/tensorzero/tensorzero/blob/main/docs/experimentation/run-static-ab-tests.mdx) [source 3](https://github.com/tensorzero/tensorzero/blob/main/docs/experimentation/run-adaptive-ab-tests.mdx) Adaptive per-request selection from live signals Subscription accounts None documented[source](https://github.com/tensorzero/tensorzero) Many kinds, several each, failover between accounts Evaluations / A/B Yes — its core[source 1](https://github.com/tensorzero/tensorzero) [source 2](https://github.com/tensorzero/tensorzero/blob/main/docs/experimentation/run-adaptive-ab-tests.mdx) A/B tests and evaluations of its routing; per-turn outcomes recorded; learning from them planned Model servers Routed to model servers you ran (vLLM, SGLang, Ollama via api\_base); did not start or stop them[source 1](https://github.com/tensorzero/tensorzero/blob/main/docs/integrations/model-providers/vllm.mdx) [source 2](https://github.com/tensorzero/tensorzero/blob/main/docs/integrations/model-providers/openai-compatible.mdx) [source 3](https://github.com/tensorzero/tensorzero/blob/main/docs/integrations/model-providers/sglang.mdx) Starts model servers on your own or cloud GPU machines when a request needs them, checks they are ready, stops them when idle and can power the machines off (Pro and higher editions) Prism notes: subscription operation is tested against test servers; sign-in to Claude, Gemini, Cursor and Grok CLI subscriptions is closed by default because these providers' terms forbid third-party programs, and other providers' terms may also restrict third-party gateway use — Prism shows a risk notice before every sign-in. More questions: [Prism FAQ](https://prism.tm/faq/) · [Prism and other products](https://prism.tm/compare/#faq) ## Sources TensorZero facts were checked on 12 November 2026 against official pages from TensorZero; follow them for current details. Prism facts come from Prism's documentation as of 12 November 2026. TensorZero is a trademark of its owner; Prism is not affiliated with it. - [github.com/tensorzero/tensorzero](https://github.com/tensorzero/tensorzero) - [www.tensorzero.com/](https://www.tensorzero.com/) - [github.com/tensorzero/tensorzero/blob/main/docs/comparison/kong.mdx](https://github.com/tensorzero/tensorzero/blob/main/docs/comparison/kong.mdx) - [github.com/tensorzero/tensorzero/blob/main/docs/deployment/tensorzero-gateway.mdx](https://github.com/tensorzero/tensorzero/blob/main/docs/deployment/tensorzero-gateway.mdx) - [github.com/tensorzero/tensorzero/blob/main/docs/deployment/tensorzero-ui.mdx](https://github.com/tensorzero/tensorzero/blob/main/docs/deployment/tensorzero-ui.mdx) - [github.com/tensorzero/tensorzero/blob/main/docs/deployment/postgres.mdx](https://github.com/tensorzero/tensorzero/blob/main/docs/deployment/postgres.mdx) - [github.com/tensorzero/tensorzero/blob/main/docs/gateway/guides/retries-fallbacks.mdx](https://github.com/tensorzero/tensorzero/blob/main/docs/gateway/guides/retries-fallbacks.mdx) - [github.com/tensorzero/tensorzero/blob/main/docs/experimentation/run-static-ab-tests.mdx](https://github.com/tensorzero/tensorzero/blob/main/docs/experimentation/run-static-ab-tests.mdx) - [github.com/tensorzero/tensorzero/blob/main/docs/experimentation/run-adaptive-ab-tests.mdx](https://github.com/tensorzero/tensorzero/blob/main/docs/experimentation/run-adaptive-ab-tests.mdx) - [github.com/tensorzero/tensorzero/blob/main/docs/integrations/model-providers/vllm.mdx](https://github.com/tensorzero/tensorzero/blob/main/docs/integrations/model-providers/vllm.mdx) - [github.com/tensorzero/tensorzero/blob/main/docs/integrations/model-providers/openai-compatible.mdx](https://github.com/tensorzero/tensorzero/blob/main/docs/integrations/model-providers/openai-compatible.mdx) - [github.com/tensorzero/tensorzero/blob/main/docs/integrations/model-providers/sglang.mdx](https://github.com/tensorzero/tensorzero/blob/main/docs/integrations/model-providers/sglang.mdx) - [github.com/tensorzero/tensorzero/blob/main/LICENSE](https://github.com/tensorzero/tensorzero/blob/main/LICENSE) - [github.com/tensorzero/tensorzero/blob/main/docs/operations/track-usage-and-cost.mdx](https://github.com/tensorzero/tensorzero/blob/main/docs/operations/track-usage-and-cost.mdx) Want to try Prism with your own providers? [Request access](https://prism.tm/request-access/?topic=free) --- title: "Vercel AI Gateway vs Prism — AI gateway comparison" description: "Vercel AI Gateway and Prism compared: deployment, licence, pricing, routing, failover, subscription accounts, local models and more, with sources." url: https://prism.tm/compare/vercel-ai-gateway/ --- [COMPARE](https://prism.tm/compare/) | CHECKED 12 NOVEMBER 2026 # Vercel AI Gateway vs Prism. Vercel AI Gateway is a managed service with one endpoint and key for models from many providers; apps need not be hosted on Vercel. Prism is a self-hosted adaptive AI gateway that runs on your machine. **Prism is not yet publicly available.** In the table, opt-in means off by default; in development and planned mean not available yet. [Request access](https://prism.tm/request-access/) ## Why teams choose Prism over Vercel AI Gateway - **Your gateway, not a hosted one** Prism runs on your machine; requests go straight to your providers, and keys stay with you — not in your Vercel team. Vercel says it keeps no prompt or response content, but requests do pass through Vercel, and BYOK keys sit in your Vercel team. - **Budgets that count your own keys** Prism budgets count the estimated cost of requests on your own keys and warn, downgrade or go local (opt-in). Vercel's budgets (per team, project, key or member) do not count BYOK spend by default. - **Subscription accounts, chosen per request** Prism supports many kinds of subscription account, several each, with failover between accounts. Vercel documents only Claude subscriptions passed through via Claude Code. - **Local models under the same policy** Ollama, llama.cpp, vLLM and LM Studio join one policy with paid APIs and subscriptions; private requests stay local. Vercel documents hosted providers only. - **Failover with reasons** Prism never substitutes silently. Vercel can retry a failed BYOK request on its own credentials, billed to your credits — a fallback you may not have asked for. Where Vercel AI Gateway fits: a managed gateway available today with nothing to install, prepaid credits at provider list price with no token markup, and budgets per team, project, key or member — for teams on Vercel. Vercel AI Gateway Prism Deployment Vercel's cloud; no self-hosting[source 1](https://vercel.com/i/ai-gateway-vs-portkey) [source 2](https://vercel.com/docs/ai-gateway) One self-hosted binary Pricing Prepaid credits at list price, no markup[source](https://vercel.com/docs/ai-gateway/pricing) No usage markup; Free edition at no charge; paid editions priced per user Budgets Don't count BYOK spend by default[source 1](https://vercel.com/docs/ai-gateway/observability-and-spend/budgets) [source 2](https://vercel.com/docs/rest-api/sdk/untagged/createapikeys) [source 3](https://vercel.com/docs/ai-gateway/authentication-and-byok/byok) Count spend on your own keys; warn/downgrade/go local (opt-in) BYOK failover May retry on Vercel's credentials, billed to you[source 1](https://vercel.com/docs/ai-gateway/authentication-and-byok/byok) [source 2](https://vercel.com/docs/ai-gateway/pricing) Next eligible provider/account you configured, every attempt reported Local models Hosted providers only[source](https://vercel.com/docs/ai-gateway/models-and-providers/provider-options) Ollama, llama.cpp, vLLM, LM Studio from a URL Prism notes: subscription operation is tested against test servers; sign-in to Claude, Gemini, Cursor and Grok CLI subscriptions is closed by default because these providers' terms forbid third-party programs, and other providers' terms may also restrict third-party gateway use — Prism shows a risk notice before every sign-in. More questions: [Prism FAQ](https://prism.tm/faq/) · [Prism and other products](https://prism.tm/compare/#faq) ## Sources Vercel AI Gateway facts were checked on 12 November 2026 against official pages from Vercel; follow them for current details. Prism facts come from Prism's documentation as of 12 November 2026. Vercel AI Gateway is a trademark of its owner; Prism is not affiliated with it. - [vercel.com/i/ai-gateway-vs-portkey](https://vercel.com/i/ai-gateway-vs-portkey) - [vercel.com/docs/ai-gateway](https://vercel.com/docs/ai-gateway) - [vercel.com/docs/ai-gateway/pricing](https://vercel.com/docs/ai-gateway/pricing) - [vercel.com/docs/ai-gateway/observability-and-spend/budgets](https://vercel.com/docs/ai-gateway/observability-and-spend/budgets) - [vercel.com/docs/rest-api/sdk/untagged/createapikeys](https://vercel.com/docs/rest-api/sdk/untagged/createapikeys) - [vercel.com/docs/ai-gateway/authentication-and-byok/byok](https://vercel.com/docs/ai-gateway/authentication-and-byok/byok) - [vercel.com/docs/ai-gateway/models-and-providers/provider-options](https://vercel.com/docs/ai-gateway/models-and-providers/provider-options) - [vercel.com/docs/ai-gateway/coding-agents/claude-code](https://vercel.com/docs/ai-gateway/coding-agents/claude-code) - [vercel.com/docs/ai-gateway/coding-agents](https://vercel.com/docs/ai-gateway/coding-agents) - [vercel.com/docs/ai-gateway/faq](https://vercel.com/docs/ai-gateway/faq) Want to try Prism with your own providers? [Request access](https://prism.tm/request-access/?topic=free) --- title: "vLLM Semantic Router vs Prism — AI gateway comparison" description: "vLLM Semantic Router and Prism compared: deployment, licence, pricing, routing, failover, subscription accounts, local models and more, with sources." url: https://prism.tm/compare/vllm-semantic-router/ --- [COMPARE](https://prism.tm/compare/) | CHECKED 12 NOVEMBER 2026 # vLLM Semantic Router vs Prism. vLLM Semantic Router is the vLLM project's open-source routing layer: it picks the model and policy per request from semantic signals, deployed as a Docker stack, Helm chart, Kubernetes Operator or Envoy filter. Prism is a complete gateway (accounts, budgets, console, storage) in one Go binary. **Prism is not yet publicly available.** In the table, opt-in means off by default; in development and planned mean not available yet. [Request access](https://prism.tm/request-access/) ## Why teams choose Prism over vLLM Semantic Router - **Account chosen along with the model** Prism picks model, provider and subscription account per request, failing over between accounts on errors, limits or exhausted quota. vLLM-SR routes to model backends you configure, each with its own credentials. - **API spend and subscription value separated** Every response carries its cost; budgets warn, downgrade, go local or reject. - **Local, paid and subscription: one policy** Add an Ollama, llama.cpp, vLLM or LM Studio URL and Prism finds the models. Private requests stay local, never falling back to cloud. - **One binary with console and storage built in** Prism needs no Docker, Envoy or Kubernetes. vLLM-SR deploys with Docker or Podman, Envoy or Kubernetes. - **Free to Teams without reinstalling** Prism Free costs nothing; Prism Teams adds an organization with roles and Enterprise several teams, same binary. - **Starts and stops your GPU machines** Prism starts the model server on your own or a cloud GPU machine when a request needs it, stops it when idle, and can power the machine on and off (Pro and higher editions). Support for Nebius is built in; Amazon EC2, Google Compute Engine and other clouds are added with plugin packages. Where vLLM Semantic Router fits: an open-source semantic router you can deploy today, with many selection algorithms, per-route response caching, safety classifiers, and Envoy and Kubernetes integration. vLLM Semantic Router Prism Licence Apache 2.0[source](https://github.com/vllm-project/semantic-router/blob/main/LICENSE) Proprietary; Free needs no licence Deployment Docker/Podman, Helm, Kubernetes Operator, Envoy ExtProc[source 1](https://vllm-sr.ai/docs/installation/deployment-options) [source 2](https://vllm-sr.ai/docs/installation/) [source 3](https://vllm-sr.ai/) One binary, one command, no root Routing Semantic signals, many algorithms (some experimental), recipe mapping[source 1](https://vllm-sr.ai/docs/tutorials/algorithm/overview) [source 2](https://vllm-sr.ai/blog/v0.4-vllm-sr-hermes-release/) Adaptive selection from capability, health, quota, funds, cost Response caching Semantic and exact-match, per route[source](https://vllm-sr.ai/docs/tutorials/plugin/response-cache/) No response cache; Claude prompt-cache keep-warm and cache-hit share Guardrails Inline jailbreak and PII classifiers, hallucination checks[source 1](https://vllm-sr.ai/) [source 2](https://vllm-sr.ai/docs/tutorials/plugin/response-guard/) Opt-in credential and PII guard; no content moderation Pricing Free and open source[source](https://github.com/vllm-project/semantic-router) Free edition at no charge; paid editions priced per user Model servers Routes to model endpoints you run; its Operator finds backends but does not deploy them[source 1](https://vllm-sr.ai/docs/installation/k8s/operator/) [source 2](https://vllm-sr.ai/docs/installation/deployment-options) [source 3](https://vllm-sr.ai/docs/installation/ollama/) Starts model servers on your own or cloud GPU machines when a request needs them, checks they are ready, stops them when idle and can power the machines off (Pro and higher editions) Prism notes: subscription operation is tested against test servers; sign-in to Claude, Gemini, Cursor and Grok CLI subscriptions is closed by default because these providers' terms forbid third-party programs, and other providers' terms may also restrict third-party gateway use — Prism shows a risk notice before every sign-in. More questions: [Prism FAQ](https://prism.tm/faq/) · [Prism and other products](https://prism.tm/compare/#faq) ## Sources vLLM Semantic Router facts were checked on 12 November 2026 against official pages from vLLM project (vLLM Semantic Router Team); follow them for current details. Prism facts come from Prism's documentation as of 12 November 2026. vLLM Semantic Router is a trademark of its owner; Prism is not affiliated with it. - [github.com/vllm-project/semantic-router/blob/main/LICENSE](https://github.com/vllm-project/semantic-router/blob/main/LICENSE) - [vllm-sr.ai/docs/installation/deployment-options](https://vllm-sr.ai/docs/installation/deployment-options) - [vllm-sr.ai/docs/installation/](https://vllm-sr.ai/docs/installation/) - [vllm-sr.ai/](https://vllm-sr.ai/) - [vllm-sr.ai/docs/tutorials/algorithm/overview](https://vllm-sr.ai/docs/tutorials/algorithm/overview) - [vllm-sr.ai/blog/v0.4-vllm-sr-hermes-release/](https://vllm-sr.ai/blog/v0.4-vllm-sr-hermes-release/) - [vllm-sr.ai/docs/tutorials/plugin/response-cache/](https://vllm-sr.ai/docs/tutorials/plugin/response-cache/) - [vllm-sr.ai/docs/tutorials/plugin/response-guard/](https://vllm-sr.ai/docs/tutorials/plugin/response-guard/) - [github.com/vllm-project/semantic-router](https://github.com/vllm-project/semantic-router) - [vllm-sr.ai/docs/installation/k8s/operator/](https://vllm-sr.ai/docs/installation/k8s/operator/) - [vllm-sr.ai/docs/installation/ollama/](https://vllm-sr.ai/docs/installation/ollama/) - [vllm-sr.ai/docs/api/router/](https://vllm-sr.ai/docs/api/router/) - [vllm-sr.ai/docs/installation/model-catalog/](https://vllm-sr.ai/docs/installation/model-catalog/) Want to try Prism with your own providers? [Request access](https://prism.tm/request-access/?topic=free) --- title: "Prism documentation | Prism docs" description: "Install Prism, connect your AI tools to it, and look up its API, CLI and configuration." url: https://prism.tm/docs/ --- [Skip to content](https://prism.tm/docs/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/#_top) - [Start here](https://prism.tm/docs/#start-here) - [Reference](https://prism.tm/docs/#reference) - [Running Prism](https://prism.tm/docs/#running-prism) ## On this page - [Overview](https://prism.tm/docs/#_top) - [Start here](https://prism.tm/docs/#start-here) - [Reference](https://prism.tm/docs/#reference) - [Running Prism](https://prism.tm/docs/#running-prism) # Prism documentation Prism is a self-hosted AI gateway. You run it on your own machine or server, connect your model providers once (API keys, subscriptions or your own model servers), and point your applications at one address. Prism chooses a model for each request, fails over when a provider is down or out of quota, and records what each request cost. Prism speaks the OpenAI, Anthropic Messages, Gemini and Ollama APIs, so most tools work without code changes: Claude Code, Codex CLI, Gemini CLI, the OpenAI and Anthropic SDKs, Open WebUI and other Ollama clients. ## Start here [Section titled “Start here”](https://prism.tm/docs/#start-here) 1. [Install Prism](https://prism.tm/docs/getting-started/install/) with one command on Linux or macOS. 2. [Quick start](https://prism.tm/docs/getting-started/quick-start/): add a provider in the web console and send a first request. 3. [Connect your clients](https://prism.tm/docs/clients/): settings for each tool. ## Reference [Section titled “Reference”](https://prism.tm/docs/#reference) - [API reference](https://prism.tm/docs/api/endpoints/): endpoints, dialects, headers and errors. - [CLI reference](https://prism.tm/docs/reference/cli/): every `prism` command. - [Configuration reference](https://prism.tm/docs/reference/configuration/): every `config.toml` setting with its default. ## Running Prism [Section titled “Running Prism”](https://prism.tm/docs/#running-prism) - [Web console](https://prism.tm/docs/web-console/overview/): providers, routing, agents, usage and updates in the browser. - [Managed inference](https://prism.tm/docs/managed-inference/overview/): start, stop and power your own model servers from Prism (Pro and above). - [Privacy and data](https://prism.tm/docs/privacy/what-prism-stores/): what Prism stores, what it sends and how to turn each part off. --- title: "Choosing a model | Prism docs" description: "Model names, strategies, headers and the routing intent object that decide which model serves a request." url: https://prism.tm/docs/api/choosing-a-model/ --- [Skip to content](https://prism.tm/docs/api/choosing-a-model/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/api/choosing-a-model/#_top) - [Model values](https://prism.tm/docs/api/choosing-a-model/#model-values) - [Strategies](https://prism.tm/docs/api/choosing-a-model/#strategies) - [Setting the strategy](https://prism.tm/docs/api/choosing-a-model/#setting-the-strategy) - [Smart quality band](https://prism.tm/docs/api/choosing-a-model/#smart-quality-band) - [Smart checked cascade](https://prism.tm/docs/api/choosing-a-model/#smart-checked-cascade) - [Which requests](https://prism.tm/docs/api/choosing-a-model/#which-requests) - [Rules](https://prism.tm/docs/api/choosing-a-model/#rules) - [Refusals](https://prism.tm/docs/api/choosing-a-model/#refusals) - [Cost and latency](https://prism.tm/docs/api/choosing-a-model/#cost-and-latency) - [Response headers](https://prism.tm/docs/api/choosing-a-model/#response-headers) - [Request headers](https://prism.tm/docs/api/choosing-a-model/#request-headers) - [Pinned provider](https://prism.tm/docs/api/choosing-a-model/#pinned-provider) - [Routing intent](https://prism.tm/docs/api/choosing-a-model/#routing-intent) ## On this page - [Overview](https://prism.tm/docs/api/choosing-a-model/#_top) - [Model values](https://prism.tm/docs/api/choosing-a-model/#model-values) - [Strategies](https://prism.tm/docs/api/choosing-a-model/#strategies) - [Setting the strategy](https://prism.tm/docs/api/choosing-a-model/#setting-the-strategy) - [Smart quality band](https://prism.tm/docs/api/choosing-a-model/#smart-quality-band) - [Smart checked cascade](https://prism.tm/docs/api/choosing-a-model/#smart-checked-cascade) - [Which requests](https://prism.tm/docs/api/choosing-a-model/#which-requests) - [Rules](https://prism.tm/docs/api/choosing-a-model/#rules) - [Refusals](https://prism.tm/docs/api/choosing-a-model/#refusals) - [Cost and latency](https://prism.tm/docs/api/choosing-a-model/#cost-and-latency) - [Response headers](https://prism.tm/docs/api/choosing-a-model/#response-headers) - [Request headers](https://prism.tm/docs/api/choosing-a-model/#request-headers) - [Pinned provider](https://prism.tm/docs/api/choosing-a-model/#pinned-provider) - [Routing intent](https://prism.tm/docs/api/choosing-a-model/#routing-intent) # Choosing a model The `model` field of a request decides whether you name a model or let Prism choose one. This applies to Chat Completions, Responses, Anthropic Messages, Gemini (model in the path) and Ollama chat. Embeddings and rerank follow their own rules, described on [Ingress dialects](https://prism.tm/docs/api/dialects/#embeddings-and-rerank). ## Model values [Section titled “Model values”](https://prism.tm/docs/api/choosing-a-model/#model-values) | `model` | What Prism does | | --- | --- | | `auto`, or empty | Chooses a model with the request’s strategy (default `balanced`) | | `cheap`, `fast` | Chooses with that strategy | | `smart` | Chooses with the `quality` strategy and at least the `strong` quality tier | | `local` | Chooses among local models only; never sends the request to a cloud provider | | `openai/auto`, `google/fast`, `/` | Chooses among one provider’s models | | `triage`, `reasoning`, `cheap-toolcall` | Built-in roles, active once you list models for them in `[routing.role_aliases]` | | `reasoning-max` | The `reasoning` role at the maximum reasoning effort | | A name you add to `[routing.role_aliases]` | Your role: its listed models, in order | | `prism/auto`, `prism/strong`, `prism/frontier`, `prism/reasoning`, `prism/reasoning-max`, `prism/private` | Policy models; `/v1/models` lists the ones available now | | `provider::model`, for example `openrouter::anthropic/claude-sonnet-4.5` | That model at that provider (any account of it). Other providers are tried only when failover is allowed, see below | | A model id, for example `gpt-5-mini` or `anthropic/claude-sonnet-4.5` | That model at any provider that serves it | The provider part of a `provider::model` id is the connection’s name. The names of the built-in subscription connections, such as `claude-oauth::`, `codex-oauth::` and `gemini-oauth::`, keep working through 1.x, also after those providers move to provider packages; they are removed no earlier than 2.0.0. `balanced`, `quality` and `private` are strategy names, not model names. `"model": "balanced"` is read as a model id and fails with `400 no provider has exact model_id balanced`. An unknown `prism/...` name is a `400`. Lists: - `GET /v1/models` lists provider models as `provider::model`, role aliases you configured, and `prism/*` policy models. It does not list `auto`, `cheap`, `fast`, `smart`, `local`. - `GET /prism/models` lists every catalog entry with its `candidate_id` (`provider/model`), quality tier, limits, prices, health, and whether automatic routing may pick it. ## Strategies [Section titled “Strategies”](https://prism.tm/docs/api/choosing-a-model/#strategies) A request Prism routes itself orders the eligible models by strategy: | Strategy | Order | | --- | --- | | `balanced` (default) | The strongest cloud model at or above the turn’s quality-tier floor: the one with the highest [Epoch Capabilities Index](https://epoch.ai/benchmarks/eci) in the model class catalog, price deciding only between equals. The floor is `frontier` when the request offers tools (an agent step) or rates as complex, `good` otherwise. If no cloud model reaches the floor, the highest tier below it comes next, then local models. A model with no known tier never counts as reaching the floor | | `quality` | Highest quality tier first; inside it the strongest model by Epoch ECI, price only between equals | | `cheap` | Local models first, then the cheapest cloud model | | `fast` | Lowest observed latency first, then cheapest | | `private` | Local models only | `auto` without a strategy behaves as `balanced`. A request marked `private` or `local` uses local models only, whatever the strategy. If the first model fails with a retryable error, Prism tries the next one in the order. ### Setting the strategy [Section titled “Setting the strategy”](https://prism.tm/docs/api/choosing-a-model/#setting-the-strategy) | Where | Scope | | --- | --- | | `model: "cheap"` / `"fast"` / `"smart"` / `"local"` | One request | | `X-Prism-Strategy: balanced|quality|cheap|fast|private` header with `model: "auto"` | One request. `smart` is read as `quality`, `local` as `private`; an unknown value as `balanced` | | `/prism strategy cheap` in chat, with `X-Prism-Session` | One conversation; see [In-chat commands](https://prism.tm/docs/clients/in-chat-commands/) | | Console → Routing, or `set_default_strategy` in the [control API](https://prism.tm/docs/api/control-api/) | The whole installation | | `[v2.orchestration] default_strategy` in `config.toml` | The whole installation, when nothing above is set | A concrete model in the request always wins over any strategy, unless the [Smart quality band](https://prism.tm/docs/api/choosing-a-model/#smart-quality-band) is on together with the owner’s setting **Smart may answer with another model**. ## Smart quality band [Section titled “Smart quality band”](https://prism.tm/docs/api/choosing-a-model/#smart-quality-band) The quality band is part of Prism Pro (the `smart_routing` capability). It is off by default. The installation owner switches it on under Console → Routing, **Automatic** tab, **Smart quality band**, or with `[routing] smart_quality_band = true`. The console applies the change without a restart. Without Prism Pro the console refuses to switch it on, and a switched-on band does nothing. On `auto` the band needs nothing else. For roles and named models the owner also switches on **Smart may answer with another model** on the same tab, or sets `[routing] smart_substitution = true`. It is one setting for the whole installation, off by default, and it applies to the band and the checked cascade alike. The answer headers name the model that answered. For each request the band works with the models left after every rule that can exclude a model: privacy and local-only, the key’s policy, budgets and spending limits, health and quota pauses, the provider chain, capabilities, context and output limits, and `[routing] auto_denylist`. For each of these models it estimates the chance that this installation’s traffic accepts the answer, for the request’s kind of task (`plain_completion`, `agentic_tool_use`, `structured_extraction`, `long_context_synthesis`): - The starting point is the published quality prior’s score of the model for that kind of task. It counts as 20 observed requests. - Each request whose outcome Prism recorded as worked or not worked adds one observation. Outcomes of the last 30 days are read when the band is first used; later outcomes are added when they are recorded. Requests answered by an OpenAI model are not counted. - A model without a prior score for the kind of task has no estimate and is never picked by the band. The band then picks the cheapest model whose estimate is at most 0.02 below a reference: | Request | Reference | What the band may do | | --- | --- | --- | | `auto` (also `prism/auto`) with the default strategy | The best estimate among the models | Lead with the cheapest model within 0.02 of it. This replaces the default order and the quality-first and ECI experiments for these requests | | A role or a named model, with **Smart may answer with another model** on | The estimate of the model the role or name resolves to first | Answer with a cheaper model within 0.02 of it. Never a more expensive model | The rest of the order stays behind the band’s pick, so if the picked model fails, the next attempt is what Prism would have tried without the band; for a role or a named model that is the requested model. On `auto` the band does not change: - a request with an explicit strategy (`cheap`, `fast`, `smart`, `local`, `X-Prism-Strategy`), or one a budget downgrades or keeps local; - a conversation held on its model: a session preference or next-model control, a warm prompt cache (the stay rule), a tool-loop or response-chain lock; - the manual routing mode, a routing profile’s default model; - a request whose planned model is a subscription account: the band does not move it to a paid API. On a role or a named model the band does not change a request: - while the setting **Smart may answer with another model** is off; - under the strict-model rule (`X-Prism-Strict-Model: true`, the session or key setting, or the owner’s default); - bound to its model by a tool-loop or response-chain lock or a provider conversation thread. The band does not explore: with the same recorded outcomes it picks the same model. A streamed Responses request on `auto` keeps the default order. The response headers report the band’s choice: `X-Prism-Model` and `X-Prism-Provider` name the model that answered, `X-Prism-Reason` is `smart_quality_band`, and on a role or named-model request `X-Prism-Requested-Model` repeats the `model` value the client sent. See [Headers](https://prism.tm/docs/api/headers/#response-headers). ## Smart checked cascade [Section titled “Smart checked cascade”](https://prism.tm/docs/api/choosing-a-model/#smart-checked-cascade) The checked cascade is part of Prism Pro (the `smart_routing` capability). It is off by default. The installation owner switches it on under Console → Routing, **Automatic** tab, **Smart checked cascade**, or with `[routing] smart_checked_cascade = true`. The console applies the change without a restart. It can be on with the quality band off, and the other way round. A cheaper model answers first. Prism checks the answer by the rule measured for the request’s kind of task. When the check passes, that answer is served. When it does not, the strong model answers the request instead and its answer is served. The models are the quality band’s: | Request | Cheap model | Strong model | | --- | --- | --- | | `auto` with the default strategy | The band’s pick: the cheapest model within 0.02 of the best estimate | The model with the best estimate | | A role or a named model, with **Smart may answer with another model** on | The band’s pick: a cheaper model within 0.02 of the requested model | The requested model | The cascade runs only when the cheap model costs less than the strong model. With the band on, the band’s pick is the cheap model the cascade checks. With the band off, the band’s estimate still picks the cheap model, but only for the requests the cascade checks; every other request routes as without the band. ### Which requests [Section titled “Which requests”](https://prism.tm/docs/api/choosing-a-model/#which-requests) The cascade runs on a request only when all of these hold: - it is a chat completion (`/v1/chat/completions`, or a client dialect Prism translates to it); Responses and other endpoints are not checked; - its kind of task has a rule (see the table below); - Prism’s estimate of its input is at most 8192 tokens. The rules were measured on single tasks and single agent steps; late in a long conversation an escalation would pay the whole context a second time; - on `auto`: the default strategy, the same conditions as the band (no session control, warm-cache stay, tool-loop or response-chain lock, manual routing mode, routing profile default or subscription head), no cost limit per request (`[v2.orchestration] max_cost_usd` or a managed budget), and a call limit (`max_calls`) that leaves room for every call of the rule; - on a role or a named model: the setting **Smart may answer with another model** on, no strict-model rule, no lock or provider conversation thread, and no streaming. A streamed `auto` request is checked on the buffered stream path: no byte of the cheap answer reaches the client before the check passed. On `auto` with the band off, a request that is in the cascade’s scope but where the cascade cannot run after the models are picked (no cheaper model, no second model of another creator, a model over its spending limit) is served in the planner’s default order, without the quality-first and ECI experiments. ### Rules [Section titled “Rules”](https://prism.tm/docs/api/choosing-a-model/#rules) The rules come from the cascade measurement of November 2026 (`ml/laya-routing/reports/cascade-v2.md`): 609 test tasks read once, cheap model deepseek-v4.1-flash, second cheap model claude-haiku-5.5, strong model claude-opus-5.5. Every rule also escalates when the cheap answer failed, was cut at the output limit, or is empty. | Kind of task | Check | Measured: quality (strong model) | Cost, share of the strong model | Escalated | | --- | --- | --- | --- | --- | | Agent step (a request that offers tools) | A second cheap model of another creator answers too; the tool calls must agree after normalization. Every call must name a tool of the request and fit its parameter schema | 0.883 (0.870) | 21% | 18% | | Math | The two cheap answers must state the same final answer, and Jev’s P(wrong) must be below 0.55 | 0.938 (0.949) | 58% | 25% | | Multiple-choice knowledge | A second sample of the cheap model at temperature 1 must pick the same option | 0.848 (0.859) | 12% | 5% | | Code | Jev’s P(wrong) must be below 0.10 | 0.892 (0.892) | 81% | 64% | | Instruction following | No check: the cheap model alone was within 2 points (0.877 against 0.895) | | | | None of these differences from the strong model is statistically significant (McNemar p between 0.63 and 1.0 per kind of task); with 92 to 195 tasks per kind the measurement cannot tell differences below about 5 points. Before 1.0 the cascade runs only on agent steps. Prism’s task class reads the request’s shape, not its text, and recognizes agent steps but not math, knowledge or code. Those rules stay in the rule table and turn on in 1.x, once a skill classifier that works on every installation runs on the serving path. A signal that cannot be computed escalates: the second model or sample did not answer, or Jev gave no verdict. A Jev provider that refused for payment is asked again only when its next funding probe is due (15 minutes after the refusal, longer while it keeps refusing); the strong model answers meanwhile. The judge is the one `[routing_probe] judge_model` and `judge_provider` name (`jev-latest` by default; with several System One providers write `typesafe::jev-latest`). ### Refusals [Section titled “Refusals”](https://prism.tm/docs/api/choosing-a-model/#refusals) OpenAI’s and Anthropic’s refusals are not walked around. When the cheap model, or the second model, refused (an OpenAI or Anthropic content filter), the strong stage leaves out every model of that creator; a model of another creator may still answer. When no strong attempt is left, the cheap answer is served and `X-Prism-Cascade` says `kept:refusal_held`. ### Cost and latency [Section titled “Cost and latency”](https://prism.tm/docs/api/choosing-a-model/#cost-and-latency) Every call of the cascade is an attempt of the request: the cheap answer, the second model or sample, the Jev verdict, and the strong answer on escalation. Each is billed in `X-Prism-Cost-USD`, counted in `X-Prism-Attempts`, recorded in the request log and counted against the key’s budgets and spend authority. The second model and Jev are checked against the key’s policy before they are planned. The calls run one after another. The measured cascade was about three times slower than the strong model on average (19.9 s against 6.1 s, p90 45.6 s against 12.7 s), mostly because the cheap model reasons at length; for agent steps it was 4.3 s against 2.5 s with the two cheap calls in parallel, so expect more in Prism. ### Response headers [Section titled “Response headers”](https://prism.tm/docs/api/choosing-a-model/#response-headers) - `X-Prism-Model` and `X-Prism-Provider` name the model whose answer was served. - `X-Prism-Reason` is `smart_checked_cascade` when the cheap answer was served and `smart_checked_cascade_escalated` when the strong model’s was. - `X-Prism-Cascade` says what the cascade did: `accepted`, `escalated:`, `kept:` or `skipped:` (see [Headers](https://prism.tm/docs/api/headers/#response-headers)). - `X-Prism-Requested-Model` repeats the client’s `model` value when a role or named-model request was answered by the cheap model; when the strong model answered, it answered with what was asked, and the header is absent. The decision log records the cascade’s outcome, reason, the three models and the signal values for each request in its scope. ## Request headers [Section titled “Request headers”](https://prism.tm/docs/api/choosing-a-model/#request-headers) | Header | Effect | | --- | --- | | `X-Prism-Strategy` | Strategy for this request | | `X-Prism-Session` | Names the conversation. Prism keeps a conversation on the model and account that hold its prompt cache while that is still allowed and cheaper than switching, and applies session controls. Not a hard lock: health, capability and limits still apply | | `X-Prism-App` | Names the agent for reports. A name you map in `[routing.app_profiles]` also selects that routing profile | | `X-Prism-Profile` | Selects a routing profile (`[profiles.]`) directly | | `X-Prism-Allow-Provider-Failover: true` | Lets a `provider::model` request go to another provider that serves the same model. Default: `[routing] allow_provider_failover` (`false`) | | `X-Prism-Strict-Model: true` | Keeps the request at one seller, even when provider failover is allowed: the provider a `provider::model` names, or, for a bare model id, the first seller in Prism’s provider order, with other accounts of the same subscription. A rolling alias such as `glm-latest` is not replaced by another version. If that seller cannot serve, the request fails rather than moving to another seller. A session’s `/prism strict`, an agent’s `strict_model` routing setting (by its Prism key or recognized app) and the installation default (`set_default_strict_model`) turn it on without the header; the header takes precedence over them, so `false` turns it off for one request | ## Pinned provider [Section titled “Pinned provider”](https://prism.tm/docs/api/choosing-a-model/#pinned-provider) A `provider::model` request names the provider whose price and account you accept. By default Prism does not send it to another provider: if that provider cannot serve, you get its refusal, and the error may carry a `prism_switch_offer` that names another provider of the same model. A second account of the same subscription provider counts as the same provider and can take over. Allow other providers per request with `X-Prism-Allow-Provider-Failover: true`, or for the installation with `[routing] allow_provider_failover = true`. The `X-Prism-Provider` response header always names the provider that served. ## Routing intent [Section titled “Routing intent”](https://prism.tm/docs/api/choosing-a-model/#routing-intent) Chat Completions and Responses requests may carry a `prism` object with routing requirements. Prism checks it before routing and removes it before forwarding. ``` { "model": "auto", "prism": { "version": "intent-v1", "role": "reasoning", "quality": "strong", "effort": "adaptive", "locality": "prefer-local", "max_cost_usd": 0.25, "max_latency_ms": 1500, "required_capabilities": ["tools", "json"] }} ``` | Field | Values | | --- | --- | | `version` | `intent-v1` (required) | | `role` | `auto`, `reasoning`, `triage`, `cheap-toolcall` | | `quality` | `adaptive`, `strong`, `frontier` | | `effort` | `adaptive`, `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, `max` | | `locality` | `any`, `prefer-local`, `local-only`, `cloud-only` | | `max_cost_usd`, `max_latency_ms` | Upper bounds for the request | | `required_capabilities` | Up to 32 of: `tools`, `json`, `structured-output`, `vision`, `streaming`, `responses`, `reasoning`, `cache:explicit`, `cache:implicit`, `backend:` (aggregator backend) | - The encoded object may be at most 4096 bytes. Unknown or duplicate fields, wrong types and invalid values are a `400 invalid_request` that names the field, for example `invalid routing intent prism.bogus: unknown field`. - A capability name Prism does not know leaves no eligible model: `503 no_eligible_executor`, as does a capability every candidate is stated not to have. A capability nobody has stated for a model is not a “no”: that model stays a candidate and is tried after the models on which the capability is confirmed. Prism learns `tools`, `json`, `vision`, `streaming` and `responses` from traffic, a background check, the provider, your settings, the public model table and its built-in rule, in that order, and the models dialog of a connection under **AI providers** shows each flag as yes, no or unknown with where it came from. Only an explicit “no” — from the provider, your settings or traffic — removes a model from the request. - `local-only` (like `model: "local"` and `prism/private`) cannot be weakened by a default, a budget rule or failover. - Embeddings, rerank, System One and the file, image and audio endpoints do not read this object. --- title: "Local control API | Prism docs" description: "Change Prism's defaults, inspect sessions and recover providers with POST /prism/control." url: https://prism.tm/docs/api/control-api/ --- [Skip to content](https://prism.tm/docs/api/control-api/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/api/control-api/#_top) - [Access](https://prism.tm/docs/api/control-api/#access) - [Request and response](https://prism.tm/docs/api/control-api/#request-and-response) - [Actions](https://prism.tm/docs/api/control-api/#actions) ## On this page - [Overview](https://prism.tm/docs/api/control-api/#_top) - [Access](https://prism.tm/docs/api/control-api/#access) - [Request and response](https://prism.tm/docs/api/control-api/#request-and-response) - [Actions](https://prism.tm/docs/api/control-api/#actions) # Local control API `POST /prism/control` lets an agent or a local tool change Prism’s defaults and recover providers without editing `config.toml`. The web console uses the same endpoint. It takes structured JSON, never natural language. Only the actions listed on this page are part of the documented interface; the endpoint accepts others that are internal and may change or be removed without notice. ## Access [Section titled “Access”](https://prism.tm/docs/api/control-api/#access) - Send the owner token as `X-Prism-Admin-Token: ` or `Authorization: Bearer `. The token is `PRISM_ADMIN_TOKEN` if set, otherwise the console token in `/console-token` (`prism console` prints it). - The request must come from a loopback address, or arrive on the console listener (`[console] bind`), where only `X-Prism-Admin-Token` is accepted. A request from any other address gets `403`. - A missing or wrong token gets `401` with `"message": "Control request rejected: unauthorized."`. When `[server] host` is not a loopback address, requests from the Prism machine to that address are not loopback either. Set `[server] control_bind` (for example `127.0.0.1:18001`) to start a loopback-only listener for control requests; `prism refresh` and `prism refresh-prices` use it when it is set. `control_bind` must be a loopback address, or Prism does not start. ## Request and response [Section titled “Request and response”](https://prism.tm/docs/api/control-api/#request-and-response) Terminal window ``` curl -s -X POST http://127.0.0.1:18000/prism/control \ -H "X-Prism-Admin-Token: $PRISM_ADMIN_TOKEN" \ -H 'Content-Type: application/json' \ -d '{"action": "set_default_strategy", "arguments": {"strategy": "quality"}}' ``` ``` { "object": "prism.control_result", "action": "set_default_strategy", "accepted": true, "scope": "default", "message": "Default strategy set to quality.", "state": {"default_strategy": "quality"}} ``` A rejected action returns `accepted: false` and the reason in `message`, for example `Control request rejected: unsupported action.` with `400`. ## Actions [Section titled “Actions”](https://prism.tm/docs/api/control-api/#actions) | Action | Arguments | Effect | | --- | --- | --- | | `set_default_strategy`, `clear_default_strategy` | `strategy` (`balanced`, `quality`, `cheap`, `fast`, `private`) | Default strategy for requests that do not choose one | | `set_default_preferred_model`, `clear_default_preferred_model` | `candidate_id` (`provider/model`) | Default preferred model | | `set_provider_chain`, `clear_provider_chain` | `providers` (1 to 32 provider names) | For a model several providers sell, try the listed providers first, in order, then the rest. `provider::model` requests are not affected. Clearing restores `[routing] provider_chain` from the config | | `set_routing_mode` | `mode`: `automatic` (default) or `manual` | Automatic: the strategy picks the model of an `auto` request and the provider list picks its seller. Manual: the preferred model first, then the models of each listed provider in list order; model strength and price do not move a provider ahead | | `set_session_routing_mode`, `clear_session_routing_mode` | `session_id`, `mode`, optional `ttl` | One conversation’s routing mode, above the agent’s and the default. A request can set its own with the header `X-Prism-Routing-Mode: manual` or `automatic` | | `set_agent_routing`, `clear_agent_routing` | `agent` (`key:` or `app:`), optional `routing_mode`, `preferred_model`, `provider_chain`, `strict_model` | One agent’s own routing mode, preferred model, provider order and strict-model rule; an absent field follows the default settings | | `set_session_strict_model`, `clear_session_strict_model` | `session_id`, optional `ttl` | One conversation’s strict-model rule: an explicit model is served only by the seller it names. A request can set its own with the header `X-Prism-Strict-Model: true` | | `set_default_strict_model`, `clear_default_strict_model` | none | Installation-wide strict-model rule, below the session flag, the agent’s `strict_model` setting and the request header | | `list_sessions`, `get_session`, `reset_session` | `session_id` for the last two | Inspect or clear the per-session controls set with [in-chat commands](https://prism.tm/docs/clients/in-chat-commands/) | | `clear_provider_funding` | `provider`, or `all: true` | Clears a provider’s “unfunded” mark after you top up the account, so routing tries it again at once. Also `POST /prism/funding/clear` with the same body | | `clear_provider_auth` | `provider`, or `all: true` | Clears a provider’s “authentication failed” block after you fix its key. Also `POST /prism/auth/clear` | | `recheck_provider_health` | `provider` | Probes the provider now and returns `reachable`, the failure class and whether it recovered. Also `POST /prism/health/recheck` | | `reset_model_health` | `provider`, `model` | Makes one model routable again after Prism locked it out (404, repeated 5xx, rate-limit cooldown) | | `reload_secrets` | none | Re-reads every `api_key_ref` (1Password) now; `prism secrets reload` sends it | | `refresh_discovery` | optional `provider` | Rediscovers provider models now, so a newly released model appears without a restart; `prism refresh` sends it. It does not reload `config.toml` | | `refresh_pricing` | optional `models` (up to 32 `{provider, model}`) | Downloads prices now and reloads them; at most one run per 30 seconds (`429` otherwise); `prism refresh-prices` sends it | | `list_learned_rules`, `forget_learned_rules` | optional `provider`, `model`; `all: true` to forget all | Lists or removes the parameter fixes Prism learned from provider rejections (see [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/)) | Defaults and the provider chain are saved in `/state.json` and survive a restart. Explicit choices in a request (a concrete `model`, `X-Prism-Strategy`, session controls) take precedence over these defaults. --- title: "Ingress dialects | Prism docs" description: "Which fields of the OpenAI, Anthropic, Gemini and Ollama APIs Prism carries, drops or rejects." url: https://prism.tm/docs/api/dialects/ --- [Skip to content](https://prism.tm/docs/api/dialects/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/api/dialects/#_top) - [OpenAI Chat Completions](https://prism.tm/docs/api/dialects/#openai-chat-completions) - [OpenAI Responses](https://prism.tm/docs/api/dialects/#openai-responses) - [Anthropic Messages](https://prism.tm/docs/api/dialects/#anthropic-messages) - [Message threads](https://prism.tm/docs/api/dialects/#message-threads) - [Token counting](https://prism.tm/docs/api/dialects/#token-counting) - [Gemini](https://prism.tm/docs/api/dialects/#gemini) - [Ollama](https://prism.tm/docs/api/dialects/#ollama) - [Embeddings and rerank](https://prism.tm/docs/api/dialects/#embeddings-and-rerank) ## On this page - [Overview](https://prism.tm/docs/api/dialects/#_top) - [OpenAI Chat Completions](https://prism.tm/docs/api/dialects/#openai-chat-completions) - [OpenAI Responses](https://prism.tm/docs/api/dialects/#openai-responses) - [Anthropic Messages](https://prism.tm/docs/api/dialects/#anthropic-messages) - [Message threads](https://prism.tm/docs/api/dialects/#message-threads) - [Token counting](https://prism.tm/docs/api/dialects/#token-counting) - [Gemini](https://prism.tm/docs/api/dialects/#gemini) - [Ollama](https://prism.tm/docs/api/dialects/#ollama) - [Embeddings and rerank](https://prism.tm/docs/api/dialects/#embeddings-and-rerank) # Ingress dialects Prism accepts requests in five API dialects. Anthropic Messages, Gemini and Ollama chat requests are translated to a Chat Completions request, routed like any chat request, and the answer is translated back. Routing, budgets, key policy and cost accounting are therefore the same in every dialect. The model name is read the same way everywhere; see [Choosing a model](https://prism.tm/docs/api/choosing-a-model/). ## OpenAI Chat Completions [Section titled “OpenAI Chat Completions”](https://prism.tm/docs/api/dialects/#openai-chat-completions) `POST /v1/chat/completions` (also `/chat/completions`). The body is forwarded as sent, apart from the [parameter adjustments](https://prism.tm/docs/api/parameter-compatibility/) a provider needs. Streaming (`stream: true`) uses SSE. Prism reads and removes two extra fields before forwarding: - `prism`: a routing intent object, see [Choosing a model](https://prism.tm/docs/api/choosing-a-model/#routing-intent). - `session_id`: the same as the `X-Prism-Session` header. If both are present and differ, the request fails with `400 session_identity_conflict`. ## OpenAI Responses [Section titled “OpenAI Responses”](https://prism.tm/docs/api/dialects/#openai-responses) `POST /v1/responses` (also `/responses`). A concrete model goes unchanged to a provider that offers the Responses API for it. A selector such as `auto` is chosen from all models Prism serves, as on `/v1/chat/completions`, and the request is served through Chat Completions; the Responses object’s `model` names the model that answered. A selector request that cannot be translated (see below) is chosen only among models with the Responses API; without one the answer is `503 providers_unavailable` with the message `Responses API auto-routing not configured`. A concrete model that has only a Chat Completions route is also served through Chat Completions: - carried: `instructions` (as a system message); `input` as a string or as items of type `message` (`developer` becomes `system`), `function_call`, `function_call_output`, `custom_tool_call`, `custom_tool_call_output`; content parts `input_text`, `output_text`, `text`, `input_image` (with `image_url`), `refusal`; tools of type `function`, `namespace` (flattened to `ns__name`) and `custom`; `tool_choice`, `parallel_tool_calls: false`, `max_output_tokens`, `temperature`, `top_p`, `stream`, `user`, `safety_identifier`, `reasoning.effort`, `text.format`, and Prism’s own `prism` and `session_id`; - dropped: `store`, `include`, `prompt_cache_key`, `service_tier`, `truncation`, `metadata`, `background`, `top_logprobs`, `prompt`, and `web_search` tools. The answer then carries `X-Prism-Responses-Translated: chat_completions` and `X-Prism-Responses-Dropped` with the dropped fields, for example `store`. Requests that use `previous_response_id`, `conversation`, other hosted tools or unknown item types cannot be translated; they need a provider with the Responses API. `GET /v1/responses/{id}`, `/cancel` and `/input_items` are not served (`404 route_not_found`). ## Anthropic Messages [Section titled “Anthropic Messages”](https://prism.tm/docs/api/dialects/#anthropic-messages) `POST /v1/messages`. Required: `model` (non-empty) and `messages` (each with `role`). Otherwise the answer is `400` “body is not an Anthropic Messages request”. | Field | Handling | | --- | --- | | `system` (string or blocks) | System message; block `cache_control` kept | | Content blocks `text`, `image` (base64 or URL), `tool_use`, `tool_result` (with `is_error`, `cache_control`), signed `thinking`, `redacted_thinking` | Carried | | `max_tokens`, `temperature`, `top_p`, `stream` | Carried. With `stream: true` Prism asks the provider for token usage, so the final `message_delta` reports tokens | | `top_k` | Sent only to Anthropic providers | | `stop_sequences` | Carried as `stop` | | `thinking: {type: "enabled", budget_tokens: N}` | Anthropic providers get the object unchanged. Other providers get a reasoning effort: `N` below 4096 is `low`, below 16384 `medium`, otherwise `high` | | `thinking: {type: "adaptive"}` or `{type: "disabled"}` | Accepted. Any other `type` is a `400` | | `metadata.user_id` | Carried as `user`. Must be a string of at most 512 characters, otherwise `400` | | `tools`, `tool_choice` (`auto`, `any`, `none`, `tool`), `disable_parallel_tool_use` | Carried | | Other top-level fields (`service_tier`, `container`, `mcp_servers`, …) | Dropped | A request that cannot be translated without loss is not rejected. This covers server tools such as `web_search`, Anthropic-defined tools such as `bash` or `text_editor`, unknown content blocks, and non-empty `citations`. Prism sends it unchanged, and only to Anthropic providers. Claude Code’s WebSearch works this way. ### Message threads [Section titled “Message threads”](https://prism.tm/docs/api/dialects/#message-threads) Anthropic’s message threads (beta `message-threads-2026-08-12`) work through Prism. - `{"type": "create"}`: when a connection that keeps threads can serve the model, the request goes only to such connections, unchanged, and the thread is kept on Anthropic’s side. Prism adds the beta value if it is missing. Otherwise the request is served like any other, without `thread`. Threads are kept by Anthropic’s own API (`api.anthropic.com`), Claude Platform on AWS (`aws-external-anthropic.{region}.api.aws`), Claude on Google Cloud managed by Anthropic (`claude.googleapis.com/.../invoke`) and Claude in Microsoft Foundry (`{resource}.services.ai.azure.com/anthropic`). Amazon Bedrock and Vertex AI do not keep them. - `{"type": "continue", "previous_message_id": ...}`: sent to the same connection and model that served the previous response, with no other attempt. Prism answers `404` with `error.details.error_code` `thread_not_found` when it holds no thread for that response (expired after 5 minutes, served elsewhere, or Prism restarted), when the client asks for another model, and when that one attempt fails for any reason. The Anthropic SDKs then send the full conversation again as a new create request. A continue stays in the create’s routing session. - A continue with `system` or `tools`, without `previous_message_id`, or with another `type` is a `400`. - A create that Anthropic refuses (for example `thread_unsupported_request`) gets Anthropic’s error with its `error.details`, so the SDK thread helper can carry on without `thread`. Errors use the Anthropic shape `{"type":"error","error":{"type","message"}}`; `error.details` from an Anthropic upstream is kept. The `type` follows the status: 401 `authentication_error`, 403 `permission_error`, 404 `not_found_error`, 413 `request_too_large`, 429 `rate_limit_error`, 529 `overloaded_error`, 5xx `api_error`, other 4xx `invalid_request_error`. ### Token counting [Section titled “Token counting”](https://prism.tm/docs/api/dialects/#token-counting) `POST /v1/messages/count_tokens` needs a concrete model and a provider that speaks the Anthropic protocol with an API key (not a subscription sign-in). Prism forwards the request and returns the provider’s count; it never estimates. A selector or role alias gets `404` “token counting needs an explicit model”, as does a model without such a provider. On the managed address, and for a request with a Prism key on the main address, the endpoint always answers `404`. Claude Code estimates tokens locally when it gets `404`. ## Gemini [Section titled “Gemini”](https://prism.tm/docs/api/dialects/#gemini) `POST /v1beta/models/{model}:generateContent` and `POST /v1beta/models/{model}:streamGenerateContent`. The model comes from the path. `?alt=sse` streams SSE; without it the stream is a JSON array sent in pieces, as Google’s API does. `countTokens`, `embedContent`, `batchEmbedContents` and model listing answer `404 ... is not implemented`. | Field | Handling | | --- | --- | | `systemInstruction.parts[].text` | System message | | `contents[]` with role `user`, `model` or empty; parts `text`, `inlineData` (image), `functionCall`, `functionResponse` | Carried. Empty or missing `contents`, an entry without `parts`, another role, or a user turn without text or image is a `400` | | `generationConfig.temperature`, `topP`, `maxOutputTokens`, `stopSequences` | Carried | | `generationConfig.candidateCount`, `responseMimeType`, `safetySettings`, other keys | Dropped | | `tools[].functionDeclarations` | Function tools | | `toolConfig.functionCallingConfig.mode` | `NONE`, `ANY`, `AUTO` (default) | Errors use Google’s shape `{"error":{"code","message","status"}}` with status names such as `INVALID_ARGUMENT`, `UNAUTHENTICATED`, `PERMISSION_DENIED`, `NOT_FOUND`, `RESOURCE_EXHAUSTED`, `UNAVAILABLE`, `DEADLINE_EXCEEDED`, `INTERNAL`. ## Ollama [Section titled “Ollama”](https://prism.tm/docs/api/dialects/#ollama) Main address only; the managed address does not serve it. | Route | Behavior | | --- | --- | | `GET`, `HEAD /` | `Ollama is running`, the exact text clients check; the `Server` header names Prism and its version | | `/api/version` | `{"version":"0.12.0","prism_version":"…"}`: the Ollama API version Prism follows, and Prism’s own | | `/api/ps` | `{"models":[]}` | | `/api/tags` | Models from `/v1/models`. Provider models appear under their own id without the `provider::` prefix; sorted, no duplicates | | `/api/show` | Model details by `model` or `name`; unknown model: `404 {"error":"model not found"}` | | `/api/pull` | Succeeds for a model Prism serves, downloads nothing; unknown model: `404` | | `/api/chat`, `/api/generate` | Translated to Chat Completions | | `/api/embed`, `/api/embeddings` | Translated to `/v1/embeddings` | | `/api/create`, `/api/delete`, `/api/copy`, `/api/push`, `/api/blobs/` | `501` | Chat and generate: - `model` is required; a `:latest` tag is ignored. - `stream` defaults to `true`; streams are NDJSON. - `format: "json"` turns on JSON mode; a schema object asks for that schema. - `think: true` asks for medium reasoning effort; `"low"`, `"medium"` and `"high"` are passed on. - `options` carried: `temperature`, `top_p`, `seed`, `stop`, `presence_penalty`, `frequency_penalty`, `num_predict` (as `max_tokens`), `top_k`. Other options (`num_ctx`, `keep_alive`, …) are ignored. - `/api/chat`: roles `system`, `user`, `assistant`, `tool`; `images` become image parts. A tool message without an earlier call, or another role, is a `400`. - `/api/generate`: `prompt` and `system` become messages. `raw: true` and a non-empty `suffix` are a `400`. An empty `prompt` returns a load acknowledgement (`done_reason: "load"`) without calling a model. Errors use Ollama’s shape `{"error":""}`. ## Embeddings and rerank [Section titled “Embeddings and rerank”](https://prism.tm/docs/api/dialects/#embeddings-and-rerank) `POST /v1/embeddings` and `POST /v1/rerank` forward the body as sent; the `prism` routing intent is not read here. - A concrete model, bare or `provider/model`, goes to a provider that lists it. A `provider/model` whose provider has no model list (some embedding vendors) is sent to that provider with the prefix removed. - `auto`, an empty model, or `provider/auto` picks among models whose task type is embedding (or rerank): local providers first, then direct, then aggregators, then by name; each next candidate is a failover attempt. Prices do not decide the order. - With no eligible candidate the request goes to the provisioned local embeddings server when one is set up, otherwise to the first `[[providers]]` entry, with the model name unchanged. - Rerank: `top_n` defaults to 64; above 128 the answer is `400 invalid_request_size`. --- title: "Endpoints | Prism docs" description: "Every HTTP endpoint Prism serves on its main address, with method and purpose." url: https://prism.tm/docs/api/endpoints/ --- [Skip to content](https://prism.tm/docs/api/endpoints/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/api/endpoints/#_top) - [Model requests](https://prism.tm/docs/api/endpoints/#model-requests) - [Ollama API](https://prism.tm/docs/api/endpoints/#ollama-api) - [Files, images, audio, batches](https://prism.tm/docs/api/endpoints/#files-images-audio-batches) - [Discovery](https://prism.tm/docs/api/endpoints/#discovery) - [Status, cost, metrics](https://prism.tm/docs/api/endpoints/#status-cost-metrics) - [Control](https://prism.tm/docs/api/endpoints/#control) - [Provider connections](https://prism.tm/docs/api/endpoints/#provider-connections) ## On this page - [Overview](https://prism.tm/docs/api/endpoints/#_top) - [Model requests](https://prism.tm/docs/api/endpoints/#model-requests) - [Ollama API](https://prism.tm/docs/api/endpoints/#ollama-api) - [Files, images, audio, batches](https://prism.tm/docs/api/endpoints/#files-images-audio-batches) - [Discovery](https://prism.tm/docs/api/endpoints/#discovery) - [Status, cost, metrics](https://prism.tm/docs/api/endpoints/#status-cost-metrics) - [Control](https://prism.tm/docs/api/endpoints/#control) - [Provider connections](https://prism.tm/docs/api/endpoints/#provider-connections) # Endpoints Paths below are on the main address (`http://127.0.0.1:18000` by default). Which of them the managed address, the control listener and the metrics listener also serve, and what each requires, is on [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/). ## Model requests [Section titled “Model requests”](https://prism.tm/docs/api/endpoints/#model-requests) | Endpoint | Method | Purpose | | --- | --- | --- | | `/v1/chat/completions` | POST | OpenAI Chat Completions, buffered or `stream: true` (SSE) | | `/v1/responses` | POST | OpenAI Responses API | | `/v1/messages` | POST | Anthropic Messages, buffered or streamed | | `/v1/messages/count_tokens` | POST | Anthropic token count for an explicit model; see [Ingress dialects](https://prism.tm/docs/api/dialects/#token-counting) | | `/v1beta/models/{model}:generateContent`, `/v1beta/models/{model}:streamGenerateContent` | POST | Gemini API | | `/v1/embeddings` | POST | Embeddings | | `/v1/rerank` | POST | Reranking (Cohere-compatible). `top_n` defaults to 64, at most 128 | | `/v1/systemone` | POST | System One decisions (not chat): the TypeSafe cloud or a local decision model such as Laya, any provider with `stream_protocol = "typesafe_systemone"`, and the decision models of a connected OpenRouter (GPT-6 Luna Decisions, Jev, Mercury Decide and others; Prism sends them to OpenRouter’s `/api/alpha/decisions`). The model is `provider::id` from `/v1/models`, e.g. `openrouter::openai/gpt-6-luna-decisions`; `questions` may be omitted when the model has its own decision pack | | `/v1/models` | GET | OpenAI-compatible model list | | `/models`, `/chat/completions`, `/responses`, `/embeddings` | as above | The same endpoints without the `/v1` prefix | Chat Completions, Responses, Anthropic Messages, Gemini and the Ollama chat endpoints all go through the same routing; see [Choosing a model](https://prism.tm/docs/api/choosing-a-model/). ## Ollama API [Section titled “Ollama API”](https://prism.tm/docs/api/endpoints/#ollama-api) Main address only. Details: [Ingress dialects](https://prism.tm/docs/api/dialects/#ollama). | Endpoint | Method | Purpose | | --- | --- | --- | | `/` | GET, HEAD | `Ollama is running`; `Server: Prism/ (Ollama-compatible API)` | | `/api/version` | GET | `{"version":"0.12.0","prism_version":"…"}` | | `/api/tags` | GET | Models Prism can route to | | `/api/show` | POST | One model’s details | | `/api/ps` | GET | `{"models":[]}` | | `/api/chat`, `/api/generate` | POST | Chat and completion, routed like `/v1/chat/completions` | | `/api/embed`, `/api/embeddings` | POST | Embeddings | | `/api/pull` | POST | Succeeds for a model Prism serves; downloads nothing | | `/api/create`, `/api/delete`, `/api/copy`, `/api/push` | any | `501` | ## Files, images, audio, batches [Section titled “Files, images, audio, batches”](https://prism.tm/docs/api/endpoints/#files-images-audio-batches) These requests are forwarded to one OpenAI-compatible provider, without routing or failover. A `model` of `provider::model` or `provider/model` in a JSON body picks the provider; otherwise Prism uses the first `[[providers]]` entry if it is OpenAI-compatible, else the OpenAI-compatible provider whose name sorts first. | Endpoint | Method | Body limit | | --- | --- | --- | | `/v1/images/generations`, `/v1/images/edits`, `/v1/images/variations` | POST | 20 MiB | | `/v1/audio/speech`, `/v1/audio/transcriptions`, `/v1/audio/translations` | POST | 30 MiB | | `/v1/files` | GET, POST | 512 MiB | | `/v1/files/{id}` | GET, DELETE | 512 MiB | | `/v1/files/{id}/content` | GET | 512 MiB | | `/v1/batches` | GET, POST | 4 MiB | | `/v1/batches/{id}` | GET | 4 MiB | | `/v1/batches/{id}/cancel` | POST | 4 MiB | A wrong method on these paths gets `400 invalid_request`, not `405`. ## Discovery [Section titled “Discovery”](https://prism.tm/docs/api/endpoints/#discovery) No key needed. | Endpoint | Method | Purpose | | --- | --- | --- | | `/health` | GET | `{"status":"ok"}` | | `/.well-known/prism.json` | GET | Self-description for agents; see [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) | | `/prism/agent-context` | GET | The same as Markdown; `?format=json` for JSON | | `/prism/models` | GET | Prism’s model catalog: `candidate_id` (`provider/model`), task types, capabilities, quality tier, limits, pricing, health, whether automatic routing may pick the model and why not | | `/prism/capabilities` | GET, HEAD | Routes Prism serves, with the models each can use now and a `revision` digest | | `/prism/skills/catalog.json`, `/prism/skills/{release}/{skill}/SKILL.md` | GET | Agent instructions for this Prism version | | `/prism/session/last-served` | GET | Last model that served the session named by `X-Prism-Session` | ## Status, cost, metrics [Section titled “Status, cost, metrics”](https://prism.tm/docs/api/endpoints/#status-cost-metrics) Open unless `PRISM_ADMIN_TOKEN` or `PRISM_READ_TOKEN` is set; then they need `X-Prism-Admin-Token`, or the read token as `X-Prism-Read-Token` or `Authorization: Bearer`. | Endpoint | Method | Purpose | | --- | --- | --- | | `/prism/status` | GET | Status snapshot (JSON); `prism status` prints it | | `/prism/cost` | GET | Cost and token totals. Query: `period=day|week|month|all`, or `days=N` (default 7), or `from`/`to` (RFC 3339 or `YYYY-MM-DD`, at most 366 days); `group_by=provider|model|app|task_type|client_agent`; `app=`. With Teams, a report not narrowed to a consumer also carries `machines` and `total_with_machines_usd` ([machine cost](https://prism.tm/docs/managed-inference/machine-cost/)) | | `/prism/routing/arms` | GET | The auto tests (the ECI test and the quality-prior test): switch, safety stop, daily overspend, and per assigned arm the conversations, those without an answer on the first turn, turns and cost. Query: `days=N` (1–90, default 7) | | `/metrics` | GET | Prometheus metrics. Moves to `[metrics] bind` when that is set | ## Control [Section titled “Control”](https://prism.tm/docs/api/endpoints/#control) Loopback plus the owner token. See [Local control API](https://prism.tm/docs/api/control-api/). | Endpoint | Method | Purpose | | --- | --- | --- | | `/prism/control` | POST | Defaults, sessions, provider recovery, discovery, pricing | | `/prism/funding/clear` | POST | `{"provider": "..."}` or `{"all": true}`: clear an “unfunded” mark | | `/prism/auth/clear` | POST | Same body: clear an “authentication failed” block | | `/prism/health/recheck` | POST | `{"provider": "..."}`: probe a provider now | | `/prism/traces/{trace_id}` | GET | Orchestration trace of one request (metadata only, no content); `X-Prism-Trace-Id` names it. Needs `X-Prism-Admin-Token` | ## Provider connections [Section titled “Provider connections”](https://prism.tm/docs/api/endpoints/#provider-connections) Loopback plus the owner token (`X-Prism-Admin-Token`), or the owner’s console session, on the main address and the console address. Adds a provider to a running Prism without a restart, as **Connections** in the console does. | Endpoint | Method | Purpose | | --- | --- | --- | | `/prism/personal/custom-providers` | GET | `{"providers": [...], "dialects": [...]}`: each provider added this way (`id`, `label`, `base_url`, `dialect`, `models`, `connected`, `revision`) and the dialects it may use | | `/prism/personal/custom-providers` | POST | Add or change one provider. Body: `id` (lower case, at most 64 characters), `label`, `base_url`, `dialect` (`openai_compat`, `anthropic_messages`, `openai_responses` or `typesafe_systemone`), `api_key` (may be empty when an existing provider is changed: the stored key is used), `expected_revision` (required: `0` adds a provider, otherwise the `revision` the change is based on). Prism checks the endpoint with the key before it saves; the answer is the saved provider. `{"delete": ""}` removes one | | `/prism/personal/custom-providers?id=` | DELETE | Remove one provider | Prism also serves endpoints for its web console, its companion agents and its experiments that this page does not list. They are not part of the documented interface and can change. A path Prism does not serve answers `404` with code `route_not_found`. --- title: "Errors, timeouts and failover | Prism docs" description: "Error shapes and codes Prism returns, its timeouts, and when it tries another model." url: https://prism.tm/docs/api/errors/ --- [Skip to content](https://prism.tm/docs/api/errors/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/api/errors/#_top) - [Error shape](https://prism.tm/docs/api/errors/#error-shape) - [Codes](https://prism.tm/docs/api/errors/#codes) - [Model requests](https://prism.tm/docs/api/errors/#model-requests) - [Prism endpoints](https://prism.tm/docs/api/errors/#prism-endpoints) - [Console and administration endpoints](https://prism.tm/docs/api/errors/#console-and-administration-endpoints) - [All attempts failed](https://prism.tm/docs/api/errors/#all-attempts-failed) - [Failover](https://prism.tm/docs/api/errors/#failover) - [Timeouts](https://prism.tm/docs/api/errors/#timeouts) ## On this page - [Overview](https://prism.tm/docs/api/errors/#_top) - [Error shape](https://prism.tm/docs/api/errors/#error-shape) - [Codes](https://prism.tm/docs/api/errors/#codes) - [Model requests](https://prism.tm/docs/api/errors/#model-requests) - [Prism endpoints](https://prism.tm/docs/api/errors/#prism-endpoints) - [Console and administration endpoints](https://prism.tm/docs/api/errors/#console-and-administration-endpoints) - [All attempts failed](https://prism.tm/docs/api/errors/#all-attempts-failed) - [Failover](https://prism.tm/docs/api/errors/#failover) - [Timeouts](https://prism.tm/docs/api/errors/#timeouts) # Errors, timeouts and failover ## Error shape [Section titled “Error shape”](https://prism.tm/docs/api/errors/#error-shape) OpenAI-style endpoints (`/v1/*` except Anthropic Messages and Gemini, and `/prism/*`) return: ``` {"error": {"type": "invalid_request_error", "code": "invalid_request", "message": "...", "param": null}} ``` The `X-Prism-Error-Class` header repeats `code`, so a client can branch on it without parsing the message. `X-Request-Id` identifies the request. `/v1/messages` uses the Anthropic shape, `/v1beta/...` the Google shape and `/api/*` the Ollama shape; see [Ingress dialects](https://prism.tm/docs/api/dialects/). The codes below are the same; only the envelope differs. ## Codes [Section titled “Codes”](https://prism.tm/docs/api/errors/#codes) Every code below is promised: a client may branch on it, and it keeps its meaning in 1.x. The messages are not promised. ### Model requests [Section titled “Model requests”](https://prism.tm/docs/api/errors/#model-requests) | Code | HTTP | Meaning | | --- | --- | --- | | `invalid_request` | 400 | Malformed JSON, invalid field, unknown model, invalid `prism` intent | | `invalid_request_size` | 400 | Body over `[server] max_request_body_bytes` (default 4 MiB), or `top_n` above 128 on rerank. Prism answers 400, not 413, except for a request with `Idempotency-Key` (see `request_too_large`) | | `request_too_large` | 413 | A request with `Idempotency-Key` whose body is over `[server] max_request_body_bytes`. On `/v1/messages` it is also the Anthropic error type of any 413 | | `invalid_idempotency_key` | 400 | `Idempotency-Key` is not one visible-ASCII value of at most 128 bytes; see [Headers](https://prism.tm/docs/api/headers/#request-headers) | | `invalid_idempotency_reset` | 400 | `X-Prism-Idempotency-Reset` is not `true` or `false`, or comes without `Idempotency-Key` | | `streaming_response_guard_unavailable` | 400 | A streamed request under a `[traffic_guard]` policy that redacts or blocks answers; such a policy needs a request without streaming. No provider was called | | `session_identity_conflict` | 400 | `X-Prism-Session` and body `session_id` differ | | `personal_key_required` | 401 | Main address in an organization: every model request needs a personal Prism key, the owner’s included. Discovery, health and the model list stay open | | `unauthorized` | 401 | Managed address: no valid key. A request with a Prism key on either address: the key is revoked, expired or unknown, or the request carries a query parameter that names a credential, or one outside the list of an image, audio, file or batch route (see [Requests with a Prism key](https://prism.tm/docs/api/listeners-and-auth/#requests-with-a-prism-key)). For one key that is revoked, expired or unknown (an app that was disconnected included), the message is “This Prism key is not valid: it was revoked or expired, or the app was disconnected. Sign in again from the app, or use a current key.”; every other case has the message `unauthorized`. Control and status endpoints: no valid token | | `billing_required` | 402 | Every provider tried asks for payment or a top-up | | `forbidden` | 403 | A request with a Prism key carries a header the managed address refuses, or the key may not use this address or route | | `policy_denied` | 403 | The key’s policy does not allow the request; the message names the part of the policy (endpoint, model, provider, spend, latency, concurrency and the like) | | `origin_not_allowed` | 403 | A browser request from an origin that is not in `[server] cors_allowed_origins` and carries no Prism key | | `corporate_unavailable` | 403 | A paid feature without an active subscription whose edition includes it; the body adds `unavailable{capability, reason, message, requires}`, where `requires` is the lowest edition that opens it (`pro`, `teams` or `enterprise`). When the edition does not include the feature (`reason: edition_required`) or no subscription is bound, the message is “This feature needs Prism . Please upgrade your plan.” | | `batch_spend_unverifiable` | 403 | Batch creation on the managed address | | `openai_access_suspended` | 403 | Teams and Enterprise: the organization suspended your requests to OpenAI models and no other company’s model can serve this request | | `route_not_found` | 404 | No endpoint at that method and path | | `thread_not_found` | 404 | `/v1/messages`: an Anthropic message thread Prism cannot continue (its connection or model is gone, or the binding expired); Anthropic shape with `error.details.error_code` | | `method_not_allowed` | 405 | A wrong method on most endpoints (the passthrough routes answer `400 invalid_request`) | | `idempotency_conflict` | 409 | `Idempotency-Key` is already bound to another request, or `X-Prism-Idempotency-Reset` named a request that still runs | | `channel_gone` | 410 | Every provider tried reports the model as permanently gone | | `traffic_guard_blocked` | 422, or 502 | `[traffic_guard]` blocked the request (422, no provider was called) or withheld the provider’s answer (502) | | `prism_overloaded` | 429, `Retry-After: 1` | Prism is behind on writing the records of answered keyed requests; retry shortly | | `budget_exceeded` | 429 | A `[[budget.limits]]` threshold with `action = "reject"` was reached, or every route of the request is closed by a spent `[[budget.account_limits]]` or `[[budget.model_limits]]` entry; `Retry-After` says when the earliest window resets | | `server_error` | 500 | Configuration or internal error | | `server_configuration_error` | 500 | Prism’s configuration does not pass its own check for serving model requests | | `integrity_incomplete` | 500 | A keyed request’s plan or record could not be saved, so it was not sent | | `traffic_guard_error` | 500, or 502 | `[traffic_guard]` could not check the request (500) or the answer (502) | | `idempotency_incomplete` | 503, or 500 | An idempotent request was cancelled by a shutdown (503 with `Retry-After`; a retry with the same key runs it again) or produced no answer (500) | | `endpoint_not_supported` | 501 | File, image, audio or batch endpoint with no OpenAI-compatible provider | | `invalid_upstream_body` | 502 | The provider’s answer could not be read in the dialect the client asked for (for example a Responses or Gemini answer that is neither that object nor a chat completion) | | `upstream_error` | 502, or the provider’s status | The provider failed. A provider’s own JSON error body is passed on with its status, and `X-Prism-Upstream-Status` names that status | | `all_attempts_failed` | provider’s status | Every attempt of a routed request failed; see below | | `overload` | 503, `Retry-After: 5` | Prism’s request queue is full, or a key already runs its limit of requests at once | | `prism_starting` | 503, `Retry-After: 2` | Prism is still loading its state after a start; the answer carries `X-Prism-Starting: 1` | | `prism_store_inconsistent` | 503 | Prism found its record of keyed requests inconsistent at start and refuses keyed requests until the store is repaired | | `idempotency_capacity` | 503 | The store of idempotent answers is full for now; retry later or without `Idempotency-Key` | | `session_lock_unavailable` | 503 | The conversation is locked to one model and provider that cannot serve now; Prism does not substitute another | | `orchestration_buffer_limit` | 503 | A stream Prism checks before passing it on reached its size or time bound before the answer was complete; the provider call was cancelled and nothing was sent to the client | | `providers_unavailable` | 503 | No provider can serve the request now (none connected, all unhealthy, or none offers the API). May carry `prism_switch_offer` | | `providers_rate_limited` | 503, provider’s `Retry-After` | Every provider tried is rate limited | | `no_eligible_executor` | 503 | The request’s requirements (local-only, capabilities, quality, effort) leave no model; `error.prism` lists the exclusions | | `privacy_route_unavailable` | 503 | A local-only request and no local model that can serve now; `error.prism.exclusions` names each local route that is out, its health state and the class behind it | | `timeout` | 504 | A provider or the queue did not answer in time | Retry `overload`, `prism_overloaded`, `prism_starting` and `timeout` with a delay, not at once. ### Prism endpoints [Section titled “Prism endpoints”](https://prism.tm/docs/api/errors/#prism-endpoints) The status, cost, fact, route-event, outcome and trace endpoints answer the codes above where they apply, and these: | Code | HTTP | Meaning | | --- | --- | --- | | `invalid_cost_period`, `invalid_cost_window` | 400 | `/prism/cost`: a `period` other than `day`, `week`, `month` or `all`; a `from`/`to` window that does not parse or is longer than 366 days | | `invalid_outcome`, `invalid_outcome_body` | 400 | `/prism/outcomes`: an outcome event that does not follow the schema, or a body that is not one | | `invalid_trace_id` | 400 | `/prism/traces/{trace_id}`: not a trace id | | `session_required` | 400 | `/prism/session/last-served` without `X-Prism-Session` | | `not_found` | 404 | `/prism/requests/{id}/route`: no such request for this caller | | `outcome_reference_unknown` | 404 | An outcome event names a request or session Prism does not know | | `outcomes_not_enabled` | 404 | The outcome endpoint is off on this installation | | `trace_not_found` | 404 | Tracing is off, or the trace does not exist or expired | | `served_model_not_found`, `served_model_history_not_enabled` | 404 | `/prism/session/last-served`: no finished request for the session, or the history is off | | `route_event_stream_limit` | 429 | Too many route-event streams are open | | `internal_error`, `cost_payload_error`, `trace_store_error`, `streaming_unsupported` | 500 | The report or trace could not be read | | `status_payload_not_configured`, `cost_payload_not_configured`, `cost_selectors_unavailable` | 501 | This build or start has no status or cost report, or its cost report does not take window, grouping or consumer selectors | | `facts_unavailable`, `cost_unavailable`, `route_events_unavailable` | 503 | The fact, cost or route-event store is not available now | ### Console and administration endpoints [Section titled “Console and administration endpoints”](https://prism.tm/docs/api/errors/#console-and-administration-endpoints) Console and administration endpoints add codes of their own. These concern keys and Smart: 409 `app_connection` when a key of an app the person signed in to would be changed (it can only be disconnected), 409 `smart_band_unavailable` and 409 `smart_cascade_unavailable` when the Smart quality band or checked cascade is switched on without the official build or the routing store, and 403 `owner_required` when someone other than the installation owner changes them. Two concern editions: 409 `seat_limit` (“every paid seat is taken; add seats to the subscription first”) when an invitation would bring in a person beyond the installation’s seat limit (Free 3; Pro and Teams their paid seats, at most 5 and 10; Enterprise its paid seats), and 409 `edition_limit` (“several teams need Prism Enterprise”) for a second team below Enterprise. A `provider::model` pin to an OAuth account awaiting reauthentication returns 503 `providers_unavailable`, not an unknown-model 400. Its message directs the connection owner to Connections in the Prism console to sign in again. This applies to Chat, Messages and Responses and does not switch to a sibling account. There is no `Retry-After`: retrying alone cannot repair the login. Unknown connection names still return 400 `invalid_request`. ### All attempts failed [Section titled “All attempts failed”](https://prism.tm/docs/api/errors/#all-attempts-failed) When Prism tried several models and all failed, it returns: ``` {"error": {"type": "upstream_error", "code": "all_attempts_failed", "message": "auto route failed on all attempted providers: claude-oauth/claude-opus-5-5 content_filter, openrouter/z-ai/glm-5.3-flash unavailable", "attempts": [{"provider": "...", "model": "...", "status": 503, "reason": "...", "latency_ms": 812}]}} ``` The message names each provider and model tried with its reason, for clients that show only the message. `X-Prism-Attempts`, `X-Prism-Attempt-Providers` and `X-Prism-Attempt-Reasons` summarise the same list. `content_filter` means the provider withheld the answer (`finish_reason: content_filter`, Anthropic `stop_reason: refusal`). The body holds no request content, provider response or credential. ## Failover [Section titled “Failover”](https://prism.tm/docs/api/errors/#failover) For a request Prism routes itself (`auto`, a strategy, a role, a bare model id), an attempt that fails with a retryable error (timeout, 5xx, rate limit, unavailable model, a model refusing the request with 403) moves to the next candidate in the order. A model that refused a client this way is skipped for that client, recognised by its User-Agent, for the next six hours; other clients still reach it. The tool results of a tool loop go to the model that asked for the tools; only when that model withholds its answer (`content_filter`) does the turn move to the next model. Prism never retries after the first byte of a streamed answer has reached the client. When an OpenAI model refuses a request (`content_filter`, or an OpenAI `invalid_prompt` usage-policy rejection), Prism does not send it to any other route to an OpenAI model: not another subscription account, not the OpenAI API, not OpenRouter `openai/*` or another reseller. OpenAI’s Usage Policies forbid working around its safeguards. Models of other creators are still tried; gpt-oss served by another company counts as that company’s model. The routing record carries `openai_refusal_held: true`. An Anthropic model’s refusal is held the same way (`content_filter`: Anthropic `stop_reason: refusal`, or a usage-policy rejection): Prism does not send the request to another route to an Anthropic model, whether another Claude subscription account, the Anthropic API or OpenRouter `anthropic/*`. Anthropic’s Usage Policy from 2026-11-12 forbids coordinating across accounts to circumvent its guardrails. Other creators’ models are still tried, and a rate limit or server error of a Claude route is not a refusal. The routing record carries `anthropic_refusal_held: true`. A `provider::model` request stays on that provider unless failover to other providers is allowed; see [Choosing a model](https://prism.tm/docs/api/choosing-a-model/#pinned-provider). A 429 marks only that model as cooling down, not the whole provider. A provider is marked unhealthy when two of its models fail within about a minute, or on authentication, transport or gateway errors. An unhealthy provider returns to routing after its probes succeed again. An answer that names a capability the model does not have, or that blames the request itself, is never counted against the model or the provider, whatever HTTP status the provider chose. A text-only model answering an image request (`image input is not supported`, `Multimodal projector is not loaded`, `At most 0 image(s)`, or OpenRouter’s `No endpoints found that support image input`) records `vision=false` for that route and stays in routing; so does a request the server could not read (`Failed to load image`, `Unable to process input image`, `Invalid content type`) and an ordinary bad parameter. Credential and funding refusals still take the account out, a model the account may not use stays refused, and a model the provider no longer lists still leaves routing. ## Timeouts [Section titled “Timeouts”](https://prism.tm/docs/api/errors/#timeouts) | Phase | Remote provider | Self-hosted / local provider | | --- | --- | --- | | Stream opening (until the provider answers with HTTP 200) | 8 s; 60 s for models that reason before answering | 90 s | | Whole non-streaming attempt | 120 s; 600 s for models that reason before answering | 600 s | | Silence inside a running stream | 120 s | 600 s | A model counts as reasoning when its provider’s model list says so, when another provider that sells the same model says so (a vendor’s own list often does not), or when one of its answers through this Prism carried reasoning text or reasoning tokens. Only a list that says the model does not reason, with no such answer seen, keeps it at the shorter wait. A provider counts as self-hosted when its address is loopback, a private network, `100.64.0.0/10` or `.local`, or when `self_hosted = true` is set. Change the values in `[runtime_policy]`: ``` [runtime_policy]stream_open_timeout_remote_ms = 8000stream_open_timeout_remote_reasoning_ms = 60000stream_open_timeout_local_ms = 90000 # self-hosted/local providersupstream_request_timeout_remote_ms = 120000upstream_request_timeout_remote_reasoning_ms = 600000upstream_request_timeout_local_ms = 600000stream_idle_timeout_remote_ms = 120000 # 0 disablesstream_idle_timeout_local_ms = 600000 # 0 disables ``` Models that think for a long time before the first token can trip a client’s own stream timeout. `/v1/models` gives each chat model a `prism.ttfb` entry: `class: "thinking"` means its 90th-percentile time to first byte through this Prism is 8 seconds or more. To keep a client connection alive during that silence on a Chat Completions stream sent straight to one model, set `[server] stream_open_keepalive_ms` (for example `5000`): after the provider answers HTTP 200, Prism sends SSE comment lines until the first byte arrives. Off by default. It does not apply to Responses streams or to streams Prism buffers to check the answer before passing it on (default routing of `auto` streams). --- title: "Headers | Prism docs" description: "Request headers Prism reads and response headers it sets." url: https://prism.tm/docs/api/headers/ --- [Skip to content](https://prism.tm/docs/api/headers/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/api/headers/#_top) - [Request headers](https://prism.tm/docs/api/headers/#request-headers) - [Response headers](https://prism.tm/docs/api/headers/#response-headers) - [Diagnostic headers](https://prism.tm/docs/api/headers/#diagnostic-headers) - [Browser pages on other origins](https://prism.tm/docs/api/headers/#browser-pages-on-other-origins) ## On this page - [Overview](https://prism.tm/docs/api/headers/#_top) - [Request headers](https://prism.tm/docs/api/headers/#request-headers) - [Response headers](https://prism.tm/docs/api/headers/#response-headers) - [Diagnostic headers](https://prism.tm/docs/api/headers/#diagnostic-headers) - [Browser pages on other origins](https://prism.tm/docs/api/headers/#browser-pages-on-other-origins) # Headers ## Request headers [Section titled “Request headers”](https://prism.tm/docs/api/headers/#request-headers) | Header | Effect | | --- | --- | | `Authorization: Bearer ` | Managed address: the issued key. Status and metrics: the read token. Control API: the owner token | | `X-Prism-Admin-Token` | Owner token for the control API, status, cost, metrics and traces | | `X-Prism-Read-Token` | Read-only token (`PRISM_READ_TOKEN`) for status, cost and metrics | | `X-Prism-Strategy` | Strategy for this request: `balanced`, `quality`, `cheap`, `fast`, `private` | | `X-Prism-Session` | Names the conversation; same as body `session_id` | | `X-Prism-App` | Names the agent; a mapped name selects a routing profile | | `X-Prism-Profile` | Selects a routing profile by name | | `X-Prism-Allow-Provider-Failover` | `true` lets a `provider::model` request go to another provider | | `X-Prism-Strict-Model` | `true` keeps this request at one seller: the provider a `provider::model` names, or the first seller in Prism’s order for a bare model id; no other provider and no other version of a rolling alias takes over. `false` turns off a session, agent or installation setting for this request | | `X-Prism-Tool-Compression` | Tool-output compression for this request | | `X-Prism-Routing-Mode` | `manual` or `automatic`: the routing mode of this request, above the session’s, the agent’s and the default | | `Idempotency-Key` | With a Prism key: one visible-ASCII value of at most 128 bytes on `POST /v1/chat/completions`, `/v1/responses` or `/v1/messages`. A repeat of the same eligible request with the same key within two minutes of its answer gets that answer again instead of a new model call; a repeat while the first still runs waits for it. Eligible: not streaming, an explicit model, `temperature: 0`, at most one choice, no tools, media, `X-Prism-Session` or query string. The same key with another body answers `409 idempotency_conflict` | | `X-Prism-Idempotency-Reset: true` | With `Idempotency-Key`: drop the finished answer kept for this key and run the request again. It does not reset a request that still runs | | `X-Prism-Outcome: ignore` | Served, billed and recorded as usual, but left out of outcome judgment and of the Experiments page’s policy and model tables. For evaluation runs, benchmarks and judges that send one task to several models | | `X-Request-Id` | Managed address: your request id (one value) | See [Choosing a model](https://prism.tm/docs/api/choosing-a-model/#request-headers) for how the routing headers interact. ## Response headers [Section titled “Response headers”](https://prism.tm/docs/api/headers/#response-headers) Set on answers to Chat Completions and Responses requests, and on the translated dialects where they apply. The headers in this table are promised: they keep their names and meaning in 1.x. | Header | When | Meaning | | --- | --- | --- | | `X-Request-Id` | Every answer | Prism’s id for this request | | `X-Prism-Provider` | Routed answer | Provider that served it, after any failover | | `X-Prism-Model` | Routed answer | Model id sent to that provider | | `X-Prism-Reason` | Prism chose the model | Why this model was chosen, for example `tier_floor_order`, `smart_quality_band` or `smart_checked_cascade`. The header is promised; its values are not a closed list and new ones may appear | | `X-Prism-Selector`, `X-Prism-Quality`, `X-Prism-Candidates` | Prism chose the model | Selector, the chosen model’s quality score, number of candidates | | `X-Prism-Role-Alias`, `X-Prism-Resolved-Model` | A role alias was used | Alias name and the model it resolved to | | `X-Prism-Requested-Model` | The Smart quality band, or the Smart checked cascade’s cheap model, answered a role or named-model request with another model | The `model` value the client sent; `X-Prism-Model` and `X-Prism-Provider` name the model that answered, and `X-Prism-Reason` is `smart_quality_band` or `smart_checked_cascade`. See [Smart quality band](https://prism.tm/docs/api/choosing-a-model/#smart-quality-band) | | `X-Prism-Cascade` | The Smart checked cascade is on and the request was in its scope | `accepted`: the cheap model’s answer passed the check and was served. `escalated:`: the strong model’s answer was served; the reason is `format`, `disagreement`, `partner_unavailable`, `self_inconsistent`, `sample_unavailable`, `tool_schema`, `judge`, `judge_unfunded` or `judge_unavailable`. `kept:`: the check failed but the cheap answer was served, because a held OpenAI or Anthropic refusal left no strong attempt (`refusal_held`) or the strong model did not answer (`strong_failed`). `skipped:`: the cascade did not run (`endpoint`, `streaming`, `strategy`, `skill`, `long_context`, `session_lock`, `pinned`, `call_limit`, `cost_limit`, `no_cheaper_model`, `no_partner`, `budget_fallback`). `X-Prism-Reason` is `smart_checked_cascade` or `smart_checked_cascade_escalated` when it ran. See [Smart checked cascade](https://prism.tm/docs/api/choosing-a-model/#smart-checked-cascade) | | `X-Prism-Attempts`, `X-Prism-Attempt-Providers`, `X-Prism-Attempt-Reasons` | Routed answer | Number of attempts, providers tried, result of each | | `X-Prism-Cost-USD`, `X-Prism-Cost-Status`, `X-Prism-Pricing-Revision` | Routed answer | Cost in USD; `known`, `partial` or `unknown`; price table revision | | `X-Prism-Trace-Id`, `X-Prism-Orchestration`, `X-Prism-Strategy-Effective` | Routed chat or Responses answer | Trace id; calls, escalation and cost; strategy used | | `X-Prism-Selection-Reason` | Routed chat or Responses answer | Deprecated: read `X-Prism-Reason`. Still sent in 1.x; removed in 2.0.0 | | `X-Prism-Reasoning` | The request asked for reasoning (`reasoning_effort`, `reasoning`, `thinking` or the like) | `requested=;effective=;support=`: what the request asked for, what was sent to the provider (`none` when the provider’s dialect has no known translation), and `native`, `provider_adapter` or `untranslated` | | `X-Prism-Session-Migrated` | This turn was served by another account or model than the previous turn | Present only then | | `X-Prism-Served-By` | `[harness] announce_served_model = true` | `provider/model` | | `X-Prism-Adjusted-Params` | Prism changed request parameters | For example `temperature=dropped;max_tokens=renamed:max_completion_tokens`; see [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) | | `X-Prism-Upstream-Endpoint` | A chat request was served through the provider’s Responses API | `/v1/responses` | | `X-Prism-Responses-Translated`, `X-Prism-Responses-Dropped` | A `/v1/responses` request was served through Chat Completions | `chat_completions`; fields not carried | | `X-Prism-Output-Limit-Warning` | A concrete model’s known output limit is below the requested `max_tokens` | Warning text | | `X-Prism-Budget-Warning`, `X-Prism-Budget-Active` | A budget threshold applies | Budget state | | `X-Prism-Control` | The message was an in-chat `/prism` command | `accepted` or `rejected` | | `X-Prism-Tool-Compression` and `-Before-Bytes`, `-After-Bytes`, `-Saved-Bytes`, `-Before-Tokens-Estimate`, `-After-Tokens-Estimate` | Chat requests | Tool-output compression mode and its effect | | `X-Prism-Traffic-Guard-Revision` | `[traffic_guard]` checked a Chat, Responses or Messages request | Revision of the guard policy that was applied | | `X-Prism-Traffic-Guard-Action` | The guard acted | `observe`, `redact` or `block`; a blocked request answers `422 traffic_guard_blocked` and reaches no provider | | `X-Prism-Traffic-Guard-Stream` | A streamed request under a response guard | `observe-unprotected`: the streamed answer is observed but not redacted or blocked. `unsupported-response-enforcement`: the policy redacts or blocks answers, which needs a request without streaming; it answers `400 streaming_response_guard_unavailable` | | `X-Prism-Idempotency` | The request carried `Idempotency-Key` | `miss` (run now), `coalesced` (joined a run in progress), `replayed` (the kept answer), `ineligible` (run normally, see `X-Prism-Idempotency-Eligibility`), `conflict` (`409 idempotency_conflict`), `capacity` (`503 idempotency_capacity`: the store is full) | | `X-Prism-Idempotency-Eligibility` | The request carried `Idempotency-Key` | `eligible`, or why the request cannot be replayed, for example `streaming` or `query` | | `X-Prism-Idempotency-Durability`, `X-Prism-Idempotency-Expires-At` | An answer was kept for replay | `memory` (kept in memory only, gone after a restart); when the kept answer expires | | `X-Prism-Starting` | Prism is still loading its state after a start | `1`. Requests answer `503 prism_starting` with `Retry-After: 2`; `/health` answers `503` with `{"status":"starting"}` | | `X-Prism-Error-Class` | Every error Prism writes | The error `code`; `upstream_error` when the provider’s error is passed on | | `X-Prism-Upstream-Status` | Provider error passed on | The provider’s HTTP status | | `X-Upstream-Request-Id` | Provider sent a request id | The provider’s id | | `Retry-After` | `overload` (5 s), rate limits, a model server that is starting, Prism starting (2 s) | Seconds to wait | ### Diagnostic headers [Section titled “Diagnostic headers”](https://prism.tm/docs/api/headers/#diagnostic-headers) Every other `X-Prism-*` response header is diagnostic: it is not promised, and its name, values and presence may change in any release. These are: `X-Prism-Request-Normalized`, `X-Prism-Request-Policy`, `X-Prism-Request-Normalized-Fields-Count`, `X-Prism-Effort-Requested`, `X-Prism-Effort-Effective`, `X-Prism-Backend-Policy`, `X-Prism-Backend`, `X-Prism-Route-Event`, `X-Prism-Semantic-Status`, `X-Prism-Semantic-Assist`, `X-Prism-Semantic-Model`, `X-Prism-Semantic-Rollout`, `X-Prism-Semantic-Shadow`, `X-Prism-Semantic-Similarity`, `X-Prism-Semantic-Tier`, `X-Prism-Early-Request-Id`, `X-Prism-Audit-Before` and `X-Prism-Experiment-Receipt`. ### Browser pages on other origins [Section titled “Browser pages on other origins”](https://prism.tm/docs/api/headers/#browser-pages-on-other-origins) A page on another origin can read only the headers in `Access-Control-Expose-Headers`: `X-Request-Id`, `X-Upstream-Request-Id`, `X-Prism-Error-Class`, `X-Prism-Upstream-Status`, `Retry-After`, `X-Prism-Provider`, `X-Prism-Model`, `X-Prism-Selector`, `X-Prism-Reason`, `X-Prism-Served-By`, `X-Prism-Role-Alias`, `X-Prism-Resolved-Model`, `X-Prism-Requested-Model`, `X-Prism-Cascade`, `X-Prism-Quality`, `X-Prism-Candidates`, `X-Prism-Attempts`, `X-Prism-Attempt-Providers`, `X-Prism-Attempt-Reasons`, `X-Prism-Control`, `X-Prism-Cost-Status`, `X-Prism-Cost-USD`, `X-Prism-Pricing-Revision`, `X-Prism-Reasoning`, `X-Prism-Session-Migrated`, `X-Prism-Upstream-Endpoint`, the `X-Prism-Tool-Compression` headers, the four `X-Prism-Idempotency` headers and, of the diagnostic headers, `X-Prism-Request-Normalized`, `X-Prism-Request-Policy`, `X-Prism-Request-Normalized-Fields-Count` and `X-Prism-Route-Event`. The other headers above, among them `X-Prism-Adjusted-Params`, `X-Prism-Trace-Id` and `X-Prism-Selection-Reason`, are sent but a page on another origin cannot read them. Pages on other origins can call the main address only when their origin is in `[server] cors_allowed_origins` or the request carries a Prism key; other origins get `403`. The model itself never sees these headers, and many agent tools drop them. To put the routing result in the response body, see [Agent self-description](https://prism.tm/docs/clients/agent-self-description/). --- title: "Listeners and authentication | Prism docs" description: "The addresses Prism listens on, what each serves, and which token or key each needs." url: https://prism.tm/docs/api/listeners-and-auth/ --- [Skip to content](https://prism.tm/docs/api/listeners-and-auth/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/api/listeners-and-auth/#_top) - [Listeners](https://prism.tm/docs/api/listeners-and-auth/#listeners) - [Tokens and keys](https://prism.tm/docs/api/listeners-and-auth/#tokens-and-keys) - [What each endpoint needs](https://prism.tm/docs/api/listeners-and-auth/#what-each-endpoint-needs) - [Main address](https://prism.tm/docs/api/listeners-and-auth/#main-address) - [Managed address](https://prism.tm/docs/api/listeners-and-auth/#managed-address) - [Requests with a Prism key](https://prism.tm/docs/api/listeners-and-auth/#requests-with-a-prism-key) - [Console](https://prism.tm/docs/api/listeners-and-auth/#console) - [Control listener](https://prism.tm/docs/api/listeners-and-auth/#control-listener) ## On this page - [Overview](https://prism.tm/docs/api/listeners-and-auth/#_top) - [Listeners](https://prism.tm/docs/api/listeners-and-auth/#listeners) - [Tokens and keys](https://prism.tm/docs/api/listeners-and-auth/#tokens-and-keys) - [What each endpoint needs](https://prism.tm/docs/api/listeners-and-auth/#what-each-endpoint-needs) - [Main address](https://prism.tm/docs/api/listeners-and-auth/#main-address) - [Managed address](https://prism.tm/docs/api/listeners-and-auth/#managed-address) - [Requests with a Prism key](https://prism.tm/docs/api/listeners-and-auth/#requests-with-a-prism-key) - [Console](https://prism.tm/docs/api/listeners-and-auth/#console) - [Control listener](https://prism.tm/docs/api/listeners-and-auth/#control-listener) # Listeners and authentication ## Listeners [Section titled “Listeners”](https://prism.tm/docs/api/listeners-and-auth/#listeners) | Listener | Setting | Default | Serves | | --- | --- | --- | --- | | Main | `[server] host`, `port` | `127.0.0.1:18000`, always on | All model endpoints and dialects (including Ollama), discovery, status, cost, metrics, control, [machine pairing](https://prism.tm/docs/managed-inference/add-machine/); the console’s API to loopback clients | | Console | `[console] bind` | `127.0.0.1:18081`, on | The web console and its API | | Managed | `[server] managed_bind` | off | Model endpoints and dialects (including Ollama) for clients with a Prism key, and the [operator API](https://prism.tm/docs/managed-inference/agent-tokens/) for agent tokens | | Control | `[server] control_bind` | off | Control API and discovery on a loopback address | | Metrics | `[metrics] bind` | off | `/metrics` and `/health`; `/metrics` then leaves the main listener | ## Tokens and keys [Section titled “Tokens and keys”](https://prism.tm/docs/api/listeners-and-auth/#tokens-and-keys) | Name | Where it comes from | Used for | | --- | --- | --- | | Owner token | `PRISM_ADMIN_TOKEN` if set; otherwise generated on first start into `/console-token` (mode 0600). `prism console` prints it | Console sign-in, control API, status and metrics when protected, traces | | Read token | `PRISM_READ_TOKEN` (optional) | Status, cost and metrics only | | Managed key | Issued in the console (Configuration → API keys → Add API key); `prism_it_...`, shown once, expires after 90 days by default | Model requests on the managed address | ## What each endpoint needs [Section titled “What each endpoint needs”](https://prism.tm/docs/api/listeners-and-auth/#what-each-endpoint-needs) | Endpoints | Main | Managed | Control | Console | | --- | --- | --- | --- | --- | | Model endpoints (`/v1/*`, `/v1beta/*`, root aliases) | No key; a person’s key in an organization (Teams, Enterprise) | Managed key | not served | not served | | Ollama API (`/api/*`, `/`) | No key; a person’s key in an organization for model calls | Managed key | not served | not served | | `/prism/operator/*` | not served | Agent token with the matching scope | not served | not served | | `/prism/pair`, `/prism/pair/install.sh`, `/prism/pair/agent` | No key; `/prism/pair` needs a live pairing code | not served | not served | not served | | `/v1/messages/count_tokens` | No key | always `404` | not served | not served | | `/health` | No key | not served | No key | No key | | `/.well-known/prism.json`, `/prism/agent-context` | No key | not served | No key | not served | | `/.well-known/oauth-authorization-server` | No key | not served | not served | not served | | `/oauth/device_authorization` | No key | not served | not served | not served | | `/oauth/token` | No key | not served | not served | not served | | `/prism/clients/omp.ts` (the [omp extension](https://prism.tm/docs/clients/sign-in-from-an-app/#omp)) | No key | not served | not served | not served | | `/prism/models`, `/prism/session/last-served` | No key | not served | not served | not served | | `/prism/capabilities`, `/prism/skills/*` | No key | not served | No key | No key | | `/prism/status` | Owner or read token, if either is set | not served | same as main | not served | | `/prism/cost` | Owner or read token, if either is set | not served | not served | not served | | `/prism/routing/arms` | Owner or read token, if either is set | not served | same as main | not served | | `/metrics` | Owner or read token, if either is set (only without `[metrics] bind`) | not served | not served | not served | | `/prism/control` | Loopback + owner token | not served | Loopback + owner token | Owner token (`X-Prism-Admin-Token` only) | | `/prism/funding/clear`, `/prism/auth/clear`, `/prism/health/recheck` | Loopback + owner token | not served | Loopback + owner token | not served | | `/prism/traces/{id}` | Loopback + `X-Prism-Admin-Token` | not served | same as main | not served | “Owner or read token, if either is set”: with neither `PRISM_ADMIN_TOKEN` nor `PRISM_READ_TOKEN` set these endpoints are open. Otherwise send `X-Prism-Admin-Token` with the owner token, or the read token as `X-Prism-Read-Token` or `Authorization: Bearer`. A wrong token gets `401 unauthorized`. The read token never opens the control API. “Loopback”: the request must come from `127.0.0.1` or `::1`; other addresses get `403`. The control API with no owner token configured rejects every request. The separate metrics listener has no authentication; limit who can reach its address. `/.well-known/oauth-authorization-server`, `/oauth/device_authorization` and `/oauth/token` let an app ask a person for a Prism key (the OAuth device grant). They take no key because the app does not have one yet, and they are on the main address only; the managed address answers `401` for them like for any request without a key. Nothing is issued until a person signed in to the Prism console allows the request, and the result is a Prism key of that person. They answer `404` when Prism cannot issue keys, or when the console is turned off or did not start. See [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/). ## Main address [Section titled “Main address”](https://prism.tm/docs/api/listeners-and-auth/#main-address) Outside an organization the main address does not check a key. Anyone who can reach it can send model requests through your provider accounts. In an organization (Teams, Enterprise) every model request needs a person’s Prism key; one without a key gets `401 personal_key_required`. Model lists, discovery and health stay open. Keep `[server] host = "127.0.0.1"` unless the network in front of it is yours. Browsers on other origins are refused (`403`) unless their origin is in `[server] cors_allowed_origins`. A browser request that carries a Prism key (`prism_it_…`) is served from any origin on every address: the key is the credential, as with provider APIs. This is how browser extensions and Office add-ins connect. A model request that carries a Prism key is checked on the main address as on the managed one: see [Requests with a Prism key](https://prism.tm/docs/api/listeners-and-auth/#requests-with-a-prism-key). ## Managed address [Section titled “Managed address”](https://prism.tm/docs/api/listeners-and-auth/#managed-address) Turn it on with `[server] managed_bind`, for example `127.0.0.1:18002`. - Plain HTTP is accepted on a loopback or tailnet (`100.64.0.0/10`) address. Any other address, including `0.0.0.0`, needs `[server] managed_tls_cert` and `managed_tls_key`; without them Prism refuses to load the configuration. - Every request, including requests to unknown paths, needs a Prism key (`prism_it_...`). Prism reads it from the same places as on the main address; see [Requests with a Prism key](https://prism.tm/docs/api/listeners-and-auth/#requests-with-a-prism-key). A request without a key, or with a key that is unknown, revoked or expired, gets `401`, with `WWW-Authenticate: Bearer`. - The key’s policy limits endpoints, models, providers, spend, latency and concurrency. A request outside it gets `403 forbidden`. Anthropic Messages and Gemini requests are checked as `/v1/chat/completions`. - Requests that carry `OpenAI-Organization`, `OpenAI-Project` or a header that Prism itself sets on answers or between its own processes (`X-Prism-Idempotency`, `X-Prism-Idempotency-Durability`, `X-Prism-Idempotency-Expires-At`, `X-Prism-Idempotency-Eligibility`, `X-Prism-Managed-Request-Id`, `X-Prism-Managed-Task-Key`, `X-Prism-Managed-Policy-Digest`) get `403 forbidden`. The request headers `Idempotency-Key` and `X-Prism-Idempotency-Reset` are accepted; see [Headers](https://prism.tm/docs/api/headers/#request-headers); provider account selection stays on the Prism side. Anthropic’s `anthropic-version` and `anthropic-beta` headers are passed on, so Claude Code and the Anthropic SDKs work on the managed address. A version later than `2023-06-01`, such as `2026-10-21`, goes only to the Claude API (`api.anthropic.com`); other Anthropic-compatible providers get `2023-06-01`. - The managed address serves the Ollama API with a key like the other dialects. It does not serve discovery, `/prism/status`, `/prism/cost` or the control API. ## Requests with a Prism key [Section titled “Requests with a Prism key”](https://prism.tm/docs/api/listeners-and-auth/#requests-with-a-prism-key) A model request that carries a Prism key (`prism_it_…`) is checked the same way on the main and on the managed address. **Where the key goes.** Prism reads the key from `Authorization: Bearer`, `x-api-key`, `x-goog-api-key`, the `key` query parameter, or a `/k/prism_it_…` prefix of the base address; see [Connect clients](https://prism.tm/docs/clients/). Two different Prism keys in one request get `401`. So does a credential in another place: `Proxy-Authorization`, or a query parameter that names a credential or a signed address, such as `access_token`, `api_key`, `token` or `signature`. The managed address also refuses a request that carries a cookie. **Query parameters.** On model requests (Chat Completions, Responses, Messages, embeddings, rerank, the model list and the Gemini dialect) and on Prism’s own routes, Prism ignores every other query parameter: it is never sent to the provider. For example, Codex lists models with `?client_version=…`, Azure-style OpenAI clients add `?api-version=…`, and Claude Code sends `?beta=true`. Two parameters change the answer: | Request | Parameter | What Prism does with it | | --- | --- | --- | | `GET /v1/models`, `GET /models` | `beta`, `limit`, `after_id`, `before_id` | Ignored: the answer is always the whole list. Claude Code sends `?limit=1000`; the Anthropic SDKs send the others when they page through the list | | `POST /v1beta/models/{model}:{method}` | `alt` | Chooses the framing of a `streamGenerateContent` answer: `alt=sse` for server-sent events, otherwise one JSON array. It does not start a stream; the method does | `POST /v1/messages/count_tokens` with a key answers `404`, with or without parameters. The image, audio, file and batch routes send the query on to the provider, so they accept only these parameters and answer `401` to any other: | Request | Accepted | What Prism does with them | | --- | --- | --- | | `GET /v1/files`, `GET /v1/batches` | `after`, `limit`, `order`, `purpose` | Sent on to the provider | | Every other image, audio, file or batch request | none | | ## Console [Section titled “Console”](https://prism.tm/docs/api/listeners-and-auth/#console) The console listens on `[console] bind` (`127.0.0.1:18081`). Plain HTTP is accepted on loopback; any other address needs `[console] tls_cert` and `tls_key`, or `allow_plaintext = true` on a network whose transport you trust. See [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/). ## Control listener [Section titled “Control listener”](https://prism.tm/docs/api/listeners-and-auth/#control-listener) When `[server] host` is not loopback, requests from the Prism machine to it do not count as loopback, and the control API refuses them. `[server] control_bind = "127.0.0.1:18001"` starts a loopback-only listener for the control API, discovery and status. A non-loopback `control_bind` stops Prism at startup. --- title: "Parameter compatibility | Prism docs" description: "How Prism adjusts request parameters a provider does not accept, and how it tells you." url: https://prism.tm/docs/api/parameter-compatibility/ --- [Skip to content](https://prism.tm/docs/api/parameter-compatibility/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/api/parameter-compatibility/#_top) - [Built-in adjustments](https://prism.tm/docs/api/parameter-compatibility/#built-in-adjustments) - [Learned adjustments](https://prism.tm/docs/api/parameter-compatibility/#learned-adjustments) - [Chat requests served through the Responses API](https://prism.tm/docs/api/parameter-compatibility/#chat-requests-served-through-the-responses-api) - [logprobs](https://prism.tm/docs/api/parameter-compatibility/#logprobs) - [Reading the header](https://prism.tm/docs/api/parameter-compatibility/#reading-the-header) ## On this page - [Overview](https://prism.tm/docs/api/parameter-compatibility/#_top) - [Built-in adjustments](https://prism.tm/docs/api/parameter-compatibility/#built-in-adjustments) - [Learned adjustments](https://prism.tm/docs/api/parameter-compatibility/#learned-adjustments) - [Chat requests served through the Responses API](https://prism.tm/docs/api/parameter-compatibility/#chat-requests-served-through-the-responses-api) - [logprobs](https://prism.tm/docs/api/parameter-compatibility/#logprobs) - [Reading the header](https://prism.tm/docs/api/parameter-compatibility/#reading-the-header) # Parameter compatibility Providers disagree about which request parameters they accept. Prism adjusts parameters so a request reaches the model you chose, without changing the model. The adjustments on this page (built-in, learned, and the Chat to Responses path) are listed in the `X-Prism-Adjusted-Params` response header. A request translated to another provider dialect (for example Chat Completions sent to an Anthropic or Gemini model) carries only the fields that dialect has; the fields it leaves out are not listed in that header. A `/v1/responses` request served through Chat Completions lists them in `X-Prism-Responses-Dropped`. ## Built-in adjustments [Section titled “Built-in adjustments”](https://prism.tm/docs/api/parameter-compatibility/#built-in-adjustments) On Chat Completions: - `max_tokens` is renamed to `max_completion_tokens` for the OpenAI o1, o3, o4 and gpt-5 families. - A non-default `temperature` or `top_p` is dropped for reasoning models that accept only `1` (not for gpt-5-chat variants). The value `1` is kept. - For automatic routing only, `reasoning_effort` (Responses: `reasoning`) is removed when the chosen model is a non-reasoning gpt-4o, gpt-4.1, gpt-4 or gpt-3.5 model. These adjustments also apply to requests that name a concrete model. ## Learned adjustments [Section titled “Learned adjustments”](https://prism.tm/docs/api/parameter-compatibility/#learned-adjustments) When a provider answers `400` or `422` and names a parameter of the request that it does not support, Prism retries the same provider and model with the parameter changed: - set to the value the provider suggests, if it suggests one; - renamed to the field the provider names, if it names one; - otherwise dropped. At most four such retries happen per attempt. A repaired rejection does not count as a failure of the model. For streaming chat the retry happens before any response bytes are sent; Prism never repairs a stream in the middle. Prism remembers the fix for that provider, model and task type and applies it to later matching requests before sending them. A rule expires seven days after it was learned, so the original parameter is tried again; rules survive a restart. They are stored in `/learned-param-rules.json`, at most 16 per provider, model and task type. Learned rules never change `model`, `messages`, `input`, `instructions`, `prompt`, `tools`, `functions`, `tool_choice`, `function_call`, `response_format`, `text`, `stream`, `n`, `modalities`, `audio`, `previous_response_id` or `conversation`. Other wire parameters, including `reasoning_effort`, can change: naming a concrete model does not guarantee the request body reaches the provider byte for byte. List and remove learned rules with the `list_learned_rules` and `forget_learned_rules` actions of the [local control API](https://prism.tm/docs/api/control-api/), or in the web console. ## Chat requests served through the Responses API [Section titled “Chat requests served through the Responses API”](https://prism.tm/docs/api/parameter-compatibility/#chat-requests-served-through-the-responses-api) Some models answer only on the Responses API. When a provider’s Chat endpoint rejects a request and points to `/v1/responses`, or the catalog marks a model as Responses-only on a provider that offers that API, Prism sends the chat request to `/v1/responses` and translates the answer back to Chat Completions, streamed or not. You keep calling `/v1/chat/completions`. - `X-Prism-Adjusted-Params` contains `endpoint=set:responses`, and `X-Prism-Upstream-Endpoint: /v1/responses` is set. - Chat-only fields are dropped and listed: `stop`, `seed`, `presence_penalty`, `frequency_penalty`, `logit_bias`, `logprobs`, `top_logprobs`, `prediction`, `web_search_options`. - Requests this path cannot carry stay on Chat: `n` greater than 1, audio or other non-text output, non-function tools, unsupported message roles, non-text system or developer content. For a Responses-only model such a request gets a `400` that names `/v1/responses`, and automatic routing does not pick that model for it. - If the provider’s `/v1/responses` answers `404`, `405` or `501`, Prism goes back to Chat for that model for seven days. ## logprobs [Section titled “logprobs”](https://prism.tm/docs/api/parameter-compatibility/#logprobs) Prism does not refuse `logprobs` or `top_logprobs`: - On Chat Completions to an OpenAI-compatible provider or a vLLM server, they are sent as the client wrote them, and the answer carries the provider’s `logprobs`. - On the Chat to Responses path above they are dropped and listed in `X-Prism-Adjusted-Params`. - Other routes, such as a translation to another provider dialect or a provider that ignores them, may drop them without a header. A client that needs log probabilities should name a model on an OpenAI-compatible or vLLM provider and check that the answer carries them. ## Reading the header [Section titled “Reading the header”](https://prism.tm/docs/api/parameter-compatibility/#reading-the-header) ``` X-Prism-Adjusted-Params: temperature=dropped;max_tokens=renamed:max_completion_tokens ``` Entries are separated by `;`: `param=dropped`, `param=renamed:`, `param=set:`. Browser JavaScript on another origin cannot read this header (it is not in `Access-Control-Expose-Headers`); server-side clients and same-origin pages can. --- title: "Connect clients | Prism docs" description: "Point Claude Code, Codex CLI, the OpenAI and Anthropic SDKs, Gemini CLI, Ollama clients and curl at Prism." url: https://prism.tm/docs/clients/ --- [Skip to content](https://prism.tm/docs/clients/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/clients/#_top) - [1\. Which address](https://prism.tm/docs/clients/#1-which-address) - [A person’s key on the main address](https://prism.tm/docs/clients/#a-persons-key-on-the-main-address) - [Address for another machine](https://prism.tm/docs/clients/#address-for-another-machine) - [Ask Prism for its connection settings](https://prism.tm/docs/clients/#ask-prism-for-its-connection-settings) - [2\. Keys](https://prism.tm/docs/clients/#2-keys) - [3\. Clients](https://prism.tm/docs/clients/#3-clients) - [Claude Code](https://prism.tm/docs/clients/#claude-code) - [Codex CLI](https://prism.tm/docs/clients/#codex-cli) - [OpenAI SDK (Python, JavaScript) and OpenAI-compatible tools](https://prism.tm/docs/clients/#openai-sdk-python-javascript-and-openai-compatible-tools) - [Anthropic SDK (Python, TypeScript)](https://prism.tm/docs/clients/#anthropic-sdk-python-typescript) - [Gemini CLI and the Google GenAI SDK](https://prism.tm/docs/clients/#gemini-cli-and-the-google-genai-sdk) - [Ollama clients](https://prism.tm/docs/clients/#ollama-clients) - [omp](https://prism.tm/docs/clients/#omp) - [curl](https://prism.tm/docs/clients/#curl) - [4\. Model names](https://prism.tm/docs/clients/#4-model-names) - [5\. Name your agent](https://prism.tm/docs/clients/#5-name-your-agent) - [6\. Which model answered](https://prism.tm/docs/clients/#6-which-model-answered) - [7\. Troubleshooting](https://prism.tm/docs/clients/#7-troubleshooting) ## On this page - [Overview](https://prism.tm/docs/clients/#_top) - [1\. Which address](https://prism.tm/docs/clients/#1-which-address) - [A person’s key on the main address](https://prism.tm/docs/clients/#a-persons-key-on-the-main-address) - [Address for another machine](https://prism.tm/docs/clients/#address-for-another-machine) - [Ask Prism for its connection settings](https://prism.tm/docs/clients/#ask-prism-for-its-connection-settings) - [2\. Keys](https://prism.tm/docs/clients/#2-keys) - [3\. Clients](https://prism.tm/docs/clients/#3-clients) - [Claude Code](https://prism.tm/docs/clients/#claude-code) - [Codex CLI](https://prism.tm/docs/clients/#codex-cli) - [OpenAI SDK (Python, JavaScript) and OpenAI-compatible tools](https://prism.tm/docs/clients/#openai-sdk-python-javascript-and-openai-compatible-tools) - [Anthropic SDK (Python, TypeScript)](https://prism.tm/docs/clients/#anthropic-sdk-python-typescript) - [Gemini CLI and the Google GenAI SDK](https://prism.tm/docs/clients/#gemini-cli-and-the-google-genai-sdk) - [Ollama clients](https://prism.tm/docs/clients/#ollama-clients) - [omp](https://prism.tm/docs/clients/#omp) - [curl](https://prism.tm/docs/clients/#curl) - [4\. Model names](https://prism.tm/docs/clients/#4-model-names) - [5\. Name your agent](https://prism.tm/docs/clients/#5-name-your-agent) - [6\. Which model answered](https://prism.tm/docs/clients/#6-which-model-answered) - [7\. Troubleshooting](https://prism.tm/docs/clients/#7-troubleshooting) # Connect clients This page tells you how to point an application at Prism: which address to use, which key to give it, and what to set in each client. It covers Claude Code, Codex CLI, the OpenAI and Anthropic SDKs, Gemini CLI, Ollama clients, omp and plain HTTP. The console shows the same settings, filled in for your installation, under **Quick start → Compatible API addresses → Client setup**, including a snippet for Ollama clients. ## 1\. Which address [Section titled “1. Which address”](https://prism.tm/docs/clients/#1-which-address) Prism serves model requests on two listeners. | | Main address | Managed address | | --- | --- | --- | | Config | `[server] host`, `port` | `[server] managed_bind` | | Default | `127.0.0.1:18000`, always on | off | | Key | any value is served as the owner’s; a person’s `prism_it_…` key is checked and makes the request theirs | a `prism_it_…` key issued in the console is required, in the same places as on the main address | | Dialects | OpenAI, Anthropic Messages, Gemini, Ollama | OpenAI, Anthropic Messages, Gemini, Ollama (no `count_tokens`) | | Plain HTTP | any bind | loopback or a tailnet address (`100.64.0.0/10`); other addresses need `managed_tls_cert` and `managed_tls_key` | Use the main address for clients on the Prism machine. Anyone who can reach the main address can send model requests through your accounts, so keep `[server] host` on `127.0.0.1` unless the network in front of it is yours. Use the managed address when clients on other machines need their own keys that you can revoke. It reads the key from the same places as the main address (see below) and refuses a request without one, so it is the address to put behind a public tunnel or proxy. The main address without a person’s key is for you alone. Requests on it are yours and may use your subscription accounts (Claude, Codex and the other providers you signed in to), and Prism cannot tell who sent them. A subscription serves one person, so give everyone else a user of their own under **Users and budgets** with a personal Prism key; they connect their own subscriptions, and their requests never use yours. ### A person’s key on the main address [Section titled “A person’s key on the main address”](https://prism.tm/docs/clients/#a-persons-key-on-the-main-address) A request to the main address that carries a Prism key (`prism_it_…`) is served as the managed address serves it: the key is checked, the request is made for the key’s person, uses only the accounts that person may use, follows the key’s policy, and its usage and cost are recorded for that person. Put the key where the client puts an API key: `Authorization: Bearer`, `x-api-key` (Claude Code’s `ANTHROPIC_API_KEY`, Anthropic SDKs), `x-goog-api-key` (Gemini CLI, Google GenAI SDK) or the `key` query parameter. A revoked or unknown Prism key is refused with `401`; it is never served as the owner’s. Any other value, such as `prism`, keeps the request the owner’s. In an organization (Teams and Enterprise) every model request needs a person’s key, the owner’s included: a request without one is refused with `401` and code `personal_key_required`. The model list (`GET /v1/models`) stays open without a key. An organization owner or administrator issues keys on the person’s card (**Users and budgets → Access and activity**). A client with no field for a key (most Ollama apps) takes the key in its base address: put `/k/prism_it_…` after the origin, for example `http://prism-host:18000/k/prism_it_…` for Ollama and Claude clients or `http://prism-host:18000/k/prism_it_…/v1` for OpenAI clients. Prism removes the prefix before it serves the request. Anything in the client’s own key field that is not a Prism key is ignored. The address holds the key, so treat it as you would the key; revoke the key if the address leaks. A model request with a Prism key may carry any query parameter that does not name a credential: Prism ignores it and does not send it to the provider. A parameter such as `access_token`, `api_key`, `token` or `signature` gets `401`. The image, audio, file and batch routes accept only the parameters listed under [Requests with a Prism key](https://prism.tm/docs/api/listeners-and-auth/#requests-with-a-prism-key), on either address. A key whose policy carries a spending limit per request (`"no_spend_cap"` absent or false) needs the request to cap its output (`max_tokens`, or `options.num_predict` for Ollama); a request without a cap is refused with `403`. The console fills in no per-request limit, so this concerns a policy whose limit was set on purpose. ### Address for another machine [Section titled “Address for another machine”](https://prism.tm/docs/clients/#address-for-another-machine) Clients on the Prism machine use `127.0.0.1`. For other machines: - set `[server] host` to an address they can reach (for the main address) or `[server] managed_bind` (for the managed address), and restart Prism; - if clients reach Prism through a name or proxy, set `[server] ingress_public_url` (for example `https://prism.example.net`). Prism shows this origin in the console and in `/.well-known/prism.json`; it does not change what Prism listens on; - for a loopback-only listener, use an SSH tunnel from the client machine: `ssh -N -L 18000:127.0.0.1:18000 user@prism-host`, then use `http://127.0.0.1:18000` on the client machine. ### Ask Prism for its connection settings [Section titled “Ask Prism for its connection settings”](https://prism.tm/docs/clients/#ask-prism-for-its-connection-settings) `GET /.well-known/prism.json` needs no key and returns the per-dialect paths and variable names: Terminal window ``` curl -s http://127.0.0.1:18000/.well-known/prism.json | python3 -m json.tool ``` The `connection` object lists, for each dialect, `base_path` (what to append to the origin for the client’s base URL), `protocol_root` (where the client sends requests), `base_url_env` and `api_key_env`. The `ollama` dialect has an empty `api_key_env` (Ollama clients send no key) and carries `key_in_path: true`: where a key is required, it goes into the address as `/k/` right after the origin. `credential` is `none` in an installation that is not an organization (Free, Pro): the listeners that serve this document take any key. In an organization it is `personal_key`, and the notes say that every model request needs a person’s Prism key. `managed_ingress` is `true` when a managed address is configured. When `[server] ingress_public_url` is set it appears as `public_url`, and `public_url_credential` is `integration_bearer` if a managed address is configured, otherwise `none`, or `personal_key` in an organization. ## 2\. Keys [Section titled “2. Keys”](https://prism.tm/docs/clients/#2-keys) **Main address.** Any value works as the owner’s key, for example `prism`; most clients refuse to start without one. Your own Prism key makes the requests and their cost yours, and in an organization it is required. Get it on the **Keys** page (in the menu, or **Overview → Connect your apps → My keys**): press **Issue key**. The key is shown once, together with addresses that carry it for apps with no key field. It has no spend limit per request (budgets limit spend) and does not expire. The **Keys** page lists your Prism keys, your agent keys and the apps signed in as you, each with its requests and spend this month and when it was last used. Search by name, show revoked keys, and sort by any column. Open a key to rename it, revoke it or replace it (a new key with the same name; the old one stops, your other keys keep working). The installation owner also sets a key’s own routing there: routing mode, preferred model, provider order and whether requests stay on the named seller. Strategies are set on the **Routing** page only. A key whose permissions are narrower (for example one issued under v0.40.0, which allowed no tools) shows **Give full access** in its card: one click changes what the key may do and keeps the same key, so no app needs a new one. An organization owner or administrator picks a person in the page’s **Person** filter to see and manage that person’s keys; a person’s card under **Users and budgets** links there. In an organization, when an owner or administrator has narrowed one of your keys, that narrower policy applies to all of your keys: a new key gets it, and a key cannot be given more than it. **Managed address.** Issue a key in the console: **Configuration → API keys → Add API key** (owner only). There is no CLI command for it. - The key (`prism_it_…`) is shown once. Store it in the client’s key variable. - A key expires after 90 days unless you set another expiry. - The key’s policy lists the endpoints it may call in `allowed_endpoints`. The console starts the policy with `"*"`, every endpoint, so nothing has to be added for Rerank (`/v1/rerank`) or TypeSafe (`/v1/systemone`). A policy narrowed to a list still names the dispatch, not the literal path: Anthropic Messages and Gemini requests are checked as `/v1/chat/completions`, and `/models`, `/chat/completions`, `/responses` and `/embeddings` are the same routes without the `/v1` prefix. A narrowed policy must name every endpoint the client calls. A request outside the policy gets `403` with code `policy_denied` and the dimension that failed, for example `the integration key policy does not allow this request: endpoint "/v1/rerank"`. - Put the key where the client puts an API key, as on the main address: `Authorization: Bearer`, `x-api-key`, `x-goog-api-key`, the `key` query parameter or a `/k/prism_it_…` base address. A request that also carries a cookie gets `401 unauthorized`. - Revoke a key on the same page. - A key a person issues for themselves in the console has no spend limit per request (`"no_spend_cap": true`), every endpoint and every tool (`"*"`), the longest answer time (24 hours) and up to 1024 concurrent requests. Their spend is limited by the budgets set for them and their team. A request may still set its own spend limit. A key with a spend limit per request is priced in advance from the request size and the model’s longest answer, so a large request, a request without `max_tokens` or a model without a known price can be refused with `403`. ## 3\. Clients [Section titled “3. Clients”](https://prism.tm/docs/clients/#3-clients) The examples use the main address on the Prism machine. For the managed address, replace the origin and use the issued key instead of `prism`. ### Claude Code [Section titled “Claude Code”](https://prism.tm/docs/clients/#claude-code) Terminal window ``` export ANTHROPIC_BASE_URL="http://127.0.0.1:18000"export ANTHROPIC_AUTH_TOKEN="prism"claude ``` - `ANTHROPIC_BASE_URL` is the origin without `/v1`; Claude Code appends `/v1/messages`. - Use `ANTHROPIC_AUTH_TOKEN`: Claude Code sends it as `Authorization: Bearer`. `ANTHROPIC_API_KEY` is sent as `x-api-key`; Prism reads a key from either header on both addresses. - Claude Code’s model names (for example `claude-sonnet-4-5`) are routed to a provider that serves that model. To let Prism choose, set `ANTHROPIC_MODEL=auto`. - WebSearch and other Anthropic server tools work only when an Anthropic provider is connected; Prism sends those requests to it unchanged. - **Managed address:** Claude Code works there with the issued key in `ANTHROPIC_AUTH_TOKEN` or in `ANTHROPIC_API_KEY`. Its `anthropic-version` and `anthropic-beta` headers are passed on, not refused. ### Codex CLI [Section titled “Codex CLI”](https://prism.tm/docs/clients/#codex-cli) Codex reads its provider from `~/.codex/config.toml`, not from `OPENAI_BASE_URL`: ``` model_provider = "prism"model = "openai::gpt-5-mini" [model_providers.prism]name = "Prism"base_url = "http://127.0.0.1:18000/v1"env_key = "PRISM_API_KEY"wire_api = "responses" ``` Terminal window ``` export PRISM_API_KEY="prism"codex ``` - Codex uses the Responses API (`/v1/responses`). - `model` must be a model that Prism lists in `/v1/models`; replace the example value with one of those ids. With a concrete model and no provider that offers the Responses API for it, Prism translates the request to Chat Completions and reports it in `X-Prism-Responses-Translated: chat_completions` and `X-Prism-Responses-Dropped` (fields it could not carry, such as `store`). - `model = "auto"` lets Prism choose from all connected models, including Claude through a subscription, as for chat clients; the request is translated to Chat Completions as above. A request that cannot be translated (`previous_response_id`, hosted tools other than web search) is chosen only among models with the Responses API. - **Managed address:** with a narrowed key policy, `allowed_endpoints` needs `/v1/responses` and, for translated requests (`auto` among them), `/v1/chat/completions`. The console starts the policy with `"*"`, which allows both (section 2). ### OpenAI SDK (Python, JavaScript) and OpenAI-compatible tools [Section titled “OpenAI SDK (Python, JavaScript) and OpenAI-compatible tools”](https://prism.tm/docs/clients/#openai-sdk-python-javascript-and-openai-compatible-tools) Terminal window ``` export OPENAI_BASE_URL="http://127.0.0.1:18000/v1"export OPENAI_API_KEY="prism" ``` ``` from openai import OpenAI client = OpenAI() # reads OPENAI_BASE_URL and OPENAI_API_KEYreply = client.chat.completions.create( model="auto", messages=[{"role": "user", "content": "Hello"}],)print(reply.choices[0].message.content) ``` The base URL ends in `/v1`. Prism also serves `/chat/completions`, `/responses`, `/embeddings` and `/models` without the `/v1` prefix, for tools that drop it. ### Anthropic SDK (Python, TypeScript) [Section titled “Anthropic SDK (Python, TypeScript)”](https://prism.tm/docs/clients/#anthropic-sdk-python-typescript) Terminal window ``` export ANTHROPIC_BASE_URL="http://127.0.0.1:18000"export ANTHROPIC_API_KEY="prism" ``` ``` import anthropic client = anthropic.Anthropic()reply = client.messages.create( model="auto", max_tokens=1024, messages=[{"role": "user", "content": "Hello"}],)print(reply.content[0].text) ``` `ANTHROPIC_API_KEY` works on both addresses. SDK releases for API version `2026-10-21` (Python 2.0.0, TypeScript 1.0.0, Go 2.0.0 and the others) send it as `Authorization: Bearer`, earlier releases as `x-api-key`; Prism reads a key from either header. The `anthropic-version` header the SDK always adds is passed on: a version later than `2023-06-01` only to the Claude API (`api.anthropic.com`), and `2023-06-01` to every other Anthropic-compatible provider. Version `2026-10-21` refuses `temperature`, `top_p` and `top_k`; Prism never adds them to a request that carries it, and a request in the Chat Completions format is sent to Anthropic with `2023-06-01`. ### Gemini CLI and the Google GenAI SDK [Section titled “Gemini CLI and the Google GenAI SDK”](https://prism.tm/docs/clients/#gemini-cli-and-the-google-genai-sdk) Terminal window ``` export GOOGLE_GEMINI_BASE_URL="http://127.0.0.1:18000"export GEMINI_CLI_CUSTOM_HEADERS="Authorization: Bearer prism"gemini ``` - `GOOGLE_GEMINI_BASE_URL` is the origin; the client appends `/v1beta`. - Gemini CLI sends `GEMINI_API_KEY` as `x-goog-api-key`; `GEMINI_CLI_CUSTOM_HEADERS` sends the key as `Authorization: Bearer` instead. Prism reads a key from either header on both addresses. - Prism serves `generateContent` and `streamGenerateContent` only. `countTokens`, `embedContent` and model listing answer `404`. ### Ollama clients [Section titled “Ollama clients”](https://prism.tm/docs/clients/#ollama-clients) Prism answers the Ollama API on the main address, so tools that speak only Ollama, or offer an “Ollama” provider option, reach every model Prism routes. Ollama CLI and the `ollama` Python and JavaScript libraries: Terminal window ``` export OLLAMA_HOST="http://127.0.0.1:18000" ``` ``` import ollama print([m.model for m in ollama.list().models])reply = ollama.chat(model="auto", messages=[{"role": "user", "content": "Hello"}])print(reply.message.content) ``` Open WebUI: set `OLLAMA_BASE_URL=http://127.0.0.1:18000`. Other tools (Zed, Continue, Cline, n8n, Enchanted, Home Assistant): choose the Ollama provider and enter `http://127.0.0.1:18000` as its address. - `/api/tags` lists Prism’s models. Provider models appear under their own id without the `provider::` prefix, because Ollama clients read `a:b` as model and tag. A `:latest` tag on a name is ignored. - `/api/chat` and `/api/generate` are translated to Chat Completions and routed like any other request. Streaming is on by default (NDJSON), as in Ollama. - `/api/pull` succeeds for a model Prism serves and downloads nothing. `/api/create`, `/api/delete`, `/api/copy` and `/api/push` answer `501`. - On the managed address the Ollama API needs a Prism key like every other request there, for example as a `/k/prism_it_…` base address. ### omp [Section titled “omp”](https://prism.tm/docs/clients/#omp) omp (oh-my-pi) can sign in to Prism instead of having a key in its settings: it installs an extension from Prism with one line, then `/login` in omp shows a link and a code that you allow in the Prism console. Models then appear as `prism-signin/`. The console shows the line with your address under **Quick start → Client setup**; the steps are in [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/#omp). ### curl [Section titled “curl”](https://prism.tm/docs/clients/#curl) Terminal window ``` curl -s http://127.0.0.1:18000/v1/chat/completions \ -H 'Content-Type: application/json' \ -d '{"model": "auto", "messages": [{"role": "user", "content": "Hello"}]}' ``` ## 4\. Model names [Section titled “4. Model names”](https://prism.tm/docs/clients/#4-model-names) | `model` value | What Prism does | | --- | --- | | `auto` (or empty) | Chooses a model with the default strategy (`balanced` unless changed) | | `cheap`, `fast` | Chooses with that strategy | | `smart` | Chooses with the `quality` strategy | | `local` | Uses local models only; never sends the request to a cloud provider | | `triage`, `reasoning`, `reasoning-max`, `cheap-toolcall` | Built-in roles | | `prism/auto`, `prism/strong`, `prism/frontier`, `prism/reasoning`, `prism/reasoning-max`, `prism/private` | Policy models listed in `/v1/models` | | A name from `[routing.role_aliases]` | Your role alias | | `provider::model`, for example `openrouter::anthropic/claude-sonnet-4.5` | That model at that provider only (another account of the same provider may serve it). Other providers are tried only with `X-Prism-Allow-Provider-Failover: true` or `[routing] allow_provider_failover = true` | | A model id, for example `gpt-5-mini` | That model at any provider that serves it | `balanced`, `quality` and `private` are strategy names, not model names. Send them in the `X-Prism-Strategy` header with `"model": "auto"`. `"model": "balanced"` is treated as a model id and fails with `400 no provider has exact model_id balanced`. `/v1/models` lists provider models as `provider::model`, plus role aliases and `prism/*` policy models. It does not list `auto`, `cheap`, `fast`, `smart` and `local`; they are listed in `/.well-known/prism.json` under `model_selection`. ## 5\. Name your agent [Section titled “5. Name your agent”](https://prism.tm/docs/clients/#5-name-your-agent) Send `X-Prism-App: ` with a stable name per agent. Prism uses it in reports (console → Agents) and, when you map the name to a routing profile, to choose that profile. Without the header Prism names the agent from its User-Agent and request shape. Clients that cannot add headers still work; they appear under the name Prism infers. ## 6\. Which model answered [Section titled “6. Which model answered”](https://prism.tm/docs/clients/#6-which-model-answered) - Response headers: `X-Prism-Provider` (the provider that served the answer, after any failover), `X-Prism-Model`, `X-Prism-Cost-USD`. - The `model` field of a Chat Completions or Anthropic Messages answer carries the model that served it (for `"model": "auto"` it is the chosen model). Ollama answers repeat the requested name. - `[harness] announce_served_model = true` adds a `prism` object with `served_model`, `provider` and the failover trail to non-streaming answers, for harnesses that drop headers. - `GET /prism/session/last-served` with the same `X-Prism-Session` header returns the last model that served that session. ## 7\. Troubleshooting [Section titled “7. Troubleshooting”](https://prism.tm/docs/clients/#7-troubleshooting) | Symptom | Cause | Fix | | --- | --- | --- | | `401 unauthorized` on the managed address | No key; a key that is revoked, expired or unknown; two different keys in one request; a cookie; a query parameter that names a credential (`access_token`, `api_key`, `token`, `signature` and the like); or, on an image, audio, file or batch request, a query parameter outside that route’s list | Put one `prism_it_…` key where the app takes an API key; issue a new key; remove the parameter; see [Requests with a Prism key](https://prism.tm/docs/api/listeners-and-auth/#requests-with-a-prism-key). Prism logs each query refusal as `keyed_query_refused` with the parameter’s name | | `401 personal_key_required` on the main address | The installation is an organization and the request has no Prism key | Get your key on the **Keys** page (or from an administrator) and put it where the app takes an API key | | `401 unauthorized` on the main address | A `prism_it_…` key that is revoked, expired or unknown, two different keys in one request, a `/k/` address without a Prism key, a query parameter that names a credential, or, on an image, audio, file or batch request, a query parameter outside that route’s list | Issue a new key; send one key; remove the parameter; see [Requests with a Prism key](https://prism.tm/docs/api/listeners-and-auth/#requests-with-a-prism-key). Prism logs each query refusal as `keyed_query_refused` with the parameter’s name | | `403` with code `policy_denied` on the managed address | The endpoint is not in the key’s `allowed_endpoints` | Add the endpoint to the policy (section 2); the reply names the endpoint that was refused | | `403 forbidden` on the managed address | The client sent `OpenAI-Organization`, `OpenAI-Project` or a `X-Prism-Idempotency*` header | Remove those headers; provider account selection stays on the Prism side | | `404 route_not_found` | Path not served (for example `/v1/responses/{id}`) | Check the client’s base URL: `/v1` for OpenAI clients, origin only for Claude and Gemini clients | | `400 no provider has exact model_id …` | The model name is not served by any connected provider | Pick an id from `/v1/models`, or use `auto` | | `503 providers_unavailable` | No connected provider can serve the request (none connected, all unhealthy, or no Responses-API provider for `/v1/responses` with `auto`) | Connect a provider in the console (AI providers); check Diagnostics | | `402 billing_required` | The provider account has no funds | Top up the account, then clear the mark (console → AI providers) | | `429 budget_exceeded` | A `[[budget.limits]]` threshold with `action = "reject"` was reached, or the model named in the request (or every account serving it) has spent its `[[budget.model_limits]]` / `[[budget.account_limits]]` budget | Wait for the period to reset (`Retry-After`), raise the limit, or send `auto` | | Browser app gets `403` from the main address | The main address refuses cross-origin browser requests without a key | Put a Prism key (`prism_it_…`) in the app’s API key field, or add the app’s origin to `[server] cors_allowed_origins` | --- title: "Agent self-description | Prism docs" description: "Documents an agent can fetch from Prism to configure itself and to learn which model answered." url: https://prism.tm/docs/clients/agent-self-description/ --- [Skip to content](https://prism.tm/docs/clients/agent-self-description/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/clients/agent-self-description/#_top) - [/.well-known/prism.json](https://prism.tm/docs/clients/agent-self-description/#well-knownprismjson) - [/prism/agent-context](https://prism.tm/docs/clients/agent-self-description/#prismagent-context) - [Which model answered](https://prism.tm/docs/clients/agent-self-description/#which-model-answered) - [In the response body](https://prism.tm/docs/clients/agent-self-description/#in-the-response-body) - [By session](https://prism.tm/docs/clients/agent-self-description/#by-session) - [In the assistant text](https://prism.tm/docs/clients/agent-self-description/#in-the-assistant-text) ## On this page - [Overview](https://prism.tm/docs/clients/agent-self-description/#_top) - [/.well-known/prism.json](https://prism.tm/docs/clients/agent-self-description/#well-knownprismjson) - [/prism/agent-context](https://prism.tm/docs/clients/agent-self-description/#prismagent-context) - [Which model answered](https://prism.tm/docs/clients/agent-self-description/#which-model-answered) - [In the response body](https://prism.tm/docs/clients/agent-self-description/#in-the-response-body) - [By session](https://prism.tm/docs/clients/agent-self-description/#by-session) - [In the assistant text](https://prism.tm/docs/clients/agent-self-description/#in-the-assistant-text) # Agent self-description A model cannot read the headers of its own response, and many agent harnesses drop them. Prism publishes what an agent needs to know in documents it can fetch, and can copy the routing result into the response body. ## `/.well-known/prism.json` [Section titled “/.well-known/prism.json”](https://prism.tm/docs/clients/agent-self-description/#well-knownprismjson) `GET /.well-known/prism.json` needs no key. It is served on the main address (and on the control listener when `[server] control_bind` is set), not on the managed address. It contains: | Field | Content | | --- | --- | | `version` | Prism version | | `endpoints` | Paths of the model, catalog, session and self-description endpoints | | `model_selection` | Accepted `model` values: selector hints (`auto`, `fast`, `smart`, `cheap`, `local`), whether `auto` can route right now, the default strategy, the strategy header, role aliases (built-in names and those configured here), `prism/*` policy models with their availability | | `attribution` | Which response headers name the serving model, whether the in-band copy is on, and the session query path | | `connection` | Per-dialect paths and client variables, the key requirement and the published public URL; see [Connect clients](https://prism.tm/docs/clients/#ask-prism-for-its-connection-settings) | | `operator` | Operator actions an agent key with operator scopes can call on the managed address | | `documentation` | Links to further documents | It contains no provider keys, prices, spend, traces or operator state. Terminal window ``` curl -s http://127.0.0.1:18000/.well-known/prism.json | python3 -m json.tool ``` An agent told “connect to Prism at this address” can read this document and set its own base URL and key variable. ## `/prism/agent-context` [Section titled “/prism/agent-context”](https://prism.tm/docs/clients/agent-self-description/#prismagent-context) `GET /prism/agent-context` returns the same facts as Markdown, written to be placed in an agent’s system prompt: how to choose a model, which policy models are available right now and why others are not, how to read the response headers. `?format=json` returns the `/.well-known/prism.json` payload. It is served where `/.well-known/prism.json` is and needs no key. Terminal window ``` prism agent-context > PRISM.mdprism agent-context --format=json ``` The command reads from the running Prism, so the text matches the current configuration. Set `[server] docs_url` to add a link to your own documentation. ## Which model answered [Section titled “Which model answered”](https://prism.tm/docs/clients/agent-self-description/#which-model-answered) Headers on every routed answer: `X-Prism-Provider` (the provider that served it, after any failover), `X-Prism-Model`, `X-Request-Id`. See [Headers](https://prism.tm/docs/api/headers/). ### In the response body [Section titled “In the response body”](https://prism.tm/docs/clients/agent-self-description/#in-the-response-body) ``` [harness]announce_served_model = true ``` Off by default. When on, successful non-streaming answers carry two extra top-level JSON objects, and every answer carries the `X-Prism-Served-By` header. The assistant’s message text is not changed. ``` { "prism_served_by": {"provider": "openai", "model": "gpt-5-mini", "trace_id": "trace-..."}, "prism": { "served_model": "gpt-5-mini", "provider": "openai", "attempts": 2, "reason": "cheapest", "strategy": "cheap", "role_alias": "triage", "trace_id": "trace-...", "request_id": "prism-...", "failover": [ {"provider": "groq", "model": "llama-3.3-70b", "reason": "unavailable"}, {"provider": "openai", "model": "gpt-5-mini", "reason": "success"} ], "self_description": "/.well-known/prism.json" }} ``` - `request_id` equals the `X-Request-Id` header. - `failover` appears only when the request changed route, and holds at most the last 8 steps; `attempts` is the true total. - `role_alias` and `trace_id` are left out when they do not apply. - OpenAI clients that follow the specification ignore unknown top-level fields. ### By session [Section titled “By session”](https://prism.tm/docs/clients/agent-self-description/#by-session) Send a stable `X-Prism-Session` header with each chat request, then: Terminal window ``` curl -s http://127.0.0.1:18000/prism/session/last-served -H 'X-Prism-Session: my-session' ``` ``` {"served": true, "provider": "openai", "model": "gpt-5-mini", "trace_id": "trace-...", "request_id": "prism-...", "completed_at": "2026-10-07T07:36:18Z", "http_status": 200, "termination": "accepted"} ``` It needs no key and returns the last completed request of that session, which a later or parallel request can replace. Use `X-Request-Id` to identify one exact response. Without the header the answer is `400 session_required`. The path is on the main address only; with an SDK whose base URL ends in `/v1`, call it at the origin, not under `/v1`. ### In the assistant text [Section titled “In the assistant text”](https://prism.tm/docs/clients/agent-self-description/#in-the-assistant-text) ``` [harness]annotate_chat_assistant_body = true ``` Off by default. Appends `[Prism route: provider/model]` to the assistant text of `/v1/chat/completions` answers (non-streaming and streaming). This changes the content the client sees; use it only for clients that show nothing but the message text. A step that only calls tools gets no line, nor does an answer that is only a bracketed marker for the client program, such as `[SILENT]`, and Prism removes the lines from the history the client sends back, so the model never sees them and does not start writing them itself. --- title: "In-chat /prism commands | Prism docs" description: "Control the model and strategy of a conversation from a chat window that cannot send custom headers." url: https://prism.tm/docs/clients/in-chat-commands/ --- [Skip to content](https://prism.tm/docs/clients/in-chat-commands/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/clients/in-chat-commands/#_top) - [Session](https://prism.tm/docs/clients/in-chat-commands/#session) - [Commands](https://prism.tm/docs/clients/in-chat-commands/#commands) - [What runs and what does not](https://prism.tm/docs/clients/in-chat-commands/#what-runs-and-what-does-not) ## On this page - [Overview](https://prism.tm/docs/clients/in-chat-commands/#_top) - [Session](https://prism.tm/docs/clients/in-chat-commands/#session) - [Commands](https://prism.tm/docs/clients/in-chat-commands/#commands) - [What runs and what does not](https://prism.tm/docs/clients/in-chat-commands/#what-runs-and-what-does-not) # In-chat /prism commands A chat client that cannot add HTTP headers can still steer Prism. Send a message that consists only of a `/prism` command. Prism answers it itself, in the shape of a normal Chat Completions or Responses reply, and does not send it to any model. ``` /prism help/prism models/prism session/prism reset-session/prism change-model/prism change-model select/prism cancel/prism next-model /prism prefer-model [--ttl 30m]/prism clear-preference/prism strategy [--ttl 30m]/prism clear-strategy/prism mode [--ttl 2h]/prism clear-mode/prism strict [--ttl 30m]/prism clear-strict ``` ## Session [Section titled “Session”](https://prism.tm/docs/clients/in-chat-commands/#session) Commands that change routing apply to one conversation, identified by the `X-Prism-Session` header. Without that header Prism rejects them with `Prism command rejected: /prism strategy requires X-Prism-Session.` (and the same for the other session commands). `/prism help`, `/prism models` and `/prism session` answer without it. ## Commands [Section titled “Commands”](https://prism.tm/docs/clients/in-chat-commands/#commands) | Command | Effect | | --- | --- | | `/prism help` | Lists the commands | | `/prism models` | Lists the models Prism can route to, as `provider/model` with task types and price | | `/prism session` | Shows the session’s current affinity, preferred model, strategy override, next model and pending selection | | `/prism reset-session` | Clears all of the above for the session | | `/prism change-model` | Moves the session to the first eligible model other than the current one. Refused while a preferred model is set | | `/prism change-model select`, then a number | Shows a numbered list of candidates; the next message with a number picks one | | `/prism cancel` | Cancels a pending numbered selection | | `/prism next-model ` | Uses that model for the next request in the session, once | | `/prism prefer-model [--ttl 30m]` | Prefers that model for the session; `--ttl` sets an expiry (any positive Go duration, such as `30m` or `2h`) | | `/prism clear-preference` | Removes the preferred model | | `/prism strategy [--ttl 30m]` | Sets the session’s strategy: `balanced`, `quality`, `cheap`, `fast` or `private` | | `/prism clear-strategy` | Removes the session’s strategy override | | `/prism mode [--ttl 2h]` | Sets the routing mode of this conversation: `manual` follows the preferred model and the provider order, `auto` lets the strategy pick the model. Works without `X-Prism-Session` in a conversation Prism recognizes | | `/prism clear-mode` | Removes the session’s routing mode; the agent’s or the default mode applies | | `/prism strict [--ttl 30m]` | Turns the session’s strict-model rule on: an explicit model is served only by the seller it names, no other provider and no other version takes over. Keeps a calibration or judge run on the seller it asked for even when that seller hits a quota | | `/prism clear-strict` | Removes the session’s strict-model rule | `` is `provider/model` as `/prism models` prints it, for example `openai/gpt-5-mini`. ## What runs and what does not [Section titled “What runs and what does not”](https://prism.tm/docs/clients/in-chat-commands/#what-runs-and-what-does-not) - Only the latest user message runs, and only when it is a command and nothing else. A command inside other text, in a quote or code block, in an earlier turn, or in an assistant, system or tool message is not executed. - `/prism-help` and other prefix collisions are not commands. - The reply carries `X-Prism-Control: accepted` or `X-Prism-Control: rejected`. - A concrete `model` in the request body wins over session controls. - Controls never bypass routing limits: health, capabilities, context size, output limits and policy still apply. - Defaults for the whole installation cannot be set from chat. Use the web console (Routing) or the [local control API](https://prism.tm/docs/api/control-api/). --- title: "Sign in from an app | Prism docs" description: "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." url: https://prism.tm/docs/clients/sign-in-from-an-app/ --- [Skip to content](https://prism.tm/docs/clients/sign-in-from-an-app/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/clients/sign-in-from-an-app/#_top) - [Which apps can sign in](https://prism.tm/docs/clients/sign-in-from-an-app/#which-apps-can-sign-in) - [omp](https://prism.tm/docs/clients/sign-in-from-an-app/#omp) - [What the person sees](https://prism.tm/docs/clients/sign-in-from-an-app/#what-the-person-sees) - [When the tab is not signed in](https://prism.tm/docs/clients/sign-in-from-an-app/#when-the-tab-is-not-signed-in) - [When the link does not open where you are](https://prism.tm/docs/clients/sign-in-from-an-app/#when-the-link-does-not-open-where-you-are) - [What an allowed app can do](https://prism.tm/docs/clients/sign-in-from-an-app/#what-an-allowed-app-can-do) - [See and disconnect your apps](https://prism.tm/docs/clients/sign-in-from-an-app/#see-and-disconnect-your-apps) - [Which address the link uses](https://prism.tm/docs/clients/sign-in-from-an-app/#which-address-the-link-uses) - [For developers of client apps](https://prism.tm/docs/clients/sign-in-from-an-app/#for-developers-of-client-apps) - [Discovery document](https://prism.tm/docs/clients/sign-in-from-an-app/#discovery-document) - [Start a sign-in](https://prism.tm/docs/clients/sign-in-from-an-app/#start-a-sign-in) - [Poll for the result](https://prism.tm/docs/clients/sign-in-from-an-app/#poll-for-the-result) - [Errors](https://prism.tm/docs/clients/sign-in-from-an-app/#errors) - [The token](https://prism.tm/docs/clients/sign-in-from-an-app/#the-token) - [Limits](https://prism.tm/docs/clients/sign-in-from-an-app/#limits) - [Main address only](https://prism.tm/docs/clients/sign-in-from-an-app/#main-address-only) ## On this page - [Overview](https://prism.tm/docs/clients/sign-in-from-an-app/#_top) - [Which apps can sign in](https://prism.tm/docs/clients/sign-in-from-an-app/#which-apps-can-sign-in) - [omp](https://prism.tm/docs/clients/sign-in-from-an-app/#omp) - [What the person sees](https://prism.tm/docs/clients/sign-in-from-an-app/#what-the-person-sees) - [When the tab is not signed in](https://prism.tm/docs/clients/sign-in-from-an-app/#when-the-tab-is-not-signed-in) - [When the link does not open where you are](https://prism.tm/docs/clients/sign-in-from-an-app/#when-the-link-does-not-open-where-you-are) - [What an allowed app can do](https://prism.tm/docs/clients/sign-in-from-an-app/#what-an-allowed-app-can-do) - [See and disconnect your apps](https://prism.tm/docs/clients/sign-in-from-an-app/#see-and-disconnect-your-apps) - [Which address the link uses](https://prism.tm/docs/clients/sign-in-from-an-app/#which-address-the-link-uses) - [For developers of client apps](https://prism.tm/docs/clients/sign-in-from-an-app/#for-developers-of-client-apps) - [Discovery document](https://prism.tm/docs/clients/sign-in-from-an-app/#discovery-document) - [Start a sign-in](https://prism.tm/docs/clients/sign-in-from-an-app/#start-a-sign-in) - [Poll for the result](https://prism.tm/docs/clients/sign-in-from-an-app/#poll-for-the-result) - [Errors](https://prism.tm/docs/clients/sign-in-from-an-app/#errors) - [The token](https://prism.tm/docs/clients/sign-in-from-an-app/#the-token) - [Limits](https://prism.tm/docs/clients/sign-in-from-an-app/#limits) - [Main address only](https://prism.tm/docs/clients/sign-in-from-an-app/#main-address-only) # Sign in from an app An app can ask for a Prism key instead of having one pasted into its settings. The app shows a link and a short code. A person who is signed in to the Prism console allows the request, and the app receives a key of that person. Prism implements this as the OAuth 2.0 device grant (RFC 8628). The app needs to reach the [main address](https://prism.tm/docs/api/listeners-and-auth/). The person needs a browser that reaches the Prism console. ## Which apps can sign in [Section titled “Which apps can sign in”](https://prism.tm/docs/clients/sign-in-from-an-app/#which-apps-can-sign-in) An app can sign in when it was written to: it calls the three endpoints described under [For developers of client apps](https://prism.tm/docs/clients/sign-in-from-an-app/#for-developers-of-client-apps). Today that is [omp](https://prism.tm/docs/clients/sign-in-from-an-app/#omp), through an extension Prism serves. An app that only has a field for an API key cannot sign in; give it a Prism key instead, see [Connect clients](https://prism.tm/docs/clients/). ## omp [Section titled “omp”](https://prism.tm/docs/clients/sign-in-from-an-app/#omp) omp (oh-my-pi) signs in to Prism with an extension that Prism serves at `/prism/clients/omp.ts` on its main address. The file already holds the address it was downloaded from. The console shows the steps below with your Prism’s address filled in: **Quick start**, tab **Client setup**, card **omp: sign in without a key**. The card is shown when this Prism offers sign-in from an app. 1. Run one line on the machine where omp runs. Replace the address with the main address of your Prism, or copy the line from the console: Terminal window ``` mkdir -p ~/.omp/agent/extensions && curl -fsS http://127.0.0.1:18000/prism/clients/omp.ts -o ~/.omp/agent/extensions/prism.ts ``` 2. In omp type `/login` and choose **Prism**, or run `omp login prism-signin` in a shell. omp shows the link and the code, and opens the link in a browser when it can: ``` Logging in to prism-signin…http://localhost:18081/prism/ui/#connect=WDJB-MJHTOpen the link and allow the sign-in. The page shows this code: WDJB-MJHTWaiting for you to allow the sign-in in Prism… ``` When the link may not open where you are, omp shows one more line from Prism that names the console’s address and the **Enter a code from an app** button. 3. In the Prism console, check that the window shows the same code and press **Allow**. omp reports “Successfully logged in to prism-signin” (in a shell: “Logged in to Prism”) and stores the key in its own credential store. 4. Prism’s models appear in omp as `prism-signin/`. Choose one, for example as the default model. Most Prism model names contain `::`, for example `prism-signin/deepseek::deepseek-flash`. Such a name works in omp’s model picker and as a role in omp’s `config.yml`. On the command line, omp 18.18 does not find it with `--model`: omp checks that flag before the extension has listed its models, and a name with a colon is refused at that point. Use `--models prism-signin/`, or put the name in a role and pass the role (`--model @`). Names without a colon, such as `prism-signin/prism/auto`, work with `--model`. omp lists the models your key may use, with their context window, output limit and price. For a role or a virtual model, whose limits are the largest of the models it may route to, the extension asks for at most 16384 output tokens. An omp setup that already reaches Prism with a key in its address (a `prism` provider in omp’s `models.yml`) keeps working beside the sign-in: `prism/` uses that key, `prism-signin/` uses the signed-in one. You can remove the old entry once you use the sign-in. Signing out in omp (`/logout`) does not disconnect the app in Prism: omp tells Prism nothing, and the key keeps working. To end it, open **Your Prism key** and press **Disconnect** next to the app under **Apps signed in as you** (see [See and disconnect your apps](https://prism.tm/docs/clients/sign-in-from-an-app/#see-and-disconnect-your-apps)). After that, omp shows Prism’s answer to its next request: ``` 401 This Prism key is not valid: it was revoked or expired, or the app was disconnected. Sign in again from the app, or use a current key. ``` To use omp with Prism again, sign in again with `/login`. The new sign-in replaces the stored one. ## What the person sees [Section titled “What the person sees”](https://prism.tm/docs/clients/sign-in-from-an-app/#what-the-person-sees) 1. The app shows a link to the Prism console and a code of eight letters, such as `WDJB-MJHT`. Some apps open the link for you. 2. Open the link in a browser where you are signed in to the Prism console. The link already contains the code, and the console opens the window **Sign-in request from an app**. It names the app, shows the code under “Check that the app shows this code”, and says where the request came from: this machine, an address on the network (with your own address next to it), or the published address or a proxy, where the sender’s address is not known. 3. Press **Allow** or **Reject**. Allow can be pressed one second after the window appears, so that a click meant for another page cannot land on it. After Allow the console shows “Sign-in allowed” and the app is connected at its next poll, within a few seconds. Closing the window without pressing either leaves the request waiting: the link opens it again, and **Enter a code from an app** opens with that code already filled in. 4. A request that nobody answers expires after ten minutes. For an expired or already answered code the console shows “Request not found”; start the sign-in in the app again. The name is what the app says about itself. Prism cannot check it, and the window says so. Allow a request only when you started it yourself, just now, and the code matches. If someone sent you the link or the code, press **Reject**. ### When the tab is not signed in [Section titled “When the tab is not signed in”](https://prism.tm/docs/clients/sign-in-from-an-app/#when-the-tab-is-not-signed-in) The sign-in screen shows the note “An app is waiting for your answer to its sign-in request. Sign in to answer.” Sign in as you usually do; the request window opens after that. If you ask for an email link, the screen says to return to this tab after you open the link, and the request window opens in this tab once the link has signed you in. If another tab of the same browser is already signed in to this console, the request opens in that tab, and the new tab says so. ### When the link does not open where you are [Section titled “When the link does not open where you are”](https://prism.tm/docs/clients/sign-in-from-an-app/#when-the-link-does-not-open-where-you-are) Open the Prism console yourself. On **Overview**, in the card **Connect your apps**, press **Enter a code from an app**, type the eight letters the app shows (the dash and the case do not matter) and press Continue. A person who is not the installation owner has the same button on their own page, in the card **Connect your apps**. ### What an allowed app can do [Section titled “What an allowed app can do”](https://prism.tm/docs/clients/sign-in-from-an-app/#what-an-allowed-app-can-do) The app holds a Prism key of the person who allowed it. Its requests are that person’s requests: they use the accounts that person may use, follow that person’s key policy and budgets, and are recorded as that person’s usage and cost. In an organization, a key policy an administrator set for the person applies to the app as well. Any person who can sign in to the console can allow an app, the owner included. Nobody is shown the key itself; only the app holds it. ### See and disconnect your apps [Section titled “See and disconnect your apps”](https://prism.tm/docs/clients/sign-in-from-an-app/#see-and-disconnect-your-apps) Open the **Keys** page (in the menu, or **Overview → Connect your apps → My keys**). Each app signed in as you is a row of the kind **App sign-in**, with the name it gave itself, when it was last used and its requests and spend this month. Open it to see what the app said about itself and where it signed in from. Press **Disconnect** in its card and confirm. Its key stops working at once and the app’s next request is refused with `401`. To use the app again, sign in from it again. You cannot rename a connected app’s key, replace it or change its policy. An organization owner or administrator sees it among that person’s keys on the **Keys** page (the **Person** filter) and can disconnect it there. Replacing one of your Prism keys leaves signed-in apps connected. Removing a person disconnects their apps. ### Which address the link uses [Section titled “Which address the link uses”](https://prism.tm/docs/clients/sign-in-from-an-app/#which-address-the-link-uses) The app talks to the main address; the link leads to the console, which listens on another address. Prism builds the link from the first of these that is set: 1. `[console] public_url` 2. `[mail] link_base_url`, while mail is turned on 3. `[personal] trusted_http_origin` 4. the console’s own bind address (`[console] bind`) With the default console address (`127.0.0.1:18081`) the link is `http://localhost:18081/prism/ui/#connect=` and opens only on the Prism machine. With a console bound to every address (`0.0.0.0`), the link uses the host name the app’s request was sent to and the console’s port. A link built from the console’s bind address is `https` when the console has a TLS certificate; a configured address (the first three) is used as written. For apps and browsers on other machines, set `[console] public_url` to the address people open the console at; see [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/). ## For developers of client apps [Section titled “For developers of client apps”](https://prism.tm/docs/clients/sign-in-from-an-app/#for-developers-of-client-apps) All three endpoints are on the main address and take no key. Their answers are JSON with `Cache-Control: no-store`. The two `POST` paths are fixed: `/oauth/device_authorization` and `/oauth/token` on the address of the model API. The discovery document is optional; an app may call the two paths without reading it. When they answer `404`, this Prism does not offer sign-in: ask the person for a Prism key instead. ### Discovery document [Section titled “Discovery document”](https://prism.tm/docs/clients/sign-in-from-an-app/#discovery-document) Terminal window ``` curl -s http://127.0.0.1:18000/.well-known/oauth-authorization-server ``` ``` { "issuer": "http://127.0.0.1:18000", "device_authorization_endpoint": "http://127.0.0.1:18000/oauth/device_authorization", "token_endpoint": "http://127.0.0.1:18000/oauth/token", "grant_types_supported": ["urn:ietf:params:oauth:grant-type:device_code"], "response_types_supported": [], "token_endpoint_auth_methods_supported": ["none"]} ``` The issuer and both endpoints are on the address your request was sent to: the scheme of the connection and the `Host` header. A request sent to the host of `[server] ingress_public_url` gets that address as configured, so the endpoints are `https` when a proxy in front of Prism ends TLS. Prism reads no forwarded header. There is no authorization endpoint; only the device grant is served. ### Start a sign-in [Section titled “Start a sign-in”](https://prism.tm/docs/clients/sign-in-from-an-app/#start-a-sign-in) Terminal window ``` curl -s http://127.0.0.1:18000/oauth/device_authorization \ -H 'User-Agent: example-app/1.2' \ --data-urlencode 'client_name=Example App' \ --data-urlencode 'surface=cli' ``` The body is `application/x-www-form-urlencoded`. No field is required. | Field | Use | | --- | --- | | `client_name` | The name shown to the person and kept as the key’s name. At most 120 bytes; a longer name is cut. | | `surface` | Where the app runs, for example `cli` or `desktop`. Used as the name when `client_name` is absent. At most 80 bytes; a longer value is cut. | | `User-Agent` header | Its product token (the text before the first `/` or space) is the name when both fields are absent. At most 300 bytes are kept. | Without any of them the app is shown as `App`. Control characters, line breaks and characters that change the direction of text are removed from all three, and a value with nothing visible in it counts as absent. `scope`, `client_id` and unknown fields are ignored. ``` { "device_code": "<43 characters>", "user_code": "WDJB-MJHT", "verification_uri": "http://localhost:18081/prism/ui/#connect=", "verification_uri_complete": "http://localhost:18081/prism/ui/#connect=WDJB-MJHT", "expires_in": 600, "interval": 5} ``` | Field | Meaning | | --- | --- | | `device_code` | Secret of this request. Keep it in memory and send it only to the token endpoint. | | `user_code` | Eight letters from `BCDFGHJKLMNPQRSTVWXZ`, shown as `XXXX-XXXX`. Show it to the person. | | `verification_uri_complete` | The console link with the code in it. Show it, or open it in the person’s browser. | | `verification_uri` | The same link without the code. | | `expires_in` | Seconds until the request expires: 600. | | `interval` | Seconds to wait between polls: 5. | | `login_notice` | Present only when the link may not open where the person is. Plain text, at most 500 characters. Show it next to the code. | ### Poll for the result [Section titled “Poll for the result”](https://prism.tm/docs/clients/sign-in-from-an-app/#poll-for-the-result) Terminal window ``` curl -s http://127.0.0.1:18000/oauth/token \ --data-urlencode 'grant_type=urn:ietf:params:oauth:grant-type:device_code' \ --data-urlencode 'device_code=' ``` Wait `interval` seconds between polls. The first poll may be sent at once. When the person has allowed the request, the answer is `200`: ``` { "access_token": "prism_it_...", "token_type": "Bearer", "expires_in": 315360000} ``` Store the token and stop polling. The token can be collected once. A second poll with the same device code after a `200` revokes the token and answers `expired_token`, because Prism cannot tell a lost answer from a leaked device code. If your app did not receive the `200`, start a new sign-in. Send one poll at a time: a poll that arrives while an earlier poll of the same device code is being answered with the token gets `authorization_pending`. ### Errors [Section titled “Errors”](https://prism.tm/docs/clients/sign-in-from-an-app/#errors) Errors of the three endpoints have the OAuth shape, not the shape of the model API, and carry `Cache-Control: no-store`: ``` {"error": "authorization_pending", "error_description": "nobody answered the request yet"} ``` One refusal comes before the endpoints and has the model API’s shape: a browser request from another origin, the last row of the table. | Status | `error` | Endpoint | What to do | | --- | --- | --- | --- | | `400` | `authorization_pending` | token | Nobody answered yet. Keep polling. | | `400` | `slow_down` | token | The poll came more than one second before the interval ended. Add five seconds to your interval and keep polling. Prism raises the interval for this device code by five seconds each time, up to 60. | | `400` | `access_denied` | token | The person rejected the request, or was removed before the app collected it. Stop. | | `400` | `expired_token` | token | The device code is unknown, expired or already used. Start a new sign-in. | | `400` | `unsupported_grant_type` | token | Only the device grant is served. `refresh_token` is refused too. | | `400` | `invalid_request` | both | `grant_type` or `device_code` is missing or sent twice, the body is not `application/x-www-form-urlencoded`, or it is larger than 64 KiB. | | `403` | `invalid_request` | both | The request has an `Origin` header that is the main address’s own origin or one listed in `[server] cors_allowed_origins`. Web pages cannot start or collect a sign-in. | | `404` | `not_found` | all three | Sign-in from an app is not available on this Prism: it cannot issue keys, or its console is turned off or did not start. Ask the person for a Prism key instead. | | `405` | `method_not_allowed` | all three | Use `GET` for the discovery document and `POST` for the other two. | | `429` | `slow_down` | device authorization | Too many sign-in requests. Wait the number of seconds in `Retry-After`. | | `503` | `temporarily_unavailable` | both | Prism could not complete the step. Wait `Retry-After` seconds and send the same request again; an allowed request stays allowed. On the token endpoint `Retry-After` is the current poll interval of the device code. | | `403` | `origin_not_allowed` | all three | A browser request from another origin: an `Origin` that is neither the main address’s own nor listed in `[server] cors_allowed_origins`, or `Sec-Fetch-Site: cross-site`. The main address refuses it before the sign-in endpoints see it, so the body is the model API’s error object (`{"error":{"code":"origin_not_allowed",...}}`) and has no `Cache-Control: no-store`. | ### The token [Section titled “The token”](https://prism.tm/docs/clients/sign-in-from-an-app/#the-token) The token is a Prism key (`prism_it_...`) of the person who allowed the request. Send it as `Authorization: Bearer ` on model requests: Terminal window ``` # PRISM_TOKEN holds the access_token from the token endpoint.curl -s http://127.0.0.1:18000/v1/chat/completions \ -H "Authorization: Bearer $PRISM_TOKEN" \ -H 'Content-Type: application/json' \ -d '{"model": "auto", "messages": [{"role": "user", "content": "Hello"}]}' ``` - It does not expire. `expires_in` is ten years in seconds, so a client that reads it does not start a new sign-in while the token still works. - There is no refresh token and no refresh grant. - It ends when the person disconnects the app in the Prism console, when the person is removed, or when an administrator revokes it. Requests then get `401` with the code `unauthorized` and the message “This Prism key is not valid: it was revoked or expired, or the app was disconnected. Sign in again from the app, or use a current key.” Show the message to the person, discard the token and start a new sign-in. - It works wherever a person’s Prism key works, on the main and the managed address; see [Connect clients](https://prism.tm/docs/clients/). ### Limits [Section titled “Limits”](https://prism.tm/docs/clients/sign-in-from-an-app/#limits) | Limit | Value | | --- | --- | | Lifetime of a sign-in request | 600 seconds | | Poll interval | 5 seconds at first; 5 more after each `slow_down`, up to 60 | | Sign-in requests started from one address | 30 per 15 minutes; an IPv6 address is counted by its /64 | | Sign-in requests started in total | 300 per 15 minutes | | Sign-in requests open at one time | 256, counted until each expires | | Form body | 64 KiB | | App name (`client_name`) | 120 bytes | | `surface` | 80 bytes | | `User-Agent` | 300 bytes | A name, surface or `User-Agent` longer than its limit is cut, not refused. Sign-in requests are kept in memory. If Prism restarts while a request is open, the next poll answers `expired_token`; start a new sign-in. ### Main address only [Section titled “Main address only”](https://prism.tm/docs/clients/sign-in-from-an-app/#main-address-only) The three endpoints are served on the main address only. The managed address requires a key on every request, so it answers `401` for them. The console and control addresses do not serve them. An app that signs in this way must reach the main address. --- title: "Backup and migration | Prism docs" description: "Back up Prism's state with prism backup, check the archive, and move Prism to another machine." url: https://prism.tm/docs/getting-started/backup-and-migration/ --- [Skip to content](https://prism.tm/docs/getting-started/backup-and-migration/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/getting-started/backup-and-migration/#_top) - [Create a backup](https://prism.tm/docs/getting-started/backup-and-migration/#create-a-backup) - [What the archive holds](https://prism.tm/docs/getting-started/backup-and-migration/#what-the-archive-holds) - [Move Prism to another machine](https://prism.tm/docs/getting-started/backup-and-migration/#move-prism-to-another-machine) - [Before an upgrade](https://prism.tm/docs/getting-started/backup-and-migration/#before-an-upgrade) ## On this page - [Overview](https://prism.tm/docs/getting-started/backup-and-migration/#_top) - [Create a backup](https://prism.tm/docs/getting-started/backup-and-migration/#create-a-backup) - [What the archive holds](https://prism.tm/docs/getting-started/backup-and-migration/#what-the-archive-holds) - [Move Prism to another machine](https://prism.tm/docs/getting-started/backup-and-migration/#move-prism-to-another-machine) - [Before an upgrade](https://prism.tm/docs/getting-started/backup-and-migration/#before-an-upgrade) # Backup and migration `prism backup create` copies Prism’s state into one tar archive. Prism must be stopped: the command opens every database read-only and fails while a running Prism holds one open. ## Create a backup [Section titled “Create a backup”](https://prism.tm/docs/getting-started/backup-and-migration/#create-a-backup) Terminal window ``` systemctl --user stop prism # macOS: launchctl bootout gui/$(id -u)/com.prism.routercd ~/.prismprism backup create# backup created: data/backups/prism-backup-20261007T073554Z.tarprism backup verify data/backups/prism-backup-20261007T073554Z.tar# backup verifiedsystemctl --user start prism ``` With the Debian package: Terminal window ``` sudo systemctl stop prismsudo -u prism prism backup create --config /etc/prism/config.tomlsudo systemctl start prism ``` If Prism is still running, the command stops with `backup create failed: backup accounts.db: stop Prism before backing up: timeout` and exit code 1. | Option | Effect | | --- | --- | | `--config PATH` | config that names the state directory (default: `PRISM_CONFIG`, then `config.toml` in the current directory, then `/etc/prism/config.toml`) | | `--storage DIR` | the state directory itself, instead of `--config` | | `--output PATH` | archive path; default `/backups/prism-backup-.tar`, mode 0600 | | `--include-secrets` | also copy stored provider keys and the console token (below) | ## What the archive holds [Section titled “What the archive holds”](https://prism.tm/docs/getting-started/backup-and-migration/#what-the-archive-holds) - the routing, accounts and quality-prior databases (request history, users, connections, settings); - settings saved in the console, learned parameter rules, request policies, price and model catalogues; - the migration backups the databases refer to; - `manifest.json`: the Prism version, each database’s schema version, and the size and SHA-256 of every file. `prism backup verify` checks them before it opens any database. Without `--include-secrets` the archive holds no provider keys. With it, the archive also contains the stored provider keys, the key that encrypts them (`master.key`) and the console token. Anyone with the file can read them: keep such an archive offline. ## Move Prism to another machine [Section titled “Move Prism to another machine”](https://prism.tm/docs/getting-started/backup-and-migration/#move-prism-to-another-machine) 1. Install the same or a newer Prism on the new machine and stop it. 2. Copy the archive over and check it: `prism backup verify ARCHIVE`. 3. Extract it into an empty state directory: Terminal window ``` mkdir -p ~/.prism/datatar -xf prism-backup-20261007T073554Z.tar -C ~/.prism/data --exclude manifest.json ``` 4. Start Prism. Do not extract over an existing state directory. The archive keeps the directories that hold secrets readable only by their owner, which Prism requires at start. If the archive was made without `--include-secrets`, connect the providers again in the console after the move. ## Before an upgrade [Section titled “Before an upgrade”](https://prism.tm/docs/getting-started/backup-and-migration/#before-an-upgrade) An update from the console or `prism update` takes its own snapshot of the state directory and restores it on rollback ([Update Prism](https://prism.tm/docs/getting-started/update/)). A backup made with `prism backup create --include-secrets` before a manual upgrade or a package upgrade lets you return to the previous state by hand. --- title: "Install Prism | Prism docs" description: "Install Prism on Linux or macOS with one command, from a Debian package, or from a release archive." url: https://prism.tm/docs/getting-started/install/ --- [Skip to content](https://prism.tm/docs/getting-started/install/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/getting-started/install/#_top) - [One-command installer](https://prism.tm/docs/getting-started/install/#one-command-installer) - [What goes where](https://prism.tm/docs/getting-started/install/#what-goes-where) - [Installer options](https://prism.tm/docs/getting-started/install/#installer-options) - [Install links from prism.tm](https://prism.tm/docs/getting-started/install/#install-links-from-prismtm) - [Debian package](https://prism.tm/docs/getting-started/install/#debian-package) - [Release archive](https://prism.tm/docs/getting-started/install/#release-archive) - [Check that it works](https://prism.tm/docs/getting-started/install/#check-that-it-works) ## On this page - [Overview](https://prism.tm/docs/getting-started/install/#_top) - [One-command installer](https://prism.tm/docs/getting-started/install/#one-command-installer) - [What goes where](https://prism.tm/docs/getting-started/install/#what-goes-where) - [Installer options](https://prism.tm/docs/getting-started/install/#installer-options) - [Install links from prism.tm](https://prism.tm/docs/getting-started/install/#install-links-from-prismtm) - [Debian package](https://prism.tm/docs/getting-started/install/#debian-package) - [Release archive](https://prism.tm/docs/getting-started/install/#release-archive) - [Check that it works](https://prism.tm/docs/getting-started/install/#check-that-it-works) # Install Prism Prism is one binary. Pick the method that fits the machine: | Method | Platforms | Runs as | Updates | | --- | --- | --- | --- | | One-command installer | Linux, macOS (amd64, arm64) | your user, no root | console or `prism update` | | Debian package | Linux amd64, arm64 | system user `prism` | a newer `.deb` | | Release archive | Linux, macOS, Windows | what you set up | console or `prism update` (not on Windows) | ## One-command installer [Section titled “One-command installer”](https://prism.tm/docs/getting-started/install/#one-command-installer) Terminal window ``` curl -fsSL https://releases.prism.tm/prism/install.sh | sh ``` The installer: 1. detects the OS and architecture (Linux or macOS, amd64 or arm64); 2. downloads the latest stable release, its `SHA256SUMS` and the signature of `SHA256SUMS` from `https://releases.prism.tm/prism`; 3. checks the signature against the Prism release key built into the script, then checks the archive against `SHA256SUMS`. An unsigned release, a signature by another key or a checksum mismatch stops the installer and nothing is installed. The check needs `ssh-keygen` (OpenSSH 8.1 or later, present on macOS and most Linux systems) or OpenSSL; 4. installs everything for your user, without `sudo`; 5. asks which providers you use and for their API keys (input is hidden), or for the address of a local OpenAI-compatible server such as Ollama (`http://127.0.0.1:11434/v1`), which needs no key; 6. asks whether to send anonymous usage statistics (off unless you agree), and whether you were invited to a telemetry fleet. Answer `N`, the default, unless someone gave you a fleet enrollment; see [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/); 7. writes the config, starts Prism as a user service and checks `http://127.0.0.1:18000/health`. It does not make a paid model call. The check after install uses `/health` and `/v1/models` only. ### What goes where [Section titled “What goes where”](https://prism.tm/docs/getting-started/install/#what-goes-where) | Item | Path | | --- | --- | | Binary | `~/.local/bin/prism` | | Config | `~/.prism/config.toml` (mode 0600) | | State (databases, request history) | `~/.prism/data/` | | Provider keys | `~/.config/prism/prism.env` (mode 0600) | | Console token | `~/.prism/console-token` (mode 0600) | | Service | systemd user unit `prism` (Linux), launchd agent `com.prism.router` (macOS) | | Service logs | `journalctl --user -u prism` (Linux), `~/Library/Logs/prism/` (macOS) | The model API listens on `127.0.0.1:18000`, the web console on `127.0.0.1:18081`. ### Installer options [Section titled “Installer options”](https://prism.tm/docs/getting-started/install/#installer-options) Pass options after `sh -s --`: Terminal window ``` curl -fsSL https://releases.prism.tm/prism/install.sh | sh -s -- --non-interactive --providers none ``` | Option | Effect | | --- | --- | | `--version v0.30.0` | install this release instead of the latest stable one | | `--port 18000`, `--console-port 18081` | listen ports; they must differ | | `--providers openai,anthropic` | providers to set up: `openai`, `anthropic`, `google`, `openrouter`, `groq`, `deepseek`, or `none` | | `--local-url http://127.0.0.1:11434/v1` | add a keyless local OpenAI-compatible server | | `--onepassword` | store 1Password references (`op://…`) instead of keys | | `--statistics-yes` | send anonymous usage statistics | | `--service auto|systemd|launchd|none`, `--no-start` | how to run Prism | | `--prefix DIR` | install under `DIR` instead of your home directory | | `--non-interactive` | no questions; with it, keys come from `OPENAI_API_KEY` and the other provider variables in the environment | | `--force-overwrite` | replace an existing config, key file and console token (timestamped `.bak` copies are written first) | | `--dry-run` | print the plan and change nothing | | `--paid-smoke` | after install, send one real chat request (this can cost money) | | `--no-report` | never send the install signal (below) | Without `--force-overwrite` the installer refuses to touch an existing install. ### Install links from prism.tm [Section titled “Install links from prism.tm”](https://prism.tm/docs/getting-started/install/#install-links-from-prismtm) The download page on prism.tm gives a command of the form `curl -fsSL "https://prism.tm/install.sh?t=…" | sh`. It installs the same release the same way. The only difference is an anonymous install token that comes from the site. With a token, the installer sends one record when it finishes: `install_succeeded`, or `install_failed` with the stage that failed. The record holds the token, the event, the Prism version, OS, architecture and install mode, and nothing else. The installer says so before it downloads anything. `--no-report` or `PRISM_NO_REPORT=1` turns it off. Without a token nothing is sent. See [Install signal](https://prism.tm/docs/privacy/install-signal/). ## Debian package [Section titled “Debian package”](https://prism.tm/docs/getting-started/install/#debian-package) Each release publishes `.deb` packages for amd64 and arm64 on the release channel. Download and install the one for your architecture: Terminal window ``` curl -fsSLO https://releases.prism.tm/prism/v0.30.0/prism_0.30.0_amd64.debsudo apt install ./prism_0.30.0_amd64.deb ``` The package: - installs `/usr/bin/prism` and a system service `prism.service`, enabled and started; - creates the system user `prism`; - writes `/etc/prism/config.toml` (listens on `127.0.0.1:18000`, state in `/var/lib/prism`); apt keeps your edits to this file on upgrade; - reads provider keys from `/etc/prism/prism.env` if it exists (create it with mode 0600); - checks the config with `prism config check /etc/prism/config.toml` before every start. A failed check keeps the service from starting; the reason is in `journalctl -u prism`. The console and `prism update` do not update a packaged Prism: they show new releases and point to the package. To update, install the newer `.deb` the same way. Before a package upgrade restarts Prism, the new version checks the config; if the check fails, the running Prism keeps serving and apt reports the package as not configured. Fix the config and run `sudo dpkg --configure -a`. ## Release archive [Section titled “Release archive”](https://prism.tm/docs/getting-started/install/#release-archive) Download `prism___.tar.gz` (Windows: `.zip`) and `SHA256SUMS` from `https://releases.prism.tm/prism//`, for example: Terminal window ``` curl -fsSLO https://releases.prism.tm/prism/v0.30.0/prism_v0.30.0_linux_amd64.tar.gzcurl -fsSLO https://releases.prism.tm/prism/v0.30.0/SHA256SUMSgrep prism_v0.30.0_linux_amd64.tar.gz SHA256SUMS | sha256sum -c - # macOS: shasum -a 256 -c -tar -xzf prism_v0.30.0_linux_amd64.tar.gzinstall -m 0755 prism ~/.local/bin/prismprism version ``` On macOS, if Gatekeeper blocks a binary downloaded with a browser, remove the quarantine attribute: `xattr -d com.apple.quarantine ~/.local/bin/prism`. `prism serve` reads `config.toml` from its working directory (or the path given with `--config`) and keeps state in `[storage] dir`, `./data` by default. An empty `config.toml` is a valid config. To run the binary as a service, see [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/). Windows has no installer and no service setup; run `prism.exe serve` by hand. ## Check that it works [Section titled “Check that it works”](https://prism.tm/docs/getting-started/install/#check-that-it-works) Terminal window ``` curl -fsS http://127.0.0.1:18000/health # {"status":"ok"}curl -fsS http://127.0.0.1:18000/v1/models # the models Prism foundprism version ``` Next: [Quick start](https://prism.tm/docs/getting-started/quick-start/). --- title: "Quick start | Prism docs" description: "Open the console, add a provider and send the first request through Prism." url: https://prism.tm/docs/getting-started/quick-start/ --- [Skip to content](https://prism.tm/docs/getting-started/quick-start/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/getting-started/quick-start/#_top) - [1\. Open the web console](https://prism.tm/docs/getting-started/quick-start/#1-open-the-web-console) - [2\. Add a provider](https://prism.tm/docs/getting-started/quick-start/#2-add-a-provider) - [3\. Send a request](https://prism.tm/docs/getting-started/quick-start/#3-send-a-request) - [4\. Point your applications at Prism](https://prism.tm/docs/getting-started/quick-start/#4-point-your-applications-at-prism) - [Next](https://prism.tm/docs/getting-started/quick-start/#next) ## On this page - [Overview](https://prism.tm/docs/getting-started/quick-start/#_top) - [1\. Open the web console](https://prism.tm/docs/getting-started/quick-start/#1-open-the-web-console) - [2\. Add a provider](https://prism.tm/docs/getting-started/quick-start/#2-add-a-provider) - [3\. Send a request](https://prism.tm/docs/getting-started/quick-start/#3-send-a-request) - [4\. Point your applications at Prism](https://prism.tm/docs/getting-started/quick-start/#4-point-your-applications-at-prism) - [Next](https://prism.tm/docs/getting-started/quick-start/#next) # Quick start This page assumes Prism is installed and running ([Install Prism](https://prism.tm/docs/getting-started/install/)). ## 1\. Open the web console [Section titled “1. Open the web console”](https://prism.tm/docs/getting-started/quick-start/#1-open-the-web-console) The console runs on `127.0.0.1:18081`. `prism console` prints its URL and the owner token. It reads `config.toml` in the current directory, then `/etc/prism/config.toml`, or the file `--config` names; after the installer, run it in `~/.prism`: 18081/prism/ui/ ``` cd ~/.prism && prism console # one-command installer# token: 6f1c… ``` With the Debian package the config is `/etc/prism/config.toml` and the token file belongs to the `prism` user: Terminal window ``` sudo -u prism sh -c 'cd /etc/prism && prism console' ``` Open the URL in a browser on the same machine, choose **Sign in with owner secret** and paste the token. To open the console from another machine, see [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/). ## 2\. Add a provider [Section titled “2. Add a provider”](https://prism.tm/docs/getting-started/quick-start/#2-add-a-provider) In the console open **AI providers** and connect one of: - an API key of a provider (OpenAI, Anthropic, Google, OpenRouter, DeepSeek and others from the list); - a subscription account through OAuth (Claude, Gemini, Cursor and Grok CLI forbid third-party programs and stay closed unless the central Prism administrator allows them for your installation); - your own OpenAI-compatible endpoint, for example a local Ollama, vLLM or llama.cpp server. Prism then discovers the provider’s models. **Test request** on a connection sends one short real request through that connection (mode **Only this connection** does not fall through to another account) and shows the model that served it, latency, tokens and cost. Without the console, add a block per provider to `config.toml` and put the key in the environment Prism starts with. Known providers need only a name: ``` [[providers]]name = "openrouter" # key from OPENROUTER_API_KEY ``` The built-in key variables are `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `GEMINI_API_KEY` (provider `google`), `OPENROUTER_API_KEY`, `GROQ_API_KEY`, `DEEPSEEK_API_KEY`, `TYPESAFE_API_KEY`, `TOKENBROKER_API_KEY` and `META_API_KEY`; any provider can name its own with `api_key_env`. With the installer, keys go into `~/.config/prism/prism.env`; with the Debian package, into `/etc/prism/prism.env`. A key in the environment without a `[[providers]]` block is not used. Restart Prism after editing either file. After its first start Prism keeps settings in the console; a block added to `config.toml` later is imported into the console at the next start, and the start log says so (or why not). `prism config check` lists the providers Prism will start with. A keyless local server needs only its address: ``` [[providers]]name = "local-llama"base_url = "http://127.0.0.1:8080/v1"routing_role = "local" ``` ## 3\. Send a request [Section titled “3. Send a request”](https://prism.tm/docs/getting-started/quick-start/#3-send-a-request) Terminal window ``` curl -s http://127.0.0.1:18000/v1/chat/completions \ -H 'Content-Type: application/json' \ -d '{"model": "auto", "messages": [{"role": "user", "content": "Hello"}]}' ``` `"model": "auto"` lets Prism choose the model. The response headers `X-Prism-Provider` and `X-Prism-Model` name the provider and model that answered, and `X-Prism-Cost-USD` the cost Prism computed. The request also appears in the console under **Usage history → Request details**. ## 4\. Point your applications at Prism [Section titled “4. Point your applications at Prism”](https://prism.tm/docs/getting-started/quick-start/#4-point-your-applications-at-prism) Outside an organization the main address `http://127.0.0.1:18000` takes no Prism key, and clients that require a key accept any non-empty value. In an organization (Teams, Enterprise) every model request needs your own Prism key instead (the **Keys** page: **Issue key**); see [Connect clients](https://prism.tm/docs/clients/). Terminal window ``` export OPENAI_BASE_URL=http://127.0.0.1:18000/v1export OPENAI_API_KEY=prism ``` Claude Code, Codex CLI, Gemini CLI, the Anthropic SDK and Ollama clients need other settings: see [Connect clients](https://prism.tm/docs/clients/). ## Next [Section titled “Next”](https://prism.tm/docs/getting-started/quick-start/#next) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/): `auto`, `cheap`, `fast`, `smart`, `local` and explicit models. - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/). - [Configuration reference](https://prism.tm/docs/reference/configuration/). --- title: "Run as a service | Prism docs" description: "Start, stop and restart Prism under systemd or launchd, read its logs, and set up the service for a manual install." url: https://prism.tm/docs/getting-started/run-as-a-service/ --- [Skip to content](https://prism.tm/docs/getting-started/run-as-a-service/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/getting-started/run-as-a-service/#_top) - [Commands](https://prism.tm/docs/getting-started/run-as-a-service/#commands) - [Linux: keep running after logout](https://prism.tm/docs/getting-started/run-as-a-service/#linux-keep-running-after-logout) - [Restart rules](https://prism.tm/docs/getting-started/run-as-a-service/#restart-rules) - [Set up the service for a release archive](https://prism.tm/docs/getting-started/run-as-a-service/#set-up-the-service-for-a-release-archive) - [Linux, system service](https://prism.tm/docs/getting-started/run-as-a-service/#linux-system-service) - [macOS, launchd agent](https://prism.tm/docs/getting-started/run-as-a-service/#macos-launchd-agent) - [Check the service](https://prism.tm/docs/getting-started/run-as-a-service/#check-the-service) ## On this page - [Overview](https://prism.tm/docs/getting-started/run-as-a-service/#_top) - [Commands](https://prism.tm/docs/getting-started/run-as-a-service/#commands) - [Linux: keep running after logout](https://prism.tm/docs/getting-started/run-as-a-service/#linux-keep-running-after-logout) - [Restart rules](https://prism.tm/docs/getting-started/run-as-a-service/#restart-rules) - [Set up the service for a release archive](https://prism.tm/docs/getting-started/run-as-a-service/#set-up-the-service-for-a-release-archive) - [Linux, system service](https://prism.tm/docs/getting-started/run-as-a-service/#linux-system-service) - [macOS, launchd agent](https://prism.tm/docs/getting-started/run-as-a-service/#macos-launchd-agent) - [Check the service](https://prism.tm/docs/getting-started/run-as-a-service/#check-the-service) # Run as a service The one-command installer and the Debian package set up the service for you. This page lists the commands for each, and how to set up the service by hand for a release archive. ## Commands [Section titled “Commands”](https://prism.tm/docs/getting-started/run-as-a-service/#commands) | | Installer, Linux | Installer, macOS | Debian package | | --- | --- | --- | --- | | Service | systemd user unit `prism` | launchd agent `com.prism.router` | system unit `prism` | | Status | `systemctl --user status prism` | `launchctl print gui/$(id -u)/com.prism.router` | `systemctl status prism` | | Stop | `systemctl --user stop prism` | `launchctl bootout gui/$(id -u)/com.prism.router` | `sudo systemctl stop prism` | | Start | `systemctl --user start prism` | `launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.prism.router.plist` | `sudo systemctl start prism` | | Restart after editing the config or keys | `systemctl --user restart prism` | `launchctl kickstart -k gui/$(id -u)/com.prism.router` | `sudo systemctl restart prism` | | Logs | `journalctl --user -u prism -f` | `~/Library/Logs/prism/prism.out.log`, `prism.err.log` | `journalctl -u prism -f` | | Config | `~/.prism/config.toml` | `~/.prism/config.toml` | `/etc/prism/config.toml` | | Keys | `~/.config/prism/prism.env` | `~/.config/prism/prism.env` | `/etc/prism/prism.env` | Prism reads its configuration once at start. A change in `config.toml` or in the key file takes effect after a restart. Settings saved in the web console also apply after a restart. The console can restart Prism itself when the service that runs Prism starts it again on exit code 75 and leaves it stopped on exit code 0, as the units below do; see [Restart rules](https://prism.tm/docs/getting-started/run-as-a-service/#restart-rules). ### Linux: keep running after logout [Section titled “Linux: keep running after logout”](https://prism.tm/docs/getting-started/run-as-a-service/#linux-keep-running-after-logout) A systemd user unit runs only while you are logged in. On a machine that must serve requests all the time, allow your user services to run without a login session, once: Terminal window ``` loginctl enable-linger "$USER" ``` ## Restart rules [Section titled “Restart rules”](https://prism.tm/docs/getting-started/run-as-a-service/#restart-rules) Prism uses its exit code to tell the supervisor what to do: | Exit code | Meaning | Supervisor should | | --- | --- | --- | | 75 | restart requested (console restart, installed update) | start Prism again | | 0 | stop requested (console stop) | leave it stopped | | 1 | failure (for example an invalid config) | start it again after a delay | The units the installer and the Debian package install follow these rules: ``` [Unit]StartLimitIntervalSec=0 [Service]Restart=alwaysRestartSec=5RestartForceExitStatus=75RestartPreventExitStatus=0 ``` `Restart=always` with `RestartSec=5` and `StartLimitIntervalSec=0` restarts a crashed Prism every 5 seconds without giving up. `StartLimit*` keys work only in the `[Unit]` section; systemd ignores them in `[Service]`. Without `RestartPreventExitStatus=0`, a stop from the console is undone 5 seconds later. The launchd agent restarts Prism when it exits with a non-zero code (`KeepAlive.SuccessfulExit = false`, at most once every 5 seconds). An invalid config makes Prism exit with `serve failed: …` on stderr. Under systemd that line is in the journal, and the service is restarted every 5 seconds until the config is fixed. **Versions → Check configuration** in the console checks the saved config inside the running service. From a terminal: Terminal window ``` prism config check ~/.prism/config.toml ``` A variable the config names but the terminal does not have (the service reads it from its environment file) is reported as not set in this shell and does not fail the check; add `--strict` to make it an error. ## Set up the service for a release archive [Section titled “Set up the service for a release archive”](https://prism.tm/docs/getting-started/run-as-a-service/#set-up-the-service-for-a-release-archive) Each release archive carries the reference units in `support/systemd/prism.service` and `support/launchd/com.prism.router.plist`. ### Linux, system service [Section titled “Linux, system service”](https://prism.tm/docs/getting-started/run-as-a-service/#linux-system-service) Terminal window ``` sudo useradd --system --home-dir /var/lib/prism --shell /usr/sbin/nologin prismsudo install -d -o prism -g prism /var/lib/prismsudo install -d -m 0755 /etc/prismsudo install -m 0755 prism /usr/local/bin/prismsudo touch /var/lib/prism/config.toml && sudo chown prism:prism /var/lib/prism/config.tomlsudo install -m 0600 /dev/null /etc/prism/prism.env # provider keys, one VAR=value per linesudo cp support/systemd/prism.service /etc/systemd/system/prism.servicesudo systemctl daemon-reloadsudo systemctl enable --now prism ``` The unit runs `/usr/local/bin/prism serve` as user `prism` in `/var/lib/prism`, so the config is `/var/lib/prism/config.toml` and state goes to `/var/lib/prism/data`. It reads keys from `/etc/prism/prism.env`. A provider whose `api_key_env` names a variable that is not set (and that has no key stored in the console) is disabled with one log line: `provider "" disabled: api_key_env is not set`. ### macOS, launchd agent [Section titled “macOS, launchd agent”](https://prism.tm/docs/getting-started/run-as-a-service/#macos-launchd-agent) The agent runs as your user, so keys stored in your login keychain with `prism setup` are readable. Terminal window ``` mkdir -p ~/.prism ~/Library/Logs/prism ~/.config/prismtouch ~/.prism/config.tomlinstall -m 0600 /dev/null ~/.config/prism/prism.envcp support/launchd/com.prism.router.plist ~/Library/LaunchAgents/sed -i '' "s/YOUR_USER/$(whoami)/g" ~/Library/LaunchAgents/com.prism.router.plistlaunchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.prism.router.plist ``` The agent loads `~/.config/prism/prism.env`, then runs `/usr/local/bin/prism serve` in `~/.prism`. Install the binary there, or edit the path in the plist. ## Check the service [Section titled “Check the service”](https://prism.tm/docs/getting-started/run-as-a-service/#check-the-service) Terminal window ``` curl -fsS http://127.0.0.1:18000/health # {"status":"ok"} ``` `/prism/status` returns a full status snapshot. When `PRISM_ADMIN_TOKEN` or `PRISM_READ_TOKEN` is set, it needs that token in `X-Prism-Admin-Token` (or the read token in `X-Prism-Read-Token`). --- title: "Uninstall | Prism docs" description: "Remove Prism installed with the one-command installer, the Debian package or by hand, with or without its data." url: https://prism.tm/docs/getting-started/uninstall/ --- [Skip to content](https://prism.tm/docs/getting-started/uninstall/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/getting-started/uninstall/#_top) - [One-command installer](https://prism.tm/docs/getting-started/uninstall/#one-command-installer) - [Debian package](https://prism.tm/docs/getting-started/uninstall/#debian-package) - [Manual install](https://prism.tm/docs/getting-started/uninstall/#manual-install) ## On this page - [Overview](https://prism.tm/docs/getting-started/uninstall/#_top) - [One-command installer](https://prism.tm/docs/getting-started/uninstall/#one-command-installer) - [Debian package](https://prism.tm/docs/getting-started/uninstall/#debian-package) - [Manual install](https://prism.tm/docs/getting-started/uninstall/#manual-install) # Uninstall ## One-command installer [Section titled “One-command installer”](https://prism.tm/docs/getting-started/uninstall/#one-command-installer) Terminal window ``` curl -fsSL https://releases.prism.tm/prism/uninstall.sh | sh ``` This stops and removes the service (systemd user unit or launchd agent) and the binary. Config, keys and data stay. To also delete the config, the key file, the data and the logs: Terminal window ``` curl -fsSL https://releases.prism.tm/prism/uninstall.sh | sh -s -- --purge ``` `--purge` asks you to type `yes` before it deletes anything; `--yes` skips the question. It removes `~/.prism`, `~/.config/prism` and, on macOS, `~/Library/Logs/prism`. If you installed with `--prefix`, `--service`, `--unit-name` or `--label`, pass the same values to the uninstaller. Keys stored in the macOS keychain with `prism setup` stay there; delete them in Keychain Access. ## Debian package [Section titled “Debian package”](https://prism.tm/docs/getting-started/uninstall/#debian-package) Terminal window ``` sudo apt remove prism # stops and removes the service; keeps /etc/prism/config.toml, /var/lib/prism and the prism usersudo apt purge prism # also deletes /etc/prism/config.toml and /var/lib/prism (accounts, stored keys, history) ``` The system user `prism` stays after a purge; remove it with `sudo userdel prism`. `/etc/prism/prism.env`, if you created it, is yours to delete. ## Manual install [Section titled “Manual install”](https://prism.tm/docs/getting-started/uninstall/#manual-install) Linux, system service from the release archive: Terminal window ``` sudo systemctl disable --now prismsudo rm /etc/systemd/system/prism.servicesudo systemctl daemon-reloadsudo rm /usr/local/bin/prism# Optional: delete config, keys and all datasudo rm -rf /var/lib/prism /etc/prismsudo userdel prism ``` macOS, launchd agent: Terminal window ``` launchctl bootout gui/$(id -u)/com.prism.routerrm ~/Library/LaunchAgents/com.prism.router.plistrm /usr/local/bin/prism# Optional: delete config, keys, logs and all datarm -rf ~/.prism ~/.config/prism ~/Library/Logs/prism ``` --- title: "Update Prism | Prism docs" description: "Update Prism from the web console or with prism update, install a specific version, and how automatic rollback works." url: https://prism.tm/docs/getting-started/update/ --- [Skip to content](https://prism.tm/docs/getting-started/update/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/getting-started/update/#_top) - [Turn on updates](https://prism.tm/docs/getting-started/update/#turn-on-updates) - [Update from the console](https://prism.tm/docs/getting-started/update/#update-from-the-console) - [Update from the command line](https://prism.tm/docs/getting-started/update/#update-from-the-command-line) - [What an install does](https://prism.tm/docs/getting-started/update/#what-an-install-does) - [Automatic rollback](https://prism.tm/docs/getting-started/update/#automatic-rollback) - [Components left out of step](https://prism.tm/docs/getting-started/update/#components-left-out-of-step) - [Release channel](https://prism.tm/docs/getting-started/update/#release-channel) - [Debian package](https://prism.tm/docs/getting-started/update/#debian-package) - [Windows](https://prism.tm/docs/getting-started/update/#windows) ## On this page - [Overview](https://prism.tm/docs/getting-started/update/#_top) - [Turn on updates](https://prism.tm/docs/getting-started/update/#turn-on-updates) - [Update from the console](https://prism.tm/docs/getting-started/update/#update-from-the-console) - [Update from the command line](https://prism.tm/docs/getting-started/update/#update-from-the-command-line) - [What an install does](https://prism.tm/docs/getting-started/update/#what-an-install-does) - [Automatic rollback](https://prism.tm/docs/getting-started/update/#automatic-rollback) - [Components left out of step](https://prism.tm/docs/getting-started/update/#components-left-out-of-step) - [Release channel](https://prism.tm/docs/getting-started/update/#release-channel) - [Debian package](https://prism.tm/docs/getting-started/update/#debian-package) - [Windows](https://prism.tm/docs/getting-started/update/#windows) # Update Prism An installer or release-archive install updates itself from the public release channel `https://releases.prism.tm/prism`. Nothing has to be configured for the source: official builds carry the channel. A Debian package install is updated with a newer package instead (see [Debian package](https://prism.tm/docs/getting-started/update/#debian-package)). ## Turn on updates [Section titled “Turn on updates”](https://prism.tm/docs/getting-started/update/#turn-on-updates) Installing updates from Prism itself is off by default. Turn it on once: 1. In the console open **Configuration → Maintenance**, switch on **Allow installing updates from the console** and save. 2. Click **Restart now** next to the setting. Restart and stop from the console need no setting: Prism offers them by itself when the service that runs it starts it again after a console restart (exit code 75) and leaves it stopped after a stop (exit code 0). The units from the installer and the Debian package do; see [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/#restart-rules). If Prism was started by hand, the console says that restart is unavailable. ## Update from the console [Section titled “Update from the console”](https://prism.tm/docs/getting-started/update/#update-from-the-console) Open **Versions**. The page shows the running version, the latest release of the channel and its release notes. - **Update now** and **Stop and update** install the latest release. - **Reinstall** installs the running version again. - A release tag such as `v0.29.0` in the version field installs exactly that release, also an older one or a pre-release. Use it to go back to an earlier version. - **Offline installation**: choose the platform archive, `SHA256SUMS` and `SHA256SUMS.sig` downloaded on another machine. Verification is the same and needs no network. When an install is not possible (updates not enabled, no write access to the directory of the executable, an update still on probation, no release source), the buttons are disabled and the reason is shown under them. ## Update from the command line [Section titled “Update from the command line”](https://prism.tm/docs/getting-started/update/#update-from-the-command-line) `prism update` asks the running Prism to do the same as the console: Terminal window ``` cd ~/.prismprism update check # exit 10: a newer release exists; 0: up to dateprism update install --yes # latest release of the channelprism update install --version v0.29.0 --yesprism update status # versions and the last update ``` | Option | Effect | | --- | --- | | `--config PATH` | config used to find the running Prism (default: `PRISM_CONFIG`, then `config.toml` in the current directory, then `/etc/prism/config.toml`) | | `--url http://127.0.0.1:18000` | address of the running Prism instead of the config; plain `http://` only to a loopback address | | `--json` | one JSON object with `exit_code` | | `--timeout 10m` | how long `install` follows the job | The owner token comes from `PRISM_ADMIN_TOKEN`, else `[console] admin_token_file`, else `/console-token`. Exit codes: 0 success, 10 newer release available (`check`), 1 failure or rollback, 2 usage error. Check a downloaded release without installing it: Terminal window ``` prism update verify --archive prism_v0.30.0_linux_amd64.tar.gz --sums SHA256SUMS --signature SHA256SUMS.sig ``` ## What an install does [Section titled “What an install does”](https://prism.tm/docs/getting-started/update/#what-an-install-does) 1. Prism downloads the release’s `SHA256SUMS` and `SHA256SUMS.sig` and checks the signature with the release keys built into the running binary. An unsigned release, an unknown key or an archive whose checksum differs is refused and nothing changes. 2. It unpacks the new binary next to the executable, checks that it reports the expected version and accepts the current config (`prism config check`). 3. The fleet receiver, when Prism found it running as the same user (under a systemd user unit or as a plain process, which is restarted with its own command line), is replaced and checked first. Then companion programs (for example `prism-service-agent`) found next to `prism`, in `~/.local/bin` or in `~/.local/libexec` whose version differs are replaced; a program that is not installed is never added. Each replaced file is kept as `.prev`. 4. Prism stops accepting new connections, gives running requests, streams included, up to 60 seconds, copies the state directory to `/update/snapshots/` and starts the new binary in its place. 5. The new version runs 15 seconds on probation. When its `/health` answers, it replaces the installed executable and keeps the previous one in `/update/backups/`. ### Automatic rollback [Section titled “Automatic rollback”](https://prism.tm/docs/getting-started/update/#automatic-rollback) If the new version does not start, crashes or fails its health check during probation, it exits; the supervisor starts the old executable, which restores the state snapshot and the replaced companion programs and records the reason. The new version’s files are moved to `/update/rolled-back/`. The **Versions** page, `prism update status` and `/update/journal.jsonl` show every step and the reason. ### Components left out of step [Section titled “Components left out of step”](https://prism.tm/docs/getting-started/update/#components-left-out-of-step) If Prism was updated some other way, the **Versions** page marks the older components «out of date». **Update to** on a row, or **Bring all in sync**, replaces them from the signed release of the version Prism runs; Prism keeps running. With `[console] allow_update` on, Prism does this by itself about two minutes after it starts. An install needs write access to the directory of the executable and free space for one copy of the state directory; otherwise the console says so and installs nothing. ## Release channel [Section titled “Release channel”](https://prism.tm/docs/getting-started/update/#release-channel) `[console] update_channel` selects which release is “latest”: | Value | Latest is | | --- | --- | | `stable` (default) | the newest release without a `-` suffix | | `prerelease` | the newest release, `-rc` and `-beta` tags included | Set it on **Versions** or in **Configuration → Maintenance → Release channel**. A pinned version is installed regardless of the channel. ## Debian package [Section titled “Debian package”](https://prism.tm/docs/getting-started/update/#debian-package) The console and `prism update` show new releases on a packaged Prism but do not install them. Download the new package and install it: Terminal window ``` curl -fsSLO https://releases.prism.tm/prism/v0.30.0/prism_0.30.0_amd64.debsudo apt install ./prism_0.30.0_amd64.deb ``` Before the upgrade restarts the service, the new version runs `prism config check /etc/prism/config.toml` as user `prism` with `/etc/prism/prism.env` loaded. If the check fails, the running Prism is not restarted and keeps serving, the reason is in `journalctl -t prism-deb`, and apt reports the package as not configured. Fix the config and run `sudo dpkg --configure -a`. ## Windows [Section titled “Windows”](https://prism.tm/docs/getting-started/update/#windows) Windows installs by hand: download the `.zip`, stop Prism, replace `prism.exe`, start it again. --- title: "Add a machine | Prism docs" description: "Pair a model machine with Prism from the console with one command, then choose the model servers Prism should manage." url: https://prism.tm/docs/managed-inference/add-machine/ --- [Skip to content](https://prism.tm/docs/managed-inference/add-machine/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/managed-inference/add-machine/#_top) - [Before you start](https://prism.tm/docs/managed-inference/add-machine/#before-you-start) - [Add a machine without a terminal](https://prism.tm/docs/managed-inference/add-machine/#add-a-machine-without-a-terminal) - [Pair the machine](https://prism.tm/docs/managed-inference/add-machine/#pair-the-machine) - [Common problems](https://prism.tm/docs/managed-inference/add-machine/#common-problems) - [What is stored where](https://prism.tm/docs/managed-inference/add-machine/#what-is-stored-where) - [Remove a machine](https://prism.tm/docs/managed-inference/add-machine/#remove-a-machine) - [Model servers that run as system services](https://prism.tm/docs/managed-inference/add-machine/#model-servers-that-run-as-system-services) ## On this page - [Overview](https://prism.tm/docs/managed-inference/add-machine/#_top) - [Before you start](https://prism.tm/docs/managed-inference/add-machine/#before-you-start) - [Add a machine without a terminal](https://prism.tm/docs/managed-inference/add-machine/#add-a-machine-without-a-terminal) - [Pair the machine](https://prism.tm/docs/managed-inference/add-machine/#pair-the-machine) - [Common problems](https://prism.tm/docs/managed-inference/add-machine/#common-problems) - [What is stored where](https://prism.tm/docs/managed-inference/add-machine/#what-is-stored-where) - [Remove a machine](https://prism.tm/docs/managed-inference/add-machine/#remove-a-machine) - [Model servers that run as system services](https://prism.tm/docs/managed-inference/add-machine/#model-servers-that-run-as-system-services) # Add a machine **Add machine**, confirming a machine, and managing its model servers need an active Pro, Teams or Enterprise subscription. Only the installation owner sees these controls. Adding a machine installs `prism-service-agent` on it and pairs it with your Prism. A new cloud instance can do this itself from its start configuration ([without a terminal](https://prism.tm/docs/managed-inference/add-machine/#add-a-machine-without-a-terminal)); an existing machine needs one command in its terminal. You do not need root. ## Before you start [Section titled “Before you start”](https://prism.tm/docs/managed-inference/add-machine/#before-you-start) - The model servers run as systemd units on Linux, under one account (for example `inference`). Prism recognizes units that run `llama-server`, `vllm`, `ollama` or `sglang`, or any unit whose process answers `/v1/models` on a local port. - The model machine can reach Prism’s main address. Use a tailnet address (`http://100.64.0.10:18000`, or the machine’s tailnet DNS name) or an HTTPS address. The agent refuses to pair over plain `http` to any other address, except loopback, because the pairing request carries the agent’s token once. ## Add a machine without a terminal [Section titled “Add a machine without a terminal”](https://prism.tm/docs/managed-inference/add-machine/#add-a-machine-without-a-terminal) A new cloud instance can connect itself when it first starts. Nothing secret goes into the instance: no code, key, token or account. 1. In the console open **Compute providers**, press **Add machine**, choose **On another machine** and stay on the **When creating an instance** tab. 2. Check Prism’s address. Leave **Account on the machine** empty to install the agent for the machine’s only regular account; enter the account that owns the model servers when the image has several. 3. Copy the text into the instance’s **User data** field (Nebius: _Create virtual machine_ → _User data_) when you create it: ``` #cloud-config# Connects this machine to Prism at http://100.64.0.10:18000. It holds no key or code:# the machine appears in the Prism console and waits for your confirmation.runcmd: - [systemd-run, --unit=prism-join, --collect, sh, -c, "for i in $(seq 2880); do curl -fsSL 'http://100.64.0.10:18000/prism/pair/install.sh' -o /run/prism-join.sh && sh /run/prism-join.sh --prism 'http://100.64.0.10:18000' && exit 0; sleep 30; done"] ``` The text is the same for every machine; keep it for the next one. 4. At first boot the machine installs the agent of your Prism’s version for that account, turns on lingering and asks Prism to connect it. It keeps asking for a day while Prism is not reachable yet, for example before the machine joins your tailnet. Progress is in `journalctl -u prism-join` on the machine. 5. The machine appears in **Compute providers** as **Asks to connect**, with the address the request came from, the agent version, the model servers it found and its certificate fingerprint. Prism looks it up in your cloud accounts: - **Instance … in account …: the request address … matches** — the request came from that instance’s own address; - **Not confirmed, check: … the machine reported that address itself** or **… the machine reported the name itself** — a warning, not a match: the machine says this about itself and nothing proves it. You can still confirm, but only if the machine is yours; - **This machine is not in your cloud accounts** — confirm only if you created it. 6. Press **Confirm** to let Prism manage it, or **Reject**. Prism calls nothing on the machine before you confirm. Reject removes the request, and Prism refuses that agent’s requests afterwards. Limits: at most 8 machines can wait for confirmation at once; a request not confirmed within 24 hours is removed. Model servers that run as system services still need the one-time grant described in [System services](https://prism.tm/docs/managed-inference/system-services/). ## Pair the machine [Section titled “Pair the machine”](https://prism.tm/docs/managed-inference/add-machine/#pair-the-machine) 1. In the console open **Compute providers** and press **Add machine**. 2. Check **This Prism’s address (the agent on the machine connects to it)**. The console fills it in; this is Prism’s address, not the model machine’s. Press **Create command**. 3. The console shows one command with a one-time code, valid for 10 minutes: Terminal window ``` curl -fsSL 'http://100.64.0.10:18000/prism/pair/install.sh' | sh -s -- --prism 'http://100.64.0.10:18000' --code ABCD-EFGH-JKMN ``` Run it on the model machine **as the account that owns the model servers**, not as root. 4. The script downloads the agent of the same version as your Prism into `~/.local/bin`, checks its version, and runs `prism-service-agent pair`, which: - creates the agent token and a self-signed TLS certificate in `~/.config/prism-service-agent/` (files readable only by that account); - finds the model servers of the account; - sends the token, the certificate fingerprint and the list of servers to Prism with the code; - installs and starts the user unit `prism-service-agent.service` (port 18093 by default). If user lingering is off, `pair` turns it on with `loginctl enable-linger` so the agent and the model servers keep running after logout and start at boot. If that is refused, the command prints the commands to run instead (`sudo loginctl enable-linger inference`, then `systemctl --user enable --now prism-service-agent.service`). 5. Back in the console the machine shows **Waiting for confirmation**. Prism calls nothing on the machine until you press **Confirm**. 6. After confirmation Prism lists the model servers the agent found. Tick the ones Prism should manage. Each ticked server becomes a model service and an AI provider whose model appears in `/v1/models`. Open its settings to set the start timeout and [start on request](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/). If the agent found nothing, start a model server or check its unit, then press **Find servers again**. ## Common problems [Section titled “Common problems”](https://prism.tm/docs/managed-inference/add-machine/#common-problems) | Message | Cause | Fix | | --- | --- | --- | | The command expired. Create a new one. | The code is older than 10 minutes or was used | Press **Create command** again | | systemctl –user did not answer for inference. Run: sudo loginctl enable-linger inference | The account has no running user manager | Run the command shown, then **Find servers again** | | Listens only on 127.0.0.1: Prism on another machine cannot reach it. | The model server binds loopback and Prism runs elsewhere | Bind the server to `0.0.0.0` or to the machine’s tailnet address | | Choose the model: the server lists several, and Prism routes one model per service. | The server serves several models | Pick one in **Model** | ## What is stored where [Section titled “What is stored where”](https://prism.tm/docs/managed-inference/add-machine/#what-is-stored-where) - On the model machine: the agent token, TLS key and certificate, the agent configuration and the list of allowed units, all in `~/.config/prism-service-agent/`. - In Prism: the machine (host name, agent address, certificate fingerprint, discovered units) and the managed services in its state database; the agent token in Prism’s encrypted vault. ## Remove a machine [Section titled “Remove a machine”](https://prism.tm/docs/managed-inference/add-machine/#remove-a-machine) Press **Remove** on the machine in **Compute providers**. Prism deletes its copy of the agent token. On the machine, run: Terminal window ``` systemctl --user disable --now prism-service-agent.servicerm -rf ~/.config/prism-service-agent ``` ## Model servers that run as system services [Section titled “Model servers that run as system services”](https://prism.tm/docs/managed-inference/add-machine/#model-servers-that-run-as-system-services) A model server that runs as a system service (`systemctl --system`), possibly under another account, needs a one-time grant on the machine. See [System services](https://prism.tm/docs/managed-inference/system-services/). --- title: "Agent access tokens | Prism docs" description: "Give an agent a scoped token so it adds model servers and starts, stops and powers machines through Prism instead of over SSH." url: https://prism.tm/docs/managed-inference/agent-tokens/ --- [Skip to content](https://prism.tm/docs/managed-inference/agent-tokens/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/managed-inference/agent-tokens/#_top) - [Requirements](https://prism.tm/docs/managed-inference/agent-tokens/#requirements) - [Issue a token](https://prism.tm/docs/managed-inference/agent-tokens/#issue-a-token) - [Use the token](https://prism.tm/docs/managed-inference/agent-tokens/#use-the-token) - [Errors](https://prism.tm/docs/managed-inference/agent-tokens/#errors) - [Revoke](https://prism.tm/docs/managed-inference/agent-tokens/#revoke) ## On this page - [Overview](https://prism.tm/docs/managed-inference/agent-tokens/#_top) - [Requirements](https://prism.tm/docs/managed-inference/agent-tokens/#requirements) - [Issue a token](https://prism.tm/docs/managed-inference/agent-tokens/#issue-a-token) - [Use the token](https://prism.tm/docs/managed-inference/agent-tokens/#use-the-token) - [Errors](https://prism.tm/docs/managed-inference/agent-tokens/#errors) - [Revoke](https://prism.tm/docs/managed-inference/agent-tokens/#revoke) # Agent access tokens Starting, stopping and powering through an agent token needs an active Pro, Teams or Enterprise subscription, exactly as in the console. Adding and checking model servers (`operator:providers:write`) and reading the compute view work in every edition. An agent access token lets an AI agent manage model servers and machines through Prism’s API. The agent does not get SSH access, provider keys or owner rights. Every action runs under the token and is logged with the token’s label. ## Requirements [Section titled “Requirements”](https://prism.tm/docs/managed-inference/agent-tokens/#requirements) - The managed listener is on: `[server] managed_bind` (for example `managed_bind = "127.0.0.1:18002"`). Agent tokens work only there. See [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/). - You are the installation owner. ## Issue a token [Section titled “Issue a token”](https://prism.tm/docs/managed-inference/agent-tokens/#issue-a-token) 1. In the console open **Configuration** → **API keys** → **Add API key**. 2. Enter the agent ID and a label. 3. Under **Prism access for an agent (instead of model calls)** tick what the agent may do: | Console label | Scope | Endpoints | | --- | --- | --- | | add and check model servers; change or remove only the ones it added itself | `operator:providers:write` | `/prism/operator/providers`, `/providers/remove`, `/providers/test` | | see machines and model services | `operator:compute:read` | `GET /prism/operator/compute` | | start, stop and restart model services | `operator:compute:control` | `POST /prism/operator/compute/service` | | power linked cloud machines on and off | `operator:compute:power` | `/prism/operator/compute/host`, `/compute/instances`, `/compute/host/add`, `/compute/host/remove`, `/compute/link` | | ask a machine to find its model servers again | `operator:compute:discover` | `POST /prism/operator/compute/discover` | Every agent token can also read its own operations (`GET /prism/operator/operations/{id}`). 4. Press **Add**. Prism shows the token (`prism_it_…`) once. It expires after 90 days unless you set another expiry. Such a token cannot call models, and it does not open provider keys, users, the subscription, pairing approval or a machine’s agent allowlist. A token for model calls is a different key; see [Connecting clients](https://prism.tm/docs/clients/). ## Use the token [Section titled “Use the token”](https://prism.tm/docs/managed-inference/agent-tokens/#use-the-token) Send it as `Authorization: Bearer` to the managed address: Terminal window ``` curl -s http://127.0.0.1:18002/prism/operator/compute \ -H "Authorization: Bearer $PRISM_OPERATOR_TOKEN" ``` Start a model service: Terminal window ``` curl -s http://127.0.0.1:18002/prism/operator/compute/service \ -H "Authorization: Bearer $PRISM_OPERATOR_TOKEN" \ -H 'Content-Type: application/json' \ -d '{"operation_id": "start-qwen-1", "id": "qwen-coder", "action": "start"}' ``` `action` is `start`, `stop` or `restart`. Each change carries an `operation_id` you choose; sending the same `operation_id` again returns the same operation instead of running it twice. Host power uses `POST /prism/operator/compute/host` with `"action": "power_on"` or `"power_off"`. The agent finds these endpoints in `GET /prism/agent-context`. The agent calls them over HTTP; `prism mcp --operator` does not expose the compute and provider actions. ## Errors [Section titled “Errors”](https://prism.tm/docs/managed-inference/agent-tokens/#errors) | Answer | Cause | | --- | --- | | `401 unauthorized` | No token, wrong header, or the token is revoked or expired | | `403` | The token lacks the scope for this endpoint | | `403 not_own_connection` | The token tried to change a model server it did not add | | `403 corporate_unavailable` | The action needs an active Pro, Teams or Enterprise subscription | | `409 busy` | Another operation on the same service is running | | `404 not_found` | No model service with that `id` | ## Revoke [Section titled “Revoke”](https://prism.tm/docs/managed-inference/agent-tokens/#revoke) **Configuration** → **API keys**, then remove the key. --- title: "Start on request and stop when idle | Prism docs" description: "A stopped model server starts when a request names its model, and stops after a period without requests." url: https://prism.tm/docs/managed-inference/autostart-and-idle-stop/ --- [Skip to content](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/#_top) - [Turn it on](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/#turn-it-on) - [What a request sees](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/#what-a-request-sees) - [Stop reasons](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/#stop-reasons) - [Stopping does not power off the machine](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/#stopping-does-not-power-off-the-machine) - [Errors](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/#errors) ## On this page - [Overview](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/#_top) - [Turn it on](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/#turn-it-on) - [What a request sees](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/#what-a-request-sees) - [Stop reasons](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/#stop-reasons) - [Stopping does not power off the machine](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/#stopping-does-not-power-off-the-machine) - [Errors](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/#errors) # Start on request and stop when idle Automatic start and idle stop need an active Pro, Teams or Enterprise subscription. When the subscription is not active, nothing starts or stops automatically and a running model keeps serving. Both settings are off by default and are set per model service. ## Turn it on [Section titled “Turn it on”](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/#turn-it-on) In the console: **Compute providers** → the service → **Edit** → **Start on request**, and optionally **Stop after idle**. Or in `config.toml`: ``` [[inference.services]]id = "qwen-coder"provider = "gpu-coder"model = "qwen-coder" # exact ID returned by /v1/modelstransport = "agent"agent_url = "https://192.0.2.10:18093"agent_token_env = "PRISM_GPU_CODER_AGENT_TOKEN"agent_service = "qwen-coder"autostart = truestart_timeout = "10m" # longer than the model's real load time# autostart_wait = "10m" # default: start_timeout# autostart_max_waiters = 32 # default 32# idle_stop_after = "30m" # default: off ``` | Setting | Console label | Default | Meaning | | --- | --- | --- | --- | | `autostart` | Start on request | off | A request that names this model starts the stopped server | | `start_timeout` | Start timeout | 3 minutes | How long a start may take, until the model answers; applies to the **Start** button too | | `autostart_wait` | Request wait | `start_timeout` | How long a request waits for the start | | `autostart_max_waiters` | Waiting requests limit | 32 | Requests that may wait at the same time | | `idle_stop_after` | Stop after idle | off | Stop the server after this long without requests | ## What a request sees [Section titled “What a request sees”](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/#what-a-request-sees) - **A request that names the model** (for example `gpu-coder::qwen-coder`, or `qwen-coder`) waits while the model loads and is then answered by that model, never by another one. When it waits longer than `autostart_wait`, or more than `autostart_max_waiters` requests are waiting, it gets HTTP 503 with `Retry-After`. - **A request where Prism chooses the model** (`auto`, a role alias, a routing profile) does not wait. It goes to another eligible model, and the server starts in the background only when Prism would have chosen it first. - Console views, `/v1/models`, catalog refresh and health probes never start a server. While the model loads, every request that names it waits. Plan loads for times when that is acceptable, or leave autostart off. ## Stop reasons [Section titled “Stop reasons”](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/#stop-reasons) - **Stop** in the console blocks autostart until you press **Start**, also across Prism restarts. The service shows “Stopped by the owner: autostart waits for the Start button”. - An idle stop, or a stop outside Prism (`systemctl --user stop`, a crash, a reboot), does not block autostart. The service row shows whether autostart is on, how many requests wait, and why the service stopped. ## Stopping does not power off the machine [Section titled “Stopping does not power off the machine”](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/#stopping-does-not-power-off-the-machine) Stopping a model server does not power off its machine or end cloud billing. A cloud machine is powered off only by its own idle setting; see [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/). ## Errors [Section titled “Errors”](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/#errors) | State or code | Meaning | What to do | | --- | --- | --- | | `start_failed` | The unit did not start | Read the unit’s log on the machine (`journalctl --user -u llama-coder.service`) | | `readiness_timeout` | The model did not answer within `start_timeout` | Raise `start_timeout` above the real load time | | `catalog_refresh_failed` | The server answered, but Prism could not read its model list after the start | Check that `/v1/models` on the server returns exactly the model set in `model` | | `readiness_lost` | A ready server stopped answering | Check the server process | | `drain_timeout` | Requests were still running 5 minutes after **Stop**; the server keeps running with no new requests | Finish or cancel the clients, then press **Stop** again | | HTTP 503 `license_required` | The subscription is not active, so the stopped model was not started | Renew the subscription, or start the server yourself | --- title: "Compute providers and cloud machines | Prism docs" description: "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." url: https://prism.tm/docs/managed-inference/compute-providers/ --- [Skip to content](https://prism.tm/docs/managed-inference/compute-providers/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/managed-inference/compute-providers/#_top) - [1\. Create a service account in Nebius](https://prism.tm/docs/managed-inference/compute-providers/#1-create-a-service-account-in-nebius) - [2\. Prepare the machine](https://prism.tm/docs/managed-inference/compute-providers/#2-prepare-the-machine) - [3\. Add the cloud account in the console](https://prism.tm/docs/managed-inference/compute-providers/#3-add-the-cloud-account-in-the-console) - [What happens](https://prism.tm/docs/managed-inference/compute-providers/#what-happens) - [Errors](https://prism.tm/docs/managed-inference/compute-providers/#errors) - [Other clouds from plugin packages](https://prism.tm/docs/managed-inference/compute-providers/#other-clouds-from-plugin-packages) - [Amazon EC2](https://prism.tm/docs/managed-inference/compute-providers/#amazon-ec2) - [Google Compute Engine](https://prism.tm/docs/managed-inference/compute-providers/#google-compute-engine) - [Microsoft Azure](https://prism.tm/docs/managed-inference/compute-providers/#microsoft-azure) - [Crusoe Cloud](https://prism.tm/docs/managed-inference/compute-providers/#crusoe-cloud) - [Scaleway Instances](https://prism.tm/docs/managed-inference/compute-providers/#scaleway-instances) - [Alibaba Cloud ECS](https://prism.tm/docs/managed-inference/compute-providers/#alibaba-cloud-ecs) - [Paperspace](https://prism.tm/docs/managed-inference/compute-providers/#paperspace) - [Oblivus](https://prism.tm/docs/managed-inference/compute-providers/#oblivus) - [Hyperstack](https://prism.tm/docs/managed-inference/compute-providers/#hyperstack) - [Oracle Cloud (OCI Compute)](https://prism.tm/docs/managed-inference/compute-providers/#oracle-cloud-oci-compute) - [Configure in config.toml instead](https://prism.tm/docs/managed-inference/compute-providers/#configure-in-configtoml-instead) ## On this page - [Overview](https://prism.tm/docs/managed-inference/compute-providers/#_top) - [1\. Create a service account in Nebius](https://prism.tm/docs/managed-inference/compute-providers/#1-create-a-service-account-in-nebius) - [2\. Prepare the machine](https://prism.tm/docs/managed-inference/compute-providers/#2-prepare-the-machine) - [3\. Add the cloud account in the console](https://prism.tm/docs/managed-inference/compute-providers/#3-add-the-cloud-account-in-the-console) - [What happens](https://prism.tm/docs/managed-inference/compute-providers/#what-happens) - [Errors](https://prism.tm/docs/managed-inference/compute-providers/#errors) - [Other clouds from plugin packages](https://prism.tm/docs/managed-inference/compute-providers/#other-clouds-from-plugin-packages) - [Amazon EC2](https://prism.tm/docs/managed-inference/compute-providers/#amazon-ec2) - [Google Compute Engine](https://prism.tm/docs/managed-inference/compute-providers/#google-compute-engine) - [Microsoft Azure](https://prism.tm/docs/managed-inference/compute-providers/#microsoft-azure) - [Crusoe Cloud](https://prism.tm/docs/managed-inference/compute-providers/#crusoe-cloud) - [Scaleway Instances](https://prism.tm/docs/managed-inference/compute-providers/#scaleway-instances) - [Alibaba Cloud ECS](https://prism.tm/docs/managed-inference/compute-providers/#alibaba-cloud-ecs) - [Paperspace](https://prism.tm/docs/managed-inference/compute-providers/#paperspace) - [Oblivus](https://prism.tm/docs/managed-inference/compute-providers/#oblivus) - [Hyperstack](https://prism.tm/docs/managed-inference/compute-providers/#hyperstack) - [Oracle Cloud (OCI Compute)](https://prism.tm/docs/managed-inference/compute-providers/#oracle-cloud-oci-compute) - [Configure in config.toml instead](https://prism.tm/docs/managed-inference/compute-providers/#configure-in-configtoml-instead) # Compute providers and cloud machines Adding cloud accounts and machines, powering machines on and off, and idle power-off need an active Pro, Teams or Enterprise subscription. With the subscription inactive, Prism makes no call to the cloud provider. Prism can power an **existing** cloud virtual machine on before it starts a model server there, and power it off after idle time. It never creates, rents, resizes or deletes machines. The only calls to the provider read the instance state, start it and stop it. Nebius Compute is built in; other clouds are added by plugin packages; see [Other clouds](https://prism.tm/docs/managed-inference/compute-providers/#other-clouds-from-plugin-packages) for the list. ## 1\. Create a service account in Nebius [Section titled “1. Create a service account in Nebius”](https://prism.tm/docs/managed-inference/compute-providers/#1-create-a-service-account-in-nebius) In the Nebius console, create a service account for Prism and grant it only what reading, starting and stopping your instances needs. Do not grant editor or admin roles. Add an authorized key to the service account (Service account → **Authorized keys**). Keep the private key: it is a long-lived credential. An Object Storage access key (ID `NAKI…`) cannot control Compute instances; Prism names it and refuses it. ## 2\. Prepare the machine [Section titled “2. Prepare the machine”](https://prism.tm/docs/managed-inference/compute-providers/#2-prepare-the-machine) Install the model server and the [service agent](https://prism.tm/docs/managed-inference/service-agent/) as user units, and enable lingering for the agent’s account (`loginctl enable-linger`) so the agent answers after every power-on without a login. For idle power-off, the agent needs `nvidia_smi = "/usr/bin/nvidia-smi"` in its configuration (pairing sets it when that file exists). Pair the machine as described in [Add a machine](https://prism.tm/docs/managed-inference/add-machine/). ## 3\. Add the cloud account in the console [Section titled “3. Add the cloud account in the console”](https://prism.tm/docs/managed-inference/compute-providers/#3-add-the-cloud-account-in-the-console) **Compute providers** → **Cloud accounts** → **Add cloud account**. Enter: - **Service account ID** (`serviceaccount-…`, under the account’s name in the Nebius console), - **Public key ID** (`publickey-…`, on the service account’s **Authorized keys** tab), - **Private key** (paste the PEM, or **Or choose the key file**). A credentials JSON from `nebius iam auth-public-key generate` is accepted too and split into these fields. Instead of the key you can enter a 1Password reference (`op://Prism/nebius/credentials`) when 1Password is configured as the secrets backend. Prism keeps the key in its encrypted vault; it never appears in the console, the API, logs or state files. Press **List instances**. Prism lists the instances in every region of the account (read only). Pick the instance and press **Add as machine**, then set: | Setting | Default | Meaning | | --- | --- | --- | | **Power-on timeout** | 10 minutes | How long a power-on may take until the agent answers | | **Power off after idle** | off | Power the machine off after this long without requests to its model servers | A paired machine with the same host name or address is linked to the cloud machine automatically; otherwise choose it in **Linked cloud machine**. ## What happens [Section titled “What happens”](https://prism.tm/docs/managed-inference/compute-providers/#what-happens) - **A request that names a model on the machine** waits while Prism powers the machine on, waits for the agent, starts the model server and checks that the model answers. Several waiting requests share one power-on. - **A request where Prism chooses the model** goes to another model at once. The machine is powered on in the background only when its model would have been Prism’s first choice. - **Power off after idle**: after that long without requests, Prism asks the agent for GPU processes outside the agent’s own units. If there are any, the machine stays on and its card says “Not powered off: other processes are using the GPU” with the processes (name, PID, memory). Otherwise Prism stops the model servers, checks again, and powers the machine off. - **Power off** on the machine card powers it off (model servers first) and stops Prism from powering it on by itself, also across restarts: requests that name its models get HTTP 503 `host_owner_stopped` at once. **Power on**, or **Start** on one of its services, allows it again. A machine powered off in the Nebius console or with `shutdown` blocks nothing. ## Errors [Section titled “Errors”](https://prism.tm/docs/managed-inference/compute-providers/#errors) | Code | Meaning | | --- | --- | | `host_power_on_failed` | The cloud did not start the instance | | `host_capacity_unavailable` | The cloud has no free capacity (GPU) for the instance now; requests that name its models fail at once instead of waiting for the power-on timeout, and the next request tries again | | `host_unreachable` | The instance runs, but the agent did not answer within the power-on timeout | | `host_credentials_unavailable` | The key is missing or Nebius rejected it (“The machine access key is not set or was rejected.”) | | `host_owner_stopped` | The owner powered the machine off in the console | After these, the model-server stages apply: `start_failed`, `readiness_timeout` (see [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/)). ## Other clouds from plugin packages [Section titled “Other clouds from plugin packages”](https://prism.tm/docs/managed-inference/compute-providers/#other-clouds-from-plugin-packages) A cloud other than Nebius is a signed plugin package with the compute capability. After the owner installs and enables it on the **Plugins** page (see [Installed packages](https://prism.tm/docs/web-console/plugins/)), **Add cloud account** offers the cloud next to Nebius, with the fields its package declares, their help text and the minimal rights the key needs. - Prism keeps the field values in its encrypted vault. The package’s worker receives them only while it lists, powers on or powers off that account’s machines, and signs its requests to the cloud itself. Prism sends them only to the addresses the package declared, never follows redirects, and keeps them out of the console, the API, logs and state files. - A package update cannot change the cloud’s addresses, so a stored key never starts going somewhere new. - After a power-on Prism reads the machine’s addresses again. When Prism reaches the machine’s agent at the machine’s public address and the cloud gave the machine a new one, Prism moves the agent and its model servers to the new address before it waits for them. An agent reached over a private network, such as a tailnet, is not moved. - Some clouds bill a stopped machine like a running one. When the package says so for a machine, its settings warn that **Power off after idle** does not lower the bill. ### Amazon EC2 [Section titled “Amazon EC2”](https://prism.tm/docs/managed-inference/compute-providers/#amazon-ec2) The Amazon EC2 package lists the instances of the regions you name and starts and stops one instance; it never creates, changes or terminates instances. Create an IAM user for Prism with only this policy and an access key for it: ``` {"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":["ec2:DescribeInstances","ec2:StartInstances","ec2:StopInstances"],"Resource":"*"}]} ``` In the account form enter **Access key ID**, **Secret access key** and **Regions** (region codes separated by commas, for example `us-east-1, eu-west-1`; empty means `us-east-1`; at most eight). Only instances with an EBS root volume can be stopped; an instance-store instance is listed as billed while stopped. When AWS answers `InsufficientInstanceCapacity`, the machine shows `host_capacity_unavailable`. A stopped instance keeps its EBS volumes (billed) and loses a public address that is not an Elastic IP. ### Google Compute Engine [Section titled “Google Compute Engine”](https://prism.tm/docs/managed-inference/compute-providers/#google-compute-engine) The Google Compute Engine package lists the instances of one project and starts and stops one instance; it never creates, changes or deletes instances. Create a custom role for Prism with only these permissions: ``` compute.instances.list, compute.instances.get, compute.instances.start,compute.instances.stop, compute.zoneOperations.get ``` Create a service account, grant it that role on the project, and create a JSON key for it (**Keys** → **Add key** → **Create new key** → **JSON**). In the account form paste the whole key file into **Service account key (JSON)**; **Project ID** (empty means the project in the key file) and **Zones** (for example `us-central1-a, europe-west4-b`; empty means every zone; at most 16) are optional. An API key or an OAuth client file is refused with a message that names the mistake. For each operation the package signs a short-lived token request with the key, and only the token, never the key, goes to the Compute Engine API. A start waits for Google’s operation: when the zone has no free GPUs or the project’s GPU quota is used up (`ZONE_RESOURCE_POOL_EXHAUSTED`, `QUOTA_EXCEEDED`), the machine shows `host_capacity_unavailable` at once. A stopped instance keeps its disks and static addresses (billed) and loses an ephemeral external address. GPU instances cannot be suspended, only stopped. ### Microsoft Azure [Section titled “Microsoft Azure”](https://prism.tm/docs/managed-inference/compute-providers/#microsoft-azure) The Microsoft Azure package lists the virtual machines of the subscriptions you name and starts and deallocates one machine; it never creates, changes or deletes machines. Register an application for Prism (Microsoft Entra ID → **App registrations**), create a client secret for it, and give it only this custom role on the subscription (or on the resource group of your GPU machines), with your subscription ID in place of `SUBSCRIPTION_ID`: ``` {"properties":{"roleName":"Prism power","permissions":[{"actions":["Microsoft.Compute/virtualMachines/read","Microsoft.Compute/virtualMachines/instanceView/read","Microsoft.Compute/virtualMachines/start/action","Microsoft.Compute/virtualMachines/deallocate/action","Microsoft.Network/networkInterfaces/read","Microsoft.Network/publicIPAddresses/read"]}],"assignableScopes":["/subscriptions/SUBSCRIPTION_ID"]}} ``` In the account form enter **Directory (tenant) ID**, **Application (client) ID**, **Client secret** (its Value, not its ID) and **Subscription IDs** (separated by commas; at most eight). The client secret goes only to `login.microsoftonline.com` for a token; the requests to Azure Resource Manager carry that token. Power-off always **deallocates** the machine: a machine that is only powered off stays allocated and Azure bills it as running. A deallocated machine keeps its disks (billed) and loses a dynamic public IP address; Prism reads the new one after the next start. Azure accepts a start before it finds hardware; when the allocation then fails (`AllocationFailed`, `ZonalAllocationFailed`, `OverconstrainedAllocationRequest`, `SkuNotAvailable` or a quota error), the machine shows `host_capacity_unavailable` and waiting requests fail at once. A machine in a resource group whose name contains parentheses is not listed. ### Crusoe Cloud [Section titled “Crusoe Cloud”](https://prism.tm/docs/managed-inference/compute-providers/#crusoe-cloud) The Crusoe Cloud package lists the virtual machines of one project and starts and stops one machine; it never creates, changes or deletes machines. Crusoe Cloud API keys act with the rights of the user who creates them, and the narrowest role that can start and stop machines is `project-editor`. Give Prism its own user (Admin → User Access → Team → **Invite User**) with no organization role and only `project-editor` on the project of your GPU machines, and as that user create a key under Security → **Cloud API keys**. In the account form enter **Access key**, **Secret key** (shown once) and **Project ID**. The package signs each request with the secret key; the key itself is never sent. A stopped on-demand machine is not billed for compute. A machine under a reservation or an unexpired commitment is billed whether it runs or not; its settings warn that **Power off after idle** does not lower the bill. Public addresses are dynamic by default and change at every stop and start; Prism reads the new one after the next start. Crusoe accepts a start and runs it in the background; when that start fails for lack of capacity, the machine shows `host_capacity_unavailable` and waiting requests fail at once. ### Scaleway Instances [Section titled “Scaleway Instances”](https://prism.tm/docs/managed-inference/compute-providers/#scaleway-instances) The Scaleway Instances package lists the servers of the zones you name and powers one on and off; it never creates, changes or deletes servers. Create an IAM application for Prism (**IAM** → **Applications**), a policy attached to it with one rule on the project of your GPU machines and only these permission sets, then generate an API key for the application: ``` InstancesServerList, InstancesServerRead, InstancesServerStart, InstancesServerStop ``` In the account form enter **Secret key** (the API key’s secret key, not the access key that starts with `SCW`), optionally **Project ID** (list only that project’s servers) and **Zones** (zone codes separated by commas, for example `fr-par-2`; empty means every Instance zone). Requests go only to `api.scaleway.com`. Power-off always uses **power off**, never stop in place or standby: those keep the hardware allocated and Scaleway bills it as running. A powered-off server keeps its volumes and flexible IPs (billed) and loses a dynamic public IP address; Prism reads the new one after the next start. The **scratch disk of an H100 or L40S server is erased** at power-off. When Scaleway refuses a start (`out_of_stock`, `quotas_exceeded`), the machine shows `host_capacity_unavailable` and waiting requests fail at once. ### Alibaba Cloud ECS [Section titled “Alibaba Cloud ECS”](https://prism.tm/docs/managed-inference/compute-providers/#alibaba-cloud-ecs) The Alibaba Cloud ECS package lists the instances of the regions you name and starts and stops one instance; it never creates, changes or releases instances. Create a RAM user for Prism with permanent AccessKey access and give it only this policy: ``` {"Version":"1","Statement":[{"Effect":"Allow","Action":["ecs:DescribeInstances","ecs:StartInstance","ecs:StopInstance"],"Resource":"*"}]} ``` In the account form enter **AccessKey ID**, **AccessKey secret** and **Regions** (region IDs such as `cn-hangzhou, ap-southeast-1`, separated by commas; at most eight). The package signs each request with the AccessKey secret (signature V3); the secret itself is never sent. Power-off stops the instance in **economical mode**: a pay-as-you-go instance in a VPC without local disks stops billing for vCPUs, memory and GPUs, while its cloud disks and EIP are still billed and a public IP that is not an EIP is released; Prism reads the new one after the next start. Alibaba Cloud keeps billing a subscription instance, an instance in the classic network and an instance with local disks (the `d` and `i` families) when it is stopped; their settings warn that **Power off after idle** does not lower the bill. Because an instance in economical mode gives its hardware back, the zone may have none left when it starts again (`OperationDenied.NoStock`); the machine then shows `host_capacity_unavailable` and waiting requests fail at once. ### Paperspace [Section titled “Paperspace”](https://prism.tm/docs/managed-inference/compute-providers/#paperspace) The Paperspace package lists the machines of one Paperspace team and starts and stops one machine; it never creates, changes or deletes machines. In the Paperspace console open the profile icon → **Team settings** → **API keys**, enter a name (for example `prism`), click **Add** and copy the key, which is shown only once. Paste it into **API key** in the account form. A Paperspace key acts for the whole team and cannot be limited to listing, starting and stopping machines, so give Prism a key of its own that you can delete separately. The key goes only to `api.paperspace.com`, in the `Authorization` header. A stopped machine is not billed for compute; its storage and a static public IP address stay billed. A dynamic public IP address is released when the machine is off; Prism reads the new one after the next start. When Paperspace accepts a start and then cannot finish it for lack of hardware, the machine shows `host_capacity_unavailable` and waiting requests fail at once. ### Oblivus [Section titled “Oblivus”](https://prism.tm/docs/managed-inference/compute-providers/#oblivus) The Oblivus package lists the virtual machines of an Oblivus Cloud account and starts and stops one machine; it never deploys, changes or deletes machines. In the Oblivus console open **API → Credentials** and generate an API key for Prism with only these permissions: ``` virtual-server:list, virtual-server:details, virtual-server:start,virtual-server:stop ``` In the account form enter the **API key**; Prism does not use the API token that Oblivus shows next to it. The key goes only to `api.oblivus.com`. A stopped machine is billed for its storage and IP address only, and keeps its IP address. The listing shows each machine’s running price per hour; a machine whose stopped price equals its running price is marked as billed while stopped. Oblivus sends the whole machine list in one answer, so an account with more than about 30 machines does not fit Prism’s 64 KiB answer limit and its listing fails with a message that says so. Oblivus does not document the answer to a start without free hardware; a refusal that mentions stock or capacity shows `host_capacity_unavailable`. ### Hyperstack [Section titled “Hyperstack”](https://prism.tm/docs/managed-inference/compute-providers/#hyperstack) The Hyperstack package lists the virtual machines of a Hyperstack account, hibernates one machine and restores it; it never creates, resizes or deletes machines. Create the API key in the Hyperstack console under **API Keys**. A key acts with the role of the user who created it, so create it as an organization member whose role allows only viewing, hibernating and restoring virtual machines, plus `billing:view` and `billing:credit-view`, which Hyperstack checks before a restore. In the account form enter the **API key**; it goes only to `infrahub-api.nexgencloud.com`. Power-off is always **hibernation**: a machine stopped in place (`SHUTOFF`) keeps its hardware and Hyperstack bills it as running, while a hibernated machine is billed for its root disk only. Prism never uses the plain stop. A flavor that cannot hibernate (labelled `no-hibernation`: spot flavors, large-root-disk flavors and some GPU families such as B200-SXM) is marked as billed while stopped, and Prism leaves such a machine on. A hibernated machine loses its public IP address; Prism reads the new one after the restore. Its hardware is not reserved either: a restore needs the flavor in stock, and a refusal that mentions stock or capacity shows `host_capacity_unavailable`. ### Oracle Cloud (OCI Compute) [Section titled “Oracle Cloud (OCI Compute)”](https://prism.tm/docs/managed-inference/compute-providers/#oracle-cloud-oci-compute) The OCI package lists the Compute instances of the regions and compartments you name and starts and stops one instance; it never launches, changes or terminates instances. It needs Prism 0.37.1 or later. Create a user for Prism in a group, for example `prism-power`, and give the group only this policy (replace `COMPARTMENT` with the compartment’s name, or write `in tenancy`): ``` Allow group prism-power to read instances in compartment COMPARTMENTAllow group prism-power to use instances in compartment COMPARTMENT where request.permission = 'INSTANCE_POWER_ACTIONS'Allow group prism-power to read vnic-attachments in compartment COMPARTMENTAllow group prism-power to read vnics in compartment COMPARTMENT ``` On the user’s page add an API key (**API keys** → **Add API key** → **Download private key** → **Add**) and copy the **Configuration file preview** into the account form: **Tenancy OCID**, **User OCID**, **Fingerprint**, **Private key** (the whole downloaded PEM, without a passphrase), **Regions** (at most 8) and optionally **Compartment OCIDs** (empty means the root compartment; regions times compartments at most 8). Prism checks that the fingerprint belongs to the key; the key itself never leaves Prism, only signatures go to `iaas..oraclecloud.com`. Twelve of Oracle’s 44 commercial regions are not reachable because a package declares at most 32 addresses: `ap-batam-1`, `ap-kulai-2`, `af-casablanca-1`, `sa-bogota-1`, `sa-valparaiso-1`, `eu-turin-1`, `eu-madrid-3`, `ap-singapore-2`, `ap-chuncheon-1`, `uk-cardiff-1`, `mx-monterrey-1` and `me-jeddah-1`. Power-off is a soft stop: the operating system shuts down, and OCI powers the instance off after 15 minutes at most. A stopped instance whose shape holds GPUs (all except the `VM.GPU.A10` series), local NVMe (Dense I/O, HPC) or a whole Optimized bare metal host is still billed in full; the console marks it and warns that powering it off does not lower the bill. Other shapes stop billing for compute and keep billing their volumes; a stopped instance keeps its ephemeral public IP. When OCI answers a start with “Out of host capacity” or a service limit, the machine shows `host_capacity_unavailable` and waiting requests fail at once. The listing reads addresses for running instances within Prism’s 32 calls per listing; the rest show their addresses once their state is read. ## Configure in config.toml instead [Section titled “Configure in config.toml instead”](https://prism.tm/docs/managed-inference/compute-providers/#configure-in-configtoml-instead) ``` [secrets]backend = "op-cli" # only for credentials_ref [[inference.hosts]]id = "gpu-1"provider = "nebius"instance_id = "computeinstance-e00example"credentials_ref = "op://Prism/nebius/credentials" # or:# credentials_env = "PRISM_NEBIUS_CREDENTIALS" # the credentials JSON itselfpower_on_timeout = "10m"# power_off_after = "30m" [[inference.services]]# ... as in the service agent page, plus:host_id = "gpu-1" ``` Exactly one of `credentials_ref` and `credentials_env` is required. Plugin clouds are added in the console only. See the [inference configuration reference](https://prism.tm/docs/reference/configuration/inference/). --- title: "Machine cost and the machine budget | Prism docs" description: "What your own model machines cost, day by day, next to API spend, and a monthly budget that warns before it is spent." url: https://prism.tm/docs/managed-inference/machine-cost/ --- [Skip to content](https://prism.tm/docs/managed-inference/machine-cost/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/managed-inference/machine-cost/#_top) - [How it is counted](https://prism.tm/docs/managed-inference/machine-cost/#how-it-is-counted) - [Where you see it](https://prism.tm/docs/managed-inference/machine-cost/#where-you-see-it) - [The machine budget](https://prism.tm/docs/managed-inference/machine-cost/#the-machine-budget) ## On this page - [Overview](https://prism.tm/docs/managed-inference/machine-cost/#_top) - [How it is counted](https://prism.tm/docs/managed-inference/machine-cost/#how-it-is-counted) - [Where you see it](https://prism.tm/docs/managed-inference/machine-cost/#where-you-see-it) - [The machine budget](https://prism.tm/docs/managed-inference/machine-cost/#the-machine-budget) # Machine cost and the machine budget Machine cost and the machine budget need an active Pro, Teams or Enterprise subscription, like the compute monitor they come from. Without it Prism counts nothing, and **Usage history** shows API spend only. Requests to a model on your own machine are recorded at $0: the machine is paid for by the hour whether it serves one request or a thousand. Prism therefore counts what the machines cost separately and shows it next to API spend. It does not divide machine cost among requests. ## How it is counted [Section titled “How it is counted”](https://prism.tm/docs/managed-inference/machine-cost/#how-it-is-counted) Every machine has two prices per hour: **while on** and **while off** (what a stopped cloud instance is still billed for, such as its disks). For a Nebius machine Prism reads both from the provider’s price list. A machine with no price shows **no price** with a link to the monitor. To enter your own price, open the machine in the compute monitor and press **enter a price** or **Change**. Enter the amount the way your provider bills it and choose how it is paid: - **By the time it runs**: an amount per minute, hour, day, month or year while the machine is on, and optionally an amount while it is off. A month is 730 hours and a year 8760 hours, as clouds count them. - **Rent**: the same amount whether the machine is on or off, such as a dedicated server billed monthly. A month’s rent is spread over the days of that month, so a whole month costs exactly the rent. - **Paid in advance**: a sum paid for a term (its start date and length in months or years), spread evenly over its days. After the term the machine has no price, and the monitor asks for a new one. The dialog shows what the amount comes to per hour, day and month. - **Running** is the time the machine was powered on × the price while on. - **Idle of it** is the part of the running cost while its GPUs were idle. - **While off** is the time a cloud machine was powered off × the price while off. With rent or a prepaid term, all the time the machine was not on counts as off, at the same price. Otherwise a machine without a cloud host is never counted as off. - **Total** is running + while off. Prism adds every minute to the machine’s row for that day (UTC), at the prices in effect during that minute. A new price counts from today by default; the days before keep what they cost. Days are kept for the current month and the 13 months before it. **Correcting a wrong price.** In the price dialog choose **Correct the past too, from** and a date. The days already recorded from that date are priced again with the new price, and reports and the machine budget show the corrected cost. **Remove my price** returns the machine to the provider’s price (or to no price) and leaves the recorded days as they are. When Prism starts this record for the first time, it fills in the days the monitor still has (up to 30) at the prices known then; those days are marked as estimated. Time recorded before a machine had any price is priced with the first price it gets, and marked the same way. ## Where you see it [Section titled “Where you see it”](https://prism.tm/docs/managed-inference/machine-cost/#where-you-see-it) **Usage history** → **Overview** shows, for the selected period, the API spend, the machine cost and their total, and a **Machines** table: per machine the hours powered on, idle and off, the running cost, its idle part, the cost while off and the total. The totals say when some machine has no price. The period counts whole UTC days that begin inside it. The API report `GET /prism/cost` carries the same numbers in `machines` and the sum of both in `total_with_machines_usd`, when the report is not narrowed to a user, application, provider, model or result. With `format=text` it adds `machines_cost_usd`, `total_with_machines_usd` and one `machine=` line per machine. ## The machine budget [Section titled “The machine budget”](https://prism.tm/docs/managed-inference/machine-cost/#the-machine-budget) The machine budget is one amount in USD per calendar month (UTC) for all machines of the organization. Set it under the Machines table with **Change budget**; leave it empty for no budget. When the month’s machine cost reaches 80 % and 100 % of the budget, Prism sends one notification each, per month, through the notification bell, the webhook and, in Teams and Enterprise, email (the **Budgets and quotas** category). Nothing else happens: no machine is powered off and no request is refused because of it. Budgets of people, teams and applications on the **Organization** page count API spend only; machine cost is not part of them. --- title: "OpenAI in Teams: what the 2026 Usage Policies require | Prism docs" description: "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." url: https://prism.tm/docs/managed-inference/openai-teams/ --- [Skip to content](https://prism.tm/docs/managed-inference/openai-teams/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/managed-inference/openai-teams/#_top) - [What the policies require of an intermediary](https://prism.tm/docs/managed-inference/openai-teams/#what-the-policies-require-of-an-intermediary) - [Subscription accounts vs API keys](https://prism.tm/docs/managed-inference/openai-teams/#subscription-accounts-vs-api-keys) - [Where to ask OpenAI](https://prism.tm/docs/managed-inference/openai-teams/#where-to-ask-openai) ## On this page - [Overview](https://prism.tm/docs/managed-inference/openai-teams/#_top) - [What the policies require of an intermediary](https://prism.tm/docs/managed-inference/openai-teams/#what-the-policies-require-of-an-intermediary) - [Subscription accounts vs API keys](https://prism.tm/docs/managed-inference/openai-teams/#subscription-accounts-vs-api-keys) - [Where to ask OpenAI](https://prism.tm/docs/managed-inference/openai-teams/#where-to-ask-openai) # OpenAI in Teams: what the 2026 Usage Policies require Organizations that connect OpenAI models (a Codex or ChatGPT subscription, an OpenAI API key) and serve them to their people through Prism Teams or Enterprise must work within OpenAI’s Usage Policies, effective 2026-11-20 ([usage-policies](https://openai.com/policies/usage-policies/)). This page is the operator summary; the connection settings are in [provider connections](https://prism.tm/docs/reference/configuration/providers/). ## What the policies require of an intermediary [Section titled “What the policies require of an intermediary”](https://prism.tm/docs/managed-inference/openai-teams/#what-the-policies-require-of-an-intermediary) - **No bypassing safeguards.** When an OpenAI model refuses a request (`content_filter`, or a usage-policy rejection), the request must not be retried on another OpenAI route. Prism holds it: the routing record carries `openai_refusal_held` (see [errors](https://prism.tm/docs/api/errors/)). - **An end-user identifier.** In every edition, whenever the web console or the managed listener is on, Prism sends `safety_identifier` with every chat or Responses request that reaches an OpenAI model through an API key: an irreversible per-person hash derived from the installation key. Requests to a Codex or ChatGPT subscription account carry none, and a value the client sent is removed from them. If OpenAI reports a violation, the installation owner can look the person up in every edition with `POST /prism/personal/safety-id/lookup`; in Teams and Enterprise the organization owner and administrators can also do it under **Users and budgets → Activity log**, and each lookup is recorded there. Prism keeps the mapping locally and sends no names to OpenAI. See [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/#sent-to-openai-with-each-request). - **No training on outputs.** Nothing an OpenAI model produces — answers, scores, translations — may become training data for another model. Prism’s own decision models are trained without OpenAI labels or translations, and a check in Prism’s build fails when one is added. - **Investigate and act.** In Teams and Enterprise the members table and the person card show OpenAI refusals per person, and the administrator can suspend a person’s requests to OpenAI models with one action, without removing them from the organization. ## Subscription accounts vs API keys [Section titled “Subscription accounts vs API keys”](https://prism.tm/docs/managed-inference/openai-teams/#subscription-accounts-vs-api-keys) A Codex or ChatGPT **subscription** is a consumer product for one person. Serving an organization’s members through it is the “intermediary” case the policies regulate: OpenAI may require prior review and approval, safeguards “consistent with our own” (refusal handling and the journal above; Prism sends no SafetyID on subscription requests), and the ability to act on violations. An **API key** is the standard, unambiguous path: metered, no seat semantics, no approval question. Practical guidance: - Prefer API keys for anything beyond light personal use of a team. - Do not share one subscription account with several people; Prism forbids sharing any subscription connection for exactly this reason. - If your organization serves OpenAI models to members through a subscription at scale, contact OpenAI for approval before relying on it. ## Where to ask OpenAI [Section titled “Where to ask OpenAI”](https://prism.tm/docs/managed-inference/openai-teams/#where-to-ask-openai) Approval questions go through the [OpenAI API contact form](https://openai.com/form/organizations/) (“I work with an organization that provides model access”). Have ready: what the product does, how many people it serves, which safeguards are in place (SafetyID, refusal hold, journal, suspension) and how usage is billed. --- title: "Managed inference | Prism docs" description: "Prism starts, stops and powers your own model servers and GPU machines, so a self-hosted model runs only when it is needed." url: https://prism.tm/docs/managed-inference/overview/ --- [Skip to content](https://prism.tm/docs/managed-inference/overview/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/managed-inference/overview/#_top) - [What Prism does](https://prism.tm/docs/managed-inference/overview/#what-prism-does) - [How Prism reaches a machine](https://prism.tm/docs/managed-inference/overview/#how-prism-reaches-a-machine) - [Where to manage it](https://prism.tm/docs/managed-inference/overview/#where-to-manage-it) - [When the subscription is not active](https://prism.tm/docs/managed-inference/overview/#when-the-subscription-is-not-active) - [Agents can manage it too](https://prism.tm/docs/managed-inference/overview/#agents-can-manage-it-too) ## On this page - [Overview](https://prism.tm/docs/managed-inference/overview/#_top) - [What Prism does](https://prism.tm/docs/managed-inference/overview/#what-prism-does) - [How Prism reaches a machine](https://prism.tm/docs/managed-inference/overview/#how-prism-reaches-a-machine) - [Where to manage it](https://prism.tm/docs/managed-inference/overview/#where-to-manage-it) - [When the subscription is not active](https://prism.tm/docs/managed-inference/overview/#when-the-subscription-is-not-active) - [Agents can manage it too](https://prism.tm/docs/managed-inference/overview/#agents-can-manage-it-too) # Managed inference Starting and stopping model servers, monitoring them, powering cloud machines on and off, and every change on the **Compute providers** page need an active Pro, Teams or Enterprise subscription. Connecting Prism to a model server that is already running, and routing requests to it, work in every edition, Free included. In every edition only the installation owner manages model servers and machines. Managed inference lets Prism control model servers that you already run: a `llama-server`, vLLM, Ollama or SGLang process on your own machine or on an existing cloud GPU machine. Prism does not download models, rent machines or create virtual machines. ## What Prism does [Section titled “What Prism does”](https://prism.tm/docs/managed-inference/overview/#what-prism-does) - **Starts and stops a model server.** Each model server is a systemd unit that serves one model through an OpenAI-compatible API. Prism starts the unit, waits until the model answers on `/health` and `/v1/models`, and only then sends requests to it. On stop, Prism stops sending new requests, lets running ones finish, then stops the unit. - **Starts a model server when a request needs it** and stops it after a period without requests. See [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/). - **Powers a machine on and off.** For a cloud instance (Nebius is built in, other clouds come from plugin packages) or a machine on your network (Wake-on-LAN), Prism powers the machine on before it starts a model server there and can power it off after idle time. See [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) and [Wake-on-LAN](https://prism.tm/docs/managed-inference/wake-on-lan/). ## How Prism reaches a machine [Section titled “How Prism reaches a machine”](https://prism.tm/docs/managed-inference/overview/#how-prism-reaches-a-machine) | Transport | How it works | Set up | | --- | --- | --- | | Service agent (recommended) | `prism-service-agent` runs on the model machine as the account that owns the model servers. Prism calls it over HTTPS with a token. No SSH, no root. | **Compute providers → Add machine** in the console, one command on the machine. See [Add a machine](https://prism.tm/docs/managed-inference/add-machine/). | | SSH | Prism logs in with a dedicated key and runs `systemctl --user` (or the system manager) for one unit. | `[[inference.services]]` in `config.toml`. See the [inference configuration reference](https://prism.tm/docs/reference/configuration/inference/). | ## Where to manage it [Section titled “Where to manage it”](https://prism.tm/docs/managed-inference/overview/#where-to-manage-it) Open **Compute providers** in the console sidebar (owner only). The page lists machines, the model servers on each machine, and cloud accounts. Every model server shows its state (**Stopped**, **Starting**, **Ready**, **Completing requests**, **Stopping**), the model, the number of active requests and the **Start** and **Stop** buttons. Entries from `config.toml` appear on the page marked **from config** and can only be changed in `config.toml`. ## When the subscription is not active [Section titled “When the subscription is not active”](https://prism.tm/docs/managed-inference/overview/#when-the-subscription-is-not-active) - New **Start** and **Stop** commands, monitoring and automatic start or power-off are refused. The page says why (for example “No subscription is connected.”, or, below Pro, “This feature needs Prism Pro. Please upgrade your plan.”). - Model servers that are running keep running and keep serving requests. Prism never stops a server or powers off a machine because the subscription ended. - A request that names a stopped model gets HTTP 503 with the reason `license_required`. ## Agents can manage it too [Section titled “Agents can manage it too”](https://prism.tm/docs/managed-inference/overview/#agents-can-manage-it-too) An agent can add model servers and start, stop and power machines through Prism with a scoped token instead of SSH. See [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/). --- title: "Service agent | Prism docs" description: "What prism-service-agent does on a model machine, what it refuses, how it updates itself, and how to install it without the console." url: https://prism.tm/docs/managed-inference/service-agent/ --- [Skip to content](https://prism.tm/docs/managed-inference/service-agent/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/managed-inference/service-agent/#_top) - [What it can do](https://prism.tm/docs/managed-inference/service-agent/#what-it-can-do) - [What it refuses](https://prism.tm/docs/managed-inference/service-agent/#what-it-refuses) - [Start timeout](https://prism.tm/docs/managed-inference/service-agent/#start-timeout) - [Self-update](https://prism.tm/docs/managed-inference/service-agent/#self-update) - [Install by hand](https://prism.tm/docs/managed-inference/service-agent/#install-by-hand) - [Commands](https://prism.tm/docs/managed-inference/service-agent/#commands) ## On this page - [Overview](https://prism.tm/docs/managed-inference/service-agent/#_top) - [What it can do](https://prism.tm/docs/managed-inference/service-agent/#what-it-can-do) - [What it refuses](https://prism.tm/docs/managed-inference/service-agent/#what-it-refuses) - [Start timeout](https://prism.tm/docs/managed-inference/service-agent/#start-timeout) - [Self-update](https://prism.tm/docs/managed-inference/service-agent/#self-update) - [Install by hand](https://prism.tm/docs/managed-inference/service-agent/#install-by-hand) - [Commands](https://prism.tm/docs/managed-inference/service-agent/#commands) # Service agent Prism sends lifecycle, monitoring and update calls to the agent only while a Pro, Teams or Enterprise subscription is active. Installing and running the agent needs no subscription. `prism-service-agent` runs on a model machine as the account that owns the model servers. It lets Prism check, start and stop those servers without SSH access. The console installs it for you ([Add a machine](https://prism.tm/docs/managed-inference/add-machine/)); this page describes what it does and how to install it by hand. ## What it can do [Section titled “What it can do”](https://prism.tm/docs/managed-inference/service-agent/#what-it-can-do) - Run `/usr/bin/systemctl --user` for units on its allowlist only: `status`, `start` and `stop`. No shell, no unit names or commands from the caller, no root, no `sudo`, no enabling or disabling units, no model downloads. - Report each service as `stopped`, `starting`, `running` (active, model not answering yet), `ready` (the readiness URL answers 2xx), `stopping` or `failed`. - Find model servers of its account (`discover`): units that run `llama-server`, `vllm`, `ollama` or `sglang`, or that listen on a port whose `/v1/models` answers. Nothing is started or changed by discovery. - With `nvidia_smi = "/usr/bin/nvidia-smi"` in its configuration: list the processes on each GPU and report machine telemetry (GPU utilization, memory, temperature, power; CPU, memory, disk, network). It reads process status and cgroups, never command lines or environments. Prism uses the GPU process list before it powers a machine off: a process outside the agent’s own units keeps the machine on. - Report its network cards (name, MAC address, IPv4 and IPv6 addresses with their prefix, and the card’s wake-up setting where Linux shows it without root) and whether it may power the machine off. - Send a Wake-on-LAN packet for another machine, only to the broadcast address of a subnet its own machine is in, at most 10 times a minute ([Wake-on-LAN](https://prism.tm/docs/managed-inference/wake-on-lan/)). - Shut its own machine down through logind when Prism asks, after Prism stopped the machine’s model servers. This needs the one-time grant below; the agent never asks for a password. ## What it refuses [Section titled “What it refuses”](https://prism.tm/docs/managed-inference/service-agent/#what-it-refuses) - Requests without the token in `Authorization: Bearer`. - Requests from a browser (any request with an `Origin` header). - Unknown fields, unknown services and other actions. - Starting, stopping or reading the status of a unit not on its allowlist (HTTP 404). ## Start timeout [Section titled “Start timeout”](https://prism.tm/docs/managed-inference/service-agent/#start-timeout) A start waits up to `start_timeout_seconds` (1 to 600, default 120) for the unit to become active and the model to answer. When a model loads for longer, Prism keeps checking readiness until the service’s own start timeout in Prism, so a model that needs ten minutes still starts. ## Self-update [Section titled “Self-update”](https://prism.tm/docs/managed-inference/service-agent/#self-update) Prism keeps every confirmed agent at its own version. Every 10 minutes, and right after a machine is confirmed, Prism asks the agent for its version. When the agent is older, Prism sends it the agent archive of its own release with the signed checksum list. The agent: 1. refuses a downgrade, its own version, and development builds; 2. checks the signature with the release keys built into it, and the archive against the signed checksum; 3. runs the new executable to check its version and its configuration; 4. replaces itself, keeps the previous executable as `prism-service-agent.prev`, and exits with status 75 so its unit starts the new one. If the new executable cannot start, the agent puts the previous one back. The console shows per machine the agent’s version and whether it is the same as Prism’s, being updated, updated, or failed to update, with the reason. A failed update is retried after an hour, with at most three attempts per Prism version. No root is needed. Agents from v0.28.1 and older cannot update themselves. The console says the agent is too old and offers **Show the command**: a re-pairing command for that machine, valid 10 minutes and usable once. Run it on the machine as the agent’s account. Prism keeps the machine’s ID, cloud link and model servers. ## Install by hand [Section titled “Install by hand”](https://prism.tm/docs/managed-inference/service-agent/#install-by-hand) Run these steps as the account that owns the model servers. 1. Install the binary from the `prism-service-agent` archive of your Prism’s release into `~/.local/bin`. 2. Create the token file: 32 to 512 printable ASCII characters, mode 0600, a regular file: Terminal window ``` mkdir -p ~/.config/prism-service-agent && cd ~/.config/prism-service-agentpython3 -c 'import secrets;print(secrets.token_hex(32))' > token && chmod 600 token ``` 3. Write `~/.config/prism-service-agent/config.toml`. The shell fills in the absolute path of your home directory: Terminal window ``` cat > ~/.config/prism-service-agent/config.toml < wol g` as root. - The sending machine must be on and in the same subnet: routers do not forward the broadcast packet to other networks. --- title: "Experiments and experiment metrics | Prism docs" description: "What Prism's experiments do with your requests, who turns them on, and exactly what the optional experiment metrics send to PostHog." url: https://prism.tm/docs/privacy/experiments/ --- [Skip to content](https://prism.tm/docs/privacy/experiments/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/privacy/experiments/#_top) - [Who turns experiments on](https://prism.tm/docs/privacy/experiments/#who-turns-experiments-on) - [What the experiments do with requests](https://prism.tm/docs/privacy/experiments/#what-the-experiments-do-with-requests) - [Experiment metrics](https://prism.tm/docs/privacy/experiments/#experiment-metrics) ## On this page - [Overview](https://prism.tm/docs/privacy/experiments/#_top) - [Who turns experiments on](https://prism.tm/docs/privacy/experiments/#who-turns-experiments-on) - [What the experiments do with requests](https://prism.tm/docs/privacy/experiments/#what-the-experiments-do-with-requests) - [Experiment metrics](https://prism.tm/docs/privacy/experiments/#experiment-metrics) # Experiments and experiment metrics Experiments are off on a new installation, and nothing about them is sent anywhere until the installation owner turns them on. Metrics are a separate, second opt-in, and each person must agree to their own metrics. ## Who turns experiments on [Section titled “Who turns experiments on”](https://prism.tm/docs/privacy/experiments/#who-turns-experiments-on) Experiments become **available** in one of two ways: - **Pull-in by the Prism team.** For a paid subscription, the Prism team can make experiments available from its subscription admin. The decision arrives with the signed subscription grant at the next check, and it holds until the Prism team clears it. The owner sees this under **Users and budgets → Members → Experiment access** and cannot remove it there. Pull-in only makes experiments available. It does not turn on any experiment, does not choose where text goes, and sends nothing. - **The owner’s own opt-in** in the same place (**Enable experiment access for this installation now**). This is for installations without a subscription. Once experiments are available, everything else is the owner’s decision: - which experiments run, in the **Experiments** section of the settings; - where the text of requests goes for the experiments that need it (Laya addresses, the verifier and judge models). Only the owner can change these settings; people the owner admitted to experiments see them read-only; - which of the installation’s people take part (**Experiment access**). Nothing the Prism team does can change these choices. ## What the experiments do with requests [Section titled “What the experiments do with requests”](https://prism.tm/docs/privacy/experiments/#what-the-experiments-do-with-requests) | Experiment | What it does with a request | Where the text goes | | --- | --- | --- | | Routing probe (`routing_probe`) | Asks a judge model whether the answer was good, and has cheaper or stronger models answer the same request to compare. With `[routing_probe.corpus]` on, the texts are also kept on the installation | The judge and arm models the owner configured | | Verifier (`v2.verifier`) | Has a second model check a sample of answers | The verifier model the owner configured | | Secret detection (`secret_shadow`) | Looks for secrets in requests and classifies the findings with Laya | The Laya address the owner configured; with `[secret_shadow.jev_escalation]` on, the windows Laya was unsure about, with each candidate replaced by its shape, also go to the System One address the owner configured | | Personal data detection (`pii_shadow`) | Looks for email addresses, phone numbers and IPv4 addresses in requests and classifies text windows around them with Laya; a request with none of them sends windows of its text instead | The Laya address the owner configured. This experiment is set in `config.toml` only; the console’s experiment settings do not show it | | Laya skill and reaction (`laya_shadow`) | Classifies the kind of task and the user’s reaction to the previous answer | The Laya addresses the owner configured | | Meaning-based routing (`semantic`) | Remembers which model served similar requests well; the embeddings come from a local model Prism knows (a connection or a discovered server) or from the installed one | Stays on the installation | | Local embeddings (`provisioning.local_embeddings`) | Shows the embeddings model semantic memory uses. When there is none and the owner picks one, Prism reads the model list from Hugging Face, downloads the model from Hugging Face and the llama.cpp server from GitHub, and runs them on the installation | Requests stay on the installation; Hugging Face and GitHub receive only the list and download requests, no request text | Requests under the private strategy or a local-only policy are never sent to a remote judge, verifier or Laya. Each experiment keeps its own log on the installation, and three of them can also keep request text there; see [Experiment logs](https://prism.tm/docs/privacy/what-prism-stores/#experiment-logs). ## Experiment metrics [Section titled “Experiment metrics”](https://prism.tm/docs/privacy/experiments/#experiment-metrics) Off by default. Metrics send the **results** of experiments, never the requests themselves, to PostHog so the Prism team can see whether an experiment helps. **When they are sent.** A person’s experiment results are sent only while all of these hold: 1. experiments are available (pull-in or the owner’s opt-in); 2. the owner turned metrics on (**Experiment access → Turn metrics on**); 3. the owner admitted that person to experiments; 4. the person agreed in their own profile (**Profile → Experiment metrics → I consent**). A person can withdraw consent in their profile at any time, whether or not they still take part. Sending stops at once, and events already waiting to be sent are dropped. Turning off any of the other three conditions stops sending the same way. Requests made with the owner’s keys or on the ordinary listener count as the owner’s. **Where they go.** PostHog Cloud EU (`https://eu.i.posthog.com/batch/`), project _Prism\_instances_, directly over HTTPS through Prism’s outbound policy. Prism contains no PostHog library and loads nothing from PostHog. **What one event contains.** One event per experiment result: `routing_probe_result`, `verifier_result`, `secret_shadow_result`, `laya_skill_result`, `laya_reaction_result` or `semantic_route_result`. Each carries: - `distinct_id`: the installation pseudonym and a person pseudonym (below); - `installation`: the first 32 hex digits of a SHA-256 of the installation fingerprint; - `prism_version` and `experiment`; - the result: outcome or verdict and its probabilities, which provider and model served, judged or classified, tier and effort, latency, cost, whether the input was truncated, and error **codes**. **What is never sent.** Request or answer text; embeddings or prompt fingerprints; names, email addresses, local user IDs; session, application, integration, request or trace IDs; the fingerprint of a detected secret; error messages; host names, addresses, URLs or file paths. Events disable PostHog person profiles and GeoIP lookup. **Pseudonyms.** The person pseudonym is an HMAC-SHA256 of the local user ID keyed by `experiment-metrics.key`, a random key created in the storage directory, readable only by Prism’s account, that never leaves the installation. Without the key a pseudonym cannot be tied to a person; the same person on another installation has a different pseudonym. Deleting the key starts new pseudonyms. **Delivery.** Events are queued in memory and sent in batches about every 10 seconds. A failed batch is retried twice and then dropped; nothing is written to disk. The owner sees the counts (sent, dropped, failed, withdrawn) under **Experiment access**. **Delete sent data.** Ask the Prism team to delete an installation’s events. Withdrawing consent or turning metrics off stops new events; it does not delete events already sent. --- title: "Fleet telemetry | Prism docs" description: "An opt-in export of pseudonymized routing metadata to a receiver you name; off by default and never enabled remotely." url: https://prism.tm/docs/privacy/fleet-telemetry/ --- [Skip to content](https://prism.tm/docs/privacy/fleet-telemetry/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/privacy/fleet-telemetry/#_top) - [What leaves when it is on](https://prism.tm/docs/privacy/fleet-telemetry/#what-leaves-when-it-is-on) - [What never leaves](https://prism.tm/docs/privacy/fleet-telemetry/#what-never-leaves) - [Turn it on](https://prism.tm/docs/privacy/fleet-telemetry/#turn-it-on) - [Turn it off](https://prism.tm/docs/privacy/fleet-telemetry/#turn-it-off) ## On this page - [Overview](https://prism.tm/docs/privacy/fleet-telemetry/#_top) - [What leaves when it is on](https://prism.tm/docs/privacy/fleet-telemetry/#what-leaves-when-it-is-on) - [What never leaves](https://prism.tm/docs/privacy/fleet-telemetry/#what-never-leaves) - [Turn it on](https://prism.tm/docs/privacy/fleet-telemetry/#turn-it-on) - [Turn it off](https://prism.tm/docs/privacy/fleet-telemetry/#turn-it-off) # Fleet telemetry Fleet telemetry is off on every installation. With it off, Prism builds no exporter and sends no telemetry of any kind. It is meant for an installation that takes part in a measurement program run by a receiver operator you trust; most installations never turn it on. Nothing can turn it on remotely. It is on only when `config.toml` says so. ## What leaves when it is on [Section titled “What leaves when it is on”](https://prism.tm/docs/privacy/fleet-telemetry/#what-leaves-when-it-is-on) Three fixed classes, built from allowlists, with identifiers replaced by pseudonyms (an HMAC with a per-instance key that never leaves the machine): - outcome events (worked or not, with closed reason codes); - orchestration trace metadata (which models were tried, in what order, with what result, cost and latency); - a sanitized projection of the status snapshot. ## What never leaves [Section titled “What never leaves”](https://prism.tm/docs/privacy/fleet-telemetry/#what-never-leaves) Prompts, responses, tool arguments and generated text; credentials and the fleet token; configuration values; raw session or request identifiers; free-text error messages; URLs, file paths and machine identity. ## Turn it on [Section titled “Turn it on”](https://prism.tm/docs/privacy/fleet-telemetry/#turn-it-on) The installer asks for consent and shows the notice; it enables the export only after you type `yes`. In non-interactive mode it needs `--fleet-consent-yes` together with the receiver URL and token, and never enables it otherwise. The acceptance is recorded in the `consent/` directory next to the configuration. By hand: ``` [fleet]enabled = truereceiver_url = "https://fleet.example.com" # https requiredtoken_env = "PRISM_FLEET_TOKEN" # environment variable with the instance token# push_interval = "2m" # default 120 seconds ``` Put the token in the environment of Prism’s service (for example `~/.config/prism/prism.env`), never in `config.toml`. If the variable is empty, Prism logs a warning, disables only the export and keeps routing. Run from a terminal, `prism config check` says the variable is not set in that shell (the service may set it) and still passes; **Versions → Check configuration** in the console checks inside the service, with its own environment. A slow or unreachable receiver does not slow down requests: the export resumes from its saved position later, and the receiver removes duplicates. ## Turn it off [Section titled “Turn it off”](https://prism.tm/docs/privacy/fleet-telemetry/#turn-it-off) Set `enabled = false` in `[fleet]` (or remove the section) and restart Prism. Prism works the same without it. Turning it off stops new exports; it does not delete what the receiver already holds. --- title: "Install signal | Prism docs" description: "The one anonymous \"install finished\" request the installer sends when its link carries a token, and how to skip it." url: https://prism.tm/docs/privacy/install-signal/ --- [Skip to content](https://prism.tm/docs/privacy/install-signal/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/privacy/install-signal/#_top) - [What is sent](https://prism.tm/docs/privacy/install-signal/#what-is-sent) - [Skip it](https://prism.tm/docs/privacy/install-signal/#skip-it) ## On this page - [Overview](https://prism.tm/docs/privacy/install-signal/#_top) - [What is sent](https://prism.tm/docs/privacy/install-signal/#what-is-sent) - [Skip it](https://prism.tm/docs/privacy/install-signal/#skip-it) # Install signal The installer can send one anonymous request saying that an install finished or which stage failed. It does so only when the install was started from a link that carries an install token, such as the command on the prism.tm download page (`https://prism.tm/install.sh?t=…`). The token comes only from that site. The plain installer from the release channel (`https://releases.prism.tm/prism/install.sh`) has no token and sends nothing. ## What is sent [Section titled “What is sent”](https://prism.tm/docs/privacy/install-signal/#what-is-sent) One `POST` to `https://prism.tm/p/i/install` with JSON: | Field | Value | | --- | --- | | `token` | The install token from the link (8 to 32 lowercase letters and digits) | | `event` | `install_succeeded` or `install_failed` | | `version` | The installed Prism version | | `os`, `arch` | For example `linux`, `amd64` | | `mode` | `interactive` or `non-interactive` | | `stage` | Only for a failure: `download`, `signature`, `checksum`, `config`, `service` or `health` | No names, paths, keys, host names or error text. The request has a 3-second timeout and one attempt; its failure is ignored and never changes whether the install succeeded or the installer’s exit code. Before it downloads anything, the installer prints that it will send the signal, so you can cancel. ## Skip it [Section titled “Skip it”](https://prism.tm/docs/privacy/install-signal/#skip-it) Terminal window ``` curl -fsSL "https://prism.tm/install.sh?t=abc12345" | sh -s -- --no-report ``` or set `PRISM_NO_REPORT=1`. `--non-interactive` neither turns the signal on nor off. The install signal is separate from Prism’s own [usage statistics](https://prism.tm/docs/privacy/statistics-and-enterprise/) and [fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/), which stay off unless you turn them on. --- title: "Statistics and subscription checks | Prism docs" description: "Exactly what Prism sends for optional usage statistics and for a Pro, Teams or Enterprise subscription, and when." url: https://prism.tm/docs/privacy/statistics-and-enterprise/ --- [Skip to content](https://prism.tm/docs/privacy/statistics-and-enterprise/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/privacy/statistics-and-enterprise/#_top) - [Anonymous usage statistics](https://prism.tm/docs/privacy/statistics-and-enterprise/#anonymous-usage-statistics) - [Subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/#subscription-checks) ## On this page - [Overview](https://prism.tm/docs/privacy/statistics-and-enterprise/#_top) - [Anonymous usage statistics](https://prism.tm/docs/privacy/statistics-and-enterprise/#anonymous-usage-statistics) - [Subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/#subscription-checks) # Statistics and subscription checks Both are off on a new installation. Prism Free makes no licensing call and sends no identifier: an instance that never binds a subscription and never turns statistics on sends neither. ## Anonymous usage statistics [Section titled “Anonymous usage statistics”](https://prism.tm/docs/privacy/statistics-and-enterprise/#anonymous-usage-statistics) Off by default. Turn them on or off: - in the installer, which asks “Send anonymous usage statistics (version, OS, architecture, user-count range; no identifiers)? \[y/N\]” (`--statistics-yes` in non-interactive mode); - in the console: **Upgrade plan** → **Anonymous usage statistics**. This choice is kept in `statistics.json` in the storage directory and overrides the configuration; - in `config.toml`: `[statistics] enabled = true`. When on, Prism sends at most one report per 24 hours: an unsigned `POST` of JSON to `https://license.prism.tm/v2/statistics` (or `[statistics] url`) with exactly four fields: | Field | Example | Values | | --- | --- | --- | | `version` | `"v0.30.0"` | The running Prism version | | `os` | `"linux"` | Operating system | | `arch` | `"amd64"` | CPU architecture | | `users_bucket` | `"2-4"` | Active human accounts: `"1"`, `"2-4"`, `"5-8"`, `"9-20"`, `"21-50"`, `"51+"` | The request carries no fingerprint, cookie, name, email or address. Its only headers besides what HTTP itself needs are `Content-Type: application/json` and `User-Agent: Prism`. The attempt is recorded before sending, so a failed delivery is not retried within 24 hours, and a failure changes nothing else in Prism. Statistics are independent of the subscription and of fleet telemetry. ## Subscription checks [Section titled “Subscription checks”](https://prism.tm/docs/privacy/statistics-and-enterprise/#subscription-checks) Every instance creates an Ed25519 key pair at first start (`instance-identity.json`, readable only by Prism’s account). The private key never leaves the machine. Nothing is sent until the owner opens **Upgrade plan**, reads the disclosure, and presses **Buy** (for the edition, seats and period chosen in the dialog) or **Bind subscription**. From then on each request to `https://license.prism.tm` (`[license] service_url`) carries: - the instance fingerprint (SHA-256 of the public key) and public key, and a signature by the instance key with a random nonce and the time; - the Prism version; - the number of active human accounts, the owner included (pending invitations, removed users and agents are not counted); - the number of teams in use; - for a check, the reduction ceiling Prism currently holds (seats and edition), the optional grant fields this Prism understands, and the subscription sign-in providers this Prism knows, built-in and from installed plugin packages, each with its policy class (so the list shows which such packages are installed); for a purchase, the edition, seats and period the owner chose; for a confirmation, the bind request and the subscription ID the owner was shown. No names, local email addresses, user IDs, host names, addresses or hardware data are sent. The buyer enters their email address in the subscription portal, not in Prism. **When:** on the owner’s bind, confirm and cancel actions, on **Check now**, and every 6 hours while a subscription is bound. **Restricted packages.** While a subscription is bound, Prism also asks the service which restricted plugin packages this installation may install and which installed versions were withdrawn: at start and whenever a check changes the grant. The request is signed the same way and carries the Prism version and the ID and version of every restricted package installed. Prism downloads the packages it may install from the same service. **When the service cannot be reached:** the paid edition stays active for 10 days after the last successful check, and for 14 days after the paid period ends. After that, the paid features close; Free features keep working, and running model servers keep running. To show a price, the console’s purchase dialog asks the service from the browser with only the edition, the seats and the period (no cookies, no instance data). The answer is the price before tax, the tax and the total in the buyer’s currency. Without an answer the dialog shows the base price in EUR before tax, with tax added on top. To remove the feature entirely, set `[license] enabled = false`. The signed grant can also carry the Prism team’s **experiments pull-in**, which makes experiments available on the installation; it turns nothing on and sends nothing. See [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/). Meaning-based search in the command palette (Pro and above, off until the reader turns it on) sends the search query, the titles and descriptions being ranked (which can include people’s names and email addresses), and the reader’s ID, name and email to the same service, signed the same way. The service uses Voyage AI for the ranking, and it records the reader’s name, email address and usage in the Prism administration console. See the [license](https://prism.tm/docs/reference/configuration/license/) and [statistics](https://prism.tm/docs/reference/configuration/statistics/) configuration references. --- title: "What Prism stores and sends | Prism docs" description: "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." url: https://prism.tm/docs/privacy/what-prism-stores/ --- [Skip to content](https://prism.tm/docs/privacy/what-prism-stores/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/privacy/what-prism-stores/#_top) - [Stored on your machine](https://prism.tm/docs/privacy/what-prism-stores/#stored-on-your-machine) - [Experiment logs](https://prism.tm/docs/privacy/what-prism-stores/#experiment-logs) - [Requests Prism sends on its own](https://prism.tm/docs/privacy/what-prism-stores/#requests-prism-sends-on-its-own) - [Requests to public sources](https://prism.tm/docs/privacy/what-prism-stores/#requests-to-public-sources) - [Requests to the Prism project](https://prism.tm/docs/privacy/what-prism-stores/#requests-to-the-prism-project) - [Sent to OpenAI with each request](https://prism.tm/docs/privacy/what-prism-stores/#sent-to-openai-with-each-request) - [Delete data](https://prism.tm/docs/privacy/what-prism-stores/#delete-data) ## On this page - [Overview](https://prism.tm/docs/privacy/what-prism-stores/#_top) - [Stored on your machine](https://prism.tm/docs/privacy/what-prism-stores/#stored-on-your-machine) - [Experiment logs](https://prism.tm/docs/privacy/what-prism-stores/#experiment-logs) - [Requests Prism sends on its own](https://prism.tm/docs/privacy/what-prism-stores/#requests-prism-sends-on-its-own) - [Requests to public sources](https://prism.tm/docs/privacy/what-prism-stores/#requests-to-public-sources) - [Requests to the Prism project](https://prism.tm/docs/privacy/what-prism-stores/#requests-to-the-prism-project) - [Sent to OpenAI with each request](https://prism.tm/docs/privacy/what-prism-stores/#sent-to-openai-with-each-request) - [Delete data](https://prism.tm/docs/privacy/what-prism-stores/#delete-data) # What Prism stores and sends Prism runs on your machine. Requests go from your clients through Prism to the model providers you connected. Nothing goes to the Prism project unless you turn it on, with the exceptions listed under [Requests to the Prism project](https://prism.tm/docs/privacy/what-prism-stores/#requests-to-the-prism-project). ## Stored on your machine [Section titled “Stored on your machine”](https://prism.tm/docs/privacy/what-prism-stores/#stored-on-your-machine) Everything lives in the storage directory (`[storage] dir`; the installer uses `~/.prism/data`, the Debian package `/var/lib/prism`). | What | Where | Contents | | --- | --- | --- | | Request journal | `routing.db` | One record per model request: time, model requested and used, provider, strategy, tokens, cost, latency, status, the `X-Prism-App` and `X-Prism-Session` values you send, the client family inferred from the request. No request or response text. | | Usage totals | `usage-cubes/` | The console’s day, week, month and all-time usage, counted from the request journal and kept so a restart does not count it again: per person, team and time slot, the request, error and token counts, cost and latency, by model, application and provider. No request or response text. Deleted files are counted again from the journal. | | Routing decisions | `routing.db` | Per request: the candidate models, which one was chosen and why, what the alternative policies would have chosen. No text. | | Outcome verdicts | `routing.db` | Per chat turn: worked, not worked or unknown, judged from the next turn. Prism compares turns by hashes held in memory for 10 minutes; when Prism stops, the hashes of turns still open are saved to a file in the storage directory and read back at the next start. No text is written. | | Observed applications | `observed-apps.json` | Applications recognized from traffic: client family, device name, request count, recent model names, and truncated SHA-256 hashes of the system-prompt start, tool names and the client’s session marker. No prompt or tool definition in clear. | | Learned model capabilities | `observed-capabilities.json` | Per provider connection and model: whether tools, JSON output or image input worked or was refused, and a context limit the provider named. No request or answer text. An entry expires after 30 days; the store keeps at most 4096 models | | Provider keys and subscription sign-ins added in the console | `provider-secrets/` | API keys and the OAuth tokens of signed-in subscription accounts, encrypted with the key in `provider-secrets/master.key` | | Console settings | `settings.toml`, `settings-secrets.enc` | The settings the console manages; the secret ones (for example a mail password) encrypted | | Subscription plan choices | `subscription-accounts.json` | Per signed-in subscription account: the plan or monthly price the owner chose or typed | | Console accounts and connections | `accounts.db` | Users, email addresses, passkeys, provider connections | | API keys issued to clients and agents | `routing.db`, `accounts.db` | A SHA-256 digest of each key, its policy, label and expiry; never the key itself | | Notifications | `notifications.db` | Provider and model events, read markers; kept 30 days, at most 4096 events | | Learned parameter fixes | `learned-param-rules.json` | Per provider and model, which request parameters to drop or rename, with a short excerpt of the provider’s error message; each rule expires after 7 days | | Instance identity | `instance-identity.json`, `instance-identity.record` | The instance’s Ed25519 key pair and its fingerprint (used for a paid subscription and, hashed, as the installation pseudonym in [experiment metrics](https://prism.tm/docs/privacy/experiments/)) | | Organization activity log | `accounts.db` | Teams and Enterprise: one event per change of the organization, its teams, memberships and invitations (who did what to whom, and when); at most 50,000 events, the oldest removed first. No request content and no secret | | Machine cost | `routing.db` | Pro and above, with managed machines: per machine and UTC day, the powered-on time and its cost, and the machine’s price history | | Plugin packages | `plugins/` | Installed package archives, their settings and the data each package keeps | | Traffic guard audit | `traffic-guard-audit.jsonl` (`[traffic_guard] audit_log`) | Only when `[traffic_guard]` is on: one line per checked request or answer with a finding: direction, action, the person and organization, how many credentials and personal data items matched, and the rule reasons. No request text | | Experiment logs and corpora | see [below](https://prism.tm/docs/privacy/what-prism-stores/#experiment-logs) | Only for experiments the owner turned on | | Model quality prior | `quality-prior.json`, `quality-priors/` | The public prior downloaded from the Prism project, and the active prior paired with your connected models. Public data, nothing about your traffic | The request journal, routing decisions and outcome verdicts stay in `routing.db` for `[storage] log_retention_days` (default and minimum 365). Older records move to gzip archives in `routing-log-archive/` in the storage directory, and archives older than seven years are deleted. Prism’s own log lines go to standard output (journald under systemd); they carry metadata, not request or response text. Do not put personal data in `X-Prism-App` or `X-Prism-Session`: Prism stores those values as sent. A sign-in request from an app is kept in memory for ten minutes and is not written to disk: the name and client string the app sent, where the request came from, and a SHA-256 digest of its device code. An allowed sign-in creates a key for the person who allowed it. Like every key, it is stored only as a digest, here with the name the app gave itself, its client string and the address the request came from; see [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/). ### Experiment logs [Section titled “Experiment logs”](https://prism.tm/docs/privacy/what-prism-stores/#experiment-logs) Experiments are off on a new installation; see [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/). An experiment the owner turns on keeps these files in the storage directory: | Experiment | File | Contents | | --- | --- | --- | | Routing probe (`routing_probe`) | `routing-probe.jsonl` | Per probed request: request ID, session and application, the models compared, the judge’s verdicts and probabilities, lengths, cost. No text | | Routing probe content corpus (`[routing_probe.corpus]`) | `probe-corpus/` | **Request text**: the task text, the served answer and the compared answers as sent to the judge, with the judge’s labels. Off unless the owner turns it on with a retention in days; never holds a private or local-only request. `prism probe-corpus purge --yes` deletes it | | Secret detection (`secret_shadow`) | `secret-shadow.jsonl`, `secret-shadow.key` | Rule IDs, types, actions, probabilities and a fingerprint of each detected secret, keyed by `secret-shadow.key`. No text and no detected value | | Secret detection corpus (`[secret_shadow.corpus]`) | `secret-shadow-corpus/` | The text windows the classifier saw, with every candidate, high-entropy token, email local part, long digit run and PEM body replaced by random characters. Off unless the owner turns it on with a retention in days; never a private or local-only request. `prism secret-corpus purge --yes` deletes it | | Personal data detection (`pii_shadow`) | `pii-shadow.jsonl`, `pii-shadow.key` | Rules, types, probabilities, verdicts and a keyed fingerprint. No text and no matched value | | Personal data corpus (`[pii_shadow.corpus]`) | `pii-shadow-corpus/` | The text windows the classifier saw, masked: secrets replaced as above, and every digit, every word that starts with a capital letter and every email domain replaced by random characters. Off unless the owner turns it on with a retention in days; never a private or local-only request. `prism pii-corpus purge --yes` deletes it | | Laya skill and reaction (`laya_shadow`) | `laya-shadow-skill.jsonl`, `laya-shadow-reaction.jsonl` | Labels, probabilities and IDs. No text; the previous turn of a conversation is held in memory only, for 30 minutes by default | | Verifier (`v2.verifier`) | `routing.db` | The verifier’s verdicts on sampled answers | ## Requests Prism sends on its own [Section titled “Requests Prism sends on its own”](https://prism.tm/docs/privacy/what-prism-stores/#requests-prism-sends-on-its-own) These go to **your** providers, with your keys, at your cost. | Request | When | Turn off | | --- | --- | --- | | Model discovery: `GET /v1/models` | At startup, on **Refresh**, and when a provider answers that a requested model does not exist (at most every 10 minutes per provider) | — | | Health checks: `GET /v1/models`, `GET /health` | Every 60 seconds (`[health] check_interval_seconds`) | — | | Funding check for a provider that answered “payment required” | At most once per 900 seconds per account | — | | **Role target check**: one request with the message `ping` and `max_tokens` 1 to a target of a `[routing.role_aliases]` role that no live request has answered in the last six hours, typically a backup target | At most every six hours per target, the first one six hours after start; a failed check is repeated once ten minutes later to confirm it | Off unless `[health.role_check] enabled = true` | | **Capability probe**: one small request per capability (tools, JSON output, image input) to a model whose provider, your settings and your traffic have not said whether it has that capability; what the answer shows is kept for 30 days | In the background, up to 10 models every 10 minutes, newest connections first; a model connected while Prism runs is checked 30 seconds later | `[catalog] capability_probes = "off"`; `"api"` (the default) checks API-key and local connections, `"all"` also subscription (OAuth) accounts, whose quota the checks use | | Subscription quota reads: the usage endpoint of each signed-in subscription account (for example `chatgpt.com` for ChatGPT, `api.anthropic.com` for Claude, `api.github.com` for GitHub Copilot), with that account’s sign-in, and its model list | Quota every 5 minutes per account, and at once when the owner asks for it in the console; the model list every 6 hours | Sign the account out | | Prompt cache keep-warm for Claude conversations (Anthropic, Claude subscription, Claude on OpenRouter): a one-token request that re-reads the cached conversation prefix shortly before the one-hour cache expires | For 180 minutes after a conversation’s last turn (`[harness] prompt_cache_keep_warm_minutes`) | `prompt_cache_keep_warm_minutes = 0` | Role target checks are not written to the request journal and are not counted in Prism’s spend reports or budget limits; the provider still bills them, and `/prism/status` shows their spend for the day under `role_state.check`. Each role’s state (normal, on a backup target, or dead) is shown under `role_state` and in the console under **Diagnostics** whether or not the check is on; it is computed from what Prism already knows. See the [health configuration reference](https://prism.tm/docs/reference/configuration/health/). ## Requests to public sources [Section titled “Requests to public sources”](https://prism.tm/docs/privacy/what-prism-stores/#requests-to-public-sources) | Request | Address | When | Turn off | | --- | --- | --- | --- | | Model price catalog (LiteLLM’s public price file) | `raw.githubusercontent.com` | At startup and every 24 hours (`[pricing] refresh_interval`) | `[pricing] auto_refresh = false`; Prism then uses the catalog embedded in its build, and models released after the build have no price | The download sends nothing about your installation. When it fails (for example behind an outbound allowlist), Prism logs a warning and keeps the last downloaded or the embedded catalog. ## Requests to the Prism project [Section titled “Requests to the Prism project”](https://prism.tm/docs/privacy/what-prism-stores/#requests-to-the-prism-project) | Request | Sent to | When | Contents | | --- | --- | --- | --- | | Update check | `releases.prism.tm` | When the console or `prism update check` looks for a new release | A plain download; no identifier, account count or statistics | | Model class catalog and subscription plan prices | `releases.prism.tm` | Once a day | A plain download of two public JSON files | | Model quality prior (Prism Model Exam, CC BY 4.0) | `releases.prism.tm` | Once a day; `[catalog] quality_prior_url = "off"` turns it off | A plain download of a public JSON file and its signature; no identifier | | Plugin catalog | `prism.tm` | 20 seconds after start, then every hour, and on **Check now** on the Plugins page; `[catalog] plugins_url = "off"` turns it off | A plain download of the signed catalog; no identifier. After each read Prism downloads and installs the newest version it can run of every package the owner has enabled, from the address the catalog names | | Subscription checks (Pro, Teams, Enterprise) | `license.prism.tm` | Only after the owner binds a subscription; see [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) | Instance fingerprint, Prism version, number of active human accounts and teams, and the subscription sign-in providers this Prism knows | | Restricted packages | `license.prism.tm` | Only after the owner binds a subscription: at start and when a subscription check changes the grant | Signed like a check: Prism version and the IDs and versions of the restricted packages installed. The packages the installation may install are downloaded from the same service | | Meaning-based search in the command palette | `license.prism.tm`, which uses Voyage AI for the ranking | Pro and above, only for a person who turned it on, on each search | The search query, the titles and descriptions being ranked, and the person’s ID, name and email. The service records the name, email and usage | | Anonymous usage statistics | `license.prism.tm` | Off by default; at most once a day when on | Version, OS, architecture, user-count range | | Experiment metrics | `eu.i.posthog.com` (PostHog EU) | Off by default; only for people the owner admitted who consented themselves; see [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) | Experiment results (outcome, model, latency, cost) under a pseudonym; no text, names, emails or IDs | | Install signal | `prism.tm` | Once, from the installer, only when the install link carried a token; see [Install signal](https://prism.tm/docs/privacy/install-signal/) | Token, event, version, OS, architecture, install mode | Fleet telemetry is a separate opt-in export to a receiver you name; see [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/). ## Sent to OpenAI with each request [Section titled “Sent to OpenAI with each request”](https://prism.tm/docs/privacy/what-prism-stores/#sent-to-openai-with-each-request) A chat or Responses request that reaches an OpenAI model through an API key carries a `safety_identifier`: `prism-sid-` followed by 40 hex digits of an HMAC-SHA-256 of the person or service account the request is made for, keyed by a random key of the installation that never leaves it. OpenAI uses it to tell the people behind one integration apart; it cannot be turned back into a name, email address or user ID without the installation’s key. One person has one identifier on one installation; the same person on another installation has a different one. A `safety_identifier` or `user` value the client sent is removed from such a request. This happens in every edition, whenever the web console or the managed listener is on (or an earlier start created the installation key). It does not happen for requests to a subscription account (for example ChatGPT and Codex, or GitHub Copilot), which carry no identifier (a client’s own value is removed there too), nor for an open-weights OpenAI model served by another company, which gets the request as the client sent it. The identifier is not sent to any other provider, including after a failover. See [OpenAI usage policies for organizations](https://prism.tm/docs/managed-inference/openai-teams/). ## Delete data [Section titled “Delete data”](https://prism.tm/docs/privacy/what-prism-stores/#delete-data) - Stop Prism and delete the storage directory to remove everything. - `prism backup create` makes a copy first; see [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/). - Turning a feature off stops new collection; it does not delete what is already stored. --- title: "CLI reference | Prism docs" description: "Every user-facing prism command with its flags, as printed by the command itself." url: https://prism.tm/docs/reference/cli/ --- [Skip to content](https://prism.tm/docs/reference/cli/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/cli/#_top) - [Server and setup](https://prism.tm/docs/reference/cli/#server-and-setup) - [prism serve](https://prism.tm/docs/reference/cli/#prism-serve) - [prism config](https://prism.tm/docs/reference/cli/#prism-config) - [prism console](https://prism.tm/docs/reference/cli/#prism-console) - [prism setup](https://prism.tm/docs/reference/cli/#prism-setup) - [prism version](https://prism.tm/docs/reference/cli/#prism-version) - [prism licenses](https://prism.tm/docs/reference/cli/#prism-licenses) - [Running server](https://prism.tm/docs/reference/cli/#running-server) - [prism status](https://prism.tm/docs/reference/cli/#prism-status) - [prism refresh](https://prism.tm/docs/reference/cli/#prism-refresh) - [prism refresh-prices](https://prism.tm/docs/reference/cli/#prism-refresh-prices) - [prism agent-context](https://prism.tm/docs/reference/cli/#prism-agent-context) - [prism request-route](https://prism.tm/docs/reference/cli/#prism-request-route) - [prism secrets](https://prism.tm/docs/reference/cli/#prism-secrets) - [prism update](https://prism.tm/docs/reference/cli/#prism-update) - [prism plugins](https://prism.tm/docs/reference/cli/#prism-plugins) - [Maintenance](https://prism.tm/docs/reference/cli/#maintenance) - [prism cost](https://prism.tm/docs/reference/cli/#prism-cost) - [prism backup](https://prism.tm/docs/reference/cli/#prism-backup) - [prism identity](https://prism.tm/docs/reference/cli/#prism-identity) - [Agents](https://prism.tm/docs/reference/cli/#agents) - [prism mcp](https://prism.tm/docs/reference/cli/#prism-mcp) - [prism manifest](https://prism.tm/docs/reference/cli/#prism-manifest) ## On this page - [Overview](https://prism.tm/docs/reference/cli/#_top) - [Server and setup](https://prism.tm/docs/reference/cli/#server-and-setup) - [prism serve](https://prism.tm/docs/reference/cli/#prism-serve) - [prism config](https://prism.tm/docs/reference/cli/#prism-config) - [prism console](https://prism.tm/docs/reference/cli/#prism-console) - [prism setup](https://prism.tm/docs/reference/cli/#prism-setup) - [prism version](https://prism.tm/docs/reference/cli/#prism-version) - [prism licenses](https://prism.tm/docs/reference/cli/#prism-licenses) - [Running server](https://prism.tm/docs/reference/cli/#running-server) - [prism status](https://prism.tm/docs/reference/cli/#prism-status) - [prism refresh](https://prism.tm/docs/reference/cli/#prism-refresh) - [prism refresh-prices](https://prism.tm/docs/reference/cli/#prism-refresh-prices) - [prism agent-context](https://prism.tm/docs/reference/cli/#prism-agent-context) - [prism request-route](https://prism.tm/docs/reference/cli/#prism-request-route) - [prism secrets](https://prism.tm/docs/reference/cli/#prism-secrets) - [prism update](https://prism.tm/docs/reference/cli/#prism-update) - [prism plugins](https://prism.tm/docs/reference/cli/#prism-plugins) - [Maintenance](https://prism.tm/docs/reference/cli/#maintenance) - [prism cost](https://prism.tm/docs/reference/cli/#prism-cost) - [prism backup](https://prism.tm/docs/reference/cli/#prism-backup) - [prism identity](https://prism.tm/docs/reference/cli/#prism-identity) - [Agents](https://prism.tm/docs/reference/cli/#agents) - [prism mcp](https://prism.tm/docs/reference/cli/#prism-mcp) - [prism manifest](https://prism.tm/docs/reference/cli/#prism-manifest) # CLI reference Run `prism` without arguments to list the commands described here. Other commands are development and release tooling; they are not promised and may change. Every command that reads the configuration accepts `--config PATH` (`config check` also takes the path as an argument). Without it Prism uses the file named by the `PRISM_CONFIG` environment variable, then `config.toml` in the current directory, then `/etc/prism/config.toml`, where the Debian package keeps it. After the installer the file is `~/.prism/config.toml`, so run commands from `~/.prism` or pass `--config`. ## Server and setup [Section titled “Server and setup”](https://prism.tm/docs/reference/cli/#server-and-setup) ### `prism serve` [Section titled “prism serve”](https://prism.tm/docs/reference/cli/#prism-serve) Starts Prism in the foreground. Exit status 0 means Prism was stopped, 75 means a restart was requested (from the console or an update) and the supervisor should start it again, 1 means it failed. ``` Usage: prism serve [--config PATH] ``` ### `prism config` [Section titled “prism config”](https://prism.tm/docs/reference/cli/#prism-config) `prism config check` validates a config file and the environment variables it names without opening ports or the database. It lists the providers Prism would start with and, once settings live in the console, which `config.toml` edits the next start imports or ignores. ``` Usage: prism config check [PATH] [--config PATH] [--json] [--strict]Without PATH Prism reads PRISM_CONFIG, then ./config.toml, then /etc/prism/config.toml. Checks configuration and the environment variables it names without starting Prism. Relative paths retain the service working-directory semantics. Does not prove database, port or upstream readiness.A variable this shell does not set is reported as "not set in this shell (the service may set them)" and does not fail the check; the console's "Check configuration" runs the check inside the service. --strict treats such variables as errors (for CI and package scripts).Exit codes: 0 passed (warnings possible), 1 the configuration does not load, 2 usage error, 3 --strict and a named variable is empty.Lists the providers Prism would start with and where each is defined. Once settings live in the console, config.toml applies only its startup keys; a [[providers]] block or other setting added to the file afterwards is imported into the console at the next start unless the console changed it, and the check says what that start will do. To add a provider to a running Prism without a restart use the console (Connections) or POST /prism/personal/custom-providers.--json prints {"ok":bool,"error"?:string,"path":string,"missing_env":[{"name","key","effect"}],"settings_in_console":bool,"providers":[{"name","base_url","source"}],"file_import"?:[{"key","action","reason"}],"ignored_keys"?:[string],"warnings"?:[string]}. A removed or renamed key is a warning, not an error. ``` ### `prism console` [Section titled “prism console”](https://prism.tm/docs/reference/cli/#prism-console) Prints the web console address and the owner token. ``` Usage: prism console Print the web console URL and the admin token a browser needs. The token comesfrom PRISM_ADMIN_TOKEN, or from the token file Prism minted on first start([console] admin_token_file, by default /console-token). Run it onthe host: it reads local configuration and starts nothing. ``` ### `prism setup` [Section titled “prism setup”](https://prism.tm/docs/reference/cli/#prism-setup) Asks for a provider name and API key and stores the key in the macOS keychain, or in the sealed provider vault under `[storage] dir` on Linux and Windows. These are the same records the web console writes for provider connections. ### `prism version` [Section titled “prism version”](https://prism.tm/docs/reference/cli/#prism-version) Prints the release version, operating system and architecture. Needs no config. Also available as `prism --version`. ### `prism licenses` [Section titled “prism licenses”](https://prism.tm/docs/reference/cli/#prism-licenses) Prints the third-party license notices built into the binary. Also available as `prism licences`. ``` Usage: prism licenses [NAME | --all] List the third-party notices built into this binary, print one by name, or print all. ``` ## Running server [Section titled “Running server”](https://prism.tm/docs/reference/cli/#running-server) ### `prism status` [Section titled “prism status”](https://prism.tm/docs/reference/cli/#prism-status) Prints the running server’s status snapshot (`GET /prism/status`) as JSON. Sends the admin token from `PRISM_ADMIN_TOKEN` or the console token file when one is available. ### `prism refresh` [Section titled “prism refresh”](https://prism.tm/docs/reference/cli/#prism-refresh) Asks the running server to rediscover provider models now, for all providers or one. Needs the admin token from `PRISM_ADMIN_TOKEN` or the console token file. ``` Usage: prism refresh [--provider=NAME] [--config PATH] Run provider model discovery now on the running server (POST /prism/control actionrefresh_discovery) so a newly released model shows up in /v1/models without restartingprism serve or waiting for the catalog_refresh_hours tick. Without --provider everyconfigured provider is refreshed in configuration order, followed by one local fleet sweepwhen [discovery.local_fleet] is enabled; --provider may also name a live fleet member. Reads the control address from [server] control_bind, or from [server] host/portwhen control_bind is unset and host is a loopback address, in the configuration file(--config PATH, PRISM_CONFIG, ./config.toml, /etc/prism/config.toml) and the admin token fromPRISM_ADMIN_TOKEN or /console-token. Prints the control result as JSON;exit 1 when any provider did not return a usable model list (it keeps its previous entries). ``` ### `prism refresh-prices` [Section titled “prism refresh-prices”](https://prism.tm/docs/reference/cli/#prism-refresh-prices) Asks the running server to reload model prices. Needs the admin token from `PRISM_ADMIN_TOKEN` or the console token file. ``` Usage: prism refresh-prices [--config PATH] Ask the running server to refresh model pricing now (POST /prism/control actionrefresh_pricing): the source is re-read and the live price table is reloaded, so achanged price takes effect without restarting prism serve. Reads the control address from [server] control_bind, or from [server] host/portwhen control_bind is unset and host is a loopback address, in the configuration file(--config PATH, PRISM_CONFIG, ./config.toml, /etc/prism/config.toml) and the admin token fromPRISM_ADMIN_TOKEN or /console-token. Prints the control result as JSON;exit 1 when the refresh ran and failed, when the server is already refreshing, or whenone ran moments ago (the server rate-limits them). ``` ### `prism agent-context` [Section titled “prism agent-context”](https://prism.tm/docs/reference/cli/#prism-agent-context) Prints the running server’s description of itself for an agent’s system context. ``` Usage: prism agent-context [--format=markdown|json] Print the agent-facing description of this Prism deployment (how to select a model,how to read route attribution, which endpoints exist), fetched from the runningserver so it always matches the live configuration. Redirect it into a file toinject it as an agent's system context. ``` ### `prism request-route` [Section titled “prism request-route”](https://prism.tm/docs/reference/cli/#prism-request-route) Prints the route facts of one request by its request id. ``` Usage: prism request-route [--config PATH] Print request-exact route facts from GET /prism/requests/{id}/route on therunning server. Uses the admin token from PRISM_ADMIN_TOKEN, or the console tokenfile Prism minted on first start.Exit codes: 0 printed, 1 the server could not be asked or did not answer 200(an unknown request id included), 2 usage error. ``` ### `prism secrets` [Section titled “prism secrets”](https://prism.tm/docs/reference/cli/#prism-secrets) Checks and reloads provider keys stored as 1Password references (`api_key_ref`). ``` Usage: prism secrets [--config PATH] check read every [[providers]] api_key_ref now with this host's 1Password CLI and service account; print one line per reference; exit 1 when any cannot be read. Values are never printed. Needs no running Prism. reload ask the running Prism to re-read every reference now (control action reload_secrets; admin token from PRISM_ADMIN_TOKEN or the console token file). status print the running Prism's reference states (GET /prism/secrets/status). ``` ### `prism update` [Section titled “prism update”](https://prism.tm/docs/reference/cli/#prism-update) Checks for, installs and verifies Prism releases from the release channel. ``` Usage: prism update check [--json] [--config PATH] [--url URL] prism update install [--version vX.Y.Z] [--yes] [--json] [--timeout 10m] [--config PATH] [--url URL] prism update status [--json] [--config PATH] [--url URL] prism update verify --archive FILE --sums SHA256SUMS --signature SHA256SUMS.sig check, install and status talk to the running Prism server: its address comes from[server] host/port in --config (default config.toml) or from --url, and the owner tokenfrom PRISM_ADMIN_TOKEN, else [console] admin_token_file, else /console-token. check exits 10 when a newer release is available and 0 when up to date. install installsthe latest release of the configured channel, or exactly --version, then follows the jobthrough the restart; it asks for confirmation unless --yes (required without a terminal).Exit codes: 0 success, 1 failure (including a rollback), 2 usage error. ``` ### `prism plugins` [Section titled “prism plugins”](https://prism.tm/docs/reference/cli/#prism-plugins) Lists, trusts, installs, probes, rolls back and removes plugin packages. ``` Usage: prism plugins list [--json] [--config PATH] [--url URL] prism plugins trust --key-id ID --public-key FILE --namespace DOMAIN [common flags] prism plugins install --archive FILE [--development] [common flags] prism plugins probe|rollback|remove --package ID [common flags] prism plugins enable --package ID [--settings FILE] [--migration FILE] [common flags] prism plugins disable|restart|state --package ID [common flags] prism plugins retire --package ID --delete-data [common flags] Management uses the running owner's API and PRISM_ADMIN_TOKEN or the consoletoken file, just like prism update. Each mutation reads and compares the currentinventory revision. Commands never retry a mutation automatically. install verifies a signed package and retains the previous artifact for rollback.Unsigned packages require explicit --development; they cannot replace a signedidentity. probe starts and stops a staged worker without production grants.disable keeps a package's settings and data, so remove refuses a package thatwas ever enabled. retire deletes the disabled package's settings and data forgood and needs --delete-data to say so; remove then succeeds.An enabled package adds what it declares: provider connections and theirmodels, cloud machine types, exporters or console panels.Exit codes: 0 success, 1 rejection/failure, 2 invalid arguments. ``` ## Maintenance [Section titled “Maintenance”](https://prism.tm/docs/reference/cli/#maintenance) ### `prism cost` [Section titled “prism cost”](https://prism.tm/docs/reference/cli/#prism-cost) Prints the cost report of the last N days as JSON. While Prism is stopped it reads the local routing records. While Prism runs, the server holds the records, so the command asks the running server (`GET /prism/cost`) with the admin token from `PRISM_ADMIN_TOKEN` or the console token file; that report can carry more fields, such as machine cost. ``` Usage: prism cost [--days=N] [--group-by=provider|model|app|task_type] [--config PATH] Print the cost report of the last N days (default 7) as JSON. While Prism isstopped it reads the local routing records; while Prism runs it asks therunning server (GET /prism/cost) with the admin token from PRISM_ADMIN_TOKENor the console token file. ``` ### `prism backup` [Section titled “prism backup”](https://prism.tm/docs/reference/cli/#prism-backup) `prism backup create [--config PATH | --storage DIR] [--output FILE] [--include-secrets]` writes an archive of the state directory; `prism backup verify ARCHIVE` checks one. Stop Prism before restoring an archive. ### `prism identity` [Section titled “prism identity”](https://prism.tm/docs/reference/cli/#prism-identity) Shows or replaces this instance’s identity key. ``` Usage: prism identity [--config PATH|--storage DIR] [--yes] show print this instance's fingerprint, or why the identity is unusable.reset replace the instance key pair with a new one. Use it only when the identity is damaged (instance_identity_invalid) and no backup with secrets holds the old key. A reset instance is a new instance: a paid subscription is no longer bound to it, the saved subscription state is removed, and the owner must bind the subscription again in the console (Upgrade plan). Stop Prism first. Requires --yes. ``` ## Agents [Section titled “Agents”](https://prism.tm/docs/reference/cli/#agents) ### `prism mcp` [Section titled “prism mcp”](https://prism.tm/docs/reference/cli/#prism-mcp) Runs a Model Context Protocol server on stdio with read-only Prism facts, or with operator tools for an operator token. ``` Usage: prism mcp [--operator] Without flags, start the read-only Prism facts MCP server on stdio (protocol 2026-07-28).Requires PRISM_FACT_BASE_URL and PRISM_ROUTE_READ_TOKEN. --operator exposes only tools authorized by an operator-mcp credential.Requires PRISM_OPERATOR_BASE_URL and PRISM_OPERATOR_TOKEN. Provider/admin/deterministic-outcome credentials must not be present in the environment. ``` ### `prism manifest` [Section titled “prism manifest”](https://prism.tm/docs/reference/cli/#prism-manifest) Writes a model manifest for an agent harness from the running server’s model catalog. ``` Usage of manifest: -allow-defaults include positive default and peer limits -base-url string Prism OpenAI-compatible base URL (default "http://127.0.0.1:18000/v1") -out string output file (default stdout) -target string harness target (prime-agent) (default "prime-agent") ``` --- title: "Configuration reference | Prism docs" description: "Every public config.toml section with its keys, types and defaults." url: https://prism.tm/docs/reference/configuration/ --- [Skip to content](https://prism.tm/docs/reference/configuration/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/#_top) # Configuration reference Prism reads `config.toml` once at startup. On its first start Prism moves every setting except the startup keys (`storage.dir`, `console.*`, `personal.enabled`, the license and trust keys) into the console’s settings store, `settings.toml` in the storage directory, and from then on the console is where settings are changed. The file keeps the moved keys only so an older version finds them after a rollback. A key or `[[providers]]` block added to or changed in the file later is imported into the console at the next start, unless the console has changed that value since; the start log names every imported or ignored key, and `prism config check` shows what the next start will do. To add a provider without a restart, use the console (Connections) or `POST /prism/personal/custom-providers`. An unknown or misspelled key does not stop Prism: it prints `config warning: unknown key "" (ignored)` at startup and uses the default. `prism config check` validates a file without starting Prism. A removed key does not stop Prism either. When `config.toml` or the console’s settings store still holds `v2.enabled`, `routing.account_pool` or `inference.services[].dedicated`, Prism prints `config warning: key "" was removed and has no effect` at startup and ignores the key; `prism config check` lists it as a warning. A renamed key keeps working under its old name, with a warning that names the new one; when both are set, the new one wins: `runtime_policy.stream_open_timeout_ms` is now `runtime_policy.stream_open_timeout_local_ms`. In `[profiles.]`, `max_quality_tier = "standard"` is read as `"strong"`. Defaults are the values Prism applies to an empty file, or the built-in value Prism uses while the key is unset. A blank default means the key is unset and has no single built-in value; the description says what happens then. A key of type duration takes a string of a number and a unit, such as `"90s"`, `"10m"` or `"1h"`. | Section | What it controls | | --- | --- | | [`[server]`](https://prism.tm/docs/reference/configuration/server/) | Addresses Prism listens on for model requests, request limits, browser origins and the optional managed and control listeners. | | [`[console]`](https://prism.tm/docs/reference/configuration/console/) | The web console listener, its TLS, the owner token file, restarts and updates from the console. | | [`[personal]`](https://prism.tm/docs/reference/configuration/personal/) | Owner profile, users, sign-in sessions and passkeys behind the web console. | | [`[routing]`](https://prism.tm/docs/reference/configuration/routing/) | Default routing strategy, model denylist, role aliases, provider failover and account selection. | | [`[profiles]`](https://prism.tm/docs/reference/configuration/profiles/) | Named routing profiles that an agent or request can select. | | [`[providers]`](https://prism.tm/docs/reference/configuration/providers/) | Model providers: name, address, key source, routing role, limits and declared models. | | [`[local]`](https://prism.tm/docs/reference/configuration/local/) | Local model servers given by address only. | | [`[budget]`](https://prism.tm/docs/reference/configuration/budget/) | Spending limits per period and what Prism does when a threshold is reached. | | [`[health]`](https://prism.tm/docs/reference/configuration/health/) | Provider health checks, rate-limit cooldowns and funding probes. | | [`[runtime_policy]`](https://prism.tm/docs/reference/configuration/runtime_policy/) | Timeouts of upstream requests and streams, and internal buffer sizes. | | [`[admission]`](https://prism.tm/docs/reference/configuration/admission/) | Queue limits for concurrent requests (off by default). | | [`[storage]`](https://prism.tm/docs/reference/configuration/storage/) | Where Prism keeps its state and how long it keeps request history. | | [`[catalog]`](https://prism.tm/docs/reference/configuration/catalog/) | Sources of the model capability and class catalogs. | | [`[pricing]`](https://prism.tm/docs/reference/configuration/pricing/) | Source of the model price catalog. | | [`[metrics]`](https://prism.tm/docs/reference/configuration/metrics/) | An optional separate listener for Prometheus metrics. | | [`[harness]`](https://prism.tm/docs/reference/configuration/harness/) | Served-model metadata for agent harnesses and prompt cache refreshes. | | [`[v2]`](https://prism.tm/docs/reference/configuration/v2/) | The orchestration layer for selector-routed requests (on by default). | | [`[traffic_guard]`](https://prism.tm/docs/reference/configuration/traffic_guard/) | Optional checks of model traffic for credentials and personal data (off by default). | | [`[implicit_outcomes]`](https://prism.tm/docs/reference/configuration/implicit_outcomes/) | Judging whether a served turn worked from the traffic that follows it (on by default, nothing stored but hashes). | | [`[mail]`](https://prism.tm/docs/reference/configuration/mail/) | SMTP server for sign-in links, invitations and notifications. | | [`[inference]`](https://prism.tm/docs/reference/configuration/inference/) | Model servers and machines that Prism starts, stops and powers (lifecycle control needs Pro). | | [`[secrets]`](https://prism.tm/docs/reference/configuration/secrets/) | Reading provider keys from 1Password instead of environment variables. | | [`[egress]`](https://prism.tm/docs/reference/configuration/egress/) | Outbound proxy for requests to providers. | | [`[license]`](https://prism.tm/docs/reference/configuration/license/) | The subscription service of Pro, Teams and Enterprise. | | [`[statistics]`](https://prism.tm/docs/reference/configuration/statistics/) | Optional anonymous usage statistics (off by default). | | [`[fleet]`](https://prism.tm/docs/reference/configuration/fleet/) | Opt-in export of pseudonymized routing metadata to a receiver you name (off by default). | --- title: "[admission] | Prism docs" description: "Queue limits for concurrent requests (off by default)." url: https://prism.tm/docs/reference/configuration/admission/ --- [Skip to content](https://prism.tm/docs/reference/configuration/admission/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/admission/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/admission/#_top) # \[admission\] Queue limits for concurrent requests (off by default). | Key | Type | Default | Description | | --- | --- | --- | --- | | `admission.enabled` | bool | `false` | `enabled` turns on queue limits for incoming requests (default false). A request that finds its queue full gets 503 overload with Retry-After: 5. | | `admission.online_chat_depth` | integer | `200` | `online_chat_depth` is how many chat requests may wait at once (default 200). | | `admission.online_embed_depth` | integer | `200` | `online_embed_depth` is how many embedding requests may wait at once (default 200). | | `admission.online_rerank_depth` | integer | `100` | `online_rerank_depth` is how many rerank requests may wait at once (default 100). | | `admission.batch_embed_depth` | integer | `5000` | `batch_embed_depth` is how many batch embedding requests may wait at once (default 5000). | | `admission.online_max_wait_ms` | integer | `30` | `online_max_wait_ms` is how long an online request may wait in the queue before it gets 504 timeout (default 30 ms). | --- title: "[budget] | Prism docs" description: "Spending limits per period and what Prism does when a threshold is reached." url: https://prism.tm/docs/reference/configuration/budget/ --- [Skip to content](https://prism.tm/docs/reference/configuration/budget/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/budget/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/budget/#_top) # \[budget\] Spending limits per period and what Prism does when a threshold is reached. | Key | Type | Default | Description | | --- | --- | --- | --- | | `[[budget.limits]]` | array of tables | | `limits` are the spending limits, each for one period and optionally one app. | | `budget.limits[].app` | string | | `app` scopes the limit to one X-Prism-App; empty is global. | | `budget.limits[].app_provenance` | string | | `app_provenance` says what app names: “declared” (the default) for a name clients send in X-Prism-App, “observed” for the key of an application Prism recognized from traffic. | | `budget.limits[].user` | string | | `user` scopes the limit to one person’s requests: “owner” for the installation owner, or a user ID; empty counts everyone. | | `budget.limits[].period` | string | | hourly | daily | weekly | monthly | | `budget.limits[].usd` | number | | `usd` is the spending limit for one period, in US dollars. | | `budget.limits[].reset_at` | integer | | daily: hour UTC, weekly: 1-7 (Mon-Sun), monthly: 1-28 | | `[[budget.limits[].thresholds]]` | array of tables | | `thresholds` are the actions taken at given percentages of usd. | | `budget.limits[].thresholds[].at_percent` | number | | `at_percent` is the share of usd, in percent, at which the action starts. | | `budget.limits[].thresholds[].action` | string | | `action` is warn (add a warning header), downgrade (route as cheap), local\_only (local models only) or reject (answer 429 budget\_exceeded). | | `[[budget.account_limits]]` | array of tables | | `account_limits` cap one provider account’s spend; a spent account takes no traffic until its window resets. | | `budget.account_limits[].route` | string | | `route` is the account: an API-key provider name, or the route of a further account of that provider. | | `budget.account_limits[].period` | string | | `period` is hourly, daily, weekly or monthly, counted in UTC. | | `budget.account_limits[].usd` | number | | `usd` is the account’s spending limit for one period, in US dollars. | | `budget.account_limits[].reset_at` | integer | | `reset_at` is when the period starts: daily: hour UTC, weekly: 1-7 (Mon-Sun), monthly: 1-28. | | `[[budget.model_limits]]` | array of tables | | `model_limits` cap one model’s spend across its sellers; auto replaces a spent model by `model_fallback`, a request naming it is refused. | | `budget.model_limits[].model` | string | | `model` is the model id; every seller’s spelling of it counts. | | `budget.model_limits[].period` | string | | `period` is hourly, daily, weekly or monthly, counted in UTC. | | `budget.model_limits[].usd` | number | | `usd` is the model’s spending limit for one period, in US dollars. | | `budget.model_limits[].reset_at` | integer | | `reset_at` is when the period starts: daily: hour UTC, weekly: 1-7 (Mon-Sun), monthly: 1-28. | | `budget.model_fallback` | string | | `model_fallback` is how auto replaces a model whose budget is spent: next\_cheaper (the default), cheapest\_same\_tier or model. | | `budget.model_fallback_model` | string | | `model_fallback_model` is the replacement for model\_fallback = “model”: provider::model or a model id. | --- title: "[catalog] | Prism docs" description: "Sources of the model capability and class catalogs." url: https://prism.tm/docs/reference/configuration/catalog/ --- [Skip to content](https://prism.tm/docs/reference/configuration/catalog/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/catalog/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/catalog/#_top) # \[catalog\] Sources of the model capability and class catalogs. | Key | Type | Default | Description | | --- | --- | --- | --- | | `catalog.catalog_refresh_hours` | integer | `72` | `catalog_refresh_hours` is how often Prism rediscovers cloud provider models (default 72). | | `catalog.local_probe_seconds` | integer | `60` | `local_probe_seconds` is how often Prism rediscovers models of local providers (default 60). | | `catalog.startup_timeout_seconds` | integer | `20` | `startup_timeout_seconds` is the hard total budget for startup credential loading, metadata refresh, and initial provider discovery. Metadata receives a prefix of this budget and reserves a provider discovery window; the server never multiplies this value by provider count. Defaults to 20 seconds. | | `catalog.refresh_timeout_seconds` | integer | `10` | `refresh_timeout_seconds` is the total cap for each provider discovery attempt, including key resolution, DNS, connect, TLS, headers, and body read. Initial provider calls run concurrently inside the remaining `startup_timeout_seconds` budget and commit in configured provider order. Steady-state calls use this cap without the startup budget. Defaults to 10 seconds; valid values are 1 through 300. | | `catalog.subscription_plans_url` | string | | `subscription_plans_url` is the subscription plan price catalog. Empty means the catalog Prism publishes; “off” keeps the built-in catalog and the owner’s own prices (closed networks). | | `catalog.model_classes_url` | string | | `model_classes_url` is the model class catalog that decides quality tiers. Empty means the catalog Prism publishes; “off” keeps the built-in catalog (closed networks). | | `catalog.quality_prior_url` | string | | `quality_prior_url` is the signed model quality prior of the Prism Model Exam. Empty means the prior Prism publishes, which replaces a prior the operator activated unless `quality_prior_keep_operator`; “off” keeps only a prior the operator activates (closed networks). | | `catalog.quality_prior_keep_operator` | bool | `false` | `quality_prior_keep_operator` keeps a prior the operator activated with prism-quality-priors in use instead of the published one. By default the published prior replaces it once downloaded, and the operator’s prior is kept aside in the quality-prior store’s directory; setting this to true and restarting makes it active again. | | `catalog.plugins_url` | string | | `plugins_url` is the signed plugin catalog the Plugins page offers packages from. Empty means the catalog Prism publishes at prism.tm/plugins; “off” turns reading it off (closed networks install package files by hand). | | `catalog.capability_probes` | string | `"api"` | `capability_probes` decides which routes Prism checks itself for tools, image input and JSON output when neither the provider nor an earlier answer said: “api” (default) checks API-key and local routes, “all” also subscription (OAuth) routes, whose quota the checks use, and “off” none. A guess from the public model table or a name rule is checked too, and the newest routes are checked first. | --- title: "[console] | Prism docs" description: "The web console listener, its TLS, the owner token file, restarts and updates from the console." url: https://prism.tm/docs/reference/configuration/console/ --- [Skip to content](https://prism.tm/docs/reference/configuration/console/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/console/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/console/#_top) # \[console\] The web console listener, its TLS, the owner token file, restarts and updates from the console. | Key | Type | Default | Description | | --- | --- | --- | --- | | `console.enabled` | bool | `true` | `enabled` starts the console listener. Absent, it follows \[personal\] enabled, so the default is true; enabled = true with \[personal\] enabled = false fails config load. | | `console.bind` | string | `"127.0.0.1:18081"` | `bind` is the console listener address (default 127.0.0.1:18081). A bind other than loopback needs tls\_cert and tls\_key, or allow\_plaintext = true. | | `console.tls_cert` | string | | `tls_cert` and `tls_key` are PEM file paths for HTTPS on the console listener; set both or neither. | | `console.tls_key` | string | | `tls_cert` and `tls_key` are PEM file paths for HTTPS on the console listener; set both or neither. | | `console.allow_plaintext` | bool | `false` | `allow_plaintext` permits plain HTTP on a non-loopback console bind. Use it only on a transport you trust, such as WireGuard; an address range alone does not prove encryption. | | `console.admin_token_file` | string | | `admin_token_file` holds the console/admin token. Empty selects /console-token, which Prism creates with mode 0600 on first start when PRISM\_ADMIN\_TOKEN is unset. | | `console.update_check_url` | string | | `update_check_url` is the release API the console reads and installs from: a `.../releases/latest` endpoint of Forgejo/Gitea, GitHub or GitCode. Empty (the default) disables online checks and installs; an offline package can still be installed. Only https, or http on loopback, private and overlay addresses. | | `console.update_check_token_env` | string | | `update_check_token_env` names the environment variable holding a read credential for `update_check_url`, for a release source that is not public. The secret never sits in this file, and it is sent only to that origin, never through a mirror. | | `console.update_mirrors` | array of string | | `update_mirrors` are download prefixes the console may use instead of the release source itself: the original URL is appended to the prefix (gh-proxy style). A mirror cannot forge a package, because every archive is checked against the signed SHA256SUMS. | | `console.allow_update` | bool | `false` | `allow_update` lets the console download, verify and install a signed release, then hand the process over to it. Default false. It needs `allow_restart` as well: the new version starts through the same drain. | | `console.update_channel` | string | | `update_channel` is the release channel “latest” resolves in: “stable” (the default, `/releases/latest`) or “prerelease”, where the newest non-draft release, pre-releases included, is the latest. | | `console.allow_restart` | bool | | `allow_restart` lets the console restart and stop Prism. Restart exits with code 75 after draining, stop with code 0; the supervisor must restart on 75 and not on 0 (the reference unit sets RestartForceExitStatus=75 and RestartPreventExitStatus=0). Unset (the default), Prism asks its supervisor – systemd or launchd – and offers restart and stop only when that policy brings it back on 75 and keeps it down on 0. false turns both off; true asserts the supervisor does so without asking. | | `console.public_url` | string | | `public_url` is the origin people open the console at, such as [https://prism.example.net:18081](https://prism.example.net:18081/). Passkeys are bound to its host name. Empty derives it from bind: localhost for a loopback bind, the bind’s host name for a TLS bind. | --- title: "[egress] | Prism docs" description: "Outbound proxy for requests to providers." url: https://prism.tm/docs/reference/configuration/egress/ --- [Skip to content](https://prism.tm/docs/reference/configuration/egress/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/egress/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/egress/#_top) # \[egress\] Outbound proxy for requests to providers. | Key | Type | Default | Description | | --- | --- | --- | --- | | `egress.proxy_url` | string | | `proxy_url` is an explicit forward proxy (HTTP(S) or SOCKS5) for every non-loopback, non-unix origin. Remote plaintext origins are admitted only when this proxy carries them, and are disclosed in status. The PRISM\_EGRESS\_PROXY\_URL environment variable overrides this value. | --- title: "[fleet] | Prism docs" description: "Opt-in export of pseudonymized routing metadata to a receiver you name (off by default)." url: https://prism.tm/docs/reference/configuration/fleet/ --- [Skip to content](https://prism.tm/docs/reference/configuration/fleet/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/fleet/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/fleet/#_top) # \[fleet\] Opt-in export of pseudonymized routing metadata to a receiver you name (off by default). | Key | Type | Default | Description | | --- | --- | --- | --- | | `fleet.enabled` | bool | `false` | `enabled` turns the export on. Off by default: with it off Prism builds no exporter and sends no telemetry. | | `fleet.receiver_url` | string | | `receiver_url` is the receiver’s base URL. https:// is required except for loopback; enabling without a URL fails closed at startup. | | `fleet.token_env` | string | `"PRISM_FLEET_TOKEN"` | `token_env` names the environment variable holding the per-instance bearer token. The token is a secret: environment-supplied only, never written to config by Prism, never logged, never exported. Empty selects PRISM\_FLEET\_TOKEN. | | `fleet.push_interval` | string | | `push_interval` is how often each of the three exported classes is sent, as a Go duration string such as “2m”. Empty selects 120s. | --- title: "[harness] | Prism docs" description: "Served-model metadata for agent harnesses and prompt cache refreshes." url: https://prism.tm/docs/reference/configuration/harness/ --- [Skip to content](https://prism.tm/docs/reference/configuration/harness/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/harness/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/harness/#_top) # \[harness\] Served-model metadata for agent harnesses and prompt cache refreshes. | Key | Type | Default | Description | | --- | --- | --- | --- | | `harness.annotate_chat_assistant_body` | bool | `false` | `annotate_chat_assistant_body` appends a short “\[Prism route: provider/model\]” line to assistant content for /v1/chat/completions: non-streaming JSON bodies and OpenAI-style SSE streams. A step that only calls tools gets none, nor does an answer that is only a bracketed marker for the client program such as \[SILENT\], and the lines are removed from the history a client sends back before the model sees it. | | `harness.announce_served_model` | bool | `false` | `announce_served_model` adds separate, bounded Prism metadata to successful model responses without modifying choices\[\].message or output content. | | `harness.prompt_cache_keep_warm_minutes` | integer | `180` | `prompt_cache_keep_warm_minutes` is how long after a conversation’s last turn Prism keeps its Anthropic prompt cache warm with one-token refreshes (Claude on anthropic, claude-oauth and OpenRouter). Unset selects the default (180); 0 disables the refreshes. | --- title: "[health] | Prism docs" description: "Provider health checks, rate-limit cooldowns and funding probes." url: https://prism.tm/docs/reference/configuration/health/ --- [Skip to content](https://prism.tm/docs/reference/configuration/health/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/health/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/health/#_top) # \[health\] Provider health checks, rate-limit cooldowns and funding probes. | Key | Type | Default | Description | | --- | --- | --- | --- | | `health.check_interval_seconds` | integer | `60` | `check_interval_seconds` is how often Prism checks each provider’s health (default 60). | | `health.rate_limit_burst_threshold` | integer | `3` | `rate_limit_burst_threshold` is how many consecutive 429 answers inside rate\_limit\_burst\_window\_seconds put a provider’s model into cooldown (default 3). | | `health.rate_limit_burst_window_seconds` | integer | `60` | `rate_limit_burst_window_seconds` is the window for counting consecutive 429 answers (default 60). | | `health.rate_limit_initial_cooldown_seconds` | integer | `30` | `rate_limit_initial_cooldown_seconds` is the first cooldown of a rate-limited model (default 30); repeated cooldowns grow up to rate\_limit\_max\_cooldown\_seconds. | | `health.rate_limit_max_cooldown_seconds` | integer | `600` | `rate_limit_max_cooldown_seconds` is the longest cooldown of a rate-limited model (default 600). | | `health.provider_funding_probe_cooldown_seconds` | integer | `900` | `provider_funding_probe_cooldown_seconds` is how long, in seconds, Prism waits before it checks again whether a provider account refused for lack of funds can pay (default 900). The wait doubles after each refused check, up to 8 times the value, and starts over after recovery. Until then Prism answers 402 from its record, and says so in the body; POST /prism/funding/clear ends the wait at once. | | `health.recovery_dwell_seconds` | integer | `120` | `recovery_dwell_seconds` is the minimum span of the consecutive successful probes that return an unavailable provider to service (hysteresis against flapping). Defaults to 120. | | `health.role_check.enabled` | bool | `false` | `enabled` turns the check on (default false). It only sends a request to a role target that no live request has served in the last six hours, typically a backup target, so a backup that ran out of credit or stopped answering shows up in the role’s state before it is needed. | --- title: "[implicit_outcomes] | Prism docs" description: "Judging whether a served turn worked from the traffic that follows it (on by default, nothing stored but hashes)." url: https://prism.tm/docs/reference/configuration/implicit_outcomes/ --- [Skip to content](https://prism.tm/docs/reference/configuration/implicit_outcomes/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/implicit_outcomes/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/implicit_outcomes/#_top) # \[implicit\_outcomes\] Judging whether a served turn worked from the traffic that follows it (on by default, nothing stored but hashes). | Key | Type | Default | Description | | --- | --- | --- | --- | | `implicit_outcomes.enabled` | bool | | `enabled` switches judging off when false. Unset means on. | | `implicit_outcomes.window_minutes` | integer | `10` | `window_minutes` is how long after a turn the conversation’s next turn still counts as its follow-up, in minutes; after it the verdict is final (default 10, at most 1440; 0 selects the default). | | `implicit_outcomes.similarity_threshold` | number | `0.5` | `similarity_threshold` is the word-pair similarity (0..1\] from which the next user text counts as the same question rephrased (default 0.5; 0 selects the default). | --- title: "[inference] | Prism docs" description: "Model servers and machines that Prism starts, stops and powers (lifecycle control needs Pro)." url: https://prism.tm/docs/reference/configuration/inference/ --- [Skip to content](https://prism.tm/docs/reference/configuration/inference/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/inference/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/inference/#_top) # \[inference\] Model servers and machines that Prism starts, stops and powers (lifecycle control needs Pro). | Key | Type | Default | Description | | --- | --- | --- | --- | | `[[inference.services]]` | array of tables | | `services` are model servers Prism may start and stop: over SSH as a systemd unit, or through prism-service-agent on the model machine. Starting and stopping need Prism Pro. | | `inference.services[].id` | string | | ID names the service in the console and in commands. | | `inference.services[].label` | string | | `label` is the name the console shows for the service (at most 256 bytes). | | `inference.services[].provider` | string | | `provider` is the \[\[providers\]\] entry the service serves; it must exist, use the same host name and be self\_hosted. | | `inference.services[].model` | string | | `model` is the model id the service serves. | | `inference.services[].transport` | string | | transport is ssh (the default) or agent: agent reaches the model host through prism-service-agent instead of SSH (see “Service agent” in the user documentation). With transport = “agent” leave host, port, user, unit, system, identity\_file and known\_hosts\_file unset. | | `inference.services[].host` | string | | `host` is the SSH host of the service (ssh transport). | | `inference.services[].port` | integer | `22` | `port` is the SSH port (default 22). | | `inference.services[].user` | string | | `user` is the SSH user. | | `inference.services[].unit` | string | | `unit` is the systemd unit that runs the model server. | | `inference.services[].system` | bool | | `system` is true for a system unit, false for a user unit. | | `inference.services[].identity_file` | string | | `identity_file` and `known_hosts_file` are absolute paths of the SSH key and known-hosts file. | | `inference.services[].known_hosts_file` | string | | `identity_file` and `known_hosts_file` are absolute paths of the SSH key and known-hosts file. | | `inference.services[].agent_url` | string | | `agent_url` is the address of prism-service-agent on the model machine (agent transport); its host must match the provider’s host name. | | `inference.services[].agent_token_env` | string | | `agent_token_env` names the environment variable holding the agent’s token. | | `inference.services[].agent_service` | string | | `agent_service` is the id of the service in the agent’s own allowlist (agent transport). | | `inference.services[].autostart` | bool | | `autostart` lets a client request start a stopped service (Pro and above). | | `inference.services[].autostart_max_waiters` | integer | | `autostart_max_waiters` bounds requests waiting for one start; 0 means 32. | | `inference.services[].start_timeout` | duration | | `start_timeout` bounds one start, manual or automatic; 0 means the manager default (3 minutes). | | `inference.services[].autostart_wait` | duration | | `autostart_wait` bounds how long one explicit request waits; 0 means `start_timeout`. | | `inference.services[].idle_stop_after` | duration | | `idle_stop_after` stops a ready service after this long without requests; 0 disables idle stop. | | `inference.services[].host_id` | string | | `host_id` names the \[\[inference.hosts\]\] entry Prism powers on before starting this service. Empty means the host is always on. | | `[[inference.hosts]]` | array of tables | | `hosts` are existing cloud machines Prism may power on and off for the services that name them with host\_id. | | `inference.hosts[].id` | string | | ID names the host; a service refers to it with host\_id. | | `inference.hosts[].provider` | string | | `provider` is the cloud provider of the machine. In config.toml nebius is the only value; hosts added in the console can also use a cloud from a plugin package or Wake-on-LAN. | | `inference.hosts[].instance_id` | string | | `instance_id` is the cloud provider’s id of the existing machine. Prism powers it on and off; it never creates, resizes or deletes machines. | | `inference.hosts[].credentials_ref` | string | | `credentials_ref` is a secret reference (op://…) to the cloud credentials JSON, read through \[secrets\]. Set it or credentials\_env, not both. | | `inference.hosts[].credentials_env` | string | | `credentials_env` names an environment variable that holds the cloud credentials JSON. Set it or credentials\_ref, not both. | | `inference.hosts[].power_on_timeout` | duration | | `power_on_timeout` bounds one power-on until the service host answers; 0 means 10 minutes. | | `inference.hosts[].power_off_after` | duration | | `power_off_after` powers the host off after all its services were idle or stopped for this long and its agent reports no foreign GPU process; 0 (the default) never powers it off automatically. | --- title: "[license] | Prism docs" description: "The subscription service of Pro, Teams and Enterprise." url: https://prism.tm/docs/reference/configuration/license/ --- [Skip to content](https://prism.tm/docs/reference/configuration/license/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/license/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/license/#_top) # \[license\] The subscription service of Pro, Teams and Enterprise. | Key | Type | Default | Description | | --- | --- | --- | --- | | `license.enabled` | bool | `true` | `enabled` turns the subscription check on (default true). false removes the paid editions from this installation; Free stays. | | `license.service_url` | string | `"https://license.prism.tm"` | `service_url` is the subscription service origin (default [https://license.prism.tm](https://license.prism.tm/)). A custom URL needs its own trusted\_public\_keys. | | `license.trusted_public_keys` | table of string | `{"next":"-kiSMieWWEiho-UOwi-e4MrAyIqiSMj7sE6I7qhH_uU","primary":"pHUiFTjQrlGdCv71bCkZfCwQoc7I25t0Oq7fJZ8rRjY"}` | `trusted_public_keys` maps key ids to the service signing keys Prism trusts. Empty uses the built-in keys. | --- title: "[local] | Prism docs" description: "Local model servers given by address only." url: https://prism.tm/docs/reference/configuration/local/ --- [Skip to content](https://prism.tm/docs/reference/configuration/local/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/local/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/local/#_top) # \[local\] Local model servers given by address only. | Key | Type | Default | Description | | --- | --- | --- | --- | | `local[].url` | string | | `url` is the local server’s address. | | `local[].name` | string | | `name` is the provider name the local server is listed under. | --- title: "[mail] | Prism docs" description: "SMTP server for sign-in links, invitations and notifications." url: https://prism.tm/docs/reference/configuration/mail/ --- [Skip to content](https://prism.tm/docs/reference/configuration/mail/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/mail/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/mail/#_top) # \[mail\] SMTP server for sign-in links, invitations and notifications. | Key | Type | Default | Description | | --- | --- | --- | --- | | `mail.enabled` | bool | | `enabled` = false turns mail off even when host is set. Unset, mail is on whenever host is set. | | `mail.host` | string | | `host` is the SMTP server name. A configured host enables mail unless enabled = false. | | `mail.port` | integer | `0` | `port` of the SMTP server; 0 uses 587 for starttls and 465 for tls. | | `mail.security` | string | | `security` is “starttls” (upgrade a plain connection, port 587) or “tls” (TLS from the first byte, port 465). There is no plaintext mode. | | `mail.sender` | string | | `sender` is the From address. | | `mail.username` | string | | `username` for SMTP authentication. | | `mail.password_env` | string | | `password_env` names the environment variable holding the SMTP password. The password itself never sits in configuration. | | `mail.link_base_url` | string | | `link_base_url` is the console address that emailed links point to, for example [https://prism.example.net:18081](https://prism.example.net:18081/). It is fixed here rather than taken from the request, so a forged `Host` header cannot redirect a sign-in link to another site. | --- title: "[metrics] | Prism docs" description: "An optional separate listener for Prometheus metrics." url: https://prism.tm/docs/reference/configuration/metrics/ --- [Skip to content](https://prism.tm/docs/reference/configuration/metrics/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/metrics/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/metrics/#_top) # \[metrics\] An optional separate listener for Prometheus metrics. | Key | Type | Default | Description | | --- | --- | --- | --- | | `metrics.bind` | string | | `bind` starts a separate listener for GET /metrics and /health, without authentication. Empty (the default) serves /metrics on the main listener behind the admin or read token. | --- title: "[personal] | Prism docs" description: "Owner profile, users, sign-in sessions and passkeys behind the web console." url: https://prism.tm/docs/reference/configuration/personal/ --- [Skip to content](https://prism.tm/docs/reference/configuration/personal/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/personal/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/personal/#_top) # \[personal\] Owner profile, users, sign-in sessions and passkeys behind the web console. | Key | Type | Default | Description | | --- | --- | --- | --- | | `personal.enabled` | bool | `true` | `enabled` turns on the owner profile, users, agent keys and the web console (default true). false runs Prism as a routing daemon with no personal state and no console listener. | | `personal.trusted_http_origin` | string | | `trusted_http_origin` explicitly permits browser sessions on one HTTP origin protected by a trusted network (for example a tailnet). Empty keeps Secure cookies and the HTTPS mail-link requirement. | | `personal.session_idle_timeout` | string | | `session_idle_timeout` and `session_max_lifetime` bound a signed-in user’s console session (Go durations; defaults 12h and 720h). | | `personal.session_max_lifetime` | string | | `session_idle_timeout` and `session_max_lifetime` bound a signed-in user’s console session (Go durations; defaults 12h and 720h). | | `personal.quota_warning_thresholds` | array of number | | `quota_warning_thresholds` are the subscription quota levels, in percent (greater than 0, at most 98), at which the console warns. Empty uses 80 and 90. 98 is always added: at 98% Prism moves requests off that account. | | `personal.tool_output_compression` | string | `"off"` | `tool_output_compression` is off, safe, or lossy. Lossy is never enabled implicitly. | --- title: "[pricing] | Prism docs" description: "Source of the model price catalog." url: https://prism.tm/docs/reference/configuration/pricing/ --- [Skip to content](https://prism.tm/docs/reference/configuration/pricing/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/pricing/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/pricing/#_top) # \[pricing\] Source of the model price catalog. | Key | Type | Default | Description | | --- | --- | --- | --- | | `pricing.auto_refresh` | bool | `true` | `auto_refresh` downloads the model price catalog (LiteLLM’s public file on raw.githubusercontent.com) at startup and every refresh\_interval (default true). Set it to false and Prism never downloads it: the catalog embedded in the build is used, and models released after the build stay unpriced. | | `pricing.refresh_interval` | string | `"24h"` | `refresh_interval` is the price catalog download interval as a Go duration (default 24h). | --- title: "[profiles] | Prism docs" description: "Named routing profiles that an agent or request can select." url: https://prism.tm/docs/reference/configuration/profiles/ --- [Skip to content](https://prism.tm/docs/reference/configuration/profiles/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/profiles/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/profiles/#_top) # \[profiles\] Named routing profiles that an agent or request can select. | Key | Type | Default | Description | | --- | --- | --- | --- | | `profiles..default_model` | string | | `default_model` is the model an automatic request of this profile tries first. | | `profiles..fallbacks` | array of string | | `fallbacks` are the models tried after default\_model, in order. | | `profiles..max_quality_tier` | string | | `max_quality_tier` caps the quality tier the profile’s automatic requests may use: baseline, good, strong or frontier. | | `profiles..preferred_role` | string | | `preferred_role` is the role alias the profile’s automatic requests use. | | `profiles..strategy` | string | | `strategy` is the profile’s routing strategy: balanced, quality, cheap, fast or private. | | `profiles..role_aliases` | table of array of string | | `role_aliases` override \[routing.role\_aliases\] for requests of this profile. | --- title: "[providers] | Prism docs" description: "Model providers: name, address, key source, routing role, limits and declared models." url: https://prism.tm/docs/reference/configuration/providers/ --- [Skip to content](https://prism.tm/docs/reference/configuration/providers/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/providers/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/providers/#_top) # \[providers\] Model providers: name, address, key source, routing role, limits and declared models. | Key | Type | Default | Description | | --- | --- | --- | --- | | `providers[].context_length` | integer | | `context_length` is the provider-wide context window, in tokens, for models whose metadata omits it (0 = unspecified). Values the provider or the catalog report, and per-model declarations, win. | | `providers[].max_output_tokens` | integer | | `max_output_tokens` is the provider-wide output limit for models whose metadata omits it (0 = unspecified). Provider and catalog values win. | | `providers[].stream_open_keepalive_ms` | integer | | `stream_open_keepalive_ms` overrides \[server\] stream\_open\_keepalive\_ms for this provider. Unset uses the \[server\] value; 0 sends no keepalives. | | `providers[].proxy_url` | string | | `proxy_url` overrides the global egress proxy for this provider only. | | `providers[].name` | string | | `name` identifies the provider in model ids (provider::model), reports and logs. Known names (openai, anthropic, google, openrouter, groq, deepseek, together, fireworks, deepinfra, tokenbroker, meta, typesafe) bring a default base\_url and key variable; any other name is a custom provider. | | `providers[].api_key_env` | string | | `api_key_env` names the environment variable that holds the provider’s API key. Empty uses the provider’s built-in variable (for example OPENAI\_API\_KEY); a local server needs none. The key itself never goes in this file. | | `providers[].api_key_ref` | string | | `api_key_ref` is a secret reference (op://vault/item/field) resolved by \[secrets\]. Mutually exclusive with api\_key\_env. | | `providers[].base_url` | string | | `base_url` is the provider’s API address. Optional for known providers. For OpenAI-compatible servers both the server root and the /v1 form work. | | `providers[].self_hosted` | bool | | Self-hosted server: longer stream-open and attempt timeouts. Inferred true for loopback, RFC 1918, 100.64.0.0/10 and .local hosts. | | `providers[].no_wallet` | bool | | `no_wallet` declares that requests to this provider cost nothing, so Prism records them at zero cost. A local or loopback address alone is never treated as free. | | `providers[].private_trusted` | bool | | `private_trusted` makes a provider whose address is not on a private network (for example a tailnet address) count as private for private routing, and silences the load warning about a private-range address that is not marked as local. | | `providers[].stream_protocol` | string | | `stream_protocol` overrides the wire protocol, which Prism normally infers from the provider name: openai\_compat, anthropic\_messages, ollama\_native, tei\_buffered (a Text Embeddings Inference server, for embeddings and rerank) or typesafe\_systemone. | | `providers[].routing_role` | string | | `routing_role` says what kind of provider this is: direct (the model’s own maker), aggregator (a service that resells other makers’ models) or local (a model server you run). Unset, Prism infers it from the provider name and base\_url. | | `providers[].cost_premium` | number | | `cost_premium` is a price multiplier for an aggregator (for example 1.15 for 15% more than the catalog price); it is ignored for direct and local providers. | | `[[providers[].bootstrap_models]]` | array of tables | | `bootstrap_models` declare models for providers that publish no model list, and fill metadata that discovery omits. Discovery replaces them when it works; a declared model it still lists keeps the declared fields discovery did not report. | | `providers[].bootstrap_models[].input_price_per_1m` | number | | `input_price_per_1m` and `output_price_per_1m` are the declared prices in USD per million input and output tokens. | | `providers[].bootstrap_models[].output_price_per_1m` | number | | `input_price_per_1m` and `output_price_per_1m` are the declared prices in USD per million input and output tokens. | | `providers[].bootstrap_models[].model_id` | string | | `model_id` is the provider’s own id of the declared model. | | `providers[].bootstrap_models[].task_types` | array of string | | `task_types` lists what the model serves: chat, responses, embedding, rerank or systemone. A model enters an automatic pool only for its declared tasks. | | `providers[].bootstrap_models[].supports_tools` | bool | | `supports_tools`, `supports_json`, `supports_streaming` and `supports_responses_api` declare the model’s tool calls, JSON mode, streaming and Responses API support. true is an operator statement (source config), which the provider’s own model list and what Prism observes in traffic outrank; false or unset declares nothing, and the flag stays unknown until a stronger source states it. | | `providers[].bootstrap_models[].supports_json` | bool | | `supports_tools`, `supports_json`, `supports_streaming` and `supports_responses_api` declare the model’s tool calls, JSON mode, streaming and Responses API support. true is an operator statement (source config), which the provider’s own model list and what Prism observes in traffic outrank; false or unset declares nothing, and the flag stays unknown until a stronger source states it. | | `providers[].bootstrap_models[].supports_streaming` | bool | | `supports_tools`, `supports_json`, `supports_streaming` and `supports_responses_api` declare the model’s tool calls, JSON mode, streaming and Responses API support. true is an operator statement (source config), which the provider’s own model list and what Prism observes in traffic outrank; false or unset declares nothing, and the flag stays unknown until a stronger source states it. | | `providers[].bootstrap_models[].supports_responses_api` | bool | | `supports_tools`, `supports_json`, `supports_streaming` and `supports_responses_api` declare the model’s tool calls, JSON mode, streaming and Responses API support. true is an operator statement (source config), which the provider’s own model list and what Prism observes in traffic outrank; false or unset declares nothing, and the flag stays unknown until a stronger source states it. | | `providers[].bootstrap_models[].context_window` | integer | | `context_window` is the model’s context size in tokens. | | `providers[].bootstrap_models[].max_output_tokens` | integer | | `max_output_tokens` is the model’s output limit in tokens. | | `providers[].bootstrap_models[].enforced_max_output_tokens` | integer | | `enforced_max_output_tokens` is an output limit Prism applies to every request to this model; 0 applies none. | | `providers[].bootstrap_models[].embedding_dimensions` | integer | | `embedding_dimensions` is the vector size of an embedding model, published in the model catalogs. | | `[[providers[].pricing]]` | array of tables | | `pricing` is an operator-declared per-model rate table for sellers that do not publish prices on /v1/models. It does not seed catalog rows; use bootstrap\_models when the model must exist before discovery. | | `providers[].pricing[].model` | string | | `model` is the provider’s model id the prices apply to. | | `providers[].pricing[].input_price_per_1m` | number | | `input_price_per_1m` and `output_price_per_1m` are the prices in USD per million input and output tokens. | | `providers[].pricing[].output_price_per_1m` | number | | `input_price_per_1m` and `output_price_per_1m` are the prices in USD per million input and output tokens. | --- title: "[routing] | Prism docs" description: "Default routing strategy, model denylist, role aliases, provider failover and account selection." url: https://prism.tm/docs/reference/configuration/routing/ --- [Skip to content](https://prism.tm/docs/reference/configuration/routing/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/routing/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/routing/#_top) # \[routing\] Default routing strategy, model denylist, role aliases, provider failover and account selection. | Key | Type | Default | Description | | --- | --- | --- | --- | | `routing.strategy` | string | `"balanced"` | balanced | quality | cheap | fast | private | | `routing.unknown_output_limit_fail_closed_threshold` | integer | `100000` | An explicit-model request whose output limit is unknown is refused when it asks for more than this many output tokens. 0 or absent = 100000. | | `routing.auto_denylist` | array of string | | `auto_denylist` lists provider/model candidate IDs excluded from AUTO (selector/orchestration) candidate selection everywhere models are chosen automatically. Explicit-model requests bypass candidate selection and still route to a denied model; denied models stay discovered (catalog and /prism/models keep listing them). Entries match a full candidate ID case-insensitively; one trailing ‘_’ is a prefix wildcard (“openrouter/_”). Empty or absent = no denial. | | `routing.role_aliases` | table of array of string | | `role_aliases` maps a role name, sent as a request’s model, to an ordered list of concrete model ids. triage, reasoning and cheap-toolcall are built in; any other key declares a new role (1-64 letters, digits, ‘.’, ‘\_’ or ‘-’). Prism tries every provider of one target before the next target. An empty list leaves the role unconfigured. | | `routing.role_alias_params` | table of table of interface | | `role_alias_params` are default request parameters per role alias: \[routing.role\_alias\_params.\] key = value. They fill parameters a request to that alias omits and never overwrite one it sends, so a fixed-shape client (an appliance that cannot send chat\_template\_kwargs or reasoning) can reach a model through its own alias while the model stays unchanged under its real name. | | `routing.conversation_failover` | string | `"plan"` | `conversation_failover` chooses what a conversation that continues gets when its model does not answer: “plan” (the default) walks the planned order, usually another model; “same\_model” first tries the same model at its other providers, so the conversation keeps its model. The cache is lost either way: each provider caches on its own. | | `routing.allow_provider_failover` | bool | `false` | `allow_provider_failover` permits a provider-scoped request (“provider::model”) to be served by another provider that carries the same model when the named one cannot serve. Default false: the pin is the caller’s cost and provider choice, so a refusal is reported with its own reason instead of spending on an upstream the caller did not name. A request may override this per call with the X-Prism-Allow-Provider-Failover header. | | `routing.smart_quality_band` | bool | `false` | `smart_quality_band` switches on the Smart quality band (Prism Pro, the smart\_routing capability): among the models that may serve a request, Prism picks the cheapest one whose estimated success for the request’s task class is at most 0.02 below the best model’s (prism/auto) or the requested model’s (a role or a named model). The estimate is the published quality prior updated with this installation’s own outcomes. Roles and named models are replaced only with `smart_substitution` on, never by a more expensive model and never under the strict-model rule. Default false. The console’s routing page changes it without a restart. | | `routing.smart_checked_cascade` | bool | `false` | `smart_checked_cascade` switches on the Smart checked cascade (Prism Pro, the smart\_routing capability): the quality band’s cheaper pick answers first, Prism checks the answer by the rule measured for the request’s skill, and when the check is not satisfied the strong model (the band’s reference: the best model on prism/auto, the requested model on a role or a named model) answers instead. Only short, non-streamed or buffered chat requests whose task class has a measured rule; roles and named models only with `smart_substitution` on and never under the strict-model rule. Default false. The console’s routing page changes it without a restart. | | `routing.smart_substitution` | bool | `false` | `smart_substitution` lets Smart (Prism Pro) answer a request that names a role or a model with a cheaper model of similar quality: the quality band and the checked cascade then apply to roles and named models too, not only to prism/auto. The answer headers name the model that answered. One owner setting for the installation; it replaces the per-key switch of v0.69.0. Default false. The console’s routing page changes it without a restart. | | `routing.provider_chain` | array of string | | `provider_chain` is the initial seller order: for a model several providers serve, auto routing and a bare model id take it from the first available provider in the list, and the next ones back it up. A provider in the chain enters auto routing even for a model without a known price. The console’s routing page replaces it at runtime; empty means no chain. | | `routing.app_profiles` | table of string | | `app_profiles` maps an X-Prism-App name to a profile from \[profiles.\]; automatic requests from that app use the profile. | --- title: "[runtime_policy] | Prism docs" description: "Timeouts of upstream requests and streams, and internal buffer sizes." url: https://prism.tm/docs/reference/configuration/runtime_policy/ --- [Skip to content](https://prism.tm/docs/reference/configuration/runtime_policy/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/runtime_policy/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/runtime_policy/#_top) # \[runtime\_policy\] Timeouts of upstream requests and streams, and internal buffer sizes. | Key | Type | Default | Description | | --- | --- | --- | --- | | `runtime_policy.health_max_consecutive_failures` | integer | `3` | `health_max_consecutive_failures` is how many failed health checks in a row mark a provider unavailable (default 3). | | `runtime_policy.rerank_default_top_n` | integer | `64` | `rerank_default_top_n` is the top\_n Prism sends when a rerank request has none (default 64). | | `runtime_policy.rerank_max_top_n` | integer | `128` | `rerank_max_top_n` is the largest top\_n a rerank request may ask for (default 128); larger values get 400 invalid\_request\_size. | | `runtime_policy.stream_open_timeout_local_ms` | integer | `90000` | `stream_open_timeout_local_ms` is how long Prism waits for a self-hosted or local provider to start answering a stream (default 90000 ms); remote providers use the \_remote keys. The old name stream\_open\_timeout\_ms still works. | | `runtime_policy.stream_open_timeout_remote_ms` | integer | `8000` | `stream_open_timeout_remote_ms` is how long Prism waits for a remote provider to start answering a stream (default 8000 ms). | | `runtime_policy.stream_open_timeout_remote_reasoning_ms` | integer | `60000` | `stream_open_timeout_remote_reasoning_ms` is the open-phase timeout of a stream to a remote model that reasons before answering (default 60000 ms): an aggregator sends its headers only after the backend has read the prompt. | | `runtime_policy.stream_idle_timeout_remote_ms` | integer | `120000` | `stream_idle_timeout_remote_ms` ends a stream from a remote provider whose body stays silent this long (default 120000 ms; 0 disables; a negative value fails the load). | | `runtime_policy.stream_idle_timeout_local_ms` | integer | `600000` | `stream_idle_timeout_local_ms` ends a stream from a self-hosted provider whose body stays silent this long (default 600000 ms; 0 disables; a negative value fails the load). | | `runtime_policy.upstream_request_timeout_remote_ms` | integer | `120000` | `upstream_request_timeout_remote_ms` is the deadline of one non-stream attempt to a remote provider (default 120000 ms; an explicit value must be positive). | | `runtime_policy.upstream_request_timeout_remote_reasoning_ms` | integer | `600000` | `upstream_request_timeout_remote_reasoning_ms` is the deadline of one non-stream attempt to a remote model that reasons before answering (default 600000 ms). | | `runtime_policy.upstream_request_timeout_local_ms` | integer | `600000` | `upstream_request_timeout_local_ms` is the deadline of one non-stream attempt to a self-hosted provider (default 600000 ms). | --- title: "[secrets] | Prism docs" description: "Reading provider keys from 1Password instead of environment variables." url: https://prism.tm/docs/reference/configuration/secrets/ --- [Skip to content](https://prism.tm/docs/reference/configuration/secrets/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/secrets/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/secrets/#_top) # \[secrets\] Reading provider keys from 1Password instead of environment variables. | Key | Type | Default | Description | | --- | --- | --- | --- | | `secrets.backend` | string | | `backend` is “op-cli” (1Password CLI with a service account) or empty. It is required when any provider sets api\_key\_ref. | | `secrets.op_path` | string | | `op_path` is the 1Password CLI executable. Default “op” on PATH. | | `secrets.service_account_token_env` | string | | `service_account_token_env` names the environment variable holding the service account token. Default OP\_SERVICE\_ACCOUNT\_TOKEN. The token is the only secret passed to the CLI; it is not exposed elsewhere. | | `secrets.refresh_ttl_seconds` | integer | | `refresh_ttl_seconds` is the spacing between round-robin background reads. Default 600, allowed 300-900; 0 disables scheduled reads (cold startup, retries, SIGHUP, reload and provider auth failures still re-read). | | `secrets.on_unavailable` | string | | `on_unavailable` decides a cold start whose references cannot be read: “serve” (default) starts without those providers and brings each up once its reference resolves; “fail\_fast” refuses to start and lists the unresolved references. | | `secrets.timeout_seconds` | integer | `20` | `timeout_seconds` bounds one CLI read, in seconds (default 20; at most 120). | --- title: "[server] | Prism docs" description: "Addresses Prism listens on for model requests, request limits, browser origins and the optional managed and control listeners." url: https://prism.tm/docs/reference/configuration/server/ --- [Skip to content](https://prism.tm/docs/reference/configuration/server/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/server/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/server/#_top) # \[server\] Addresses Prism listens on for model requests, request limits, browser origins and the optional managed and control listeners. | Key | Type | Default | Description | | --- | --- | --- | --- | | `server.stream_open_keepalive_ms` | integer | `0` | `stream_open_keepalive_ms` makes Prism send an SSE comment line this often on a Chat Completions stream between the provider’s HTTP 200 and its first body byte, so a client does not give up on a slow start. 0 (the default) sends none. Valid range 0 to 3600000 ms; any other value fails the load. | | `server.host` | string | `"127.0.0.1"` | `host` is the address the main listener binds for model requests (default 127.0.0.1). Outside an organization the main listener takes no Prism key, so bind a reachable address only on a network you control; in an organization (Teams, Enterprise) every model request needs a person’s key. | | `server.port` | integer | `18000` | `port` of the main listener (default 18000). 0 binds a free port and prints it, for test runs. | | `server.max_request_body_bytes` | integer | `4194304` | `max_request_body_bytes` is the largest request body Prism accepts, in bytes (default 4194304, 4 MiB); a larger body gets invalid\_request\_size. | | `server.cors_allowed_origins` | array of string | | `cors_allowed_origins` lists browser origins (scheme://host\[:port\]) that may call the API besides the listener’s own. Empty by default: a page on another origin is refused, so a website cannot spend through Prism. | | `server.managed_bind` | string | | `managed_bind` optionally starts the credential-authenticated model ingress. Plain HTTP is accepted on loopback and on a tailnet (overlay) address; any other address, wildcard binds included, needs `managed_tls_cert` and `managed_tls_key`. Empty (the default) starts no managed listener. | | `server.managed_tls_cert` | string | | `managed_tls_cert` and `managed_tls_key` are PEM file paths; set both or neither. With them the managed listener serves TLS on any address. Config load checks only that they come as a pair; the key pair is read when the listener starts, and a pair that does not load keeps the managed listener closed rather than serving plain HTTP. | | `server.managed_tls_key` | string | | `managed_tls_cert` and `managed_tls_key` are PEM file paths; set both or neither. With them the managed listener serves TLS on any address. Config load checks only that they come as a pair; the key pair is read when the listener starts, and a pair that does not load keeps the managed listener closed rather than serving plain HTTP. | | `server.control_bind` | string | | `control_bind` optionally starts a second, loopback-only listener that serves the fail-closed control surface (/prism/traces/{id}, /prism/outcomes, /prism/control, /prism/status, /health). It exists for deployments whose main listener is bound to a non-loopback address (e.g. a tailnet IP): the control endpoints require a loopback remote address, so without this listener they are unreachable even from the host itself. Empty (the default) starts no extra listener and changes nothing. Non-loopback values fail closed at config load: the control surface must never listen on a non-loopback interface. The admin-token requirement is unchanged – loopback is necessary, never sufficient. | | `server.docs_url` | string | | `docs_url` optionally points at human documentation for this deployment. It is echoed by GET /.well-known/prism.json so an agent that reaches the endpoint can find prose without guessing at external hosts. Empty (the default) omits the link rather than advertising a dead URL. | | `server.ingress_public_url` | string | | `ingress_public_url` is the address clients on other machines use to reach the model ingress the console publishes (the managed ingress when managed\_bind is set, the main listener otherwise): a reverse proxy or a published tunnel in front of the listener. The console shows it on the quick-start page instead of an address derived from the browser. It changes no listener. Empty (the default) lets the console use the host the browser opened it at with the listener’s port. | | `server.tailscale_socket` | string | | `tailscale_socket` is the tailscaled LocalAPI socket Prism asks which tailnet device a client address belongs to, to name the applications it recognizes from traffic. Empty (the default) tries the standard socket paths; “off” names devices by address only. Nothing else is asked of tailscaled. | --- title: "[statistics] | Prism docs" description: "Optional anonymous usage statistics (off by default)." url: https://prism.tm/docs/reference/configuration/statistics/ --- [Skip to content](https://prism.tm/docs/reference/configuration/statistics/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/statistics/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/statistics/#_top) # \[statistics\] Optional anonymous usage statistics (off by default). | Key | Type | Default | Description | | --- | --- | --- | --- | | `statistics.enabled` | bool | `false` | `enabled` sends the optional anonymous usage statistics (default false). The choice made in the console overrides this value. | | `statistics.url` | string | `"https://license.prism.tm"` | `url` is the service origin the report goes to; empty selects the subscription service origin (\[license\] service\_url, else the built-in one). | --- title: "[storage] | Prism docs" description: "Where Prism keeps its state and how long it keeps request history." url: https://prism.tm/docs/reference/configuration/storage/ --- [Skip to content](https://prism.tm/docs/reference/configuration/storage/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/storage/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/storage/#_top) # \[storage\] Where Prism keeps its state and how long it keeps request history. | Key | Type | Default | Description | | --- | --- | --- | --- | | `storage.dir` | string | `"data"` | `dir` is the state directory: routing log, accounts, console settings, token file and caches (default data, relative to the working directory). | | `storage.log_retention_days` | integer | `365` | `log_retention_days` is how many days the request history stays in the routing database; older records move to gzip archives kept for seven years. The default and the minimum are both 365: 0 keeps 365, and a smaller value is raised to 365. | --- title: "[traffic_guard] | Prism docs" description: "Optional checks of model traffic for credentials and personal data (off by default)." url: https://prism.tm/docs/reference/configuration/traffic_guard/ --- [Skip to content](https://prism.tm/docs/reference/configuration/traffic_guard/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/traffic_guard/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/traffic_guard/#_top) # \[traffic\_guard\] Optional checks of model traffic for credentials and personal data (off by default). | Key | Type | Default | Description | | --- | --- | --- | --- | | `traffic_guard.enabled` | bool | `false` | `enabled` turns on the credential and personal-data checks of model traffic (default false). Restart required. | | `traffic_guard.revision` | string | | `revision` names the policy version recorded with every decision (default traffic-guard-v1). | | `traffic_guard.credential_request` | string | | `credential_request`, `pii_request`, `credential_response` and `pii_response` set what happens when a credential or personal data is found in a request or a response: off, observe (record only), block or redact. | | `traffic_guard.pii_request` | string | | `credential_request`, `pii_request`, `credential_response` and `pii_response` set what happens when a credential or personal data is found in a request or a response: off, observe (record only), block or redact. | | `traffic_guard.credential_response` | string | | `credential_request`, `pii_request`, `credential_response` and `pii_response` set what happens when a credential or personal data is found in a request or a response: off, observe (record only), block or redact. | | `traffic_guard.pii_response` | string | | `credential_request`, `pii_request`, `credential_response` and `pii_response` set what happens when a credential or personal data is found in a request or a response: off, observe (record only), block or redact. | | `traffic_guard.max_scan_bytes` | integer | `1048576` | `max_scan_bytes` is the size in bytes of one scan window (default 1048576, 1 MiB; 4096 to 16777216). The whole body is always scanned; a long text is scanned window by window with an overlap. | | `traffic_guard.audit_log` | string | | `audit_log` is the metadata-only JSONL audit. Rotates at 64 MiB, keeping three older generations (.1 through.3); empty selects the storage directory. | | `[[traffic_guard.profiles]]` | array of tables | | `profiles` are overrides for an organization, a personal user or an agent. | | `traffic_guard.profiles[].organization_id` | string | | `organization_id`, `owner_id` and `profile_id` select whose traffic the override applies to: an organization, a personal user or an agent id. At least one is required; the most specific match wins. A person’s Prism key has the agent id prism-key and the key of an app the person signed in to has app-signin, so an override meant for all of a person’s keys selects by `owner_id` or `organization_id`. | | `traffic_guard.profiles[].owner_id` | string | | `organization_id`, `owner_id` and `profile_id` select whose traffic the override applies to: an organization, a personal user or an agent id. At least one is required; the most specific match wins. A person’s Prism key has the agent id prism-key and the key of an app the person signed in to has app-signin, so an override meant for all of a person’s keys selects by `owner_id` or `organization_id`. | | `traffic_guard.profiles[].profile_id` | string | | `organization_id`, `owner_id` and `profile_id` select whose traffic the override applies to: an organization, a personal user or an agent id. At least one is required; the most specific match wins. A person’s Prism key has the agent id prism-key and the key of an app the person signed in to has app-signin, so an override meant for all of a person’s keys selects by `owner_id` or `organization_id`. | | `traffic_guard.profiles[].revision` | string | | `revision` names the override’s policy version; required. | | `traffic_guard.profiles[].credential_request` | string | | `credential_request`, `pii_request`, `credential_response`, `pii_response` and `max_scan_bytes` override the \[traffic\_guard\] values; empty fields inherit. | | `traffic_guard.profiles[].pii_request` | string | | `credential_request`, `pii_request`, `credential_response`, `pii_response` and `max_scan_bytes` override the \[traffic\_guard\] values; empty fields inherit. | | `traffic_guard.profiles[].credential_response` | string | | `credential_request`, `pii_request`, `credential_response`, `pii_response` and `max_scan_bytes` override the \[traffic\_guard\] values; empty fields inherit. | | `traffic_guard.profiles[].pii_response` | string | | `credential_request`, `pii_request`, `credential_response`, `pii_response` and `max_scan_bytes` override the \[traffic\_guard\] values; empty fields inherit. | | `traffic_guard.profiles[].max_scan_bytes` | integer | | `credential_request`, `pii_request`, `credential_response`, `pii_response` and `max_scan_bytes` override the \[traffic\_guard\] values; empty fields inherit. | --- title: "[v2] | Prism docs" description: "The orchestration layer for selector-routed requests (on by default)." url: https://prism.tm/docs/reference/configuration/v2/ --- [Skip to content](https://prism.tm/docs/reference/configuration/v2/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/reference/configuration/v2/#_top) ## On this page - [Overview](https://prism.tm/docs/reference/configuration/v2/#_top) # \[v2\] The orchestration layer for selector-routed requests (on by default). | Key | Type | Default | Description | | --- | --- | --- | --- | | `v2.orchestration.default_strategy` | string | `"auto"` | `default_strategy` applies to orchestrated requests when no request, session, or global control supplies a strategy. Default “auto” (static balanced during cold start). | | `v2.orchestration.max_calls` | integer | `0` | `max_calls` caps total upstream model calls per request. 0 = no numeric cap. | | `v2.orchestration.max_cost_usd` | number | `0` | `max_cost_usd` caps total actual per-request orchestration cost. 0 = no cap. | | `v2.orchestration.max_duration_ms` | integer | `0` | `max_duration_ms` caps total orchestration wall time. 0 = no cap. | | `v2.orchestration.specialists` | array of string | | `specialists` is the ordered candidate list (“provider/model”) for the single bounded escalation stage. Empty disables specialist escalation. | | `[[v2.orchestration.specialist_rules]]` | array of tables | | `specialist_rules` are capability/tier selection rules that resolve escalation candidates dynamically from the live discovered catalog at plan time, so specialist targets survive provider model churn without config edits. Rules append to (never replace) the pinned `specialists` list; both forms may coexist. Empty plus empty `specialists` disables specialist escalation. | | `v2.orchestration.specialist_rules[].min_quality` | number | | `min_quality` is the routing quality-score floor within \[0, 1\]. 0 = no floor. | | `v2.orchestration.specialist_rules[].max_cost_usd` | number | | `max_cost_usd` is the per-request effective-cost ceiling. 0 = no ceiling. | | `v2.orchestration.specialist_rules[].require_tools` | bool | | `require_tools` / `require_json` demand the capability flag even when the request itself did not. | | `v2.orchestration.specialist_rules[].require_json` | bool | | `require_tools` / `require_json` demand the capability flag even when the request itself did not. | | `v2.orchestration.specialist_rules[].min_context_window` | integer | | `min_context_window` demands a known context window of at least this many tokens; candidates with an unknown (0) context window fail the rule. 0 = no constraint. | | `v2.orchestration.specialist_rules[].locality` | string | | `locality` constrains executor locality: “any” (or empty), “local”, or “cloud”. The privacy/budget local-only hard gate still binds first: “cloud” under a local-only constraint resolves nothing. | | `v2.orchestration.effort_escalation_models` | array of string | | `effort_escalation_models` lists candidate IDs (“provider/model”) whose reasoning effort Prism may raise before switching models. Empty disables effort escalation. | --- title: "Exporters | Prism docs" description: "Send Prism's usage to an OpenTelemetry collector such as Langfuse, or spend alerts to Telegram or Slack, with official plugin packages." url: https://prism.tm/docs/web-console/exporters/ --- [Skip to content](https://prism.tm/docs/web-console/exporters/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/web-console/exporters/#_top) - [Set up an exporter](https://prism.tm/docs/web-console/exporters/#set-up-an-exporter) - [What an exporter may do](https://prism.tm/docs/web-console/exporters/#what-an-exporter-may-do) - [OpenTelemetry export](https://prism.tm/docs/web-console/exporters/#opentelemetry-export) - [Spend alerts](https://prism.tm/docs/web-console/exporters/#spend-alerts) ## On this page - [Overview](https://prism.tm/docs/web-console/exporters/#_top) - [Set up an exporter](https://prism.tm/docs/web-console/exporters/#set-up-an-exporter) - [What an exporter may do](https://prism.tm/docs/web-console/exporters/#what-an-exporter-may-do) - [OpenTelemetry export](https://prism.tm/docs/web-console/exporters/#opentelemetry-export) - [Spend alerts](https://prism.tm/docs/web-console/exporters/#spend-alerts) # Exporters An exporter is a plugin package that sends what Prism observes about model attempts to a service you choose. Prism ships two official exporters in the plugin catalog: [OpenTelemetry export](https://prism.tm/docs/web-console/exporters/#opentelemetry-export) and [Spend alerts](https://prism.tm/docs/web-console/exporters/#spend-alerts). Exporters see the same metadata as any observer package: model, provider, token counts, cost, latency and outcome. They never see prompt or response text. ## Set up an exporter [Section titled “Set up an exporter”](https://prism.tm/docs/web-console/exporters/#set-up-an-exporter) 1. Open **Plugins**, find the package in the catalog and install it. 2. Select the package. Fill in its settings and its keys. Keys are stored in Prism’s sealed vault: after you save one, the console shows only that it is saved. Use **Replace** to enter a new value or **Clear** to remove it. 3. Choose **Send test message**. Prism starts the package for this one call, with the settings in the form, and shows the answer of the service, for example “Telegram accepted the test message.” 4. Choose **Enable**. From now on every observed attempt is delivered to the package. The package card shows the result of the last send. When the service refuses a message or span, Prism still marks the delivery as handled and shows the service’s answer with your keys removed from it. Spans and messages that were refused are not sent again, except spend alerts, which are tried again with the next attempt. Removing a package deletes its stored keys. ## What an exporter may do [Section titled “What an exporter may do”](https://prism.tm/docs/web-console/exporters/#what-an-exporter-may-do) - It sends only to the hosts its package declares (for example `api.telegram.org` and `hooks.slack.com`) or to the one address you type into its settings. The address must be `https://` and must not point at the Prism computer itself; addresses on your LAN or tailnet are allowed. - Prism resolves the address before each send and refuses it if the name now points at the Prism computer or at a cloud metadata address. - It sends at most eight requests per delivery, GET or POST, each at most 64 KiB, and Prism does not follow redirects. - It builds its own requests. Prism adds no keys or headers of its own. ## OpenTelemetry export [Section titled “OpenTelemetry export”](https://prism.tm/docs/web-console/exporters/#opentelemetry-export) **OpenTelemetry export** sends one span per model attempt over OTLP/HTTP with JSON bodies to the collector address you enter. | Setting | Value | | --- | --- | | Collector address | The OTLP base address, without `/v1/traces`. Langfuse Cloud: `https://cloud.langfuse.com/api/public/otel` (EU) or `https://us.cloud.langfuse.com/api/public/otel` (US). | | Service name | Optional; the `service.name` of the spans, default `prism`. | | Authorization header | Optional key. For Langfuse: `Basic` followed by base64 of `public_key:secret_key`. | | Extra headers | Optional key: one `Name: value` per line, for collectors that read a key from another header. | Spans follow the OpenTelemetry GenAI conventions (`gen_ai.system`, `gen_ai.request.model`, `gen_ai.usage.input_tokens`, `gen_ai.usage.output_tokens`) and carry Prism’s cost as `prism.cost.*`. The charged cost and the catalog-price estimate are separate attributes. When the charged cost is complete and in US dollars it is also sent as `gen_ai.usage.cost`, which Langfuse shows as the generation’s cost. All attempts of one request are in one trace. Each attempt is sent once, as one span, when it has finished (success, error or cancelled); a streaming attempt that has only started is not sent. Repeated sends of the same attempt keep the same span ID. Langfuse takes OTLP over HTTP with JSON or protobuf bodies (not gRPC) and authenticates with `Authorization: Basic` followed by base64 of `public_key:secret_key`. ## Spend alerts [Section titled “Spend alerts”](https://prism.tm/docs/web-console/exporters/#spend-alerts) **Spend alerts** adds up the day’s model spend and sends a message to a Telegram chat or a Slack channel: - when spend crosses a share of your daily budget, 50, 80 and 100 % unless you choose other thresholds, once per threshold and day; - with the first attempt of a new day, a summary of the previous day. | Setting | Value | | --- | --- | | Channel | Telegram or Slack. | | Telegram chat ID | The chat the bot writes to; add the bot to the chat first. | | Daily budget, Budget currency | Without a budget only the daily summary is sent. | | Alert at | Percent thresholds, default `[50, 80, 100]`. | | Count against the budget | The charged cost (default) or the catalog-price estimate. | | Time zone | When a day starts, for example `Europe/Berlin`; default UTC. | | Telegram bot token | Key, from @BotFather. | | Slack webhook address | Key, an incoming webhook address starting with `https://hooks.slack.com/`. | Charged cost and catalog-price estimates are never added together, and currencies are never converted. The budget is compared with the chosen amount in the budget currency only; spend in other currencies is listed in the message but not counted against the budget. --- title: "Web console overview | Prism docs" description: "What the Prism web console does, how to sign in, and what each section of the menu is for." url: https://prism.tm/docs/web-console/overview/ --- [Skip to content](https://prism.tm/docs/web-console/overview/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/web-console/overview/#_top) - [Sign in](https://prism.tm/docs/web-console/overview/#sign-in) - [Users](https://prism.tm/docs/web-console/overview/#users) - [Sections](https://prism.tm/docs/web-console/overview/#sections) - [OpenAI’s rules](https://prism.tm/docs/web-console/overview/#openais-rules) - [Spending limits](https://prism.tm/docs/web-console/overview/#spending-limits) - [Find a model](https://prism.tm/docs/web-console/overview/#find-a-model) - [Settings saved in the console](https://prism.tm/docs/web-console/overview/#settings-saved-in-the-console) - [Experiments](https://prism.tm/docs/web-console/overview/#experiments) - [Language](https://prism.tm/docs/web-console/overview/#language) ## On this page - [Overview](https://prism.tm/docs/web-console/overview/#_top) - [Sign in](https://prism.tm/docs/web-console/overview/#sign-in) - [Users](https://prism.tm/docs/web-console/overview/#users) - [Sections](https://prism.tm/docs/web-console/overview/#sections) - [OpenAI’s rules](https://prism.tm/docs/web-console/overview/#openais-rules) - [Spending limits](https://prism.tm/docs/web-console/overview/#spending-limits) - [Find a model](https://prism.tm/docs/web-console/overview/#find-a-model) - [Settings saved in the console](https://prism.tm/docs/web-console/overview/#settings-saved-in-the-console) - [Experiments](https://prism.tm/docs/web-console/overview/#experiments) - [Language](https://prism.tm/docs/web-console/overview/#language) # Web console overview The web console is part of Prism: `prism serve` starts it on its own listener, `127.0.0.1:18081` by default, and nothing else has to be installed. The page is `http://127.0.0.1:18081/prism/ui/`. The console listener serves only the console and its API; model requests go to the main address (`127.0.0.1:18000`). The console is on when `[personal] enabled` is true, which is the default. Set `[personal] enabled = false` for a Prism without a console and without user accounts. ## Sign in [Section titled “Sign in”](https://prism.tm/docs/web-console/overview/#sign-in) There are three ways in: | Way | Who | Needs | | --- | --- | --- | | **Sign in with owner secret** | the owner | the console token or `PRISM_ADMIN_TOKEN` | | **Sign in with a passkey** | anyone with an account | a passkey added earlier; HTTPS, or the console opened as `http://localhost:18081` | | Email link | anyone with an account | mail configured in **Configuration → Email** | **Owner secret.** On first start, if `PRISM_ADMIN_TOKEN` is not set, Prism creates a token in `/console-token` (mode 0600) and uses it on every restart. `PRISM_ADMIN_TOKEN` in Prism’s environment replaces the file. `prism console` prints the URL and the token: 18081/prism/ui/ ``` cd ~/.prism && prism console# token: 6f1c… ``` The token stays in that browser tab until you sign out. **Passkey.** After signing in, add a passkey from the profile menu. Passkeys are bound to the console’s host name: open a loopback console as `http://localhost:18081/prism/ui/`, not `127.0.0.1` (an IP address cannot hold passkeys). For a console on another address, see [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/#passkeys-and-sign-in-links). **Email link.** With mail set up, the sign-in page sends a one-time link to the account’s address. The link works once and for 15 minutes. A session ends after 12 hours without use or 30 days after sign-in, whichever comes first (`[personal] session_idle_timeout`, `session_max_lifetime`). ## Users [Section titled “Users”](https://prism.tm/docs/web-console/overview/#users) The owner invites people under **Users and budgets → Members**. An invitation link works once and for 72 hours. Prism Free allows three people, the owner included; Pro allows up to 5, Teams up to 10 and Enterprise its paid seats. A pending invitation, agents and API keys take no seat. A signed-in user who is not the owner sees only their own connections, keys, requests and profile. ## Sections [Section titled “Sections”](https://prism.tm/docs/web-console/overview/#sections) | Menu item | What it is for | | --- | --- | | **Overview** | spend for the period, quotas of subscription accounts, subscription prices, client addresses | | **AI providers** | connect API keys, OAuth subscriptions and your own endpoints; test a connection; models of each connection, with a search; who may use it; keys from 1Password | | **Compute providers** | model servers and machines Prism starts and stops (Pro and above); see [Managed inference](https://prism.tm/docs/managed-inference/overview/); local model servers (the former `[[local]]` entries), while there are any | | **OAuth providers** | sign in to subscription accounts, their quotas; the **Auth files** tab: sign-in files of subscriptions, refresh, rename, delete, import a file from Codex CLI, Claude Code or Gemini CLI | | **Routing** | default strategy and model, seller chain, account selection, routing evaluation, tool-output compression | | **Experiments** | experiments and their goals, shown once experiments are available; see [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) | | **Agents** | traffic, cost and models per client application; sessions | | **Keys** | your Prism keys, agent keys and signed-in apps with requests and spend this month; issue, rename, replace, revoke; a key’s own routing (owner); in an organization, members’ keys by person | | **Users and budgets** | members and invitations, roles, spending limits, provider quotas | | **Logs** | find a trace by ID | | **Usage history** | spend over time, the cost of your own model machines and the machine budget ([machine cost](https://prism.tm/docs/managed-inference/machine-cost/)), analysis by provider, model and application, the request journal (**Request details**), prices | | **Configuration** | settings saved to the console overlay, API keys for clients, learned rules, operator tools, restart and stop | | **Diagnostics** | the status snapshot, the capability manifest, a routing preview for a request | | **Plugins** | install and manage extension packages, their settings and panels (owner only); see [Installed packages](https://prism.tm/docs/web-console/plugins/) | | **Versions** | installed and latest versions, updates, release components | | **Quick start** | client addresses and ready-made client settings, agent skills, a media workspace | The search field (⌘K or Ctrl+K) finds sections, settings and actions by name. ### OpenAI’s rules [Section titled “OpenAI’s rules”](https://prism.tm/docs/web-console/overview/#openais-rules) OpenAI’s Usage Policies (from 2026-11-20) ask a service that gives people its models to name the person behind each request and to act on that one person when OpenAI reports a violation. In every edition, whenever the web console or the managed listener is on, Prism does this: - **SafetyID.** Every chat or Responses request that reaches an OpenAI model through an API key carries a `safety_identifier` for its person or service account: `prism-sid-` and a hash that carries no name, address or ID. A client’s own value is replaced. Requests to a Codex or ChatGPT subscription account carry none. - **Refusals are not passed on.** When an OpenAI model refuses a request, Prism does not send it to another OpenAI route (another account, a reseller); other companies’ models may still answer it. - **Finding the person through the API.** The installation owner can look a SafetyID up with `POST /prism/personal/safety-id/lookup` (`{"safety_identifier": "prism-sid-…"}`, owner token on loopback); the answer names the person or service account it belongs to. Teams and Enterprise add what an organization needs to act on one person: - **Finding the person in the console.** **Users and budgets → Activity log** has a lookup for the owner and administrators: paste the SafetyID from OpenAI’s message to see the person (address, team, OpenAI refusals over 30 days) or the service account. Each lookup goes into the activity log; the person found does not see it. - **Refusals per person.** The members table has an **OpenAI refusals** column for the period shown, and the person card shows the last 30 days. - **Suspension.** On the person card the owner or an administrator can suspend a person: Prism then sends none of their requests to OpenAI models, by any of their keys, while other companies’ models keep serving them. A request only OpenAI models could serve is refused with `403 openai_access_suspended`. Keys, role, team and history stay, the person can still sign in, and the suspension can be lifted at any time. Both are recorded in the activity log. ### Spending limits [Section titled “Spending limits”](https://prism.tm/docs/web-console/overview/#spending-limits) **Users and budgets → Budgets** edits the spending limits ([configuration reference](https://prism.tm/docs/reference/configuration/budget/)). Each limit has a period (hour, day, week, month), an amount in US dollars, an optional app (only requests with that `X-Prism-App` count) and the point where the period starts, in UTC. Its thresholds say what Prism does at a share of the amount: a warning header, cheaper models, local models only, or refusing requests with 429. The list is saved whole and applies after a restart; while the saved limits are the running ones, each shows what has been spent in the current period. ## Find a model [Section titled “Find a model”](https://prism.tm/docs/web-console/overview/#find-a-model) Above the models of a connection on **AI providers** is a search field. Type what you need, a name or a description such as “cheap, for code, reads images”. Models whose name, description or tier contain every word appear at once, with the matches in the list. Prism then adds models close in meaning, marked **by meaning**: a local embeddings model ranks them by what their row says and by their price among the connection’s models. The query and the model descriptions do not leave your machines; Prism uses the embeddings model that semantic memory uses (**Experiments → Local embeddings**) and never a cloud one. The first search reads every model of the connection once, which on a CPU can take a minute or two for several hundred models; the line under the field shows how far it got, and later searches are immediate. Without a local embeddings model the search works by words, and the line links to the card that installs one. While a query is typed the list is sorted by match; it can also be sorted by name, price or speed. ## Settings saved in the console [Section titled “Settings saved in the console”](https://prism.tm/docs/web-console/overview/#settings-saved-in-the-console) Settings are changed in the console. On its first start after the update, Prism moves the settings from `config.toml` into `/settings.toml` once and keeps a copy of the old file; keys left in `config.toml` then take no effect, except the few Prism needs to start. **Configuration**, **Routing**, **AI providers**, **Compute providers** and **Users and budgets → Budgets** write to that store. Webhook, fleet and Laya keys are stored write-only in a sealed vault and are never shown again; without a stored value, the environment variable the configuration names still works. Prism reads its configuration once: a saved value takes effect at the next restart. **Restart Prism** is available when the service that runs Prism starts it again after a console restart (exit code 75) and leaves it stopped after a stop (exit code 0), unless `[console] allow_restart = false`; see [Update Prism](https://prism.tm/docs/getting-started/update/#turn-on-updates). ### Experiments [Section titled “Experiments”](https://prism.tm/docs/web-console/overview/#experiments) **Experiments** in the sidebar (shown once experiments are available) turns on features that run beside routing and change no answer: the model choice check, background answer review, secret detection, request skill detection and user reaction scoring with Laya, semantic route memory and local embeddings. Each has a switch and the values it needs. Each experiment that collects something has a **goal** on its card on the Experiments overview: how much it has collected of the goal, and when it will get there at the last week’s pace. Change the goal on the card. When a 50/50 test reaches its goal it stops, new conversations go back to the ordinary choice, and its result stays on the card; raise the goal to continue it. A background experiment that reaches its goal keeps recording until you switch it off. Prism tells you in the notification bell (category **Experiments**; in Teams and Enterprise also by email if you choose it) when an experiment reaches its goal or a safety rule stops it, so you do not have to check. Local embeddings collect nothing and have no goal. Each card also says which decision the experiment serves and what to do once it reaches its goal, and holds a **Task** field for your own link or tracker number; the task is shown on the card and in the experiment’s notifications. ## Language [Section titled “Language”](https://prism.tm/docs/web-console/overview/#language) The console is available in English, Russian, Chinese (Simplified), Spanish, German, French, Ukrainian, Hebrew and Italian. Each person chooses the language in the profile menu; the choice is saved with the account. --- title: "Installed packages | Prism docs" description: "Install and manage Prism extension packages and open their panels in the web console." url: https://prism.tm/docs/web-console/plugins/ --- [Skip to content](https://prism.tm/docs/web-console/plugins/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/web-console/plugins/#_top) - [Install from the catalog](https://prism.tm/docs/web-console/plugins/#install-from-the-catalog) - [Install a package from a file](https://prism.tm/docs/web-console/plugins/#install-a-package-from-a-file) - [Settings, updates and lifecycle](https://prism.tm/docs/web-console/plugins/#settings-updates-and-lifecycle) - [Package panels](https://prism.tm/docs/web-console/plugins/#package-panels) ## On this page - [Overview](https://prism.tm/docs/web-console/plugins/#_top) - [Install from the catalog](https://prism.tm/docs/web-console/plugins/#install-from-the-catalog) - [Install a package from a file](https://prism.tm/docs/web-console/plugins/#install-a-package-from-a-file) - [Settings, updates and lifecycle](https://prism.tm/docs/web-console/plugins/#settings-updates-and-lifecycle) - [Package panels](https://prism.tm/docs/web-console/plugins/#package-panels) # Installed packages **Plugins** is available to the installation owner. It lists installed packages, their versions, publisher, permissions and current status. A package can add providers or a panel to the running Prism instance. ## Install from the catalog [Section titled “Install from the catalog”](https://prism.tm/docs/web-console/plugins/#install-from-the-catalog) **Available from prism.tm/plugins** lists the packages of the signed catalog Prism reads from `prism.tm` (`[catalog] plugins_url`) shortly after start and then every hour; **Check now** reads it at once. Choose **Install** next to a package. Packages from the catalog come from the built-in publisher, so no publisher needs to be trusted first. After each read Prism installs the newest version it can run of every package you have enabled, with the settings you saved; see [Provider packages](https://prism.tm/docs/web-console/provider-packages/). With `[catalog] plugins_url = "off"` Prism reads no catalog, and packages are installed from a file as below. ## Install a package from a file [Section titled “Install a package from a file”](https://prism.tm/docs/web-console/plugins/#install-a-package-from-a-file) 1. Obtain the package archive and its publisher’s public key from a source you trust. Native executable packages run with the operating-system permissions of the Prism service. 2. Open **Plugins** and choose **Trust publisher**. Enter the publisher ID, Base64-encoded Ed25519 public key and permitted package namespaces supplied by the publisher. Existing trusted publishers appear below the package list. 3. Choose **Install file…** and select the signed `.tar.gz` package. The compressed archive must be no larger than 64 MiB. An unsigned development package requires the explicit development option. 4. Select the installed package, review its permissions and fill in its activation settings. Choose **Enable** to activate it. Prism checks the archive, signature, compatibility and declared capabilities. If a package is rejected, the page shows the error. Fields marked as secret are not accepted by the public settings profile. Configure provider credentials through the normal connection and authorization pages. ## Settings, updates and lifecycle [Section titled “Settings, updates and lifecycle”](https://prism.tm/docs/web-console/plugins/#settings-updates-and-lifecycle) **Installed version** is the archive currently selected for the package. **Active version** is the version serving its enabled contributions. Installing an update can leave the previous version active until you apply the new version and its settings. Package activation settings take effect through **Apply and activate**, which starts a new activation. Some fields use a JSON editor when their public schema does not fit a simple input. Optional fields have an explicit inclusion control. Settings inside a package panel are separate: they invoke the package’s named state action. Use **Restart** to replace the current worker, or **Disable** to stop its contributions while retaining its settings and state. The page offers separate rollback actions for the installed archive and the active version when a previous version is available. Disable a package before choosing **Remove**. If another owner operation changed the package while the page was open, refresh before applying your change. The server rejects stale changes. ## Package panels [Section titled “Package panels”](https://prism.tm/docs/web-console/plugins/#package-panels) An active package can add tabs containing status indicators, metrics, tables, charts, settings and named actions. Prism renders these from validated package descriptions. Panel text follows the console language when the package supplies that translation, with English as its fallback. **Refresh panel** reads current data. Changing, disabling or restarting the package invalidates an older open panel; refresh the package before using it again. Missing measurements are shown as unknown. Large exact totals may be displayed as text to preserve their precision. If an action’s response is lost, its result can be uncertain. **Check same action** checks using the original request identity. An unresolved result remains uncertain; do not assume that the action failed or submit a new copy. Within the same open console session, a previous action remains flagged if the package was restarted or updated meanwhile. Read the current panel and acknowledge that review before submitting another action. Prism does not replay a request against a different activation. The browser keeps the check identity only in memory; after reloading the page or signing out, inspect current plugin state before submitting another operation. The independent usage observer example includes a panel for its latest 32 observed attempts. It shows measured token subtotals, missing measurements, delivery gaps and a bounded timeline. Wallet charges, local accounting units and catalog estimates are separate. Its totals describe the retained window; they are not lifetime usage totals or replacements for Prism’s budgets. --- title: "Provider packages | Prism docs" description: "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." url: https://prism.tm/docs/web-console/provider-packages/ --- [Skip to content](https://prism.tm/docs/web-console/provider-packages/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/web-console/provider-packages/#_top) - [Amazon Bedrock](https://prism.tm/docs/web-console/provider-packages/#amazon-bedrock) - [Google Vertex AI](https://prism.tm/docs/web-console/provider-packages/#google-vertex-ai) - [Meta Muse Code](https://prism.tm/docs/web-console/provider-packages/#meta-muse-code) - [Azure OpenAI / Foundry](https://prism.tm/docs/web-console/provider-packages/#azure-openai--foundry) - [Cloudflare Workers AI](https://prism.tm/docs/web-console/provider-packages/#cloudflare-workers-ai) - [Z.ai](https://prism.tm/docs/web-console/provider-packages/#zai) - [MiniMax](https://prism.tm/docs/web-console/provider-packages/#minimax) - [Novita AI](https://prism.tm/docs/web-console/provider-packages/#novita-ai) - [Parasail](https://prism.tm/docs/web-console/provider-packages/#parasail) - [SambaNova Cloud](https://prism.tm/docs/web-console/provider-packages/#sambanova-cloud) - [Vercel AI Gateway](https://prism.tm/docs/web-console/provider-packages/#vercel-ai-gateway) - [SubQ](https://prism.tm/docs/web-console/provider-packages/#subq) - [Inception](https://prism.tm/docs/web-console/provider-packages/#inception) - [Command Code](https://prism.tm/docs/web-console/provider-packages/#command-code) ## On this page - [Overview](https://prism.tm/docs/web-console/provider-packages/#_top) - [Amazon Bedrock](https://prism.tm/docs/web-console/provider-packages/#amazon-bedrock) - [Google Vertex AI](https://prism.tm/docs/web-console/provider-packages/#google-vertex-ai) - [Meta Muse Code](https://prism.tm/docs/web-console/provider-packages/#meta-muse-code) - [Azure OpenAI / Foundry](https://prism.tm/docs/web-console/provider-packages/#azure-openai--foundry) - [Cloudflare Workers AI](https://prism.tm/docs/web-console/provider-packages/#cloudflare-workers-ai) - [Z.ai](https://prism.tm/docs/web-console/provider-packages/#zai) - [MiniMax](https://prism.tm/docs/web-console/provider-packages/#minimax) - [Novita AI](https://prism.tm/docs/web-console/provider-packages/#novita-ai) - [Parasail](https://prism.tm/docs/web-console/provider-packages/#parasail) - [SambaNova Cloud](https://prism.tm/docs/web-console/provider-packages/#sambanova-cloud) - [Vercel AI Gateway](https://prism.tm/docs/web-console/provider-packages/#vercel-ai-gateway) - [SubQ](https://prism.tm/docs/web-console/provider-packages/#subq) - [Inception](https://prism.tm/docs/web-console/provider-packages/#inception) - [Command Code](https://prism.tm/docs/web-console/provider-packages/#command-code) # Provider packages Some providers are added as packages from the plugin catalog rather than built into Prism. Open **Plugins**, find the provider in the catalog and choose **Install**. Most packages are enabled with their own address and need no settings; Azure needs your resource’s address and deployments first, Cloudflare your account’s address. Then add the provider in **AI providers** with your API key, as you would a built-in one. Prism stores the key in its sealed vault and sends it only to the provider’s address. The models you can use are read from your account when you connect. The package also declares each model’s context size and whether it streams, calls tools, returns structured output and reads images. A model the provider adds later can be used at once, but without tools or streaming until a newer package version declares it. Prism keeps installed packages current: after it reads the catalog (shortly after start, then every hour) it installs the newest version this Prism can run of every package you have enabled, with the settings you saved. A version that would send a connected provider’s key to another address or change how it signs in is not installed by itself; **Plugins** then offers it as an update for you to decide. When a package declares several providers that take the same key at the same address, you enter the key once. Prism stores it for each of them, a new key replaces it for all of them, and removing the connection removes all of them. **AI providers** shows them as one connection with all their models. A provider that a package update adds next to a connected one gets the key on its own. In an organization, a member connects their own account of an installed package on their page, the same way: Amazon Bedrock and Google Vertex AI with their sign-in forms, the others with an API key. Prism prices a model from its price catalog when the model is listed there. A package may declare a model’s price when no catalog lists the provider (SubQ); a new package version then changes the price without a Prism update. A model with neither has its requests recorded as unpriced. ## Amazon Bedrock [Section titled “Amazon Bedrock”](https://prism.tm/docs/web-console/provider-packages/#amazon-bedrock) The chat models of your AWS account in one Bedrock region, Claude included: the system inference profiles (`us.…`, `eu.…`, `global.…`) and the on-demand base models. Install the package, choose the **Region** in its settings (us-east-1 by default) and add **Amazon Bedrock** in **AI providers**. Choose how to sign in: a **Bedrock API key** (Amazon Bedrock → API keys in the AWS console), or an **IAM access key** of a user whose policy allows `bedrock:InvokeModel`, `bedrock:InvokeModelWithResponseStream`, `bedrock:ListFoundationModels` and `bedrock:ListInferenceProfiles`. Prism reads the region’s model list when you connect, so wrong keys are refused then. Long agent conversations are supported. To move to another region, remove the package and install it again. ## Google Vertex AI [Section titled “Google Vertex AI”](https://prism.tm/docs/web-console/provider-packages/#google-vertex-ai) The Gemini and Claude models of your Google Cloud project through Vertex AI. Create a service account with the **Vertex AI User** role and a JSON key for it (IAM & Admin → Service accounts → Keys → Add key → JSON), install the package, choose the **Region** in its settings (global by default) and add **Google Vertex AI** in **AI providers** by pasting the whole JSON key; the project comes from the key. A Claude model answers once it is enabled for the project in Vertex AI’s Model Garden. Not every region serves every Claude model: one the chosen region does not serve answers 404, and global serves the most. ## Meta Muse Code [Section titled “Meta Muse Code”](https://prism.tm/docs/web-console/provider-packages/#meta-muse-code) Meta’s Muse Spark and Muse Wonder models through your Meta account, signed in the way the Muse Code app signs in. Install the package; it needs no settings. Then choose **\+ Meta Muse Code** under **Connect an account** on the **Account quotas** page. Prism shows a code and a link to Meta’s page with the code filled in; open it, confirm, and the account appears within a few seconds. Prism then asks Meta for the account’s Muse Code key and sends every request with that key. Meta returns the same key each time and states no lifetime for it, so Prism keeps it until you sign in again. Only the chat models of the account’s catalog are added. The `-contributor` models are Meta’s discounted mode, in which Meta may use the prompts and answers to train its models. Meta reports no usage limits for the key, so the account has no quota bars. A Muse Code subscription is not required; whether Meta charges requests to a card on the account is Meta’s billing, which Prism does not see. ## Azure OpenAI / Foundry [Section titled “Azure OpenAI / Foundry”](https://prism.tm/docs/web-console/provider-packages/#azure-openai--foundry) The model deployments of your own Azure OpenAI or Microsoft Foundry resource: OpenAI models and the other models Azure sells (DeepSeek, Llama, Grok and more). After installing, open the package on the **Plugins** page and fill in two settings before enabling it: - **Resource address**: your resource’s v1 address, `https://.openai.azure.com/openai/v1` or `https://.services.ai.azure.com/openai/v1`. Prism accepts only addresses on these two Azure domains. - **Deployments**: a JSON list of your deployment names as they appear in the Foundry portal, for example `["gpt-prod", "deepseek-r1"]`. A name alone means the deployment streams and can call tools. To say exactly what it supports, write an object instead, such as `{"id": "gpt-prod", "context_window": 400000, "supports_tools": true, "supports_streaming": true, "supports_vision": true}`. Then add **Azure OpenAI / Foundry** in **AI providers** with the resource’s API key. Azure lists no deployments over its API, so connecting does not check the key; a wrong key shows on the first request. To move to another resource, remove the package and install it again. ## Cloudflare Workers AI [Section titled “Cloudflare Workers AI”](https://prism.tm/docs/web-console/provider-packages/#cloudflare-workers-ai) The Workers AI models of your Cloudflare account. In the Cloudflare dashboard, **AI → Workers AI → Use REST API** shows your **Account ID** and creates an API token. Install the package, open it on the **Plugins** page and fill in the **Account address**, `https://api.cloudflare.com/client/v4/accounts//ai/v1`, then add **Cloudflare Workers AI** in **AI providers** with the token. Prism accepts only addresses on `api.cloudflare.com`. ## Z.ai [Section titled “Z.ai”](https://prism.tm/docs/web-console/provider-packages/#zai) GLM models from Z.ai’s own API. The package adds two providers: **Z.ai** (`api.z.ai`, a key from the Z.ai platform) and **Zhipu AI (China)** (`open.bigmodel.cn`, a Zhipu key). The GLM Coding Plan is not supported: Z.ai allows it only in its listed coding tools. Z.ai’s own model list gives only model names, so the package declares each model’s price (from models.dev, at its most expensive context tier), context length and output limit. A model Z.ai adds later appears without them until the package is updated. ## MiniMax [Section titled “MiniMax”](https://prism.tm/docs/web-console/provider-packages/#minimax) MiniMax models. Two providers: **MiniMax** (`api.minimax.io`) and **MiniMax (China)** (`api.minimax.cn`). ## Novita AI [Section titled “Novita AI”](https://prism.tm/docs/web-console/provider-packages/#novita-ai) Open models hosted by Novita AI (DeepSeek, GLM, Qwen, Kimi and others). Novita’s model list is public, so connecting cannot check the key; a wrong key shows as an error on the first request. ## Parasail [Section titled “Parasail”](https://prism.tm/docs/web-console/provider-packages/#parasail) Open models served by Parasail. Parasail publishes no public catalog, so its models carry no declared streaming or tool support yet. ## SambaNova Cloud [Section titled “SambaNova Cloud”](https://prism.tm/docs/web-console/provider-packages/#sambanova-cloud) Models SambaNova Cloud serves on its own chips. As with Novita, the model list is public and a wrong key shows on the first request. ## Vercel AI Gateway [Section titled “Vercel AI Gateway”](https://prism.tm/docs/web-console/provider-packages/#vercel-ai-gateway) Vercel’s gateway resells most providers’ models under one key; model IDs carry the maker, such as `anthropic/claude-sonnet-5.5`. Its model list is public too, so a wrong key shows on the first request. ## SubQ [Section titled “SubQ”](https://prism.tm/docs/web-console/provider-packages/#subq) SubQ’s decision models `subq-snap-1.1` and `subq-snap-preview` through its Decisions API (`https://api.subq.ai/v1`). They do not write text: for each question about a text they pick one of the answers you describe, with probabilities. Prism uses them as System One judges, for example in the model choice check, and through `POST /v1/systemone` with the model `ext.tm.prism.subq.subq::subq-snap-1.1`. They never receive chat requests, so its card has no **Test request** button. Install the package and add **SubQ** in **AI providers** with your SubQ API key. SubQ lists its models without a key, so connecting and **Test connection** ask it one short decision (about a hundred input tokens) to check the key; a refused key and an account without credits are reported. The package declares the price, $0.05 per 1M input tokens, with no output tokens. From package 1.2.0 Prism takes the models from SubQ’s own list, so a model SubQ adds appears without a new package version; it has no price until a package version declares one. ## Inception [Section titled “Inception”](https://prism.tm/docs/web-console/provider-packages/#inception) Inception’s Mercury models (`https://api.inceptionlabs.ai/v1`): diffusion language models that write a whole answer at once and refine it, which makes them fast. The package declares the chat models Mercury 3, Mercury 2.5 and Mercury 2, with tool calls and structured output, and their prices, since no price catalog lists Inception: Mercury 3 at $0.10 per 1M input tokens and $0.35 per 1M output tokens (Inception’s launch price), Mercury 2.5 at $0.20 and $0.75, Mercury 2 at $0.25 and $0.75. Inception’s model list is public, so a wrong key shows on the first request. From package version 1.1.0 it also adds **Inception Mercury Decide**, a System One judge like SubQ: it answers yes/no, choice and score questions about a text, with probabilities. It takes the Inception key, so it needs no connection of its own: `mercury-decide` appears in the Inception connection, marked “for decisions”, and connecting asks it one short decision to check the key. Choose `mercury-decide` as the judge of the model choice check, or call it through `POST /v1/systemone`. Only input tokens are billed, $0.02 per 1M (Inception’s launch price). Mercury Edit and fill-in-the-middle use other endpoints and are not part of the package. ## Command Code [Section titled “Command Code”](https://prism.tm/docs/web-console/provider-packages/#command-code) About a hundred models from many labs through one Command Code key (`https://api.commandcode.ai/provider/v1`): GPT, Gemini, DeepSeek, GLM, Kimi, Qwen, Grok and others over chat completions, twelve Claude models over Anthropic Messages, and TypeSafe’s Jev decision model. Install the package and add **Command Code** in **AI providers** with your Command Code API key; the key serves all three providers, so it is entered once and shown as one connection. Command Code serves Claude only over Messages, so Claude is a provider of its own (**Command Code Claude**); Prism translates for OpenAI chat clients. **Command Code Jev** is a System One judge, like SubQ. The package declares every model and its price, Command Code’s MOAT member price: eight models (GLM-5.3, GLM-5.3 Flash and FlashX, DeepSeek V4.1 Flash, Ling 3.1 Flash and Flash 1019, Kimi K3 and K3.1 Pro) cost more without a MOAT membership than Prism shows. A model priced by context size or by DeepSeek’s peak hours is declared at its most expensive band; cached input is counted at the input price. Command Code’s model list is public, so a wrong key shows on the first request. It needs Prism 0.70.1 or later. --- title: "Open the console from another machine | Prism docs" description: "Make the web console reachable over a tailnet, a LAN or HTTPS, or through an SSH tunnel." url: https://prism.tm/docs/web-console/remote-access/ --- [Skip to content](https://prism.tm/docs/web-console/remote-access/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/web-console/remote-access/#_top) - [SSH tunnel (no configuration change)](https://prism.tm/docs/web-console/remote-access/#ssh-tunnel-no-configuration-change) - [A tailnet or LAN address over HTTP](https://prism.tm/docs/web-console/remote-access/#a-tailnet-or-lan-address-over-http) - [HTTPS](https://prism.tm/docs/web-console/remote-access/#https) - [Passkeys and sign-in links](https://prism.tm/docs/web-console/remote-access/#passkeys-and-sign-in-links) - [Who can do what from another machine](https://prism.tm/docs/web-console/remote-access/#who-can-do-what-from-another-machine) ## On this page - [Overview](https://prism.tm/docs/web-console/remote-access/#_top) - [SSH tunnel (no configuration change)](https://prism.tm/docs/web-console/remote-access/#ssh-tunnel-no-configuration-change) - [A tailnet or LAN address over HTTP](https://prism.tm/docs/web-console/remote-access/#a-tailnet-or-lan-address-over-http) - [HTTPS](https://prism.tm/docs/web-console/remote-access/#https) - [Passkeys and sign-in links](https://prism.tm/docs/web-console/remote-access/#passkeys-and-sign-in-links) - [Who can do what from another machine](https://prism.tm/docs/web-console/remote-access/#who-can-do-what-from-another-machine) # Open the console from another machine By default the console listens on `127.0.0.1:18081` and only a browser on the Prism machine can open it. Choose one of three ways to reach it from another machine. No reverse proxy is needed for any of them. ## SSH tunnel (no configuration change) [Section titled “SSH tunnel (no configuration change)”](https://prism.tm/docs/web-console/remote-access/#ssh-tunnel-no-configuration-change) Keep the console on loopback and forward its port from the machine with the browser: Terminal window ``` ssh -N -L 18081:127.0.0.1:18081 user@prism-host ``` Open `http://localhost:18081/prism/ui/` on that machine and sign in with the token from `prism console` on the Prism host. Closing the SSH session closes the access. Because the address is `localhost`, passkeys work too. ## A tailnet or LAN address over HTTP [Section titled “A tailnet or LAN address over HTTP”](https://prism.tm/docs/web-console/remote-access/#a-tailnet-or-lan-address-over-http) Bind the console to an address of the Prism machine and confirm that the network is trusted: ``` [console]bind = "100.64.0.10:18081" # this machine's tailnet addressallow_plaintext = true # only on a network you trust, such as a WireGuard tailnet ``` Restart Prism. `prism console` now prints `http://100.64.0.10:18081/prism/ui/`. The same settings are under **Configuration → Network and access** (**Console address**, **Allow plaintext HTTP outside loopback**). Plain HTTP is accepted without `allow_plaintext` only on loopback. Private address ranges (LAN, tailnet, link-local) do not count as encrypted. A non-loopback bind without TLS and without `allow_plaintext = true` stops Prism from starting: ``` [console] bind "192.0.2.10:18081" serves the admin console in plaintext on a non-loopback address: set [console] tls_cert and tls_key, bind a loopback address, or acknowledge the exposure with [console] allow_plaintext = true ``` ## HTTPS [Section titled “HTTPS”](https://prism.tm/docs/web-console/remote-access/#https) Give the console a certificate and key in PEM format (both or neither): ``` [console]bind = "console.example.net:18443"tls_cert = "/etc/prism/console.crt"tls_key = "/etc/prism/console.key" ``` With `tls_cert` set, `prism console` prints an `https://` URL. ## Passkeys and sign-in links [Section titled “Passkeys and sign-in links”](https://prism.tm/docs/web-console/remote-access/#passkeys-and-sign-in-links) Passkeys need a secure context and a host name: - a loopback console opened as `http://localhost:18081` (or through an SSH tunnel to `localhost`); - an HTTPS console with a host name. Set `[console] public_url` to the origin people open, for example `https://console.example.net:18443`, when it differs from the bind. Passkeys are bound to that host; changing it later can make existing passkeys unusable. An HTTP console on a tailnet or LAN address offers no passkeys. Owner-secret sign-in works there. Email links and invitation links need one more setting, because the session cookie is normally sent over HTTPS only: ``` [personal]trusted_http_origin = "http://100.64.0.10:18081" [mail]link_base_url = "http://100.64.0.10:18081" ``` `trusted_http_origin` names one exact HTTP origin on which Prism issues session cookies without the `Secure` flag. It does not open a listener; the console still needs `allow_plaintext = true` for that bind. Sign-in requests on any other HTTP address are refused. Browsers do not separate cookies by port, so use a host whose other HTTP services you trust. Changing it needs a restart. ## Who can do what from another machine [Section titled “Who can do what from another machine”](https://prism.tm/docs/web-console/remote-access/#who-can-do-what-from-another-machine) Reaching the console address is not enough to use it. Every data request needs the owner token or a signed-in session, a matching browser `Origin`, and JSON bodies without unknown fields. The main address (`:18000`) answers `403 local access required` to the console pages and API from another machine; only the console listener serves them to remote browsers. --- title: "Console troubleshooting | Prism docs" description: "What to check when the web console does not open, refuses the token or cannot restart Prism." url: https://prism.tm/docs/web-console/troubleshooting/ --- [Skip to content](https://prism.tm/docs/web-console/troubleshooting/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/web-console/troubleshooting/#_top) ## On this page - [Overview](https://prism.tm/docs/web-console/troubleshooting/#_top) # Console troubleshooting A console problem does not stop model routing. If the console listener cannot bind its address, load its TLS certificate or serve, Prism keeps answering on the main address, logs the error and reports it in `/prism/status`: Terminal window ``` curl -s http://127.0.0.1:18000/prism/status | python3 -c 'import json,sys; print(json.load(sys.stdin).get("console"))'# {'state': 'unavailable', 'reason': 'bind_failed'} ``` `reason` is `bind_failed`, `tls_failed` or `serve_failed`; a working console reports `state: running`. Prism does not switch to another port or fall back to plain HTTP. Fix `[console] bind` or the TLS files and restart Prism. `prism console` prints the configured address and token; it does not check that the console is running. | Symptom | Cause | What to do | | --- | --- | --- | | Connection refused on port 18081, while `curl http://127.0.0.1:18000/health` answers | the console listener is not running: `[console] enabled = false`, `[personal] enabled = false`, the bind failed, or the browser dials another address than `bind` | run `prism console` in the config directory to see the address; check `/prism/status` as above; check `[console]` and restart | | `403 local access required` on `/prism/ui/` from another machine | the URL points at the main address (`:18000`), not the console port | open the address `prism console` prints | | `404` on `/prism/ui/` | `[personal] enabled = false`: no console | set `[personal] enabled = true` (the default) and restart | | The token is refused | `PRISM_ADMIN_TOKEN` in Prism’s environment replaces the token file, or the tab keeps an old value | run `prism console` for the token Prism uses; sign out in the page and paste it again | | Prism does not start: `serve failed: console token "…/console-token" must not be readable by group or others (chmod 600)` | the token file was created or copied with open permissions | `chmod 600` the file and restart, or delete it so Prism creates a new one | | Prism does not start: `[console] bind "…" serves the admin console in plaintext on a non-loopback address: …` | a non-loopback bind without TLS | set `tls_cert` and `tls_key`, bind a loopback address, or set `allow_plaintext = true` on a trusted network ([remote access](https://prism.tm/docs/web-console/remote-access/)) | | No passkey option on the sign-in page | the console is opened as `127.0.0.1` or over HTTP on a network address | open it as `http://localhost:18081`, through an SSH tunnel, or over HTTPS with a host name | | Email sign-in link does not sign in on an HTTP console | the session cookie needs HTTPS | set `[personal] trusted_http_origin` to the exact HTTP origin ([remote access](https://prism.tm/docs/web-console/remote-access/#passkeys-and-sign-in-links)) | | **Restart Prism** is missing or disabled | Prism was started by hand, or its service does not start it again on exit code 75 and keep it stopped on exit code 0, or `[console] allow_restart = false` is set | run Prism with the unit from the installer or the Debian package (see [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/#restart-rules)), or remove `allow_restart = false` and restart Prism on the server once | | After **Stop**, Prism starts again 5 seconds later | the systemd unit lacks `RestartPreventExitStatus=0` | add `RestartForceExitStatus=75` and `RestartPreventExitStatus=0` to `[Service]`, then `systemctl --user daemon-reload` ([restart rules](https://prism.tm/docs/getting-started/run-as-a-service/#restart-rules)) | | A saved setting has no effect | Prism reads its configuration once at start | restart Prism; a value saved in the console wins over the same key in `config.toml` | Service logs: `journalctl --user -u prism` (installer, Linux), `~/Library/Logs/prism/prism.err.log` (macOS), `journalctl -u prism` (Debian package). --- title: "Updates in the console | Prism docs" description: "The Versions page, its release source, mirrors, tokens and release components." url: https://prism.tm/docs/web-console/updates/ --- [Skip to content](https://prism.tm/docs/web-console/updates/#_top) Menu - Getting started - [Prism documentation](https://prism.tm/docs/) - [Install Prism](https://prism.tm/docs/getting-started/install/) - [Quick start](https://prism.tm/docs/getting-started/quick-start/) - [Run as a service](https://prism.tm/docs/getting-started/run-as-a-service/) - [Update Prism](https://prism.tm/docs/getting-started/update/) - [Backup and migration](https://prism.tm/docs/getting-started/backup-and-migration/) - [Uninstall](https://prism.tm/docs/getting-started/uninstall/) - Connect clients - [Connect clients](https://prism.tm/docs/clients/) - [Agent self-description](https://prism.tm/docs/clients/agent-self-description/) - [In-chat /prism commands](https://prism.tm/docs/clients/in-chat-commands/) - [Sign in from an app](https://prism.tm/docs/clients/sign-in-from-an-app/) - API reference - [Endpoints](https://prism.tm/docs/api/endpoints/) - [Ingress dialects](https://prism.tm/docs/api/dialects/) - [Choosing a model](https://prism.tm/docs/api/choosing-a-model/) - [Headers](https://prism.tm/docs/api/headers/) - [Errors, timeouts and failover](https://prism.tm/docs/api/errors/) - [Parameter compatibility](https://prism.tm/docs/api/parameter-compatibility/) - [Local control API](https://prism.tm/docs/api/control-api/) - [Listeners and authentication](https://prism.tm/docs/api/listeners-and-auth/) - Web console - [Web console overview](https://prism.tm/docs/web-console/overview/) - [Open the console from another machine](https://prism.tm/docs/web-console/remote-access/) - [Updates in the console](https://prism.tm/docs/web-console/updates/) - [Console troubleshooting](https://prism.tm/docs/web-console/troubleshooting/) - [Installed packages](https://prism.tm/docs/web-console/plugins/) - [Exporters](https://prism.tm/docs/web-console/exporters/) - [Provider packages](https://prism.tm/docs/web-console/provider-packages/) - Managed inference - [Managed inference](https://prism.tm/docs/managed-inference/overview/) - [OpenAI in Teams: what the 2026 Usage Policies require](https://prism.tm/docs/managed-inference/openai-teams/) - [Add a machine](https://prism.tm/docs/managed-inference/add-machine/) - [Service agent](https://prism.tm/docs/managed-inference/service-agent/) - [System services](https://prism.tm/docs/managed-inference/system-services/) - [Start on request and stop when idle](https://prism.tm/docs/managed-inference/autostart-and-idle-stop/) - [Compute providers and cloud machines](https://prism.tm/docs/managed-inference/compute-providers/) - [Machines on your network (Wake-on-LAN)](https://prism.tm/docs/managed-inference/wake-on-lan/) - [Agent access tokens](https://prism.tm/docs/managed-inference/agent-tokens/) - [Machine cost and the machine budget](https://prism.tm/docs/managed-inference/machine-cost/) - Privacy and data - [What Prism stores and sends](https://prism.tm/docs/privacy/what-prism-stores/) - [Statistics and subscription checks](https://prism.tm/docs/privacy/statistics-and-enterprise/) - [Experiments and experiment metrics](https://prism.tm/docs/privacy/experiments/) - [Fleet telemetry](https://prism.tm/docs/privacy/fleet-telemetry/) - [Install signal](https://prism.tm/docs/privacy/install-signal/) - CLI reference - [CLI reference](https://prism.tm/docs/reference/cli/) - Configuration reference - [Configuration reference](https://prism.tm/docs/reference/configuration/) - [server](https://prism.tm/docs/reference/configuration/server/) - [console](https://prism.tm/docs/reference/configuration/console/) - [personal](https://prism.tm/docs/reference/configuration/personal/) - [routing](https://prism.tm/docs/reference/configuration/routing/) - [profiles](https://prism.tm/docs/reference/configuration/profiles/) - [providers](https://prism.tm/docs/reference/configuration/providers/) - [local](https://prism.tm/docs/reference/configuration/local/) - [budget](https://prism.tm/docs/reference/configuration/budget/) - [health](https://prism.tm/docs/reference/configuration/health/) - [runtime\_policy](https://prism.tm/docs/reference/configuration/runtime_policy/) - [admission](https://prism.tm/docs/reference/configuration/admission/) - [storage](https://prism.tm/docs/reference/configuration/storage/) - [catalog](https://prism.tm/docs/reference/configuration/catalog/) - [pricing](https://prism.tm/docs/reference/configuration/pricing/) - [metrics](https://prism.tm/docs/reference/configuration/metrics/) - [harness](https://prism.tm/docs/reference/configuration/harness/) - [v2](https://prism.tm/docs/reference/configuration/v2/) - [traffic\_guard](https://prism.tm/docs/reference/configuration/traffic_guard/) - [implicit\_outcomes](https://prism.tm/docs/reference/configuration/implicit_outcomes/) - [mail](https://prism.tm/docs/reference/configuration/mail/) - [inference](https://prism.tm/docs/reference/configuration/inference/) - [secrets](https://prism.tm/docs/reference/configuration/secrets/) - [egress](https://prism.tm/docs/reference/configuration/egress/) - [license](https://prism.tm/docs/reference/configuration/license/) - [statistics](https://prism.tm/docs/reference/configuration/statistics/) - [fleet](https://prism.tm/docs/reference/configuration/fleet/) [Home](https://prism.tm/) [Blog](https://prism.tm/blog/) [FAQ](https://prism.tm/faq/) [Get started](https://prism.tm/pricing/) Select theme DarkLightAuto On this page - [Overview](https://prism.tm/docs/web-console/updates/#_top) - [Release source](https://prism.tm/docs/web-console/updates/#release-source) - [Offline installation](https://prism.tm/docs/web-console/updates/#offline-installation) - [Bundled release components](https://prism.tm/docs/web-console/updates/#bundled-release-components) - [When a button is disabled](https://prism.tm/docs/web-console/updates/#when-a-button-is-disabled) ## On this page - [Overview](https://prism.tm/docs/web-console/updates/#_top) - [Release source](https://prism.tm/docs/web-console/updates/#release-source) - [Offline installation](https://prism.tm/docs/web-console/updates/#offline-installation) - [Bundled release components](https://prism.tm/docs/web-console/updates/#bundled-release-components) - [When a button is disabled](https://prism.tm/docs/web-console/updates/#when-a-button-is-disabled) # Updates in the console The **Versions** page shows the running version, the latest release of the channel, the release notes, and installs updates. How to turn updates on and what an install does is in [Update Prism](https://prism.tm/docs/getting-started/update/). This page covers the source settings and the components list. ## Release source [Section titled “Release source”](https://prism.tm/docs/web-console/updates/#release-source) An official build updates from the public channel `https://releases.prism.tm/prism/releases/latest` with nothing to set up. The release host is not trusted with integrity: Prism installs a package only if its `SHA256SUMS` carries a valid signature by a release key built into the running binary. A build made from source with `go build` has no channel. The source settings are folded under **Advanced: custom source, mirror, token**: - **Add custom source** sets another release API URL, written to `[console] update_check_url` in the console overlay. It is a `…/releases/latest` endpoint of Forgejo or Gitea, GitHub (`https://api.github.com/repos/OWNER/REPO/releases/latest`) or GitCode (`https://api.gitcode.com/api/v5/repos/OWNER/REPO/releases/latest`). The signature check stays the same: a release not signed by a built-in key is refused. - Once a source is set, the same control adds a **download mirror**: a prefix to which the original download URL is appended, for example `https://ghfast.top/`. A mirror cannot change a package unnoticed, because the archive is checked against the signed `SHA256SUMS`. A mirror without a source is refused. - **Set token** stores a read token for a private source, or a 1Password `op://` reference when 1Password is configured, in Prism’s encrypted secrets store (`/provider-secrets/release-source.enc`), not in `config.toml` and not in the browser. Prism sends it only to the source’s own address, never to a mirror, and the console does not show it again. `[console] update_check_token_env` (the name of an environment variable holding the token) also works; a token stored in the console wins. Sources and mirrors are fixed when Prism starts, so a source or mirror added in the console works after the next restart. The same values in `config.toml`: ``` [console]update_check_url = "https://api.github.com/repos/OWNER/REPO/releases/latest"update_mirrors = ["https://ghfast.top/"]update_check_token_env = "PRISM_RELEASE_READ_TOKEN"update_channel = "stable" # or "prerelease" ``` ## Offline installation [Section titled “Offline installation”](https://prism.tm/docs/web-console/updates/#offline-installation) On a machine without access to the release host, download the platform archive, `SHA256SUMS` and `SHA256SUMS.sig` elsewhere and choose them under **Offline installation**. The signature and checksum checks are the same and need no network. Offline installation stays available when no release source is configured. ## Bundled release components [Section titled “Bundled release components”](https://prism.tm/docs/web-console/updates/#bundled-release-components) Below the version cards, **Bundled release components** lists the programs of the release that Prism can see (for example `prism-service-agent` next to the `prism` executable) with the version each one reports and the version Prism expects; a different version is highlighted. A component Prism cannot read says why. An update replaces the components that are installed and never adds one that is not. The list also shows local model servers Prism routes to (self-hosted providers and providers on a local address): their address, whether their model list loads, the server version when the server reports one, and the models it serves now. ## When a button is disabled [Section titled “When a button is disabled”](https://prism.tm/docs/web-console/updates/#when-a-button-is-disabled) Every control that cannot work right now is disabled, with the reason next to it: no release source, no signature on the checked release, the latest version already installed, updates not enabled, no write access next to the executable, or an update still on probation. Prism refuses an install it could not foresee with a message (`update_unavailable`). --- title: "Prism FAQ: Self-Hosted AI Gateway" description: "Answers about Prism: setup, providers and local models, subscriptions and failover, cost, privacy, and the Free, Pro, Teams and Enterprise editions." url: https://prism.tm/faq/ --- FAQ # Questions about Prism. Everything you need to know about setup, model routing, subscription accounts, local runtimes, cost tracking, and privacy in Prism. **Prism is not yet publicly available.** [Request access](https://prism.tm/request-access/) ## About Prism ### What is Prism? Prism is a self-hosted adaptive AI gateway. Your agents and apps call one API, and on every request Prism chooses the model, provider and account to use: a paid API, one of your subscription accounts, or a model on your own hardware. Cost, access and diagnostics are managed in one console. ### Who is Prism for? Developers and teams who run several AI agents, coding tools and scripts and do not want to configure every provider in each of them. Prism Free costs nothing for any use, by you, your team or your company, with up to three people in the console. Pro adds managed inference and Smart routing for up to five people, Teams adds an organization with roles for up to ten people, and Enterprise adds several teams. ### Can I try Prism today? Not yet. Prism is not yet publicly available, and access is on request. [Request access](https://prism.tm/request-access/) ### Is Prism open source? No. Prism is proprietary software, but Prism Free costs nothing and needs no licence. ## Setup ### What do I need to run it? A Linux or macOS machine, x86-64 or Arm — that is it. Prism is a single Go binary with the web console and storage built in: no Docker, no Python, no database server, and no root. A one-command installer sets it up as a systemd service on Linux or a launchd service on macOS, and it listens on localhost by default. ### How do I connect my agents and apps? Point them at Prism instead of the provider. Prism serves an OpenAI-compatible API — chat completions, Responses, embeddings, rerank and models — plus native Anthropic Messages and Gemini endpoints, so most tools need only a new base URL and a Prism key. Apps that speak only Ollama, or offer an Ollama provider option — Open WebUI, Zed, Continue and Home Assistant — can point at Prism's main address and reach every model Prism routes; the console's quick start shows the address. If an app has no field for a key, put a person's Prism key in the address: `http://host:18000/k/`. Prism Teams requires a Prism key on every model request. Each person and each agent can have a separate Prism key, which you can issue, rotate and revoke. A person gets their key in one click under My Prism key in the console, and requests made with it are recorded under that person's name. ### Does Prism work with Codex and Claude Code? Yes, with your API keys. Point Codex at Prism and it can use Claude, Gemini and other models, not only those served through the Responses API. Codex's reasoning effort and fast mode settings also work with a Prism key. Claude Code connects through Prism's Anthropic Messages endpoint, with its web search working. Claude Code can also use models other than Claude. Both are named for compatibility only — Prism is not affiliated with OpenAI or Anthropic. ### Which AI providers does Prism support? Most connect with just an API key, and Prism discovers their models automatically: OpenAI, Anthropic, Google Gemini, Meta Model API, OpenRouter, Groq, DeepSeek, Together AI, Fireworks AI, DeepInfra and more, plus any OpenAI-compatible endpoint. The console also lists the providers of the public models.dev catalog to pick from. Amazon Bedrock (Claude included), Google Vertex AI (Gemini and Claude models) and Azure OpenAI / Foundry connect through plugin packages that you install from the console's Plugins page. Cloudflare Workers AI, Z.ai, MiniMax, Novita AI, Parasail, SambaNova Cloud and Vercel AI Gateway are available the same way. The Meta Muse Code package adds Meta's Muse Spark and Muse Wonder models; you connect it by signing in with your Meta account. ### Can I use local models? Yes. Add the URL of an Ollama, llama.cpp, vLLM or LM Studio server and Prism finds its models. Local models route under the same policy as paid APIs, and requests you mark private never leave your local runtimes. ### Can I connect a model server I already run? Yes. Paste its address, such as `http://host:port/v1`, and Prism asks the server which API it speaks, names the connection after it, and connects without a key when the server checks none — asking for a key only when the server wants one. This is part of Prism Free. ### Can Prism start and stop my model servers? Yes, with Prism Pro or a higher edition. On the Compute providers page, the Add machine wizard guides you step by step. For the machine Prism runs on, no command is needed when its model servers run under Prism's own account; for another Linux machine, you run one command as the user that owns its model servers. A new cloud instance can also connect itself: paste the text the wizard shows into the instance's user data, and no terminal is needed. In each case a small service agent is installed, and Prism does nothing on the machine until you confirm the machine in the console. The agent finds llama-server, vLLM, Ollama, SGLang and any other server that answers `/v1/models`, including servers that run as system services under another account (those need a one-time grant on the machine), and you tick the ones Prism manages. When a request names a stopped model, it waits while Prism starts the server and checks it is ready, and that model answers it; when Prism chooses the model itself, the request goes to another model straight away. A stop lets running requests finish first, and a server can stop on its own after a quiet period. Connecting to model servers that are already running is included in Prism Free. ### Can Prism use GPU machines in the cloud? Yes, existing machines in your cloud account (Pro and higher editions). Support for Nebius is built in; Amazon EC2, Google Compute Engine, Microsoft Azure, Oracle Cloud, Alibaba Cloud ECS, Scaleway, Crusoe, Hyperstack, Paperspace and Oblivus are added with plugin packages. Add the cloud account's credentials and pick a machine, and Prism can power it on and off. A request that names a model on that machine powers it on, waits for the agent, starts the model server and is answered by that model; requests that arrive meanwhile share the same power-on. Prism powers the machine off after the idle time you set, but not while other processes are using the GPU, and the console shows what is running. Prism only starts and stops machines; it never creates, resizes or deletes them. ### Can Prism power on a GPU machine on my own network? Yes, with Prism Pro or a higher edition, through Wake-on-LAN. When a request needs the machine's model, another machine with Prism's agent in the same subnet sends the wake-up packet. Prism powers the machine off through its own agent after stopping its model servers, either when you press Power off or after the idle time you set. Wake-on-LAN must be turned on in the machine's BIOS or UEFI settings, the machine needs a wired connection, and power-off needs a one-time permission on the machine. ### Do I have to edit config files or restart Prism to add a machine? No. Machines, model servers and cloud accounts are added on the Compute providers page and take effect without a restart. Agent tokens and cloud keys sit in Prism's sealed vault, and Prism refuses changes to a server that is busy with requests. ### Can my agents manage model servers and machines? Yes. Create an API key with Prism access for an agent and choose what it may do: add, check and remove its model servers and see machines and model services, and with Prism Pro or a higher edition also start, stop and restart services, power linked cloud machines on and off, and ask a machine to find its servers again. The agent works through Prism's API instead of SSH, and every action is recorded with the key's name. Such a key cannot call models and opens no keys, users or licence. ### How do updates work? From the console, or with `prism update install`. A release updates as a set — Prism and the companions installed beside it — and if the new version fails to start or pass its health check, everything rolls back by itself. Prism checks each update's signature and can also update offline. Prism snapshots its state before each update, and a built-in backup command copies the rest. ### Can I add providers and integrations without upgrading Prism? Usually, yes. On the console's Plugins page, install a plugin package from the catalog at [prism.tm/plugins](https://prism.tm/plugins/); a package that needs a newer Prism version says which one. Packages add AI providers, cloud accounts for managed inference (Pro and higher editions), OpenTelemetry export and spend alerts. Prism checks each package's signature before it enables it. On a network without internet access, download the package file from prism.tm/plugins and choose Install file on the Plugins page. ## Subscriptions and routing ### Can Prism use the subscriptions I already pay for? Yes. Prism signs in to many kinds of supported subscription account — chat and coding plans alike — several accounts of each, and routes them alongside your API keys and local models; when an account hits an error, a rate limit or its quota, Prism moves to the next eligible account and reports why. Sign-in to Claude, Gemini, Cursor and Grok CLI subscriptions is closed by default because these providers' terms forbid third-party programs, and opens only if the Prism team allows it for your installation. Sign-in to Codex, GitHub Copilot, Kimi Code, Kilo Code, Cline, iFlow, xAI, Kimchi and CodeBuddy is open by default. Two caveats: operation on live accounts is not yet confirmed (it is tested against test servers), and using a subscription through a third-party gateway may breach the provider's terms. Before every sign-in Prism shows a risk notice that says how Prism identifies itself to the provider. ### How does Prism choose where a request goes? On every request, Prism picks the model, provider and account from your policy and live signals: capability, health, quota, remaining funds and cost. With `auto`, each request gets a quality floor — higher for agent steps that use tools — and the strongest model at or above it serves, with price deciding only between equals and response headers saying why. Pin a model as `provider::model` to keep the request on that provider unless you allow cross-provider failover, or use a selector: `auto`, `fast`, `smart`, `cheap` or `local`. When Prism chooses the model and that model is available through several routes, it tries them in the order you choose. ### What happens when a provider fails? Prism sends the request to the next eligible provider or account. This happens on errors, rate limits, timeouts, outages, exhausted funds and content-filter refusals that come before any output; when Prism chose the model itself, a model's refusal (HTTP 403, other than an authentication or billing error) also moves the request on. When a provider refuses a request because the model lacks something the request needs, such as image input, the request moves on. This also happens when the request named the model; it then goes to another provider or account that serves that model. An answer that ends abnormally before anything has reached your app, such as a Gemini answer stopped by a malformed tool call or a Responses answer with the status failed, also moves the request on. Response headers name the provider that served the request and list each attempt with its reason. Providers that run out of funds are set aside and checked again automatically. ### Can I keep some requests strictly local? Yes. Requests marked private go only to your local runtimes and never fall back to a cloud provider — if no local model can serve them, they fail instead. ## Cost ### What does Prism cost? Prism Free costs nothing, for up to 3 people, with no limit on your agents, keys or provider accounts. The paid editions are priced per user per month, before tax: Pro €4, Teams €6, Enterprise from €8 with at least 5 seats. A year costs ten months: €40, €60 and from €80, before tax. Tax is added on top. Every person in the installation is paid for, the first three included; agents and keys never take a seat. The paid editions are not on sale yet. Your provider usage is billed by your providers, as before. ### Does Prism take a cut of my provider spend? No. Prism adds nothing to provider prices and takes no share of your usage. ### How do I see what I spend? Prism records the cost and tokens of each request. When the provider reports what it charged, Prism records that amount; otherwise it calculates the cost from the price list, with cached-token and long-context rates and, for a request served in the priority or flex service tier (such as Codex fast mode), that tier's rates. The console totals cost by app, client program, agent, person and model, and shows metered API spend apart from what your subscription traffic would have cost at API prices, so you can see what your subscriptions save. ### Can I set budgets? Yes. Budgets are opt-in and set in the console. A budget covers an hour, day, week or month and applies to everyone, one person, one app, or one person in one app. At percentages of the budget that you choose (for example 80% and 100%), Prism can warn, switch routing to cheaper models, use only local models, or reject requests. Separate spending limits can cap one API-key provider account, or one model across every provider that offers it. An account that reaches its limit takes no requests until its period resets. When a model reaches its limit, `auto` uses another model, and a request that names that model is refused. A plugin package for spend alerts can also send a Telegram or Slack message when the day's spend reaches the percentages of a daily budget that you choose in the package, and a summary of the previous day. If Prism stops unexpectedly, requests that were still running may be recorded as incomplete or not recorded at all. Their cost is not counted, so actual spending can go over a budget by that amount. ## Privacy and security ### Do my prompts go through a Prism cloud? No. Prism runs on your machine or server and sends requests straight to your providers, not through any Prism server. There is no telemetry unless you turn it on. By default Prism downloads a few public files, and these downloads send nothing about your installation: the model price list (LiteLLM's public file on GitHub) every 24 hours, the model catalog and subscription plan prices from releases.prism.tm once a day, and the plugin catalog from prism.tm every hour. On a closed network you can switch these downloads off. ### Where are my keys stored? With you: in Prism's encrypted store, in environment variables, or read from 1Password. When you add a provider in the console, Prism sends its key only to that provider's own address. Subscription tokens are stored encrypted and refreshed automatically. ### What does Prism log? A request journal without prompt bodies, with CSV export, that shows for each request the requested model, the model that served it, the reason for the choice, the number of provider attempts and the trace ID. Also usage and cost, Prometheus metrics, and attempt reasons in response headers. By default Prism keeps no prompt-level logs — a few opt-in features store prompt-derived text. The request journal stays in Prism's database for at least one year. Older records move to compressed archive files on the same machine; the archives are kept for seven years and are included in Prism's backup. ### Is there a PII guard? Yes — opt-in. The credential and PII guard checks prompts and tool calls for emails, IPv4 addresses and phone numbers, and can observe, block or redact them. When it is on, it checks the whole request text, not only the first megabyte. The audit log never stores the matched text. ## Editions ### How do Free, Pro, Teams and Enterprise differ? Same binary, same deployment, and each edition includes everything in the editions before it. Free costs nothing for any use, including companies, with up to 3 people, passkey sign-in and no passwords. Pro, for up to 5 people, adds model servers and GPU machines started and stopped on demand, Smart routing and semantic search in the command palette. Teams, for up to 10 people in one team, adds an organization with roles (owner, administrator, auditor and member) managed in the console, outgoing mail and export. Enterprise adds several teams, payment by invoice, several installations per subscription and support with an agreed response time, at a negotiated price from €8 per user per month before tax, with at least 5 seats. Team and person budgets set by administrators are planned. SSO and SCIM are not available. ### Can I move from Free to a paid edition later? Yes, in place, once the paid editions go on sale: a paid edition activates in the same binary when bound to your Prism installation, keeping your connections, agent keys and history. No reinstall. A move to a higher edition takes effect at once and is charged pro rata for the rest of the period; a move to a lower edition takes effect from the next period. There is no trial: Free is how you try Prism. ### How is Prism different from other gateways? See [how Prism compares](https://prism.tm/compare/) — side-by-side pages for LiteLLM, OpenRouter, Portkey and more, with sources. Want to try Prism with your own providers? [Request access](https://prism.tm/request-access/?topic=free) --- title: "Prism plugins — providers, clouds and integrations" description: "Official Prism plugin packages: AI providers such as Amazon Bedrock, Google Vertex AI and Azure OpenAI, cloud accounts for your GPU machines (Teams), and OpenTelemetry export. Install them on your Prism console's Plugins page." url: https://prism.tm/plugins/ --- PLUGINS # Prism plugins. Official packages for Prism. Open **Plugins** in your Prism console and choose **Install**: Prism downloads the package from here, checks its signature and enables it. Install only what you use. ## Clouds Prism lists the machines in your cloud account and powers them on and off (Pro and higher editions). It never creates or deletes machines. ### Alibaba Cloud ECS Lists the ECS instances of the regions you name and starts and stops them; never creates, changes or releases instances. [Setup and permissions](https://prism.tm/docs/managed-inference/compute-providers/#alibaba-cloud-ecs) Version 1.1.1 Needs Prism 0.36.0 or newer File [2.2 MB](https://prism.tm/plugins/tm.prism.alibaba-ecs/1.1.1/tm.prism.alibaba-ecs-1.1.1.tar.gz) ### Amazon EC2 Lists the EC2 instances of the regions you name and starts and stops them; never creates, changes or terminates instances. [Setup and permissions](https://prism.tm/docs/managed-inference/compute-providers/#amazon-ec2) Version 1.1.1 Needs Prism 0.36.0 or newer File [2.0 MB](https://prism.tm/plugins/tm.prism.aws-ec2/1.1.1/tm.prism.aws-ec2-1.1.1.tar.gz) ### Crusoe Cloud Lists the virtual machines of one Crusoe Cloud project and starts and stops them; never creates, changes or deletes machines. [Setup and permissions](https://prism.tm/docs/managed-inference/compute-providers/#crusoe-cloud) Version 1.1.1 Needs Prism 0.37.0 or newer File [2.1 MB](https://prism.tm/plugins/tm.prism.crusoe-vm/1.1.1/tm.prism.crusoe-vm-1.1.1.tar.gz) ### Google Compute Engine Lists the instances of one Google Cloud project and starts and stops them; never creates, changes or deletes instances. [Setup and permissions](https://prism.tm/docs/managed-inference/compute-providers/#google-compute-engine) Version 1.1.1 Needs Prism 0.36.0 or newer File [2.8 MB](https://prism.tm/plugins/tm.prism.gcp-compute/1.1.1/tm.prism.gcp-compute-1.1.1.tar.gz) ### Hyperstack Lists the virtual machines of a Hyperstack account, hibernates them and restores them; never creates, resizes or deletes machines. [Setup and permissions](https://prism.tm/docs/managed-inference/compute-providers/#hyperstack) Version 1.1.1 Needs Prism 0.36.0 or newer File [1.8 MB](https://prism.tm/plugins/tm.prism.hyperstack-vm/1.1.1/tm.prism.hyperstack-vm-1.1.1.tar.gz) ### Microsoft Azure Lists the virtual machines of the subscriptions you name and starts and deallocates them; never creates, changes or deletes machines. [Setup and permissions](https://prism.tm/docs/managed-inference/compute-providers/#microsoft-azure) Version 1.1.1 Needs Prism 0.36.0 or newer File [2.2 MB](https://prism.tm/plugins/tm.prism.azure-vm/1.1.1/tm.prism.azure-vm-1.1.1.tar.gz) ### Oblivus Lists the virtual machines of an Oblivus Cloud account and starts and stops them; never deploys, changes or deletes machines. [Setup and permissions](https://prism.tm/docs/managed-inference/compute-providers/#oblivus) Version 1.1.1 Needs Prism 0.36.0 or newer File [1.8 MB](https://prism.tm/plugins/tm.prism.oblivus-instance/1.1.1/tm.prism.oblivus-instance-1.1.1.tar.gz) ### Oracle Cloud (OCI Compute) Lists the Compute instances of the regions and compartments you name and starts and stops them; never launches, changes or terminates instances. [Setup and permissions](https://prism.tm/docs/managed-inference/compute-providers/#oracle-cloud-oci-compute) Version 1.1.1 Needs Prism 0.37.1 or newer File [2.9 MB](https://prism.tm/plugins/tm.prism.oci-compute/1.1.1/tm.prism.oci-compute-1.1.1.tar.gz) ### Paperspace Lists the machines of one Paperspace team and starts and stops them; never creates, changes or deletes machines. [Setup and permissions](https://prism.tm/docs/managed-inference/compute-providers/#paperspace) Version 1.1.1 Needs Prism 0.37.0 or newer File [2.0 MB](https://prism.tm/plugins/tm.prism.paperspace-machine/1.1.1/tm.prism.paperspace-machine-1.1.1.tar.gz) ### Scaleway Instances Lists the Scaleway servers of the zones you name and powers them on and off; never creates, changes or deletes servers. [Setup and permissions](https://prism.tm/docs/managed-inference/compute-providers/#scaleway-instances) Version 1.1.1 Needs Prism 0.36.0 or newer File [1.8 MB](https://prism.tm/plugins/tm.prism.scaleway-instance/1.1.1/tm.prism.scaleway-instance-1.1.1.tar.gz) ## Other packages ### Amazon Bedrock Adds the chat models of your AWS account's Bedrock region (Claude, Nova, Llama, Mistral, DeepSeek, OpenAI open-weight and others) with a Bedrock API key, through the Converse API. [Setup and permissions](https://prism.tm/docs/web-console/provider-packages/#amazon-bedrock) Version 1.2.1 Needs Prism 0.41.1 or newer File [2.0 MB](https://prism.tm/plugins/tm.prism.aws-bedrock/1.2.1/tm.prism.aws-bedrock-1.2.1.tar.gz) ### Azure OpenAI / Foundry Adds the model deployments of your Azure OpenAI or Microsoft Foundry resource (OpenAI, DeepSeek, Llama, Grok and other models sold by Azure) with the resource's API key. [Setup and permissions](https://prism.tm/docs/web-console/provider-packages/#azure-openai--foundry) Version 1.1.1 Needs Prism 0.40.4 or newer File [0.0 MB](https://prism.tm/plugins/tm.prism.azure-openai/1.1.1/tm.prism.azure-openai-1.1.1.tar.gz) ### Cloudflare Workers AI Adds the Workers AI models of your Cloudflare account (Llama, Qwen, DeepSeek, Kimi, GLM, gpt-oss and others) with an API token. [Setup and permissions](https://prism.tm/docs/web-console/provider-packages/#cloudflare-workers-ai) Version 1.1.1 Needs Prism 0.40.4 or newer File [0.0 MB](https://prism.tm/plugins/tm.prism.cloudflare-workers-ai/1.1.1/tm.prism.cloudflare-workers-ai-1.1.1.tar.gz) ### Command Code Adds Command Code's models (OpenAI-compatible, Claude over Anthropic Messages, and the Jev decision model) with your Command Code API key; the package declares their MOAT member prices. [Setup and permissions](https://prism.tm/docs/web-console/provider-packages/#command-code) Version 1.0.1 Needs Prism 0.70.1 or newer File [0.0 MB](https://prism.tm/plugins/tm.prism.commandcode/1.0.1/tm.prism.commandcode-1.0.1.tar.gz) ### Google Vertex AI Adds the Gemini and Claude models of your Google Cloud project's Vertex AI with a service account key. [Setup and permissions](https://prism.tm/docs/web-console/provider-packages/#google-vertex-ai) Version 1.2.1 Needs Prism 0.41.1 or newer File [2.7 MB](https://prism.tm/plugins/tm.prism.gcp-vertex/1.2.1/tm.prism.gcp-vertex-1.2.1.tar.gz) ### Inception Adds Inception's Mercury diffusion models with your Inception API key; the package declares their prices. [Setup and permissions](https://prism.tm/docs/web-console/provider-packages/#inception) Version 1.2.1 Needs Prism 0.52.1 or newer File [0.0 MB](https://prism.tm/plugins/tm.prism.inception/1.2.1/tm.prism.inception-1.2.1.tar.gz) ### Meta Muse Code Adds Meta's Muse Spark and Muse Wonder models through your Meta account: sign in with a code on Meta's page, the way the Muse Code app does. [Setup and permissions](https://prism.tm/docs/web-console/provider-packages/#meta-muse-code) Version 1.1.1 Needs Prism 0.46.2 or newer File [1.8 MB](https://prism.tm/plugins/tm.prism.meta-muse-code/1.1.1/tm.prism.meta-muse-code-1.1.1.tar.gz) ### MiniMax Adds MiniMax models with your MiniMax API key, on the international platform or the China one (api.minimax.cn). [Setup and permissions](https://prism.tm/docs/web-console/provider-packages/#minimax) Version 1.1.1 Needs Prism 0.40.4 or newer File [0.0 MB](https://prism.tm/plugins/tm.prism.minimax/1.1.1/tm.prism.minimax-1.1.1.tar.gz) ### Novita AI Adds the open models Novita AI hosts (DeepSeek, GLM, Qwen, Kimi and others) with your Novita API key. [Setup and permissions](https://prism.tm/docs/web-console/provider-packages/#novita-ai) Version 1.1.1 Needs Prism 0.40.4 or newer File [0.0 MB](https://prism.tm/plugins/tm.prism.novita/1.1.1/tm.prism.novita-1.1.1.tar.gz) ### OpenTelemetry export Sends one OpenTelemetry span per model attempt (model, provider, tokens, cost, latency, outcome) to Langfuse or any OTLP/HTTP collector; no prompt or response text. [Setup and permissions](https://prism.tm/docs/web-console/exporters/#opentelemetry-export) Version 1.1.1 Needs Prism 0.39.0 or newer File [1.9 MB](https://prism.tm/plugins/tm.prism.otel-export/1.1.1/tm.prism.otel-export-1.1.1.tar.gz) ### Parasail Adds the open models Parasail serves with your Parasail API key; the model list is read from your account when you connect it. [Setup and permissions](https://prism.tm/docs/web-console/provider-packages/#parasail) Version 1.1.1 Needs Prism 0.40.4 or newer File [0.0 MB](https://prism.tm/plugins/tm.prism.parasail/1.1.1/tm.prism.parasail-1.1.1.tar.gz) ### SambaNova Cloud Adds the models SambaNova Cloud serves on its own chips with your SambaNova API key. [Setup and permissions](https://prism.tm/docs/web-console/provider-packages/#sambanova-cloud) Version 1.1.1 Needs Prism 0.40.4 or newer File [0.0 MB](https://prism.tm/plugins/tm.prism.sambanova/1.1.1/tm.prism.sambanova-1.1.1.tar.gz) ### Spend alerts Sends a Telegram or Slack message when the day's model spend crosses 50, 80 and 100% of your daily budget, and the previous day's summary each morning; charged cost and catalog estimates are kept apart per currency. [Setup and permissions](https://prism.tm/docs/web-console/exporters/#spend-alerts) Version 1.1.1 Needs Prism 0.39.0 or newer File [2.1 MB](https://prism.tm/plugins/tm.prism.spend-alerts/1.1.1/tm.prism.spend-alerts-1.1.1.tar.gz) ### SubQ Adds SubQ's decision models subq-snap-1.1 and subq-snap-preview with your SubQ API key: System One judges for the model choice check, priced at $0.05 per 1M input tokens. [Setup and permissions](https://prism.tm/docs/web-console/provider-packages/#subq) Version 1.3.1 Needs Prism 0.46.1 or newer File [0.0 MB](https://prism.tm/plugins/tm.prism.subq/1.3.1/tm.prism.subq-1.3.1.tar.gz) ### Vercel AI Gateway Adds the models of Vercel AI Gateway, which resells most providers' models under one key, with your AI Gateway API key. [Setup and permissions](https://prism.tm/docs/web-console/provider-packages/#vercel-ai-gateway) Version 1.1.1 Needs Prism 0.40.4 or newer File [0.0 MB](https://prism.tm/plugins/tm.prism.vercel-ai-gateway/1.1.1/tm.prism.vercel-ai-gateway-1.1.1.tar.gz) ### Z.ai (GLM) Adds Z.ai's GLM models with your Z.ai API key, and the same models on the China platform (open.bigmodel.cn) with a Zhipu key. [Setup and permissions](https://prism.tm/docs/web-console/provider-packages/#zai) Version 1.2.1 Needs Prism 0.40.4 or newer File [0.0 MB](https://prism.tm/plugins/tm.prism.zai/1.2.1/tm.prism.zai-1.2.1.tar.gz) Every package is signed with the Prism release key, and Prism trusts that key for these packages without any setup. On a network without internet access, download the file here and choose **Install file** on the console's Plugins page. The catalog Prism reads is [/plugins/index.json](https://prism.tm/plugins/index.json). --- title: "Prism Pricing: Free, Pro, Teams and Enterprise" description: "Prism Free costs nothing for up to 3 people. Pro is €4, Teams €6 and Enterprise from €8 per user per month, before tax. Agents and keys never take a seat." url: https://prism.tm/pricing/ --- PRICING # Free, Pro, Teams, Enterprise. Prism is one binary with four editions. Free is for your own agents and apps. Pro adds managed inference on your own GPU machines and Smart routing. Teams adds an organization with roles. Enterprise adds several teams. Each edition includes everything in the editions before it. The paid editions are not on sale yet. **Prism is not yet publicly available.** [Request access](https://prism.tm/request-access/) PRISM FREE Free No charge Up to 3 people, you included A gateway for your agents and applications. Free for any use, including by companies. Free is how you try Prism. - No limit on your agents, application credentials or provider accounts - Routing, providers, provider subscriptions, your own budgets and limits - Request log, plugins, and connecting model servers you already run [Request access](https://prism.tm/request-access/?topic=free) PRISM PRO COMING SOON €4 per user / month, before tax. €40 per user / year, before tax. Up to 5 people, you included Everything in Free, plus: - Managed inference: start and stop model servers, and power GPU machines on and off - Smart routing - Semantic search in the command palette [Contact us](https://prism.tm/request-access/?topic=pro) PRISM TEAMS COMING SOON €6 per user / month, before tax. €60 per user / year, before tax. Up to 10 people, in one team Everything in Pro, plus: - Organization: invitations, roles, service accounts, a Prism key per person, spend by person, activity log - Outgoing mail - Export of organization data [Contact us](https://prism.tm/request-access/?topic=teams) PRISM ENTERPRISE COMING SOON from €8 per user / month, before tax. From €80 per user / year, before tax. At least 5 seats. Several teams, at least 5 seats Everything in Teams, plus: - Several teams - Payment by invoice, and several installations per subscription - Support with an agreed response time, and a negotiated price [Contact us](https://prism.tm/request-access/?topic=enterprise) Prices are per user and before tax. Tax is added on top at the rate of your country. Prices are set in EUR; checkout shows them in your currency. A year costs ten months. Every person in the installation is a user and is paid for in a paid edition, the first three included; agents, sessions, integration keys and provider accounts are not users, and a pending invitation takes no seat. There is no trial: Free is how you try Prism. Free refers to Prism itself. Provider usage and infrastructure may still cost money. ## What each edition includes Free Pro (coming soon) Teams (coming soon) Enterprise (coming soon) Price per user per month, before tax Free €4 €6 From €8 Price per user per year, before tax Free €40 €60 From €80 People Up to 3, you included Up to 5, you included Up to 10, in one team Several teams; at least 5 seats Who administers You, the owner You, the owner Administrators of the organization Administrators of the organization Agents, keys and provider accounts No limit; they never take a seat No limit; they never take a seat No limit; they never take a seat No limit; they never take a seat One API, adaptive routing and failover Included Included Included Included Providers, subscription accounts and local models Included Included Included Included Connecting model servers you already run Included Included Included Included Cost per request, your own budgets and limits Included Included Included Included Request log and plugins Included Included Included Included Web console with passkey sign-in, no passwords Included Included Included Included Managed inference: model servers started and stopped, GPU machines powered on and off \- Included Included Included Smart routing \- Included Included Included Semantic search in the command palette \- Included Included Included Organization: invitations, roles, removing and suspending people, service accounts, a Prism key per person with a policy, spend by person, activity log \- \- Included Included Outgoing mail and export \- \- Included Included Team and person budgets set by administrators, with reports \- \- planned planned Several teams \- \- \- Included Payment No charge Monthly or yearly Monthly or yearly Monthly or yearly, or by invoice Installations per subscription Not applicable One One Several Support with an agreed response time \- \- \- Included Moving between editions Same binary, same deployment Upgrade in place, keeping your connections, agent keys and history Upgrade in place, keeping your connections, agent keys and history Upgrade in place, keeping your connections, agent keys and history Managed inference and Smart routing are run by the owner of the installation in every edition; organization roles do not grant them. A move to a higher edition takes effect at once and is charged pro rata for the rest of the period. A move to a lower edition takes effect from the next period, if the installation fits it. Seats added during a period are charged pro rata; seats removed are removed from the next period. More answers are in the [FAQ](https://prism.tm/faq/). For a comparison with other gateways, see [How Prism compares](https://prism.tm/compare/). Want to try Prism with your own providers? [Request access](https://prism.tm/request-access/?topic=free) --- title: "Privacy Policy — Prism Self-Hosted AI Gateway" description: "How prism.tm handles personal data: what is collected, why, by whom and for how long. Self-hosted Prism instances process AI traffic on your own hardware." url: https://prism.tm/privacy/ --- PRIVACY | UPDATED 16 OCTOBER 2026 # Privacy. This policy covers the website prism.tm, including the plugin catalog that Prism installations read from it. It does not cover the Prism software you run yourself: a self-hosted Prism gateway processes your prompts, answers and provider keys on your own machine, and we do not receive them. ## Who is responsible AEGIS ALPHA SA, c/o Fidraco SA, Baarerstrasse 25, 6300 Zug, Switzerland. Company number CHE-236.808.880. For any question about your personal data, or to exercise your rights, write to [privacy@prism.tm](mailto:privacy@prism.tm). ## No cookies prism.tm does not set cookies and does not store anything in your browser's local or session storage. This is why there is no cookie banner. ## What we process and why ### Visiting the website The site is delivered by Cloudflare, Inc. When you load a page, Cloudflare processes your IP address and request details (address requested, browser and device information) to deliver the page and protect the site against abuse. Requests to our analytics endpoint (prism.tm/p/) are logged by Cloudflare (time, status, address requested and technical metadata) and deleted after 3 days; we use these logs only to operate and debug the site. Legal basis: our legitimate interest in running a secure website (Art. 6(1)(f) GDPR). ### Prism installations reading the plugin catalog The Prism console's Plugins page lists plugin packages from a catalog published on prism.tm. By default, a running Prism installation requests the catalog file `prism.tm/plugins/index.json` and its signature file `index.json.sig` 20 seconds after it starts, then once an hour, and again when its owner chooses **Check now**. When the owner installs or updates a package from the catalog, Prism downloads that package file from prism.tm/plugins/. These are plain download requests. Each one carries the user agent `prism-plugin-catalog` and nothing that identifies the installation: no installation ID, Prism version, account, provider key, prompt or usage data. Cloudflare processes them as it processes a page visit: the IP address of the machine running Prism and the request details (time, address requested, user agent). We use them only to deliver the catalog and package files and to protect the site against abuse. They are not part of our usage statistics. The owner of an installation can turn these requests off by setting `[catalog] plugins_url` to `"off"` in the Prism settings, or point Prism at another catalog by setting it to that catalog's HTTPS address. Packages can still be installed from a file on the console's Plugins page. Legal basis: our legitimate interest in delivering the plugin catalog and packages to Prism installations and in running a secure website (Art. 6(1)(f) GDPR). ### Usage statistics We use PostHog to understand how the site is used: which pages are viewed and for how long, where visitors come from (referring site and campaign parameters), which links and buttons are clicked, how the mouse moves and how far pages are scrolled (to draw heatmaps), how fast pages and their requests load, how far people get with the request-access form, and which technical errors occur (error message and where in the code it happened). Each event includes the page address, your browser, operating system, device type and screen size, and an approximate location (country and city) derived from your IP address. We do not record what you type into the form. PostHog runs in a cookieless mode. Instead of identifying you, it counts visits with a hash calculated on PostHog's servers from your IP address, browser user agent and a salt that changes every day, so the same visitor cannot be recognised across days. We do not build profiles and cannot tell who you are from these statistics. Usage statistics are kept in PostHog for 1 year and then deleted. Legal basis: our legitimate interest in measuring and improving the website (Art. 6(1)(f) GDPR). ### Request-access form When you send the form at [prism.tm/request-access](https://prism.tm/request-access/), your browser sends your name, email address, the topic you chose and your message directly to Formspree, Inc. (United States). Formspree stores the submission in our account, checks it for spam and forwards it to us by email; it also receives your IP address and browser information. We use the data only to reply to you and to handle your request. You are not obliged by law or contract to give us this data. Name, email address, topic and message are needed to send the form; without them we cannot answer your request. When you open the request-access page, it loads Cloudflare Turnstile to keep automated spam out. Turnstile processes your IP address, browser user agent and signals about your browser and device to check that the visitor is a person, whether or not you send the form. If the check cannot be completed, the form cannot be sent; you can write to us at [privacy@prism.tm](mailto:privacy@prism.tm) instead. Cloudflare does not use this data for advertising. Legal basis: steps taken at your request before a possible contract, and our legitimate interest in answering enquiries and preventing spam (Art. 6(1)(b) and (f) GDPR). We keep form submissions, including the copy stored at Formspree, for up to 3 years, unless they lead to an ongoing business relationship, in which case they are kept for as long as that relationship requires. ### Email Emails you send to addresses at prism.tm are received by Cloudflare Email Routing and forwarded to our mailbox in Google Workspace. We use them only to answer you and keep them as long as needed for that conversation and any business relationship that follows. Legal basis: our legitimate interest in answering messages sent to us, or steps taken at your request before a possible contract (Art. 6(1)(f) and (b) GDPR). ### Blog Blog posts are written in Ghost, which runs on a server we rent from Hetzner Online GmbH (Germany). Images in blog posts are loaded from that server (cms.prism.tm), which processes your IP address to deliver them. Legal basis: our legitimate interest in showing images in our blog posts (Art. 6(1)(f) GDPR). ## Who receives data - Cloudflare, Inc. (United States): website delivery, security, Turnstile and receiving email for prism.tm. - PostHog, Inc. (United States): usage statistics, stored in the European Union (Frankfurt, Germany); PostHog may access the data from the United States to provide and support the service. - Formspree, Inc. (United States): receipt, spam filtering and storage of form submissions. - Hetzner Online GmbH (Germany): hosting of blog images. - Google (Google Workspace): our mailbox for email sent to prism.tm addresses; Google may process the data in the United States. These providers process data on our behalf and under our instructions. For Turnstile, Cloudflare also uses the signals for its own purpose of improving bot detection, as an independent controller under its [Turnstile Privacy Addendum](https://www.cloudflare.com/turnstile-privacy-policy/). Data reaches the United States through Cloudflare, PostHog, Formspree and Google. For each of them the transfer relies on the EU–US and Swiss–US Data Privacy Framework where the provider is certified, and otherwise on the European Commission's standard contractual clauses, adapted for Swiss law. You can ask us for a copy of the safeguards that apply. We do not sell personal data and do not use it for advertising. ## Your rights You can ask us for access to your personal data, for its correction or deletion, for restriction of processing or for a copy in a portable format, and you can object to processing based on our legitimate interests. Write to [privacy@prism.tm](mailto:privacy@prism.tm). **Right to object.** Where we process your data on the basis of our legitimate interests, you can object at any time on grounds relating to your particular situation (Art. 21 GDPR). We will then stop, unless we have compelling legitimate grounds or need the data to establish, exercise or defend legal claims. Write to [privacy@prism.tm](mailto:privacy@prism.tm). We do not make decisions about you based solely on automated processing. You can also complain to a data protection authority: in Switzerland, the Federal Data Protection and Information Commissioner (FDPIC); in the European Union, the authority in the country where you live or work. This policy is written to meet the Swiss Federal Act on Data Protection (FADP) and, for visitors in the European Union, the General Data Protection Regulation (GDPR). ## Changes We update this policy when the website changes how it handles personal data. The date at the top shows the latest version. --- title: "Request Access to Prism — Self-Hosted AI Gateway" description: "Prism is not available for download yet. Tell us how you plan to use it and we will get back to you. Refund, billing and personal-data requests also go here." url: https://prism.tm/request-access/ --- REQUEST ACCESS # Request access. Prism is not available for download yet. Tell us how you plan to use it and we will get back to you. The same form covers refund and billing questions and requests about your personal data. Legal notices go only to [legal@prism.tm](mailto:legal@prism.tm). --- title: "Terms of Use — Prism Self-Hosted AI Gateway" description: "Website terms of use for prism.tm. Understand permitted usage, automated access rules, and licence distinctions for our self-hosted AI gateway." url: https://prism.tm/terms/ --- TERMS | UPDATED 3 OCTOBER 2026 # Terms. These terms apply to your use of the website prism.tm. By using the website you accept them. They do not grant a licence to the Prism software, which will come with its own terms when it is made available. ## Who we are prism.tm is operated by AEGIS ALPHA SA, c/o Fidraco SA, Baarerstrasse 25, 6300 Zug, Switzerland, company number CHE-236.808.880. Contact: [legal@prism.tm](mailto:legal@prism.tm). ## Information on this website The website describes Prism and its planned editions. Prism is not yet available for download, and editions marked "coming soon" are not available. Descriptions of features, prices and editions are general information, not an offer, and may change before Prism becomes available. Any right to use Prism will be granted only under the licence or agreement that comes with it, on the terms stated there. Performance figures on the website describe the measurements stated next to them, on the hardware and under the conditions described there. Other hardware and configurations will give different results. The comparison page describes other products as shown on their public pages on the date stated on that page. These details may have changed since; each product's own pages are authoritative. Product names are trademarks of their owners. We are not affiliated with, endorsed or sponsored by them. ## Using the website You may read the website and share links to it. You may not use it in a way that harms the website or other users, including attempts to break its security, overload it, or send spam through its forms. Automated access, including by search engines and AI systems and for text and data mining, is allowed to the extent [robots.txt](https://prism.tm/robots.txt) permits it, provided it does not overload the website. The plain-text copies at [/llms.txt](https://prism.tm/llms.txt), [/llms-full.txt](https://prism.tm/llms-full.txt) and the Markdown version of each page are provided for that purpose. ## Content and trademarks The website's text and design belong to AEGIS ALPHA SA or its licensors. The Prism name and logo, as used for this product, are names and marks of AEGIS ALPHA SA. You may quote short passages with a link to the source, and automated systems may copy and process the website's text as allowed above. Any other reproduction or adaptation of the website's content requires our written permission. You may use the name Prism to refer to the product, for example in reviews, articles or links; use that suggests we endorse you or that you are affiliated with us requires our written permission. ## Messages you send us When you send us a request through the website or by email, make sure the information is accurate and that you are entitled to share it. How we handle personal data is described in the [privacy policy](https://prism.tm/privacy/). ## Links to other websites The website links to websites we do not control. We are not responsible for their content or their handling of your data. ## Availability and liability We provide the website as it is and may change, suspend or discontinue it at any time. We do not guarantee that it is always available, error-free or complete. The website is provided free of charge. We are liable without limitation for intent and gross negligence, for injury to life, body or health, and under product liability law. In all other cases we are not liable for loss or damage arising from the use of the website or from reliance on its content, except where mandatory law in your country of residence provides otherwise. ## Law and courts These terms are governed by Swiss law. The courts of Zug, Switzerland, have jurisdiction. If you are a consumer, you keep the protection of the mandatory laws of the country where you live and may also bring claims before its courts. ## Changes We may update these terms, for example when the website or the law changes. Changes apply to use of the website from the date they are published here, as shown by the date at the top. Earlier use is governed by the version in force at the time.