Skip to main content

Virtual Keys page

The Virtual Keys page lists every virtual key you are allowed to see and is where you create new keys and open one to inspect or change it. It lives at /ui/api-keys and is the second entry under AI GATEWAY in the left nav, right after Home. The nav item has no role restriction, so every signed-in role sees it. For non-admin roles the item is hidden when a proxy admin has set enabled_ui_pages_internal_users and left this page out. The page itself only checks that you are signed in. Which keys come back is decided by the server for your role, and the write controls on the page depend on your role as described in the sections below.

A real-world scenario​

A product team is launching a support bot and needs a key that can call two models, spends at most 50 dollars a month, and belongs to the team rather than a person, so it keeps working when someone leaves. The team admin creates a service account key on the Virtual Keys page and stores the secret in the bot's deployment.

Steps​

  1. Open Virtual Keys under AI Gateway, or go to /ui/api-keys, and click + Create New Key.

  2. Under Owned By pick Service Account, pick the Team, type a Service Account ID such as support-bot, and pick the two models under Models.

  3. Open Optional Settings, set the max budget to 50 and the reset period to monthly, then click Create Key. The same with the API:

    curl -X POST http://localhost:4000/key/generate \
    -H "Authorization: Bearer $SPANWAY_API_KEY" -H "Content-Type: application/json" \
    -d '{"team_id": "team-support", "key_alias": "support-bot", "models": ["gpt-5.5", "claude-haiku-5-5"], "max_budget": 50, "budget_duration": "30d"}'
  4. Copy the key from the Save your Key dialog with Copy Virtual Key. It is not shown again.

Expected result​

"Virtual Key Created" shows, the key appears in the table with its team and models, and a request with the key to a third model is refused with key_model_access_denied.

ControlTypeWhat it does
Virtual KeysTitlePage title, with the description "Every key that authenticates requests to the gateway.".
Key hygieneLinkOpens the Key Hygiene page. Shown to proxy admins, admin viewers, organization admins and anyone who is an admin of at least one team. The link appears whether or not the license includes key hygiene, and the Key Hygiene page explains when it does not.
+ Create New KeyButtonOpens the Create New Key dialog. Shown only to the session roles Admin, Internal User and proxy_admin, and hidden for view-only roles (Admin Viewer and Internal Viewer).

The create dialog can also open from a link. Adding ?create=true to /ui/api-keys opens it on load for roles that can create keys, and the optional parameters owned_by (you, service_account or another_user), team_id, key_alias, models and key_type (default, llm_api or management) prefill the form. The page keeps at most 100 models of at most 256 characters each, and trims the alias to 256 characters. A team_id you do not belong to is ignored, models you cannot use are dropped once the model list loads, and owned_by=another_user falls back to You unless your session role is Admin.

Key table​

The table is paged, sorted and filtered on the server. It shows 50 rows per page by default, up to 100, and sorts by Created At newest first until you pick another sort. Search, sort, page and filters are stored in the URL, so a filtered view can be bookmarked or shared. Opening a key adds ?key=<key id> to the URL, so a key's detail view can be linked directly and the browser back button returns to the list.

Toolbar​

ControlTypeWhat it does
Search boxText inputPlaceholder "Search by key alias or ID…". Matches the key alias or key ID. The search runs a moment after you stop typing.
FiltersButtonOpens the Filters drawer described below.
Active filter chipsChipsEach applied filter shows as a chip with its label and value. The x on a chip removes that filter, and Clear all removes every filter.
RefreshIcon buttonReloads the current page of keys.
ColumnsMenuShows or hides columns. Your choice is remembered in this browser.

Filters drawer​

The drawer is titled Filters with the description "Narrow down virtual keys". Apply Filters applies the values and Reset clears them.

FilterTypeWhat it does
TeamSearchable selectOnly keys of the chosen team. Placeholder "Select a team…".
OrganizationSearchable selectOnly keys of the chosen organization. Placeholder "Select an organization…".
User IDText inputOnly keys owned by this user ID.
Key IDText inputOnly the key with this hashed key ID.
StatusSelectAll statuses (the default), Active, Expired, Revoked (blocked) or Deleted. Choosing Deleted lists keys that were deleted, which are kept for audit and spend history.

