Set up Bito Governor (Bito-hosted)
Get your team running on Bito-hosted Governor. Connect your LLM providers, set up routing and gateway keys, enable AI Architect, and point your coding tools at it.
Bito Governor runs either on Bito's infrastructure or inside your own network. This page covers the Bito-hosted deployment. To run Governor inside your own network, see Set up Bito Governor (self-hosted).
With Bito-hosted Governor, Bito operates the infrastructure and there is nothing for you to install. You configure your workspace in the Bito Governor admin UI at https://gateway.bito.ai/admin/, then point your AI coding tools at it.
Setup has four parts:
Provider account
Stores an API key for an LLM provider. Add an account for every provider you use.
Route
Which provider and model serve each request. Maps a model alias your tools request to a provider account and an upstream model, and optionally hands the alias to the auto-router.
Gateway key
Authenticates a coding tool to Governor.
Feature
A server-side capability that runs inside a request, such as Bito's AI Architect. Optional.
Prerequisites
You need the following:
Admin Token. Contact support@bito.ai to set up Governor for the first time. Bito creates your account and sends you an Admin Token.
An API key for each LLM provider you use, such as Anthropic, OpenAI, Groq, or Google. Governor sends requests to your own provider accounts.
The model names your coding tools request, such as
claude-opus-4-8. Model names are case sensitive.AI Architect MCP URL and access token, if you enable AI Architect. Both are available in your Bito account.
Sign in
Enter your Admin Token.
The workspace opens on the Dashboard. The left sidebar contains the following pages: Dashboard, Documentation, Reports, Keys, Members, Accounts, Routes, Features, Limits, Prices, Test, and Audit.
Your Admin Token grants access to your own workspace only.
Most configuration pages contain a form at the top and a table of existing entries below it.
Step 1: Add a provider account
A provider account stores one API key. Add an account for every provider you use, such as Anthropic, OpenAI, Groq, Fireworks, OpenRouter, Together, or Google. Add more than one account for the same provider when you hold several keys, for example one per team or environment.
In the left sidebar, click Accounts.
In the Add account form, complete the following fields:
provider
The provider you are connecting.
name
A name for this account, for example prod or my-vllm. The name appears in routes, reports, and prices.
key
Your provider API key. Governor stores it envelope encrypted.
base url
The provider endpoint. The default is filled in for each provider. Override it for a proxy, a regional endpoint, or a self-hosted model server.
Click Add.
The account appears in the Accounts table with the actions edit, test, reveal, and remove.
Click test on the new account. test checks the connection to the provider to verify the key and endpoint.
Examples
Step 2: Add a route
A route maps a model alias your coding tool requests to a provider account and an upstream model.
In the left sidebar, click Routes.
In the Add route form, complete the following fields:
alias
The model name your coding tool requests, for example claude-opus-4-8 or claude-*. Enter * to match any model.
provider
The provider that serves the request.
account
The provider account used.
model (or *)
The upstream model sent to the provider. Enter * to forward the model name the tool requested.
api
The API dialect. Leave it on auto to follow the caller.
priority
The failover tier. Lower numbers are used first. Default 0.
weight
The share of traffic within a tier. Default 1.
retries
Retry attempts for this target. Leave blank to use the gateway default.
auto-route this alias
Adds the route, then opens auto-routing so you can say which models answer which kind of request. It starts as a dry run: every request is classified and recorded, and this route keeps answering until you turn routing on. See Auto AI model routing for more details.
backing group (internal)
Hides this route from your apps. They cannot ask for it by name and it does not appear in the model list, so only auto-routing can send traffic here. Use it for the models a router picks between, so nobody skips the router by asking for one directly.
Click Add route.
Routes are grouped by alias in the table below the form. Each group lists its targets with provider, model, account, priority, weight, retries, an enable toggle, and a health state. Priority, weight, and retries are editable inline.
Each group also carries a Direct and an Auto control. Direct sends every request for that alias to the targets you configured. Auto hands the alias to the auto-router, which picks a model for each request.
A target marked cooling is in a cooldown period after repeated failures. Governor sends its traffic to the next available target until it recovers.
Wildcard and exact aliases
An alias can be an exact model name such as claude-opus-4-8, or a wildcard such as claude-sonnet-* or *.
A route with * as both the alias and the upstream model passes every request through to the selected account unchanged.
Exact aliases take precedence over wildcards. A route for claude-opus-4-8 is used instead of a claude-* route, and a claude-* route is used instead of *. This lets you run one catch-all route so that every model reaches a provider, then override selectively for the models you care about.
Failover and load balancing
Add the same alias again with a different provider account.
Governor uses the lowest priority tier first.
Within a tier, traffic is distributed by weight.
Targets with the same priority receive requests in turn.
If a provider returns errors, Governor sends the request to the next available target.
Auto-routing
An alias can answer from the targets you configured, or you can hand it to the auto-router, which classifies each request and picks a model for it. Select auto-route this alias when you add the route, or click Auto on the group in the routes table.
See Auto AI model routing for more details.
Examples
Step 3: Create a gateway key
A gateway key authenticates a coding tool to Governor. Provider keys stay in the Bito UI.
In the left sidebar, click Keys.
In the Create key form, enter a name that identifies the team or tool that will use the key.
Click Create.
Copy the key.
The key starts with gw_sk_ and is displayed once. Governor stores keys hashed and cannot display them again.
The Keys table lists each key by ID, prefix, name, enabled status, and a revoke action.
Step 4: Enable features
Features are server-side capabilities that Governor runs inside a request. Two features are available, and both are optional.
The Features table lists each enabled feature with its alias, state, whether a token is stored, and its MCP URL, with edit, test connection, and disable actions. Enabled features also appear as badges against each alias on the Routes page.
AI Architect
AI Architect serves system context from a live knowledge graph of your engineering system, covering code, business context, and tribal knowledge. Governor applies it inside each request, so your coding tools receive that context as they work.
In the left sidebar, click Features.
In the Configure feature form, select
ai_architectfrom the feature list.Complete the following fields:
alias
Leave blank to enable the feature across the workspace, or enter a route alias such as claude-* to scope it to that alias.
MCP URL
Your AI Architect MCP endpoint. If left empty, Governor falls back to a built-in stub.
Steering text
Overrides the default instructions Governor sends with AI Architect. Leave blank to use the default.
Tool allowlist
Restricts which AI Architect tools the model may call, one tool name per line. Leave empty to allow all.
Max hops
The hop budget for a single AI Architect lookup. Default 16. See Max hops below for more details.
Max hops per request
The combined hop budget across every AI Architect lookup in one request. Leave blank to use the gateway default.
Prompt-cache injection
Caches what Governor sends with AI Architect on Anthropic, so repeat hops bill at the cache-read rate. Leave on Use default to follow the gateway-wide setting.
Architect model (sub-agent)
Runs the AI Architect lookups on a cost-efficient sub-agent while the route model writes the answer, for example GPT-5.6 Luna or Gemini Flash Lite 3.5. Leave blank to run them on the request's own route model. You must configure a sub-agent to capture most of the cost savings.
Run Architect in-loop (legacy)
Runs the AI Architect tools inline on the route model instead of the default sub-agent mode. Ignored when an Architect model is set.
Delegation pressure
How hard the assistant is pushed to consult AI Architect.
Balanced consults it when the assistant judges research worthwhile, which suits coding tools whose own file search competes for the same job.
Aggressive tells the assistant to consult AI Architect first, before searching files itself, which suits chat-style products.
Left unset it follows the Architect model setting above — Balanced with none pinned, Aggressive with one, because a pinned model makes research cheap enough to lean on; the unset option names whichever applies right now. Choosing a value explicitly overrides that link and holds even if the Architect model changes later.
Evidence format
What a finished research call hands back.
Prose returns a written answer with citations.
Structured returns the same research as separate findings, each carrying a verbatim code excerpt with its file and line.
Prose is recommended, and matched or beat Structured on accuracy in five test setups out of six while costing less in five out of six, because excerpts add to the size of every request. Choose Structured when you parse the findings yourself.
Default: Prose
Quality mode
Sets how deeply AI Architect researches a question. Choose one of the following:
Use default: follows the gateway-wide setting.
Normal: uses the standard prompts and hop budget. This is the default.
High quality: researches deeper and more thoroughly, at roughly twice the AI Architect cost.
Codebase context
Codebase context tells the assistant about your own codebase before it starts work.
This is the highest-impact setting on this form, and it is off by default.
Conventions sends a short summary of the repository the person is working in, covering how you handle errors and logging, how you name things, how you test, and your security and module boundaries. The summary is the same for every request, so it is inexpensive to send repeatedly, and in testing it roughly halved the cost of a coding session.
Conventions + task research also reads the request, works out what kind of work it is, and looks that up before answering, covering where the change belongs, what it would break, which pattern to follow, and what is already underway.
Default: Off
Include risk areas and in-flight work
Also tells the assistant about known risk areas, technical debt, and work currently underway in the part of the codebase the caller is working in. Carries no contributor names.
Available only when Codebase context is on.
MCP token
Your AI Architect access token. Leave blank to keep the token already stored.
Task guidance
Task guidance adds what only your indexed codebase can supply to three kinds of request. Each setting is off by default and applies only to the request type named.
Guide what plans cover
When someone asks the assistant to plan or scope a change, it also covers what else the change would affect across your repositories, the patterns your code already follows, the business rules that constrain it, and the parts of the code that are risky to touch.
This makes plans more complete rather than more accurate, so it ensures the important ground is covered without making individual details more likely to be right.
In testing, plans that addressed those areas rose from about half to roughly four in five, with no slowdown.
Applies to planning, design, and implementation requests. Questions and troubleshooting are unaffected.
Guide what reviews cover
When someone asks what the codebase requires of a change they are about to make, the assistant also establishes which other repositories and services call the code being changed and would have to move with it, the convention the affected code is meant to follow, and the invariants the change could break.
The cross-repository part is the point, because call sites and conventions inside one repository are already searchable while a consumer in another service is not.
Applies to review requests only.
Guide what triage covers
When someone brings a bug or an outage, the assistant first checks what its local view cannot show, including whether an incident or alert is already firing for the services involved, what recently deployed in that area, and any issue already recorded against it.
Tracing the code is something the assistant can already do from the repository, while knowing that an alert has been firing since this morning is not.
Applies to bug reports and troubleshooting only.
Click Enable.
Changes apply to the next request. Users take no action.
Max hops
Some questions require several passes to answer. A question about how your repositories connect requires Governor to retrieve the repository list, then look up the dependencies of each repository. Each pass is a hop.
Two settings cap this work, and both apply at the same time.
Max hops
One AI Architect lookup.
Max hops per request
Every AI Architect lookup in one request, combined.
A single request can trigger more than one lookup, so Max hops per request is what stops a complex request from running up cost through repeated lookups that each stay within their own limit.
Governor stops as soon as it has an answer, so both values are ceilings rather than fixed costs.
16
Default. Suitable for most workspaces.
30 or higher
Workspaces with several hundred repositories, or teams that ask broad cross-repository questions.
Raise Max hops if answers come back incomplete. Leave Max hops per request blank to use the gateway default, and set it when you want a firm ceiling on how much AI Architect work a single request can do. Each hop consumes tokens.
Reasoning downgrade
reasoning_downgrade lowers the reasoning effort of a request by exactly one level. Reasoning tokens bill at the output rate, so a lower level reduces the cost of the request.
In the left sidebar, click Features.
In the Configure feature form, select
reasoning_downgradefrom the feature list.Leave alias blank to apply the feature across the workspace, or enter a route alias such as
claude-*to scope it to that alias.Click Enable.
Apart from alias, the reasoning_downgrade feature has no settings.
Governor leaves a request unchanged when it already uses the lowest or second-lowest reasoning level, or when it sends no reasoning at all.
Step 5: Connect a coding tool
In the left sidebar, click Documentation. Your base URL is displayed at the top of the page, and the links below it jump to the four sections on the page.
Get started
Your base URL, a field for your gateway key, and how to authenticate.
Use it
Ready-made curl, Python, and JavaScript requests, and Try it for sending a live request.
Connect a tool
Copy-paste setup for each supported coding tool.
Reference
Endpoints, your route aliases, and how usage and cost are reported.
To connect a coding tool:
In the Get started section, paste a gateway key into the key field. Every example on the page fills in with your base URL and key. To generate a key here, click + Create test key.
In the Connect a tool section, select your tool.
Setup is provided for Claude Code, Claude Desktop, Cursor, Cline (VS Code), Continue (VS Code / JetBrains), Aider, Codex CLI, GitHub Copilot CLI, Windsurf, Zed, and any OpenAI-compatible or Anthropic-compatible tool.
For Claude Code, set two environment variables and start the tool:
To configure a team, distribute these two variables using your existing developer environment tooling. If your traffic already passes through a central gateway, set them there instead.
Governor accepts requests on three endpoints:
/v1/messages
Anthropic Messages
Claude Code, Anthropic SDKs
/v1/chat/completions
OpenAI Chat Completions
Codex, most OpenAI-compatible tools
/v1/responses
OpenAI Responses
OpenAI Responses API clients
Authenticate with Authorization: Bearer <GATEWAY_KEY> or X-Api-Key: <GATEWAY_KEY>. The same gateway key works for all three dialects.
Every response carries an x-bito-routed-model header naming the model that answered. Read that header rather than the model field inside the response body, because some providers return the model that was requested and others return the model that answered. The difference matters once auto-routing is on, since the model that answers may not be the one your tool asked for.
Connect Claude Desktop
Once you configure Bito Governor as Claude Desktop's third-party inference gateway, every model request the app makes goes through Governor. That covers Chat, Cowork, and Code sessions. Your routes, auto-routing, limits, cost tracking, and AI Architect settings apply to all of them. Claude Desktop uses a settings window instead of environment variables, so the setup differs from Claude Code.
Before you begin
Update Claude Desktop to the latest version. Download Claude Desktop.
Create a gateway key for Claude Desktop, as described in Step 3. A separate key per tool lets you track usage and set limits for Claude Desktop on its own.
Your gateway base URL is
https://gateway.bito.ai.
1. Turn on Developer Mode
You only do this once on each machine. If you already see a Developer menu, skip to the next step.
Open Claude Desktop.
Open Help > Troubleshooting > Enable Developer Mode. On macOS, Help is in the menu bar. On Windows, it's in the application menu in the top-left corner.
Confirm the prompt. Claude Desktop restarts and a Developer menu appears.

