AI Hub page
The AI Hub page is the catalogue of what the gateway offers. Proxy admins use it to browse every model group, agent, MCP server and skill, and to choose which of them appear on the public hub at /ui/model_hub_table. Other users see the public catalogue inside the Admin UI. Open it at /ui/model-hub-table. It sits under Developer Tools in the left nav as AI Hub.
The nav item has no role restriction, so every signed-in role sees it. When enabled_ui_pages_internal_users is set in UI settings, non-admin users see the item only if model-hub-table is in that list. What the page shows depends on the session role. The session roles Admin (proxy admins) and Admin Viewer (proxy admin viewers) get the full admin view described below. Every other role, including Org Admin, Internal User and Internal Viewer, gets the embedded public view. Inside the admin view, only the session role Admin gets Link Management and the buttons that change what is public, and the backend routes behind those buttons accept only proxy admins. No license feature is needed for any part of the page.
What this page is for
Developers keep asking which models, agents, servers and skills they may use. The AI Hub answers that from the gateway itself. A proxy admin decides what is public, and everyone with access, or anyone on the network when the hub is open, sees one catalogue with prices, limits, capabilities and health that is never out of date. The same public list feeds the public model catalogue route a website can read.
Scenario
A company has twenty model groups on the gateway but wants its application teams to build on three approved ones. The admin makes those three public, adds a link to the internal model guide, and sends teams the hub URL. A developer opens the hub, filters by Features for function calling, reads the details dialog and copies the model name into their code.
Steps
-
Choose the public models. On the Model Hub tab click Select Models to Make Public, tick the groups, click Next, read the confirmation and click Make Public. From the command line:
curl -X POST http://localhost:4000/model_group/make_public \-H "Authorization: Bearer $SPANWAY_API_KEY" -H "Content-Type: application/json" \-d '{"model_groups": ["claude-sonnet-5-5", "claude-haiku-5-5"]}' -
Add a useful link. Expand Link Management, enter the Display Name
Internal model guideand the URL, and click Add Link. From the command line:curl -X POST http://localhost:4000/model_hub/update_useful_links \-H "Authorization: Bearer $SPANWAY_API_KEY" -H "Content-Type: application/json" \-d '{"useful_links": {"Internal model guide": {"url": "https://wiki.example.com/models", "index": 0}}}' -
Open the hub as a developer would. Click Public Model Hub, or copy the Model Hub URL. Without a key the catalogue routes behind it answer
401unless the hub is open, so sign in first. From the command line, with a key:curl http://localhost:4000/public/model_hub -H "Authorization: Bearer $SPANWAY_API_KEY" -
Open the hub to visitors, if you want that. Under Settings, Admin Settings, UI Settings turn on Open the AI Hub to anyone without signing in, or set
general_settings.enable_public_model_hub: truein the config file.
Expected result
Step 1 shows how many model groups were made public and the Public column reads Yes for them. Step 2 shows "Link added successfully" and the link appears under Useful Links on the public hub. Step 3 returns one entry per public group:
[
{
"model_group": "claude-sonnet-5-5",
"providers": ["anthropic"],
"max_input_tokens": 1000000,
"max_output_tokens": 128000,
"input_cost_per_token": 2e-06,
"output_cost_per_token": 1e-05,
"mode": "chat",
"supports_function_calling": true,
"supports_vision": true,
"supports_reasoning": true,
"is_public_model_group": true,
"health_status": "healthy",
"health_response_time": 812.5,
"health_checked_at": "2026-11-20T09:12:00+00:00"
}
]
Groups you did not tick are not listed anywhere on the hub, and a visitor without a session is sent to the login page until step 4.
Admin view
The header reads AI Hub with "Make models, agents, and MCP servers public for developers to know what's available." On the right, Model Hub URL shows the public hub address, <proxy base URL>/ui/model_hub_table, with a copy button.
Link Management
Shown to the session role Admin. Click the header to expand it. It manages the links shown under Useful Links on the public hub.
| Control | What it does |
|---|---|
| Display Name | The link text (placeholder Friendly name). Must be unique. |
| URL | The link target (placeholder https://example.com). It must be a full http:// or https:// URL, otherwise "Enter a full http:// or https:// URL" is shown. The gateway refuses any other scheme too. |
| Add Link | Saves the new link. It is disabled until both fields are filled. Shows "Link added successfully". |
| Public Model Hub | Opens the public hub in a new tab. |
| Rearrange Order | Turns on the move up and move down buttons. Save Order saves the new order and Cancel discards it. |
| Table | Lists Display Name, URL and Actions. The actions are move up, move down, open link, edit link and delete link. With no links it reads "No links added yet. Add a new link above." |
| Edit link | Edits the name and URL in the row, with the same validation. |
| Delete link | Removes the link immediately, with no confirmation, and shows "Link deleted successfully". It cannot be undone except by adding the link again. |
A save failure shows "Failed to save links" with the error.
Tabs
The admin view has four tabs, Model Hub (the default), Agent Hub, MCP Hub and Skill Hub.
Model Hub tab
| Control | What it does |
|---|---|
| Select Models to Make Public | Session role Admin only. Opens the Make Models Public dialog. |
| Search Models | Filters by model name (placeholder Search model names...). |
| Provider | Filters by provider, or All Providers. |
| Mode | Filters by mode, or All Modes. |
| Features | Filters by a capability, or All Features. |
| Clear Filters | Appears when any filter is set and resets them all. |
The table lists every model group on the gateway, sorted by name, and shows "Showing" the filtered count of the total under it.
| Column | Meaning |
|---|---|
| Public Model Name | The model group name. Click it for details. |
| Provider | The providers behind the group. |
| Mode | The model mode, such as chat or embedding. |
| Tokens | Max input and max output tokens. Sorts by their sum. |
| Cost/1M | Input and output price per million tokens. Sorts by their sum. |
| Features | Capabilities the model supports. |
| Public | Yes when the group is on the public hub, otherwise No. |
| Actions menu | View details and Copy model name. |
The details dialog shows Model Overview (model group, mode, providers, description), Token & Cost Information (max input and output tokens and input and output cost per 1M tokens, or "Not specified"), Capabilities (or "No special capabilities listed"), Rate Limits when set, Supported OpenAI Parameters and a Python Usage Example for the model's mode. For decision models it explains that they answer on /v1/decisions and /v1/systemone, links to the docs, and offers Try it in the Playground unless you are view only.
Make Models Public dialog
Step one, Select Models to Make Public, lists the model groups with the same filters, a Select All checkbox for the filtered list and a count of selected models. Groups that are already public start selected. The dialog notes that users still need a valid virtual key to use public models. Next is disabled until at least one model is selected, and Cancel closes the dialog.
Step two, Confirm Making Models Public, warns that anyone who can open /ui/model_hub_table will be able to see that these models exist on the gateway, and lists them. Previous goes back and Make Public saves.
The selection replaces the whole public list, so unchecking a group that was public removes it from the public hub. The change is written to the proxy config and recorded in the audit log. Success shows how many model groups were made public. A failure shows "Failed to make model groups public. Please try again."
Agent Hub tab
| Control | What it does |
|---|---|
| Select Agents to Make Public | Session role Admin only. Opens the Make Agents Public dialog. |
| Search Agents | Filters by agent name or description (placeholder Search agent names or descriptions...). The X clears it. |
| Column | Meaning |
|---|---|
| Agent Name | Click it for details. |
| Description | The agent card description. |
| Version | The agent version. |
| Protocol | The A2A protocol version. |
| Skills | The agent's skills. |
| Capabilities | Capabilities the agent card declares. |
| I/O Modes | Input and output modes. |
| Public | Yes or No. |
| Actions menu | View details and Copy agent name. |
The details dialog shows Agent Overview (name, version, protocol version, URL with a copy button, description), Capabilities, Input/Output Modes, Skills with their tags and examples, and Additional Features when the agent supports an authenticated extended card.
The Make Agents Public dialog works like the model dialog, with Select Agents to Make Public and Confirm Making Agents Public. It also replaces the whole public agent list.
MCP Hub tab
| Control | What it does |
|---|---|
| Manage MCP Hub Visibility | Session role Admin only. Disabled while the server list loads or if it failed to load. Opens the visibility dialog. |
| Column | Meaning |
|---|---|
| Server Name | Click it for details. |
| Description | The server description. |
| Transport | The MCP transport. |
| Auth Type | How the gateway authenticates to the server. |
| Status | The last known health. |
| Tools | The number of allowed tools, or All tools. |
| Created By | Who added the server. |
| Hub listing | Listed or Unlisted on the public hub. |
| Actions menu | View details and Copy server name. |
The details dialog shows Server Overview (name, ID, alias, transport, auth type, status, description), Connection Details (the command for stdio servers), Allowed Tools, Teams, Access Groups, Metadata (created and updated by and at, last health check and any health check error) and a Python Usage Example.
Manage MCP Hub Visibility dialog
Step one, Select MCP Servers for the Hub, lists every server with a checkbox, Select All, its transport, status, ID and up to three allowed tools. Servers already on the hub show Listed, or Listed by legacy mode when they appear only because they allow public IP access. The checked servers form the complete publication list, so unchecking one removes it and unchecking all clears the list. The dialog notes that only the servers on this list appear on the public hub, because public_mcp_hub_strict_whitelist in spanway_settings is true by default, and that setting it to false brings back the older behaviour that also lists every server with public IP access enabled. Leave it on unless you rely on that older behaviour, since off can show servers nobody meant to publish. Configure in YAML expands the equivalent config snippet, which uses server IDs. Pin server_id in each YAML defined server so the list stays stable.
Step two, Confirm MCP Hub Publication, warns that anyone who can open /ui/model_hub_table can discover published servers and that explicitly published server IDs also accept requests from public IP addresses, while authentication and access permissions still apply. Save Publication List saves it and shows "MCP Hub publication list updated".
If the gateway does not report publication status for every server, the dialog says so and asks you to update the gateway or edit spanway_settings.public_mcp_servers in the config instead.
Skill Hub tab
| Control | What it does |
|---|---|
| Select Skills to Publish | Session role Admin only. Opens Publish to Skill Hub. |
| Stat cards | Total Skills, Namespaces and Domains. |
| Domain filter | All Domains or one domain. |
| Search | Filters by name, namespace or tag (placeholder Search by name, namespace, or tag…). |
| Column | Meaning |
|---|---|
| Skill Name | Click it for details. |
| Description | The skill description. |
| Category | The skill category. |
| Domain | The skill domain. |
| Source | Where the skill comes from, as a link. |
| Status | Public or Draft. |
| Actions menu | View details and Copy skill name. |
The skill detail view has Overview and How to Use tabs, with the skill's metadata, source and setup steps, and a Skills link back to the list.
Publish to Skill Hub has two steps, Select Skills to Publish and Confirm Publish to Skill Hub. Skills that are already public start selected. The note says published skills are visible to all users in the Skill Hub tab and that skills not in the list will be unpublished. Success reads "Skill Hub updated" with the number of skills published. A failure shows "Failed to update skills. Please try again."
Embedded public view
Users who are not Admin or Admin Viewer see the public catalogue inside the Admin UI, with the note that these are models, agents and MCP servers your proxy admin has indicated are available. It shows only what has been made public, not everything your key can use. It has the same tabs and filters as the public hub described next, and the Useful Links card when links exist. The About and Health and Endpoint Status cards are left out.
Public hub
The public hub is served at /ui/model_hub_table, and the same catalogue is also served at /ui/model_hub. It has its own top bar. It is closed to visitors without a session by default, as described below.
| Card or tab | What it shows |
|---|---|
| About | The custom docs description set by the admin, or a default line. The gateway version is not shown. |
| Useful Links | The links from Link Management, in the saved order. Each opens in a new tab. A link that is not http or https is not opened. |
| Health and Endpoint Status | Service status, which reads "Service unavailable" when the model list cannot load. |
| Model Hub | Available Models with Search Models (matches anywhere in the name, across all pages), Provider, Mode and Features filters and a paged table. |
| Agent Hub | Shown only when public agents exist. Search Agents and a Skills filter. |
| MCP Hub | Shown only when public MCP servers exist. Search MCP Servers and a Transport filter. |
| Skill Hub | Public skills. |
| Model column | Meaning |
|---|---|
| Model Name | Click it for details. |
| Providers | Providers behind the group. |
| Mode | The model mode. |
| Max Input and Max Output | Token limits. |
| Input $/1M and Output $/1M | Prices per million tokens. |
| Features | Capabilities. |
| Health Status | The latest health check result, or Unknown. The tooltip shows the response time and when it was last checked. |
| Limits | RPM and TPM limits. |
The model details dialog adds a Wildcard Routing note for names that contain *, explaining that any value can stand in for the wildcard, and shows a usage example with your_api_key as a placeholder. Agent details include Usage Example (A2A Protocol) with two steps, Step 1: Retrieve Agent Card and Step 2: Call the Agent, and a View Documentation link when the agent has one.
By default the gateway answers every public hub data route with a 401 for callers without a valid key, so the check holds even for someone who calls the routes directly. Both /ui/model_hub_table and /ui/model_hub send the signed-in visitor's own session, and a visitor without a valid session is sent to the login page. When Open the AI Hub to anyone without signing in is on (the enable_public_model_hub UI setting on the UI Settings tab of Admin Settings), anyone who can reach the gateway can open the hub. The older require_auth_for_public_ai_hub setting still closes the hub when it is true, and turning the hub on from the Admin UI clears it.
The hub pages do not read a key from the URL, so a ?key= parameter is ignored. If the hub data cannot load for another reason, /ui/model_hub_table shows "Public Model Hub not enabled." with "Ask your proxy admin to enable this on their Admin UI."
Empty, error and disabled states
| Where | What you see |
|---|---|
| Model Hub tab, no models | No models yet with "Models added to this proxy will appear here." |
| Model Hub tab, filters hide everything | No matching models with "Adjust the filters to see more models." |
| Agent Hub tab | No agents yet or No matching agents. |
| MCP Hub tab | No MCP servers yet with "MCP servers added to this proxy will appear here." |
| Make public dialogs with nothing selected | "Please select at least one model to make public", or the agent or skill version. |
| Make Models Public dialog, filters hide everything | "No models match the current filters." |
| Visibility dialog, no servers | "No MCP servers available." |
| Public hub, no public models | No models available with "Models made public by the proxy admin will appear here." |
| Public hub, filters hide everything | No matching models, No matching agents or No matching MCP servers. |
Manage MCP Hub Visibility is disabled while the MCP server list loads or after it fails to load. The Next buttons in the dialogs are disabled until something is selected, and the MCP Next is also disabled until the current publication settings have loaded.
Differences by role and license
| Session role | What changes |
|---|---|
Admin (proxy_admin) | Full admin view, Link Management and every make public button. |
Admin Viewer (proxy_admin_viewer) | The full admin view without Link Management and the make public buttons, under the view-only banner. The Try it in the Playground link is hidden because the user is view only. |
| Org Admin, Internal User, Internal Viewer | The embedded public view only. |
| Visitors without a session | Sent to the login page, unless Open the AI Hub to anyone without signing in is on, in which case they see the public hub at /ui/model_hub_table and /ui/model_hub. |
No license feature applies to this page.
Errors
| What you see | Why | Fix |
|---|---|---|
"Failed to make model groups public. Please try again." or 403 Only proxy admins can update public model groups. | The session is not a proxy admin, or the gateway has no database for the config write. | Use a proxy admin session and check STORE_MODEL_IN_DB=True. |
403 Only proxy admins can update the AI hub useful links. Your role=<role> | Someone who is not a proxy admin tried to save Useful Links. | Use a proxy admin session. |
"Enter a full http:// or https:// URL" or 422 on a link | The link URL is not an absolute http:// or https:// URL. The gateway refuses any other scheme. | Enter the full URL. |
401 from /public/model_hub | The hub is closed to visitors and no key was sent. | Sign in, send a key, or open the hub as in step 4. |
| "Public Model Hub not enabled." | The hub data could not load for a visitor. | Ask a proxy admin to open the hub, or sign in. |
| A model you made public is missing from the hub | It is served only through a wildcard, or the public list was replaced by a later save that left it out. | Reopen Select Models to Make Public and tick it again. |
| Health shows Unknown | No health check has been stored for the group. | Turn on background_health_checks as described in health checks. |
Logs
The gateway logs Error updating public model groups at ERROR when saving the public list or the useful links fails, usually because the database write failed. Each successful save writes an audit row on Spanway_Config for public_model_groups or public_model_groups_links with the list before and after.