Columns​

Columns marked hidden are off by default and can be turned on from Columns.

ColumnMeaning
KeyKey alias (or "-") with the secret key's masked name below it and a status badge. Click it to open the key. Sortable.
Key IDHashed key ID. Click it to open the key. Sortable. Hidden by default.
TeamTeam alias, or the team ID when the team has no alias. Links to the team.
OrganizationOrganization alias or ID. Links to the organization. Hidden by default.
UserThe owner's alias, email or user ID, whichever is set first. Hover for all three.
Created AtCreation date. Sortable.
Created ByWho created the key. Hidden by default.
Updated AtLast update date, or "Never". Sortable. Hidden by default.
Last ActiveLast time the key was used, or "Unknown". The header tooltip says this field is new and not backfilled, so only usage after it was added updates it.
ExpiresExpiry date, or "Never". Hidden by default.
Spend / BudgetCurrent period spend against the key's max budget. The header lets you sort by Spend or by Budget. When the key has no budget of its own, the cell also shows the budgets that still limit it, such as the owner's team member budget, the team budget, the organization budget or the owner's user budget.
Lifetime SpendTotal spend across every budget period. Budget resets do not change it. Spend recorded before the gateway started tracking lifetime spend was not backfilled, so a key carried over from that time only counts spend since then, and the key page shows a hint when lifetime spend is below the current period spend.
Budget ResetWhen the current budget period ends, or "Never".
ModelsUp to three models as badges and "+N more" for the rest. A key with no model list shows All Proxy Models, unless its key type or allowed routes give it no model access, in which case it shows No model access.
Rate LimitsTPM and RPM limits, or "Unlimited". Hidden by default.

Status badges​

BadgeMeaning
ActiveThe key is not blocked and has not expired.
BlockedRequests with the key are rejected with 401. When the block came from SCIM, the tooltip says the identity provider deactivated or deleted the owning user.
ExpiredThe key has passed its expiry date.
DeletedThe key was deleted. The tooltip gives when and by whom, and says the key is kept for audit and spend history while requests with it are rejected.

Make a key for a tool​

Give every tool its own key, one per person and tool where you can, for example jane-claude-code or support-bot-chat-app. A key per tool means each tool's spend and errors show up on their own, a leaked key only exposes one tool, and you can switch one tool off by blocking its key without touching the others. Every tool page in these docs points here for the admin side.

  1. Open Virtual Keys (/ui/api-keys) and click + Create New Key.
  2. Under Key Ownership, pick You for your own tool, Another User to issue it to a developer, or Service Account for a shared bot. A service account key needs a Team.
  3. Under Key Details, set Key Name to a name that says who and which tool. Leave Key Type on AI APIs, which lets the key call models but no management route, so a tool cannot change the gateway even if its key leaks.
  4. In Models, pick only what the tool needs. A coding agent that runs background tasks on a smaller model needs that model too. Claude Code, for example, sends quick side tasks such as session titles to the model named in ANTHROPIC_DEFAULT_HAIKU_MODEL when it is set, and its subagents may ask for another model, so include those models, or those calls fail with 403 while the main chat works, see Claude Code models.
  5. Open Optional Settings. Set Max Budget (USD) and Reset Budget, for example 200 USD monthly for a coding agent, so a runaway loop stops at the budget instead of at the invoice. Set Requests per minute Limit (RPM) and Tokens per minute Limit (TPM) for tools that run unattended. Leave Tags empty unless the gateway has an Enterprise license, because key tags need one and without it the key is not created (Only premium users can add tags to keys). The key name already keeps this tool's spend apart in Usage.
  6. Under Key Lifecycle, set Expire Key for a short lived trial key, such as 30d, and turn on Enable Auto-Rotation for long lived keys when your license includes it.
  7. Click Create Key and copy the key. It is shown once. Hand it to the tool as described on the tool's page or in connect any client.

The same key from the API, with the master key or a proxy admin's key:

curl -X POST https://gateway.example.com/key/generate \
-H "Authorization: Bearer $SPANWAY_MASTER_KEY" -H "Content-Type: application/json" \
-d '{"key_alias": "jane-claude-code", "key_type": "llm_api", "models": ["claude-sonnet-5-5", "claude-haiku-5-5"], "max_budget": 200, "budget_duration": "30d", "rpm_limit": 120}'

The answer carries the new key in key, and the alias, models and limits you set.

Where the tool's usage shows. Logs (/ui/logs) lists every request with the key alias, filterable by key. Usage shows spend per key, per team and, with tags, per tool. The key's own Overview tab in this page shows its spend against its budget.

Rotating the key. Open the key, click Regenerate Key, set a Grace Period such as 24h so the old key keeps working while you update the tool, and give the new key to the tool. With an empty grace period the old key stops working at once. From the API this is POST /key/{key}/regenerate. Both need an Enterprise license. Without one, create a new key, move the tool to it and delete the old one. For Claude Code, run spanwayctl reconfigure after you get the new key so its settings file holds it.

If the tool is misbehaving. Block Key in the key's actions menu stops it at once and can be undone with Unblock Key, which is safer than deleting while you investigate.

Create New Key dialog​

The dialog is titled Create New Key and has three parts, Key Ownership, Key Details and a collapsible Optional Settings section. Create Key at the bottom submits it. Closing the dialog throws away everything you entered.

Key Ownership​

ControlTypeWhat it does
Owned ByRadioYou (default) makes you the owner. Service Account creates a key that belongs to a team and not to a person. Another User assigns the key to someone else and is offered only when your session role is Admin. Agent (marked New) creates a key for an agent.
User IDSearchable selectShown for Another User and required. Placeholder "Type email or user ID to search for users". Create User next to it opens a Create New User dialog, and the new user is selected when you finish.
Select AgentSearchable selectShown for Agent and required. Lists the agents on the gateway. The hint says the selected agent uses this key to make requests. If you submit without one you get "Please select an agent".
OrganizationSelectThe organization the key belongs to. Choosing one filters the team list and clears the team and project. Only enabled when your session role is Admin.
TeamSelectThe team the key belongs to, which decides the models and budget limits available. Required for Service Account ("Please select a team for the service account"). Picking a team fills in its organization. Locked while a project is selected.
ProjectSelectShown only when the projects UI is turned on. Assigns the key to a project, which locks the team to the project's team and limits the model list to the project's models.

If the models available to you without a team include the no-default-models marker, the rest of the form stays hidden until you pick a team, with the note "Please select a team to continue configuring your Virtual Key." and Create Key stays disabled.

Key Details​

ControlTypeWhat it does
Key Name or Service Account IDText inputRequired. The label reads Key Name for You and Another User, and Service Account ID for Service Account and Agent. For a service account the value is also stored in the key's metadata as service_account_id. If another key you created in this session already has the same alias in the same team, the dialog stops with "Key alias ... already exists for team with ID ..." before it asks the gateway. The gateway itself requires the alias to be unique across all keys, in every team, and refuses a taken one with "Key with alias '' already exists. Unique key aliases across all keys are required."
ModelsMulti-selectThe models the key may call. Leave it empty to allow every model. All Team Models is offered when a team is selected, and All Proxy Models when no team or project is selected. Choosing either one replaces the rest of the selection and greys out the individual models. Disabled for the Management key type.
Key TypeSelectDefaults to AI APIs. See the table below.
Key typeWhat the key can call
AI APIsOnly AI API routes such as chat completions and embeddings.
ManagementOnly management routes such as user, team and key management. Clears and disables Models.
Full AccessAll routes, AI APIs, management and read-only.
CI (evals)Only starting eval runs on chosen datasets and reading their verdicts, for CI jobs. Offered only to the session role Admin and proxy_admin.

Choosing CI (evals) adds a CI gating box. It lists the eval datasets under Datasets it may run as checkboxes (or "Create an eval dataset first." when there are none). Baseline writer lets the key record baselines and shows Refs it may record baselines for (placeholder refs/heads/main, separate refs with spaces or commas). Read dataset items lets the key read the inputs of the chosen datasets, never the expected answers. On submit the form refuses a CI key that has no team, no models, no max budget, no dataset, or a baseline writer with no refs, each with its own message. A CI key is created without an owner user and is limited to the eval CI routes.

