Skip to main content

Home page

The Home page is the first screen after you sign in. It shows your usage for the last 7 days, the latest Spanway launches, a token leaderboard by model and recent Spanway blog posts. Open it at /ui/home. Opening /ui itself also shows the Home page once you are signed in. It is the first item in the left nav under AI Gateway, labeled Home, and the Spanway logo at the top of the sidebar links to it too. The nav item has no role list, so every signed-in user sees it, and the page has no license gate.

A real-world scenario​

A team lead signs in on Monday morning to check whether last week's traffic stayed inside budget. The Home page shows their spend for the last 7 days against their own budget and the failed request count, so they know in a few seconds whether anything needs a closer look on Usage or Logs.

Steps​

  1. Sign in and open Home, the first entry under AI Gateway, or go to /ui/home.

  2. Read the Spend, Total Requests and Total Tokens cells of the usage strip. The same totals for your own user come from:

    curl "http://localhost:4000/user/daily/activity?start_date=2026-11-14&end_date=2026-11-21" \
    -H "Authorization: Bearer $SPANWAY_API_KEY"
  3. If the failed count is red, open Logs and filter on failed requests.

  4. Click Create New Virtual Key to make a key without leaving the page.

Expected result​

The strip shows spend, requests and tokens for the last 7 days with daily sparklines, and the failed count is red only when some requests failed.

What /ui does before showing Home​

/ui shows a loading screen while the session is checked, then does one of four things. The session cookie is HttpOnly, so the dashboard never reads it and instead asks the gateway's /session/me route who is signed in.

SituationWhat happens
You are not signed inThe current URL is stored in the browser and you are sent to the login page, with the URL passed along so you come back to it after signing in.
The URL carries an old style ?page= query, for example /ui/?page=logsYou are redirected to the matching page route, for example /ui/logs, and the rest of the query string is kept. An unknown page value is ignored.
You just came back from single sign-on and a return URL was storedYou are sent to that URL once, but only when it is on the same origin as the dashboard and differs from the current page. Any other return URL is dropped.
Anything elseThe Home page renders.

Two redirects apply on every dashboard page, Home included. A session flagged for a forced password reset is always sent to /ui/change-password, and an old invitation link (/ui/?invitation_id=) is sent to the onboarding form. /ui/home also sends you to the login page when your session is no longer valid or the gateway has the Admin UI turned off.

The header reads Home. Next to it, Create New Virtual Key opens the Virtual Keys page with its create form requested (/ui/api-keys?create=true). The button is hidden for view-only roles, meaning Admin Viewer and Internal Viewer.

Usage strip​

The strip at the top covers the last 7 days, counted back from the moment the page loaded. Whose usage it counts depends on your role. The session roles Admin (proxy admin) and Admin Viewer (proxy admin viewer) see usage for the whole deployment. Every other role, org admins included, sees only usage tied to their own user ID. For admins the request counts come from the gateway wide activity totals whenever the gateway recorded any request in the range, so they also include requests that were not tied to a user.

Each of the first three cells has a daily sparkline under it.

CellWhat it shows
SpendTotal spend in USD. The hint under it reads "of $X budget" when your own user has a max budget, and "No budget set" otherwise. The budget is always your own user's budget, even when an admin sees deployment wide spend.
Total RequestsTotal request count, with the successful count marked "ok" and the failed count marked "failed" under it. The failed count turns red when it is above zero.
Total TokensTotal tokens in a compact form such as 1.2M. Hover it for the exact count. The hint shows how many of those were cache read tokens.
Avg cost / requestSpend divided by requests, to four decimal places.
Avg latencyAverage latency of the requests in the range, with the success rate as a percentage under it. It shows a dash when there is no latency data.

While the data loads, each value shows a placeholder. If the usage request fails, the strip is replaced by the message "Failed to load usage" and a Retry button that reloads it.

What's new in Spanway?​

This section shows up to three cards for the most recent Spanway launches, newest first. Each card has an icon, a title, a short description and the publish date (for example "Oct 14"). Clicking a card opens the launch page in a new tab. The list comes from the gateway, which serves the list bundled with its release unless SPANWAY_WHATS_NEW_URL points it at a remote list. Setting SPANWAY_LOCAL_WHATS_NEW=True or SPANWAY_AIRGAPPED=True forces the bundled list. The section shows three placeholders while it loads and is hidden entirely when there are no launches.

Leaderboard​

The Leaderboard panel ranks model groups by their share of tokens over the same 7 days, using the same scope as the usage strip. It lists up to 10 model groups in two columns. Each row shows the rank, the model group name, the provider when the UI can tell it, the share as a percentage, the token count and the change between the first and second half of the period. With no usage in the range it shows "No usage in this range".

Updates​

The Updates panel on the right lists up to six recent posts from the Spanway blog. Each row shows how long ago it was published (for example "2 weeks ago"), the title, which opens the post in a new tab, and a two line summary. View all opens the blog in a new tab.

The gateway fetches the feed from SPANWAY_BLOG_POSTS_URL, which defaults to https://docs.spanway.ai/blog/rss.xml, and caches it for an hour. When the fetch fails it falls back to a copy bundled with the release and keeps that copy for an hour too, so an unreachable feed is tried at most once an hour. Setting SPANWAY_LOCAL_BLOG_POSTS=True or SPANWAY_AIRGAPPED=True makes it use the bundled copy without trying the network. If the request from the dashboard fails, the panel shows "Failed to load posts" and a Retry button. An empty feed shows "No posts yet".

The whole panel is hidden when Hide Blog Posts is on in your account menu. That switch is stored in your browser only, so it does not affect other users or other browsers. See the account menu page for the switch.