2. Configure Governor as the gateway
Open Developer > Configure Third-Party Inference.

In the Connection section, enter these values:
Inference provider
Gateway
Credential kind
Static API key
Gateway base URL
https://gateway.bito.ai
Gateway API key
Your gw_sk_ gateway key
Gateway auth scheme
Bearer (the default)
Leave the remaining fields as they are. Governor doesn't need custom headers.
Click Test Connection. Continue when the result shows green.
Click Save Changes, then Apply Changes, and confirm the relaunch.

3. Verify the connection
Check that the bottom-left corner reads <your name> with Gateway connected.
Open Code and click the model picker. It lists the route aliases you created in Step 2.
Send a short prompt and confirm the request appears on the Governor Dashboard.
If AI Architect is enabled on the selected route, ask
List my indexed repositories. Claude Desktop returns the repositories from your knowledge graph without running localgrepor file searches.
Roll out to your team
The steps above configure one machine. To apply the same configuration across your team, configure and test one machine, click Export in the Configure Third-Party Inference window, and deploy the resulting .mobileconfig (macOS) or .reg (Windows) file through your MDM tool. See Anthropic's guide to deploying Claude Desktop with MDM.
Operate the Bito Governor
Verify the configuration
Check route selection. In the left sidebar, click Test. Enter a model alias and click Test. Governor returns the route, provider, account, and lane it would use. No request is sent, so this costs nothing.
Check auto-routing, if you set it up. In the left sidebar, click Routes. On a routed alias, click Classify a prompt, enter a sample request, and confirm it lands in the tier you expect. No request is sent, so this costs nothing.
Send a request. In the left sidebar, click Documentation. In the Use it section, go to Try it. Paste a gateway key, select a model, type a prompt in the message box, and click Run. This sends a real, billable request to your provider.
Query your own system. From your coding tool, ask a question that requires knowledge of your repositories. A response naming your own services confirms AI Architect is active.
Check the report. In the left sidebar, click Reports and confirm the requests appear.
Set prices
Token prices produce the cost figures on the Dashboard and in Reports. Prices are expressed in $/Mtok, meaning US dollars per million tokens.
Global defaults are maintained by your gateway operator. Set a price here to override the default for your workspace, or to record a negotiated rate for one account. Governor resolves prices in this order: account, then workspace, then global.
In the left sidebar, click Prices.
In the Set price form, select the vendor.
Select an account to apply the price to that account only, or leave it on all accounts to apply the vendor rate across your workspace.
Enter the model name.
Enter in, out, and optionally cache-read and cache-write prices, all in
$/Mtok.Click Set.
The Prices table lists each price with its scope, vendor, model, rates, and source.
A model with no price reports token counts and a cost of zero. The Dashboard shows the number of unpriced requests per model in the UNPRICED column. Auto-routing also depends on these prices. A model with no price cannot be selected by a router, and both the routing direction and the price ceiling are evaluated against them.
Set limits
Limits are applied per gateway key.
In the left sidebar, click Limits.
In the Set limits form, select a key.
Complete any of the following fields:
rpm
Maximum requests per minute.
tpm
Maximum tokens per minute.
budget ($/month)
Monthly spend cap. Requires prices to be set.
max_concurrency
Maximum concurrent requests.
Click Set.
Leave a field blank to leave it unchanged. Enter 0 to remove a cap, which makes that limit unlimited.
Monitor usage and cost
Dashboard
The Dashboard shows spend and request volume for the last 30 days, with totals for requests, input tokens, output tokens, and cost. Use Group by to break the numbers down by model, alias, key, provider, account, detail, or feature.
The table below the chart lists requests, token counts, cost, and unpriced request count per model.
Reports
Reports is the raw event log, with one row per request, updated in near real time. Filter the log and export it with Download CSV.
Token counts are split into four buckets:
in
Fresh prompt tokens, excluding anything served from cache.
cached
Prompt tokens read from cache, billed at a lower rate.
cache_w
Tokens written to the cache. On Anthropic this carries a small premium.
out
All generated tokens, including reasoning tokens.
The full prompt your tool sent is in + cached + cache_w. The buckets do not overlap, so nothing is counted twice.
Features make hidden calls inside a request and are reported separately. The base columns show the answer the caller received, and the feature columns show the feature's own usage. A request's total is base plus feature. Expand a row to see the split.
Measure the effect of AI Architect
Governor does not currently report savings against a baseline. To measure the effect:
Select a set of tasks your team runs regularly.
Disable AI Architect, run the tasks, and record cost per task from Reports.
Enable AI Architect and run the same tasks with the same tool and model.
Compare cost per task and confirm the tasks still complete correctly.
Add members
In the left sidebar, click Members.
In the Add team member form, enter a name and select a role.
Click Create.
Each member signs in to the Bito UI with the token generated for them.
Member
Manages their own gateway keys and views their own usage.
Workspace admin
Full configuration access to the workspace, including routes, accounts, features, and limits.
You can disable a member from the Team table. To change or disable a workspace admin, contact support@bito.ai.
View the audit log
Audit records every configuration change and every secret reveal in your workspace, with the admin who performed it and a timestamp. The log is read only.
Give each person their own member token, so that the log identifies who made each change.
Troubleshooting
401 from Governor with a gateway key
The gateway key is invalid or revoked.
Create a new key on the Keys page and update the tool configuration.
404 for a model
No route matches the requested alias.
Add a route for the exact model name, or add a * route.
Requests reach an unexpected model
An exact alias takes precedence over the * route.
Check the Routes page. Exact aliases override wildcards.
A route shows cooling
The target failed repeatedly and is in a cooldown.
Check the provider account with test on the Accounts page. Traffic uses the next target until it recovers.
Cost column shows zero, or UNPRICED is high
The model has no price set.
Add prices for that model on the Prices page.
Budget limit has no effect
The model has no price set, or the limit is 0.
Set prices, then set a positive budget. 0 means unlimited.
A key still works after setting limits to 0
0 removes the cap rather than blocking the key.
Disable the key on the Keys page.
AI Architect responses lack system context
The feature is disabled, scoped to a different alias, or the MCP URL is empty.
Open the Features page and check the alias, MCP URL, and token. An empty MCP URL falls back to a built-in stub.
Broad questions return incomplete answers
Governor reached the max hops budget.
Increase Max hops, and check Max hops per request if the request makes several AI Architect lookups.
Repeated 429 or 5xx
One provider account is rate limited or unavailable.
Add a second target on the same alias to enable failover.
Requests reach a model you did not configure for that alias
Auto-routing is on for the alias.
Open Routes and check the tier assignments, or click Direct to stop routing that alias.
A check that compares the requested model to the returned model fails
The model field in the response names the model that answered on some providers.
Read the x-bito-routed-model response header instead, which always names the model that answered.
Auto-routing is on but nothing is routed
The router is in shadow, or every tier is unusable.
Check the mode on Routes. A tier marked will not route has a model with no price, no deployment on the account, or one blocked by your routing direction.
Every request is classified simple
The LLM classifier is timing out, so the built-in scorer is deciding instead.
Raise the classifier timeout, or point classifier model at a faster route alias.
What's next
Set up Bito Governor (self-hosted with Docker) to run Governor on a single host with Docker
Contact support@bito.ai for configuration assistance.
Last updated