Optional Settings​

Click Optional Settings to expand it. Every field here is optional.

ControlTypeWhat it does
Max Budget (USD)NumberMost the key may spend. Once reached, requests with the key are blocked. The help text under this field and under the TPM, RPM and TPD fields names the team's limit, but on this page it always reads "unlimited" and the form does not compare your value with the team you picked.
Reset BudgetSelectHow often spend resets, Never resets, hourly, daily, weekly or monthly. Placeholder "Not set".
Budget WindowsList+ Add Budget Window adds a row with a period (Hourly, Daily, Weekly or Monthly, default Daily) and a max spend in dollars. Each window tracks spend on its own. The hint under a row says when it resets, for example "Resets daily at midnight UTC". The x removes a row. Rows without an amount are not saved.
Per-Model BudgetsListAdd Model Budget adds a model, a max spend and a period (Hourly, Daily, Weekly, Monthly or Calendar month, default Monthly). A budget on the bare model name also covers the provider-prefixed name. Needs an Enterprise license, so without one the controls are disabled with "Enterprise feature - Upgrade to set per-model budgets".
Budget FallbacksListAdd Budget Fallback adds a Primary Model and its Fallback Models. When the primary model is over its per-model budget, requests go to the first fallback still within its own budget, in the order listed.
Default Customer BudgetSearchable selectShown only for Service Account keys and only to the session role Admin and proxy_admin. A saved budget applied to every new customer (end user) this key creates through the user field or the x-spanway-end-user-id header. It overrides the gateway-wide max_end_user_budget_id, and customers that already have a budget keep it. Placeholder "No default budget".
Tokens per minute Limit (TPM)NumberMost tokens the key may use per minute.
TPM Rate Limit TypeSelectDefault (best effort, no error when limits are overallocated), Guaranteed throughput (raise an error when the team's limit would be overallocated, also checks model limits) or Dynamic (the key may go over its limit while the model is not returning errors).
Requests per minute Limit (RPM)NumberMost requests the key may make per minute.
RPM Rate Limit TypeSelectSame choices as for TPM, applied to the RPM limit.
Tokens per day Limit (TPD)NumberDaily token budget for batch submissions to /v1/batches. When set, batch input files count against this 24 hour window and not against TPM or RPM. Online requests still use TPM and RPM.
Per-Tag Rate LimitsList+ Add Tag Limit adds a tag and an RPM limit, so each request tag gets its own counter. Requests without a matching tag use the key's own limit. Rows without a tag name or a number are not saved.
Throttle on budget exceededSwitchShown only to proxy admins, because the gateway refuses it from anyone else with 403. On: when the key goes over its max budget it keeps working, but its TPM and RPM are cut to spanway_settings.budget_exceeded_throttle_percentage, a fraction such as 0.2 for 20%, so the app keeps answering while spend grows slowly. Off (the default): an over-budget key is refused. Needs that setting and a TPM or RPM limit on the key, otherwise the key is still refused.
Enable Prompt CachingSwitchCuts input cost when the key sends the same long prompt again and again. On: the gateway marks the reusable start of each prompt so Anthropic and AWS Bedrock Claude models can cache it, and requests that already set their own markers are left alone. Off (the default): prompts are sent as they are. The first, cache-writing call can cost slightly more.
GuardrailsTagsGuardrails to run on this key's requests. Pick existing ones or type new names.
Disable Global GuardrailsSwitchShown only to the session role Admin and proxy_admin. The key skips guardrails that are set to run on every request.
PoliciesTagsShown only to proxy admin roles. Policies that control guardrails and other settings for this key. Needs an Enterprise license, otherwise it is disabled with "Enterprise feature - Upgrade to set policies by key".
PromptsTagsShown only to proxy admin roles. Prompt templates the key may use. Needs an Enterprise license, otherwise it is disabled.
Access GroupsSelectAccess groups for the key, which decide the models, MCP servers and agents it can use.
Allowed Pass Through RoutesSelectPass-through routes the key may use, limited to the selected team's routes when a team is picked. Needs an Enterprise license, otherwise it is disabled.
Allowed Vector StoresSelectVector stores the key may use. Leave it empty for all of them.
MetadataText areaA JSON object stored on the key. Placeholder "Enter metadata as JSON". The form does not check the JSON, and text that does not parse is replaced by an empty object without a warning, so check it before you submit.
TagsTagsTags for spend tracking and tag-based routing. Pick existing tags or type new ones, separated by commas.

Optional Settings also holds these collapsible groups.

GroupControls
MCP SettingsAllowed MCP Servers picks MCP servers, access groups or toolsets (limited to what the selected team can use, and cleared when you change team). Below it a per-server tool list lets you narrow the tools, in Risk Groups or Flat List view, with Select All. Tools granted by a toolset or an access group are marked and cannot be unticked here.
Agent SettingsAllowed Agents picks agents or agent access groups the key may call.
Skill SettingsAllowed Skills grants private (disabled) skills to the key in the Claude Code marketplace. Enabled skills are visible to every key already.
Code Graph SettingsCode repositories picks Code Graph repositories the key can read through the spanway_code MCP server, in addition to the ones its team owns. Marked Enterprise. A team key can only carry repositories its team already lists, and only a proxy admin can grant repositories to a key without a team.
Server Tool SettingsAllowed Server Tools grants gateway-run tools, such as spanway:web_fetch, that the key may put in tools on /chat/completions. Nothing is granted until you tick it. A key in a team only gets tools its team also has.
Logging SettingsLogging integrations for this key and callbacks to turn off for it. Needs an Enterprise license. Without one the group is greyed out and a tooltip says key-level logging settings are an enterprise feature.
Router SettingsRouting overrides for this key's requests. Empty settings are not saved.
Provider PreferencesShown only to the session role Admin and proxy_admin. Default providers, ranking and price caps for this key, which a request can narrow but never widen. Fields are Only these providers, Never these providers and Try in this order (comma-separated providers, deployment IDs or model names), Prefer (Routing strategy decides, Lowest price, Lowest latency, Highest throughput or Most reliable), Max input price (USD per 1M tokens), Max output price (USD per 1M tokens), Disable fallbacks to other model groups, Only these quantizations, Preferred min throughput (tokens/s), Preferred max latency (s), Only deployments that support every parameter the client sends and Only models whose terms allow distilling their output. Invalid values stop creation with a message.
Model AliasesCustom alias names that map to models in API calls made with this key.
Key LifecycleExpire Key takes a duration such as 30s, 30m, 30h or 30d. Leave it empty for a key that never expires. Enable Auto-Rotation regenerates the key on a schedule, and Rotation Interval offers 7 days, 30 days (default), 90 days, 180 days, 365 days or Custom interval (for example 14d). Auto-rotation needs an Enterprise license, so without one the switch is disabled with a note saying so. When it is on, a note says you get the new key in a notification and the old key stops working after a short grace period.
Advanced SettingsEvery other field of the key generate API, built from its schema. The fields already on the form are left out. Key (a custom secret) is also left out when the gateway sets disable_custom_api_keys. The tooltip links to the API reference.

After you submit​

The page shows "Making API Call" and then calls the key generate API, or the service account route for a service account. On success it shows "Virtual Key Created" and the Save your Key dialog with the new secret and Copy Virtual Key. The dialog says you will not be able to view the key again and must generate a new one if you lose it. Copy it before you close the dialog. On failure an error toast starts with "Error creating the key". When the server says a team member lacks permission, the toast says to ask your proxy admin to change the team member permission settings.

Key detail view​

Click a key's alias or ID to open its detail view. Back to Keys returns to the list.

Header​

The header shows the key alias (or "Virtual Key") with a copy button, a Blocked badge when the key is blocked, and the key ID with a copy button. Below them are User, Expires, Created At, Created By, Last Updated, Last Active, Team and Organization. The user, creator, team and organization link to their own pages.

ControlTypeWhat it does
Regenerate KeyButtonOpens the Regenerate Virtual Key dialog. Disabled without an Enterprise license, with the tooltip "This is a Spanway Enterprise feature, and requires a valid key to use.". The server also refuses regeneration without the license.
More key actionsMenuHolds Block Key or Unblock Key, Reset Spend and Delete Key.
Block Key / Unblock KeyMenu itemOpens a confirmation. Blocking makes requests with the key fail with 401 until it is unblocked. The key is not deleted.
Reset SpendMenu itemOpens Reset Key Spend, which sets the current period spend to $0, the same as an automatic budget reset. Spend history stays in the logs.
Delete KeyMenu itemOpens Delete Key. See below.

The Regenerate Key button and the actions menu are shown when you are a proxy admin, an admin of the key's team, or the key's owner (unless your session role is Internal Viewer). Block Key, Unblock Key and Reset Spend are only offered to proxy admins and admins of the key's team.

Delete Key dialog​

The dialog warns "This action is irreversible and will immediately revoke access for any applications using this key." and lists the Key Alias, Key ID, Team ID and Spend. When the key has an alias you must type the alias before Delete turns on. Deleting cannot be undone. The key stops working at once. Its record moves to the deleted keys archive and stays visible under the Deleted status filter and on the Deleted Keys tab of the Logs page, but there is no way to restore it.

Regenerate Virtual Key dialog​

Regenerating issues a new secret for the same key and keeps its settings.

FieldTypeWhat it does
Key AliasTextThe current alias, read only.
Max Budget (USD)NumberPrefilled with the current budget. Rounded to two decimals.
TPM LimitNumberPrefilled with the current TPM limit.
RPM LimitNumberPrefilled with the current RPM limit.
Expire KeyTextA new expiry duration such as 30s, 30m, 24h, 2d, 1w or 1mo. The current expiry shows below it, and a new expiry preview appears once you type a value. Required when the key has already expired ("Expiration is required for expired keys").
Grace PeriodTextHow long the old secret keeps working after rotation, so both work during the cutover. Empty revokes the old secret at once. The hint recommends 24h to 72h for production keys.

Regenerate submits. The dialog then shows "Save it now, you will not see it again" with the new key, Copy Key and Close. Clicking outside the dialog does not close it.

Overview tab​

CardWhat it shows
SpendCurrent spend against the budget, or against the owner's team member budget when that is what limits the key, the next reset time, and Lifetime spend. A hint explains when lifetime spend is lower than current spend because lifetime tracking was not backfilled.
Rate LimitsTPM, RPM and TPD (batch), and "Throttle on budget exceeded: Yes" when it is on.
ModelsThe key's models as links, or "No models specified".
Object PermissionsVector stores, MCP servers, agents, skills, server tools and other object-level access.
Allowed IPsThe client addresses allowed to use the key, or "Any address".
GuardrailsThe key's guardrails, or "No guardrails configured", and a Global Guardrails Disabled badge when global guardrails are turned off.
PoliciesThe key's policies with the guardrails each one resolves to, or "No policies configured".
Logging SettingsLogging integrations and disabled callbacks for the key.
Auto-RotationWhether auto-rotation is on, its interval, the last rotation and the next scheduled rotation.

Savings tab​

Shows how much the key's requests saved over a date range, as a running total (Cumulative) or Per day. Spend is bucketed by UTC day. Roles without a gateway-wide spend view only see their own requests on the key, and a note says spend from other team members is not counted.

Auto-router usage tab​

Shown only to proxy admins and admin viewers. Shows how the key's requests were spread across auto-routers over the date range, with a selector that defaults to All auto-routers.

Settings tab​

The Key Settings card lists the key ID, alias, secret key name, team, project (when the projects UI is on), organization, creation time, expiry, prompt caching, auto-rotation, spend, lifetime spend, budget, budget reset, budget fallbacks, router settings, tags, prompts, allowed routes, allowed pass-through routes, whether global guardrails are bypassed, models, every rate limit, output token estimates, metadata, object permissions and logging settings. Edit Settings is shown to the same people who see the header actions and switches the card into an edit form.

The edit form has these fields. Many work as in the create dialog, and the differences are noted.

FieldNotes
Key AliasFree text.
ModelsSame sentinels as on create. Disabled when the allowed routes include management_routes or info_routes.
Key TypeFull Access, AI APIs or Management. Choosing one rewrites Allowed Routes. Management clears the models.
Allowed RoutesComma-separated routes or route groups such as llm_api_routes, management_routes or /keys/*. Empty allows every route. An unchanged value is not sent, because the server only lets admins set it.
Max Budget (USD)Clearing it removes the budget.
Soft Budget (USD)Sends an alert when spend passes this value, without blocking. Must be a number. Only sent when changed, because the server treats it as an admin-only budget change.
Reset BudgetAs on create. Clearing it removes the reset period.
Budget Windows, Per-Model Budgets, Budget FallbacksAs on create. Per-model budgets also show "Current window spend" for each model. Windows are only sent when you changed them, and removing every window clears them.
Default Customer BudgetShown when the key offers a customer budget. Only proxy admins can change it.
TPM Limit, TPM Rate Limit Type, RPM Limit, RPM Rate Limit Type, TPD Limit (batch)As on create.
Throttle on budget exceeded, Enable Prompt CachingAs on create. Throttle on budget exceeded shows only to proxy admins.
Provider preferencesAs on create. Only proxy admins can change it, and others see it disabled.
Data policyRequire zero data retention, Forbid training on request data, Restrict code traffic to ZDR or self-hosted models, Also scan prompts for code (only when code traffic is restricted) and Allowed regions (region families or exact provider regions, placeholder "Any region"). Requests only go to deployments that meet the policy, and deployments that declare nothing are excluded. Team and organization policies still apply. Only proxy admins can change it.
Allowed IPsOne address or CIDR range per line. Requests from any other address are refused. Empty means no restriction. Invalid lines show an error and block saving. Only proxy admins can change it.
Max Parallel RequestsMost requests the key may run at once.
Model TPM Limit, Model RPM LimitJSON objects of per-model limits, for example {"gpt-4": 100}.
Estimated Output Tokens, Estimated Output Tokens Per ModelOutput tokens reserved for TPM limiting when a request leaves out max_tokens. Only proxy admins can change them.
Per-Tag Rate LimitsAs on create. Removing every row clears them.
Guardrails, Disable Global Guardrails, Policies, Tags, Prompts, Access Groups, Allowed Pass Through Routes, Vector StoresAs on create.
MCP Servers / Access GroupsAs on create, with the per-server tool list. If the MCP server or toolset list cannot load, saving MCP tool permissions is refused with "MCP server or toolset list is unavailable, so MCP permissions cannot be saved yet. Retry."
Agents / Access Groups, Skills, Server Tools, Code repositoriesAs on create.
OrganizationOnly the session role Admin can change it. Locked when the key belongs to a project. Changing it clears the team.
TeamLocked when the key belongs to a project.
ProjectShown when the projects UI is on and the key has a project. Read only. Proxy admins, team admins and some org admins see Detach from project, and a note says team, organization and key limits stay the same. Keep project undoes it before you save.
Router SettingsAs on create.
Logging SettingsLogging integrations and disabled callbacks. Stored callback secrets come back masked. Changing a callback's host means typing its secret again in the same save, otherwise the gateway refuses the update with a 400.
MetadataA JSON object. A tags array typed here is moved to Tags with a notice. Invalid JSON stops the save with "Invalid metadata JSON".
Key lifecycleExpire Key with a Never Expire checkbox, and the auto-rotation controls from the create dialog. Leaving Expire Key empty keeps the current expiry.

Save Changes saves and shows "Key updated successfully", and Cancel leaves the form without saving. When a team admin edits another member's key, only the budget fields (Max Budget (USD), Soft Budget (USD), Reset Budget and budget windows) can be saved. Changing anything else stops the save with "Team admins can only change budget fields on other members' keys, not ...".

Deleted keys​

Deleted keys have no screen of their own on this page. Filter the table by Status set to Deleted, or open the Deleted Keys tab on the Logs page. That tab lists Key ID, Key Alias, Team Alias, Spend (USD), Budget (USD) ("Unlimited" when none), User Email, User ID, Created At, Created By, Deleted At and Deleted By, newest deletion first, 50 per page. Spend (USD), Created At and Deleted At can be sorted. Without an Enterprise license the tab also shows "Coming soon to Enterprise", saying deleted key auditing is moving into the Enterprise audit and compliance suite, and still lists the keys. Deleted keys cannot be restored from the UI.

Empty, error and disabled states​

When no key matches, the table shows "No keys found". A failed key list request shows "Couldn't load virtual keys" followed by the reason and "This is not an empty list. Check your connection and permissions, then retry." Retry loads the list again. While keys load the table shows "Loading keys...", and opening a key that is not on the current page shows "Loading key..." until it loads. A key ID in the URL that cannot be found shows "Key not found" with Back to Keys.

In the create dialog, Create Key stays disabled while the form waits for you to choose a team. Fields that need an Enterprise license (Per-Model Budgets, Policies, Prompts, Allowed Pass Through Routes, Logging Settings and Enable Auto-Rotation) are disabled with a "Enterprise feature" or license note when the license is missing. Models is disabled for the Management key type. Organization is disabled unless your session role is Admin. Team is disabled while a project is selected. In the detail view Regenerate Key is disabled without an Enterprise license.

On the Deleted Keys tab an empty list shows "No deleted keys found" with "Keys deleted from this proxy will show up here.".

Differences by role and license​

WhoWhat changes
Admin and proxy_adminSee and use every control, including Another User ownership, Organization, the CI (evals) key type, Default Customer Budget, Disable Global Guardrails, Provider Preferences, data policy, allowed IPs and output token estimates.
Admin Viewer (proxy_admin_viewer)Has the Admin Viewer session role, which is view only. + Create New Key is hidden, and the detail view hides Regenerate Key, the actions menu and Edit Settings on keys the viewer does not own. The server rejects every key write from this role with 403.
Org AdminNot in the roles that see + Create New Key, so the button is hidden. Sees the Key hygiene link. Can edit keys through the detail view when also a team admin or the key's owner.
Team adminSees the Key hygiene link. Can block, unblock, reset spend and edit the keys of their team. On other members' keys only the budget fields can be changed.
Internal UserCan create keys for themselves, a service account or an agent, and edit, regenerate and delete their own keys. Fields marked admin-only are hidden or disabled.
Internal Viewer+ Create New Key is hidden and the key actions and Edit Settings are hidden on keys they own.
Proxy admins and admin viewersOnly these see the Auto-router usage tab and the full spend on the Savings tab.
No Enterprise licensePer-model budgets, policies, prompts, pass-through routes, key logging settings, auto-rotation and Regenerate Key are disabled. The server also refuses regeneration and auto-rotation without the license.
enable_projects_uiTurns on the Project field on create and the project row and Detach from project in the detail view.
disable_custom_api_keysRemoves the custom Key field from Advanced Settings.

Errors​

What you seeWhat it meansFix
"Error creating the key" with a team member permission messageYour team role may not create keys.Ask a team admin, or widen the team's member permissions.
"Please select a team for the service account"A service account key needs a team.Pick a team.
"Please select a team to continue configuring your Virtual Key."You have no default models outside a team.Pick a team.
budget_exceeded on requestsThe key spent its max_budget.Raise the budget in the key's Settings tab, or wait for the reset.
expired_key on requestsThe key's expiry passed.Regenerate or extend the key.
"Error creating the key" with Key with alias '<alias>' already exists...Another key, in any team, has that name.Pick another Key Name.
"Error creating the key" with Custom API key values are disabled by your administrator...The gateway only allows generated key values.Leave the custom key value empty.

Every key error the gateway returns, with its status and fix, is in the virtual keys reference.

Logs​

Key create, rotate and delete failures are written to the gateway log, for example generate_key_fn(): Exception occured at ERROR or Failed to send key created email at WARNING. See virtual keys for what each line means.