Enterprise usage card in the sidebar​

An Enterprise usage card sits at the bottom of the left sidebar, above the account menu. It appears only when all of these hold.

ConditionDetail
Your session role is Admin or Admin ViewerProxy admins and proxy admin viewers. Org admins and internal users never see it.
The gateway has a licenseThe license info the dashboard reads reports a license.
The license sets a seat or team limitThe gateway's available users response includes a user limit, a team limit or both.

The card header shows Enterprise usage and a subtitle. The subtitle reads "Expires" followed by the date, "Expired" followed by the date when the license has lapsed, or "No expiration" when the license has no date. Click the header to collapse or expand the card. It starts expanded.

Inside are up to two meters, Seats (users used out of the licensed total) and Teams (teams used out of the licensed total). Each shows used and total counts. The bar turns to a warning color at 80 percent and to an over limit color above 100 percent. While the counts load it shows "Loading…".

When the sidebar is collapsed to its icon rail, the card becomes a single icon button titled "Enterprise usage". Clicking it expands the sidebar so you can see the card.

Banners​

Banners sit across the top of the content area, under the page header, on every dashboard page. They also appear under the top bar in plugin mode. When several apply they stack in this order.

BannerWhen it showsWho sees itCan you dismiss it
Performance Warning: Detailed Debug Mode ActiveThe gateway reports detailed debug logging (SPANWAY_LOG=DEBUG). The text warns that it slows the gateway and should be off in production.Everyone who can load the gateway health details.No. Turn debug logging off to remove it.
No Redis configured. Redis is highly recommendedThe gateway runs more than one worker without Redis, or could not confirm its worker count. The text explains that rate limits, budgets, router state and cache invalidation are then per worker, links to "See everything that does not work without Redis" and says that SPANWAY_DISABLE_NO_REDIS_WARNING=true hides it.Everyone who can load the gateway health details.No. Configure Redis or set the variable.
Environment-credential login is enabledSign-in with UI_USERNAME and UI_PASSWORD, or with the master key when UI_PASSWORD is unset, is still on. The text tells you to create a regular admin account first and then set general_settings.disable_env_credential_login: true.Admin session role only.Yes, with Dismiss banner. The dismissal is stored in this browser and does not expire.
License expiryThe license expires within 30 days, expires within 7 days, or has expired. See the next table.Everyone.Only in the 30 day stage.
User bannerA proxy admin published an announcement on Admin Settings, UI Settings tab. It renders Markdown, links open in a new tab, and it uses the info, warning or error style the admin picked.Everyone.Yes, with Dismiss banner. It comes back as soon as the message, severity or revision changes.
UpgradeThe release feed the gateway is configured with (SPANWAY_RELEASE_CHECK_URL) reports a newer stable version than the one running. The title reads "The latest version is" followed by the version, which links to its release notes, and a count of new features, fixes and other updates. The description reads "Your current version is" followed by the running version.Everyone signed in.Yes, with Close. The dismissal is stored in this browser for that release, so the next release shows the banner again.

The upgrade banner does not appear at all when no release feed is configured, when the gateway is air-gapped, or when the feed cannot be reached.

License expiry has three stages, counted in whole UTC days.

StageTitleDescriptionClose button
8 to 30 days left"Your Spanway Enterprise license expires in N days" with the dateRenew before it lapses to keep enterprise features, with a link to sales@spanway.ai.Yes. It stays hidden for the rest of the browser session for that expiry date.
0 to 7 days leftThe same title, or "expires today" on the last dayRenew now to avoid losing enterprise features, with a link to sales@spanway.ai.No.
Expired"Your Spanway Enterprise license expired on" followed by the dateEnterprise features are now disabled, with a link to sales@spanway.ai to restore access.No.

Some pages also show a deprecation banner inside the page itself rather than at the top. It currently appears on Memory, API Reference, Prompts, the old Usage page and the MCP network settings. Its title is the feature name followed by "is on a draft deprecation list". It says the feature may be removed in a future release, that no removal date is set and the list is not final, and links to Spanway support for feedback. Its close button hides it only until you reload or leave the page.

Empty, error and disabled states​

A brand new deployment shows zeros in the usage strip, "No usage in this range" in the leaderboard and usually the bundled launches and blog posts. A failed usage request shows "Failed to load usage" with Retry. A failed blog request shows "Failed to load posts" with Retry. The launches section disappears when the gateway returns none. Create New Virtual Key is hidden, not disabled, for view-only roles. The Enterprise usage card is hidden when there is no license or the license sets no seat or team limit.

Differences by role and license​

The session roles Admin and Admin Viewer see deployment wide usage and the leaderboard for the whole deployment, and are the only roles that see the Enterprise usage card and the environment credential login banner. Org admins, internal users and internal viewers see only their own usage. Admin Viewer and Internal Viewer do not get the Create New Virtual Key button. The page itself needs no license. The license expiry banner and the Enterprise usage card appear only on licensed gateways.

Errors​

What you seeWhat it meansFix
The page sends you to the login pageThe session expired or the Admin UI is turned off.Sign in again.
You are always sent to /ui/change-passwordYour account must set a new password first.Set it, then the Home page opens.
The usage strip shows zero for an adminNo request was recorded in the last 7 days, or spend logs are off.Send a request and check Logs.
Create New Virtual Key is missingYour role is view-only.Ask an admin for a role that can create keys.

Logs​

The Home page reads usage, launches and blog posts from the gateway and changes nothing, so it writes no audit row. The gateway writes a WARNING when it cannot fetch the blog feed or the remote What's new list and serves the bundled copy instead. Both lines, with what to do about them, are under Admin UI Home lines in the log reference. They need no action on a gateway without internet access.