Skip to main content

Admin Assistant in the Admin UI

The Admin Assistant is a chat panel docked to the side of the Admin UI. You ask it questions about your gateway in plain words, such as which teams are close to their budget, and it looks the answer up for you. When you ask for a change, such as a new key for a teammate, it prepares the change and shows you the exact values first, and nothing is sent until you click Confirm change. It saves the clicks between pages for routine admin work, and every change is still made with your own session and written to the audit log under your name.

It is there for proxy admins who are not view-only, on a gateway with an Enterprise license. The same assistant can also run in Slack, see Admin Assistant for Slack.

A real-world scenario​

A platform admin gets a message asking for a key for a new contractor on the data team with a 50 USD budget. Instead of opening Virtual Keys, picking the team and filling in the form, they open the Admin Assistant and type "create a key for the data-science team called contractor-ana with a 50 dollar budget". The assistant looks up the team, shows a Review change card with the team id, the alias and max_budget: 50, and the admin clicks Confirm change. The new key appears in the card with a copy button, and GET /audit shows the key creation under the admin's name.

Steps​

  1. Sign in to the Admin UI as a proxy admin. In the top bar, click Admin Assistant, or press Cmd+J on a Mac or Ctrl+J elsewhere.

  2. If the gateway's settings name another address for model calls than the one the Admin UI uses, a Connect to the configured gateway card shows that address and says your session credential will be sent there. Click Use configured gateway only if you recognise the address.

  3. Pick a chat model in the model picker. The assistant picks a Claude Sonnet 5.5 model by default when your gateway serves one, preferring one served by Anthropic, and otherwise you choose any chat model the gateway serves.

  4. Type a question in Ask the Admin Assistant… and press Enter, for example which teams have spent more than 80 percent of their budget this month.

  5. For a change, read the Review change card. It shows the operation and every argument that will be sent. Click Confirm change to apply it or Cancel to drop it. The card then reads Completed, Cancelled, or Check result when the gateway did not confirm the outcome.

  6. To check the result outside the chat, open the page the change belongs to, or read the audit log:

    curl "http://localhost:4000/audit?changed_by=<your user id>&page_size=5" \
    -H "Authorization: Bearer $SPANWAY_MASTER_KEY"

Expected result​

Questions get a short answer with names, dates, spend and budgets. A confirmed change shows Completed and the matching row appears on its page and in the audit log with your user as changed_by. A generated key is shown once in its card with a Copy generated key button and the note "Copy this key now. It stays only in this chat session." It is never repeated in the chat text.

What it can do​

The assistant can only run the operations below, each through the same management API the Admin UI pages use, with your session. Reads run at once. Writes and deletes always wait for your approval.

AreaReadsChanges, after you approve them
Virtual keysList keys, view a keyCreate, update (which can set its team), delete, block and unblock a key, remove a key from its team
TeamsList teams, view a team and its membersCreate, update and delete a team, add, update and remove a member
UsersList users, view a userCreate, update and delete a user
BudgetsList budgets, view budgetsCreate, update and delete a budget
SpendSpend by date and group, a team's spend, a key's spend (these three need an Enterprise license)None
Request logsRequest cost, timing and status, never prompts or responsesNone

It never asks for or shows credentials other than a key it just created, and it treats what tools return as data, not as instructions.

Hide the button​

Hide Admin Assistant in the account menu at the bottom of the sidebar hides the Admin Assistant button for you, in this browser only. When it is on, the button and the Cmd+J shortcut are gone. When it is off, the default, they are shown. It does not turn the assistant off for other admins, and it is kept separately for each gateway and user, so signing in as someone else on the same browser shows the button again. See the Account page.

Errors​

What you seeWhat it meansFix
Could not load models.The model list could not be read from the gateway.Click Retry next to the message, and check that the gateway answers /v1/models.
Add a chat model to your gateway to use the Admin Assistant.The gateway serves no chat model.Add one in Models + Endpoints, ideally one with tool calling.
Could not load gateway settings.The assistant could not read where to send model calls.Reload the page. If it stays, check the gateway log.
A submitted change may have completed. Check the relevant page before trying again.The session ended or the page reloaded while a change was being applied.Open the page the change belongs to before asking again.
An answer that says a spend report needs a licenseThe spend report operations need an Enterprise license.Use the Usage page, or add the license.

Logs​

The assistant runs in your browser and writes no gateway log lines of its own. Each model call it makes appears on Logs under your session like any other request, and each change appears in the audit log under your name.