Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

docs(ai): ai center guides for providers, tiers, capabilities and usage (#17052)

Louai Boumediene583b5e799834
diff --git a/brain/knowledge/ai-intelligence/ai-providers.md b/brain/knowledge/ai-intelligence/ai-providers.md
index 71475bc8c86..655d26b8251 100644
--- a/brain/knowledge/ai-intelligence/ai-providers.md
+++ b/brain/knowledge/ai-intelligence/ai-providers.md
@@ -75,6 +75,7 @@ after a file without chat keys it seeds the chat list from the live flow list.
**Specific model** — a model a builder picks directly from one key (`{provider, configId, model}`), as opposed to a tier. The admin switch `platform_configuration.aiSpecificModelsVisible` (Tiers tab, "Visible to builders") hides them from builders. _Avoid_: "Advanced" (an early mockup word for the same section)
### Gotchas
+- **Every AI Center page links its admin guide from the header, through `adminPageResources` (`packages/web/src/app/components/admin/admin-page-resources.ts`).** `aiProviders` → `admin-guide/guides/setup-ai-providers` (Providers and the key page), `aiTiers` → `ai-tiers`, `aiCapabilities` → `ai-capabilities`, `aiUsage` → `ai-usage` (overview, list and detail). A new AI Center page needs a guide under `docs/admin-guide/guides/`, an entry in the docs.json **AI Center** group, and a `resources=` on its `AdminPageHeader`.
- **A new provider shows "—" for context and price until the catalog is republished from `main`.** Its `MODELS_DEV_PROVIDER` entry only takes effect when the weekly `sync-model-catalog` workflow runs on `main` (trigger it by hand after the merge), and the API caches the catalog for 24h. Even then only ids models.dev knows fill in: of NVIDIA's 85 hosted models about 26 match, and its prices are $0 because the hosted catalogue is free.
- **The AI usage read API (`/v1/ai-usage/*`) works in UTC days and scales today's partial day inside the SQL.** Every previous-range sum is multiplied by a weight that is below 1 only on the day matching today, so totals, cards, lists and related items all compare the same way. Scaling after the query, in TypeScript, can't reach per-item numbers and makes the views disagree.
- **Usage tracking starts per platform, at its copy cursor.** `trackingSince` is the cursor's `startedAt`, or the platform's creation if that is later. A period that starts earlier hides its change %, so a fresh platform never shows fake growth. A platform without a cursor has no tracking start.
@@ -97,7 +98,6 @@ after a file without chat keys it seeds the chat list from the live flow list.
Either one makes a candidate give up for reasons that aren't the model's, so `--candidate-model` scores read low. On 13 Oct, Sonnet 5.5 scored 9/26 against 14/26, and 4 of its 6 regressions were one of these two. Use `--baseline-model`/`--candidate-model` for cost and for judge-only cases. Check tool-heavy behaviour with `agent-evals:live` before changing a tier.
- **Change which model a tier runs in the AI Tiers console, not in code.** A model a tier points at runs on credits without being in `ANTHROPIC_OPENROUTER_CHAT_MODELS` (`assertManagedModelAllowed` allows every tier `modelId`). Keep Claude Sonnet 5.5 and Opus 5.5 out of that list: everything in it counts as reasoning-optional (`canDisableReasoning`), and their OpenRouter endpoints reject `reasoning: {enabled: false}` with "Reasoning is mandatory for this endpoint", which would fail the thinking-off first step of every turn. Unlisted, they get `effort: minimal`, which works. Haiku 5.5 accepts `enabled: false` (checked 13 Oct).
-- **The admin Tiers page has no sidebar or search entry until the feature launches.** The route `/platform/ai/tiers` works, but the platform sidebar and the global search `STATIC_PAGES` deliberately leave it out, so only someone with the URL finds it. To launch, add `{ to: '/platform/ai/tiers', label: t('Tiers') }` to the AI subItems in `sidebar/platform/index.tsx` and add a `page-platform-ai-tiers` entry to `static-pages.ts`.
- **New shared AI-provider schemas go inside `packages/core/shared/src/lib/management/ai-providers/index.ts`, not in a sibling file that imports from it.** `index.ts` re-exports its siblings, so a sibling that imports `AIProviderModel` back from `./index` gets `undefined` when the module loads, and every importer crashes with `Cannot read properties of undefined (reading 'optional')`. `platform-model-tier.ts` works only because it imports from `core-utils`.
- **The admin Tiers tab applies a key's `modelScope` itself.** `GET /v1/ai-providers/configs/:id/models` returns the unfiltered list on purpose (admins pick the allow-list from it), so the tier pickers and the Specific models list narrow it client-side in `modelMeta.scopedTextModels` (`packages/web/src/features/agents/ai-model/`). The server still refuses an out-of-scope entry on save (`assertEntriesValid`), so the client filter is convenience, not the guard.
- **A key a live platform tier uses cannot be deleted, and its `modelScope` cannot drop a tier's model.** `aiProviderService.delete` and `update` call `platformModelTierService.assertKeyCanBeDeleted` / `assertKeyScopeKeepsTiers` under a `platform` row `FOR NO KEY UPDATE` lock and answer 409 with the tier names. The same lock serialises every tier write, so a tier save can't race a key delete into a dangling entry. The same update also refuses removing a typed-in model (Vertex, OpenAI-compatible, Cloudflare `config.models`) that a tier uses, even when `modelScope` is `all`, and limiting the projects of a key that a capability (web search, scraping, image) uses, or dropping the capability's `modelId` from its model list: capability keys must serve every project and keep their model (`assertCapabilitiesKeepKey`).
diff --git a/brain/knowledge/ai-intelligence/ai-usage-page.md b/brain/knowledge/ai-intelligence/ai-usage-page.md
index 04ef7f39ed7..95e579b8db1 100644
--- a/brain/knowledge/ai-intelligence/ai-usage-page.md
+++ b/brain/knowledge/ai-intelligence/ai-usage-page.md
@@ -45,6 +45,7 @@ The AI Center page (`/platform/ai/usage`) that answers one question: **where is
4. The cost footnote.
## Gotchas
+- **Launching the page also means listing its docs.** `docs/admin-guide/guides/ai-usage.mdx` and the `endpoints/ai-usage/*` reference pages exist but are left out of `docs/docs.json` while the page is hidden, and the other AI Center guides do not link them. At launch, add `admin-guide/guides/ai-usage` to the Admin Guide "AI Center" group and the API Reference "Usage" group back, editing `docs.json` as text (a JSON re-dump reformats the whole file).
- **There is no list filtered by a parent item.** `/v1/ai-usage/items` only lists a whole dimension for the platform, so a related card on a detail page links to the platform-wide list and says so ("All flows on the platform"). A real "this project's flows" list needs a parent filter on the read API first.
- An item's `name` is `null` for a deleted entity, and also for three sentinel ids that are never real rows: `no-project` (platform-level chat with no project), `activepieces-credits` (the managed-credits "key"), and `unknown-<provider>` (a key that was deleted but still has usage). The UI tells these apart by id, not by a flag — see `usageAdapters.itemDisplayName` in `usage-tab/usage-adapters.ts`.
- A key or model item's `parent` field is never set by the read API (name lookup has no parent column for keys, and models are not looked up by name at all) — their subtitle is the provider's display name instead, reused from `SUPPORTED_AI_PROVIDERS` in `packages/web/src/features/agents/ai-providers.ts`.
diff --git a/docs/admin-guide/guides/ai-capabilities.mdx b/docs/admin-guide/guides/ai-capabilities.mdx
index 8c84c3fdc3d..dfa46d3fa17 100644
--- a/docs/admin-guide/guides/ai-capabilities.mdx
+++ b/docs/admin-guide/guides/ai-capabilities.mdx
@@ -1,52 +1,83 @@
---
-title: "AI Capabilities"
+title: "Capabilities"
+description: "Give chat, agents and knowledge bases web search, web scraping, image generation and embeddings"
icon: "bicep"
---
-AI Capabilities let platform admins connect external services that give the Activepieces AI assistant additional abilities beyond what the AI model can do on its own.
+## Overview
-Currently, you can configure capabilities for **Web Search, Web Scraping, and Image Generation**.
+Capabilities give the AI extra skills that the model can't do on its own, such as searching the web. You choose the service behind each one, once, for the whole platform. Builders don't need their own keys.
-### **Why use AI Capabilities?**
+Go to **Platform admin** → **AI Center** → **Capabilities**.
-AI Capabilities let your organization control which external services the AI assistant can use for specialized tasks.
+![Capabilities page](/resources/screenshots/ai-center-capabilities.png)
-For example, you can allow the assistant to search for current information on the web, extract content from webpages, or generate images when users need these capabilities.
+<Note>
+ Capabilities are available on Cloud and self-hosted Enterprise. Community Edition doesn't have this page.
+</Note>
-Configuring these services at the platform level also means the required API credentials can be managed centrally rather than asking individual users to configure them.
+## The four capabilities
-### **Available AI Capabilities**
+The page has two groups.
-#### **Web Search**
+**Chat and agents**
-Web Search lets the AI assistant search the live web for current information. 
+| Capability | What it does | Works with |
+| --- | --- | --- |
+| **Web Search** | Searches the live web for current information. | A Tavily API key, or an AI provider key whose provider has built-in web search. |
+| **Web Scraping** | Reads any web page as clean text, including JavaScript pages. | A Firecrawl or Apify API key. |
+| **Image Generation** | Creates images, from photos to graphics with text. | A fal.ai API key, or an AI provider key plus the image model to use. |
-This is useful for tasks where the assistant needs information that may not be available in the model itself.
+**Knowledge bases**
-#### **Web Scraping**
+| Capability | What it does | Works with |
+| --- | --- | --- |
+| **Embeddings** | Indexes knowledge-base files so agents can search them. | An AI provider key plus the embedding model to use, for example OpenAI, Google, Azure or OpenRouter. |
-Web Scraping lets the AI assistant extract clean content from webpages as Markdown, including pages that are rendered with JavaScript.
+An AI provider key used for a capability must serve **all projects**. Add or edit keys on the [Providers](/admin-guide/guides/setup-ai-providers) page.
-This can be useful when the assistant needs to read and work with the full content of a webpage rather than just search results.
+## What the card shows
-#### **Image Generation**
+The bottom of each card tells you where the capability stands:
-Image Generation lets the AI assistant create images such as realistic photos, marketing graphics with text, brand logos, and abstract art. The model is selected automatically for each request.
+- **Using** and a name: the capability is on. The name is the service or key it runs on, followed by the model when there is one.
+- **Works with** and a list: nothing serves the capability yet. The list shows which keys can.
-### **How To Set Up AI Capability**
+When you haven't set a capability up, it may still work through your chat key. Web search and image generation use the key behind your [Default chat model](/admin-guide/guides/setup-ai-providers#default-chat-model) when that provider supports them. Embeddings use the chat key when it supports embeddings, and otherwise your AI credits. In that case the card already shows **Using** with that key's name.
-The setup is similar across the available capabilities:
+## Set up a capability
-1. Go to **Platform Admin → Catalogue → AI Center → Capabilities**.
-2. Find the capability you want to configure.
-3. Click **Set up**.
-4. Enter the API key for the external service.
-5. Click **Save**.
+<Steps>
+ <Step title="Open the card">
+ Click **Set up** on the capability. If it is already in use, the button says **Change**.
+ </Step>
+ <Step title="Pick the source">
+ When there is more than one option, pick it under **Source**: one of your AI provider keys or an outside service.
+ </Step>
+ <Step title="Enter the details">
+ For an outside service, paste its API key. The dialog links to where you get one. For an AI provider key, pick the **Image model** or **Embedding model** when the capability needs one.
+ </Step>
+ <Step title="Save">
+ Click **Save**.
+ </Step>
+</Steps>
-<video src="https://cdn.activepieces.com/videos/docs/Set-up-ai-capabilities.mp4" controls />
+If no key can serve **Embeddings**, the card shows **Connect a provider** instead. Add a key that serves all projects and supports embeddings first.
-### **AI Providers vs AI Capabilities**
+<Warning>
+ Changing the Embeddings key or model doesn't re-index files. Files already in knowledge bases keep their old vectors. Re-upload them to search with the new key or model.
+</Warning>
-**AI Providers** connect the AI models Activepieces uses, while **AI Capabilities** connect external services that give the AI assistant additional abilities such as web search, web scraping, and image generation.
+## Reset a capability
-<br />
+Hover the card and click the trash icon to **Reset** it. This removes the saved API key or key choice. The capability then goes back to your chat key, if that key supports it. Otherwise it turns off.
+
+## Providers vs capabilities
+
+**Providers** connect the AI models that chat, agents and AI steps run on. **Capabilities** add skills on top of those models: web search, web scraping, image generation and embeddings.
+
+## Related
+
+- [Providers and keys](/admin-guide/guides/setup-ai-providers)
+- [Knowledge bases](/agents/knowledge)
+- API reference: [list capabilities](/endpoints/ai-capabilities/list), [set up](/endpoints/ai-capabilities/set-up), [update](/endpoints/ai-capabilities/update), [reset](/endpoints/ai-capabilities/reset).
diff --git a/docs/admin-guide/guides/ai-tiers.mdx b/docs/admin-guide/guides/ai-tiers.mdx
new file mode 100644
index 00000000000..50bb1394523
--- /dev/null
+++ b/docs/admin-guide/guides/ai-tiers.mdx
@@ -0,0 +1,94 @@
+---
+title: "Tiers"
+description: "Group models from your keys into named choices, with fallbacks, for your builders"
+icon: "layer-group"
+---
+
+## Overview
+
+A **tier** is a named group of models that builders pick instead of a raw model id, for example **Expert** or **Everyday**. Each tier has:
+
+- A **name**, an **emoji** and a short **description**. Builders see these when they pick a model.
+- A **main model**, tried first.
+- Up to **4 fallbacks**, tried in order when the main model can't serve a request. Fallbacks can come from different keys and providers.
+- A **thinking** budget: Default, Off, Low (5,000 tokens), Medium (10,000 tokens) or High (20,000 tokens). Only models that support reasoning use it.
+
+Tiers show up in the model picker for chat, agents, Run Agent steps and AI text steps. When you swap the model behind a tier, every flow and agent that uses the tier moves with it. Nothing needs to be edited.
+
+Go to **Platform admin** → **AI Center** → **Tiers**.
+
+![Tiers page with three tiers](/resources/screenshots/ai-center-tiers.png)
+
+<Note>
+ On Cloud, **Tiers** is in the AI Center menu. On self-hosted, open it by URL: `/platform/ai/tiers`. Tiers are built from your own keys, so add a key on the [Providers](/admin-guide/guides/setup-ai-providers) page first.
+</Note>
+
+## Create a tier
+
+<Steps>
+ <Step title="Start a new tier">
+ Click **New tier**.
+ </Step>
+ <Step title="Name it">
+ Pick an emoji, enter a name (up to 40 characters) and an optional description (up to 120 characters).
+ </Step>
+ <Step title="Pick the main model">
+ Choose the main model from any of your keys. Only models the key allows are listed.
+ </Step>
+ <Step title="Set thinking and save">
+ Choose a thinking budget, then click **Save tier**.
+ </Step>
+ <Step title="Add fallbacks">
+ On the tier card, click **Add fallback** and pick a model. Repeat for up to 4 fallbacks.
+ </Step>
+</Steps>
+
+Models whose key is **Active** are tried first, in tier order. A model whose key is marked **Out of credits**, **Key rejected** or **Unreachable** moves behind them, so an active fallback can serve a request before the main model is retried. Within that order, the next model is used when the one before it fails at the provider, for example a rate limit, an outage, an expired key or no credits left. Without a fallback, the tier fails when its main model is unavailable.
+
+To change a model, use the **...** menu on its row: **Change main model**, **Move up**, **Move down** or **Remove**.
+
+## Default and fast tiers
+
+Use the **...** menu on a tier card:
+
+- **Make default**: the tier builders get when they haven't picked a model. It is marked **Default**.
+- **Use as fast model**: chat and agent runs use this tier for quick, light steps. It is marked **Fast**.
+
+The default tier is not the same as the [Default chat model](/admin-guide/guides/setup-ai-providers#default-chat-model). New chats start on the Default chat model, and use the default tier only when that model can't run.
+
+## Reorder and edit
+
+The order of the cards is the order builders see. Use **Move up** and **Move down** in a tier's **...** menu to change it. Use **Edit** to change the name, emoji, description or thinking. To change the main model, use **Change main model** in the model row's **...** menu.
+
+## Delete a tier
+
+Click **Delete** in the tier's **...** menu, then pick a tier under **Move them to**. Everything that used the deleted tier now runs on the tier you picked. If the deleted tier was the default or the fast tier, the tier you picked takes that role.
+
+You can delete your last tier without picking a replacement. Anything still using it stops working until someone picks a new model. If you had hidden specific models, they are shown to builders again, so builders still have something to pick.
+
+## Tiers follow key project access
+
+Each key can be limited to some projects (see [Access](/admin-guide/guides/setup-ai-providers#access)). Tiers respect that:
+
+- A tier is offered in a project only when its **main model's key** serves that project.
+- A **fallback** whose key doesn't serve a project is skipped there.
+
+The tier card warns you when this happens, for example "Not available in 1 project" or "Fallback ... is skipped in 2 projects". To check one project, pick it in the **Preview as project** list at the top of the page. This list shows up when at least one key is limited to some projects.
+
+A key that a tier uses can't be deleted, and you can't remove a tier's model from that key's model list. Change the tier first.
+
+## Specific models
+
+Below the tiers, **Specific models** lists the models on your keys that are not a tier's main model. Builders can pick these directly. Click **Make a tier** on a model to start a tier from it.
+
+Use the **Visible** / **Hidden** switch to choose what builders see:
+
+- **Visible**: builders can pick tiers and specific models.
+- **Hidden**: builders only see tiers. You need at least one tier first.
+
+Hiding specific models only changes the picker. Flows and agents that already use a specific model keep running.
+
+## Related
+
+- [Providers and keys](/admin-guide/guides/setup-ai-providers)
+- API reference: [list tiers](/endpoints/ai-model-tiers/list), [create](/endpoints/ai-model-tiers/create), [reorder](/endpoints/ai-model-tiers/reorder), [update](/endpoints/ai-model-tiers/update), [delete](/endpoints/ai-model-tiers/delete).
diff --git a/docs/admin-guide/guides/ai-usage.mdx b/docs/admin-guide/guides/ai-usage.mdx
new file mode 100644
index 00000000000..0324b0c81dc
--- /dev/null
+++ b/docs/admin-guide/guides/ai-usage.mdx
@@ -0,0 +1,79 @@
+---
+title: "AI usage"
+description: "See where your AI spend goes across projects, flows, agents, chat, keys and models"
+icon: "chart-pie"
+---
+
+## Overview
+
+**AI usage** answers one question: where is your AI money going? It covers every AI call on the platform, from flow steps, agents, chat and knowledge bases, on your own keys and on Activepieces credits.
+
+Open it at `/platform/ai/usage`.
+
+![AI usage overview](/resources/screenshots/ai-center-usage.png)
+
+<Note>
+ AI usage is available on Cloud and self-hosted Enterprise. It is not in the menu yet, so open it by URL. Community Edition doesn't have it. On self-hosted Enterprise, the page needs a billing connection; without one it says AI usage isn't available.
+</Note>
+
+New usage shows up a few minutes after the AI call.
+
+## Period and scope
+
+Two controls sit next to the page title, on every usage page:
+
+- **Scope**: **Production** (the default) counts live flows, agents and chat. **Testing** counts test runs from the flow builder and the agent builder. **All** counts both.
+- **Period**: the last hour, 6 hours, 12 hours, 24 hours, 7 days, 30 days or 90 days, this month or last month.
+
+The whole page follows both. They stay in the URL, so you can share a view.
+
+## Overview page
+
+From top to bottom:
+
+1. **Tiles**: the pace of spend, AI calls and tokens.
+ - For a period of a day or less, the pace is a **Daily run rate**: the spend of the period, scaled to a full day.
+ - For longer periods it is the **Average per day**.
+ - For **This month** it is a **Month-end forecast**, with the daily pace it is based on.
+2. **Chart**: total spend for the period, the change from the previous period, and a line chart. The solid line is this period, the dashed line the previous one. Switch between **Spend**, **Calls** and **Tokens**.
+3. **Spend by source**: what kind of work spends: **Flow AI steps**, **Run Agent steps**, **Agents**, **Chat** and **Knowledge base**.
+4. **Top lists**: the top five **Projects**, **Flows**, **Agents**, **Users**, **Providers & keys** and **Models**. The bar under each row is its share of all AI spend in the period.
+
+"Previous period" is the same length of time right before. **This month** compares with the same days of last month, and **Last month** with the month before it. If tracking started after the previous period began, the change is hidden, so a new platform never shows fake growth.
+
+## Lists and details
+
+Click **See all** on a card to see the full list. Search by name, click a column header to sort, and page through the results.
+
+Click any row to open its detail page. It shows the same chart, the top five of the other lists (for example, a flow's models and keys), and one extra card for its type:
+
+| Detail page | Extra card |
+| --- | --- |
+| Project | Spend, with its number of flows and agents |
+| Flow | Runs and cost per run |
+| Key | Cost reported by the provider vs estimated, and a link to the provider's dashboard |
+| Model | List price per million tokens |
+
+The page title is a breadcrumb, for example **AI usage / Flows / Lead enrichment**. Click a part of it to go back.
+
+A Run Agent step counts under both its flow and its agent, so flows and agents together can add up to more than a project's total.
+
+## Estimated vs exact cost
+
+All amounts are in dollars. Activepieces credits are converted to their dollar value.
+
+Click **Estimated** next to the spend to see why:
+
+- Most providers return how many tokens a call used, not what it cost. Activepieces multiplies the tokens by the model's list price.
+- Discounts, cached tokens, batch rates and price changes on your account can make your real bill a few percent different.
+- When a provider does return the exact cost, it is used as is. A key's detail page shows how much was reported and how much was estimated.
+- Activepieces credits are always exact.
+
+For billing, your provider's own dashboard is the source of truth.
+
+## Related
+
+- [Providers and keys](/admin-guide/guides/setup-ai-providers)
+- [Tiers](/admin-guide/guides/ai-tiers)
+- [Usage](/admin-guide/guides/usage) for runs and credits on your plan.
+- API reference: [overview](/endpoints/ai-usage/overview), [list items](/endpoints/ai-usage/list-items), [get an item](/endpoints/ai-usage/get-item).
diff --git a/docs/admin-guide/guides/setup-ai-providers.mdx b/docs/admin-guide/guides/setup-ai-providers.mdx
index a6da457ea1c..37091361fe5 100644
--- a/docs/admin-guide/guides/setup-ai-providers.mdx
+++ b/docs/admin-guide/guides/setup-ai-providers.mdx
@@ -1,39 +1,24 @@
---
-title: "AI Providers"
-description: "Bring your own AI keys and use them across every project"
+title: "Providers and keys"
+description: "Connect your own AI keys and decide which models and projects each key serves"
icon: "sparkles"
---
-AI Providers lets platform administrators connect the AI services that can be used by [<u>AI pieces</u>](https://www.activepieces.com/pieces/ai).
+## Overview
-Instead of every user adding their own provider credentials, an administrator can configure supported providers centrally and make them available for use across the platform.
+The **Providers** page in the AI Center is where platform admins connect AI providers. Each connection is a **key**. Chat, agents and [AI pieces](https://www.activepieces.com/pieces/ai) across your platform run on these keys.
-### **Why use AI Providers?**
+Connecting keys centrally means:
-AI Providers gives organizations one place to control which AI services are connected to Activepieces.
+- Teams use company-managed provider accounts, not personal ones.
+- Credentials are stored once, encrypted, and never shown to builders.
+- You decide which models and which projects each key may use.
-This is especially useful for larger teams that want to:
+Go to **Platform admin** → **AI Center** → **Providers**.
-- Use company-managed AI provider accounts instead of personal accounts
-- Keep provider credentials managed centrally
-- Standardize which AI providers teams use
-- Apply company security and access policies to AI usage
+![Providers page with keys](/resources/screenshots/ai-center-providers.png)
-### **How Connect to an AI Provider**
-
-**Step 1**: Go to **Platform Admin → Catalogue → AI Center → Providers**.
-
-**Step 2:** Find the provider you want to configure.
-
-**Step 3**: Click **Connect**.
-
-**Step 4**: Follow the instructions shown for that provider and enter the required credentials.
-
-**Step 5**: Click **Save**.
-
-Once configured, the provider can be used by supported AI features in Activepieces.
-
-<video src="https://cdn.activepieces.com/videos/docs/Connect-to-AI-Provider.mp4" controls />
+Keys are grouped by provider. Each row shows the key's name, its status, how many models and projects it covers, and how many [tiers](/admin-guide/guides/ai-tiers) use it. Providers you have not connected yet are listed under **Also available**.
## Supported providers
@@ -41,17 +26,17 @@ Once configured, the provider can be used by supported AI features in Activepiec
<div>
**Model providers**
- * OpenAI
* Anthropic
+ * OpenAI
* Google Gemini
+ * Meta
* Mistral AI
- * DeepSeek
* xAI
+ * DeepSeek
* Qwen
- * Z.ai
- * MiniMax
* Moonshot AI
- * Meta
+ * MiniMax
+ * Z.ai
</div>
<div>
@@ -59,6 +44,7 @@ Once configured, the provider can be used by supported AI features in Activepiec
* Azure
* AWS Bedrock
+ * Google Vertex AI
* NVIDIA
**Gateways**
@@ -73,76 +59,111 @@ Once configured, the provider can be used by supported AI features in Activepiec
</Columns>
<Tip>
- **Other (OpenAI Compatible)** covers any endpoint that speaks the OpenAI API, including self-hosted models and gateways not listed here. Point it at your own base URL.
+ **Other (OpenAI Compatible)** works with any endpoint that speaks the OpenAI API, including self-hosted models (Ollama, LM Studio) and gateways not listed here. Point it at your own base URL.
</Tip>
-## Cost control and logging
+## Add a key
-Spend on your own key goes to your provider, so put a gateway in front of it when you want limits and an audit trail:
+<Steps>
+ <Step title="Open the dialog">
+ Click **Add key** at the top of the page, or **Add key** on a provider you already use, or pick a provider under **Also available**.
+ </Step>
+ <Step title="Pick the provider">
+ Search the provider list and pick one. The dialog links to where you get that provider's credentials.
+ </Step>
+ <Step title="Name the key and enter the credentials">
+ Give the key a name your team will recognize, for example `Marketing`. Then fill in what the provider needs, such as an API key, a region or a base URL.
+ </Step>
+ <Step title="Connect">
+ Click **Connect**. Activepieces checks the credentials with the provider before saving. Then the key page opens, so you can pick its models and projects.
+ </Step>
+</Steps>
-- Set rate limits and budgets
-- Log and monitor every AI request
-- Track usage across projects
+![Add key dialog with the provider list open](/resources/screenshots/ai-center-add-key.png)
-**OpenRouter** and **Cloudflare AI Gateway** are set up like any other provider. Any other gateway that speaks the OpenAI API works through **Other (OpenAI Compatible)**, so LiteLLM, Portkey, Helicone, and self-hosted routers are all fine.
+You can add **more than one key for the same provider**. For example, one Anthropic key for production work and another, with its own budget, for the marketing team.
-## Supported providers
+## Key status
-<Columns cols={2}>
- <div>
- **Model providers**
+Every key shows a status badge:
- * OpenAI
- * Anthropic
- * Google Gemini
- * Mistral AI
- * DeepSeek
- * xAI
- * Qwen
- * Z.ai
- * MiniMax
- * Moonshot AI
- * Meta
-</div>
+| Status | What it means |
+| --- | --- |
+| **Active** | The last check or call worked. |
+| **Out of credits** | The provider says the account has no credit or quota left. |
+| **Key rejected** | The provider refused the credentials. Replace them in **Settings**. |
+| **Unreachable** | Activepieces could not reach the provider. |
- <div>
- **Cloud platforms**
+The status updates on its own when AI calls succeed or fail. To check right now, open the key and click **Recheck**.
- * Azure
- * AWS Bedrock
- * NVIDIA
+## Key page
- **Gateways**
+Click a key to open it. The page has three tabs.
- * OpenRouter
- * Cloudflare AI Gateway
+### Models
- **Anything else**
+Choose which of the key's models the platform may use:
- * Other (OpenAI Compatible)
-</div>
-</Columns>
+- **All models**: every model the provider offers. New models from the provider are added automatically.
+- **Only selected**: only the models you tick.
-<Tip>
- **Other (OpenAI Compatible)** covers any endpoint that speaks the OpenAI API, including self-hosted models and gateways not listed here. Point it at your own base URL.
-</Tip>
+Search, sort (newest, cheapest, biggest context, name) and filter by tool calling, reasoning, vision or image generation. Each row shows the model's context size and price per million tokens, when known. A model a tier uses shows **Used by** and the tier name, and stays selected until you change the tier.
+
+For **Google Vertex AI**, **Cloudflare AI Gateway** and **Other (OpenAI Compatible)**, you type the model ids yourself, because these providers don't list them.
+
+![Models tab of a key](/resources/screenshots/ai-center-key-models.png)
+
+### Access
+
+Choose which projects may use the key:
+
+- **All**: every project on the platform.
+- **Only selected**: only the projects you tick.
+- **All except**: every project except the ones you tick. New projects get access automatically.
+
+If a narrower list means a tier can no longer run in some projects, Activepieces asks you to confirm before saving.
+
+![Access tab of a key](/resources/screenshots/ai-center-key-access.png)
+
+### Settings
+
+- **Name**: rename the key.
+- **Credentials**: click **Replace** to enter new credentials. Models and project access stay as they are.
+- **Delete this key**: flows and agents that use this key will fail. A key that a tier still uses can't be deleted; remove it from the tier first.
+
+Changes to the models, projects and name are not saved right away. A bar at the bottom lets you **Save** or **Discard** them. Save or discard before you replace the credentials.
+
+## Default chat model
+
+The **Default chat model** card at the top of the page sets the model every new chat starts on. Pick a [tier](/admin-guide/guides/ai-tiers) or a model from one of your keys.
+
+![Default chat model card with the picker open](/resources/screenshots/ai-center-default-chat-model.png)
+
+If the chosen model can't run in a project, for example because its key doesn't serve that project, new chats there fall back to the default tier or another available model. The card shows a warning icon when this happens. If the model was removed, the card shows **Use default** to clear the choice.
+
+## AI credits
+
+On Cloud, your plan includes AI credits through a built-in **Activepieces** provider. You don't add a key for it, and it is not listed with your keys. Credits show up as their own options in the model pickers, and their usage is billed on your plan. You can mix credits and your own keys.
+
+## Plan
+
+Your own AI keys need a plan that includes AI providers. Without it, the page shows a preview and an upgrade prompt.
+
+If your plan changes and no longer includes AI providers, existing keys become **Read-only**. You can't open or edit them, but you can still delete them. Click **Upgrade** to get them back.
## Cost control and logging
-Spend on your own key goes to your provider, so put a gateway in front of it when you want limits and an audit trail:
+Spend on your own key is billed by your provider. To add limits and an audit trail, put a gateway in front of it:
-- Set rate limits and budgets
-- Log and monitor every AI request
-- Track usage across projects
+- Set rate limits and budgets.
+- Log and monitor every AI request.
+- Track usage across projects.
-**OpenRouter** and **Cloudflare AI Gateway** are set up like any other provider. Any other gateway that speaks the OpenAI API works through **Other (OpenAI Compatible)**, so LiteLLM, Portkey, Helicone, and self-hosted routers are all fine.
+**OpenRouter** and **Cloudflare AI Gateway** are set up like any other provider. Any other gateway that speaks the OpenAI API works through **Other (OpenAI Compatible)**, so LiteLLM, Portkey, Helicone and self-hosted routers are all fine. **Azure** and **AWS Bedrock** give you the same through your cloud account's quotas and logs.
-**Azure** and **AWS Bedrock** give you the same thing through your cloud account's own quotas and logs**Azure** and **AWS Bedrock** give you the same thing through your cloud account's own quotas and logs.
-<Tip>
- You can add several providers at once and pick the model per agent or per step, so the expensive models only run on the work that needs them.
-</Tip>
+## Related
-<Tip>
- You can add several providers at once and pick the model per agent or per step, so the expensive models only run on the work that needs them.
-</Tip>
+- [Tiers](/admin-guide/guides/ai-tiers): group models from your keys into named choices for builders.
+- [Capabilities](/admin-guide/guides/ai-capabilities): add web search, web scraping, image generation and embeddings.
+- API reference: [list keys](/endpoints/ai-providers/list-keys), [create a key](/endpoints/ai-providers/create-key), [update a key](/endpoints/ai-providers/update-key), [recheck a key](/endpoints/ai-providers/recheck-key), [delete a key](/endpoints/ai-providers/delete-key).
diff --git a/docs/agents/create.mdx b/docs/agents/create.mdx
index 53228604bf4..9e15df1ec3f 100644
--- a/docs/agents/create.mdx
+++ b/docs/agents/create.mdx
@@ -18,7 +18,7 @@ The **Agents** page opens with a prompt box. Write the job in a sentence and the
</Card>
</CardGroup>
-Drafting needs an [AI provider connected](/admin-guide/guides/setup-ai-providers) and turned on for chat. Without one the page says so and offers to write the agent by hand instead.
+Drafting runs on the platform's [Default chat model](/admin-guide/guides/setup-ai-providers#default-chat-model), so it needs an [AI provider connected](/admin-guide/guides/setup-ai-providers). Without one the page says so and offers to write the agent by hand instead.
<Tip>
Ask for what you want done, not for the tools. The draft only picks an action that reads your data unless the sentence asks for something to be sent, posted or filed, so *"tell me when something changes"* gets an agent that reports, not one that emails.
diff --git a/docs/agents/knowledge.mdx b/docs/agents/knowledge.mdx
index 8aceec88767..4ca6fd8c155 100644
--- a/docs/agents/knowledge.mdx
+++ b/docs/agents/knowledge.mdx
@@ -21,7 +21,7 @@ Attach a document or a table and the agent looks the answer up instead of guessi
Both live in the **Knowledge Base** section of the agent editor, below Agent Tools. Add one with **Add File Source** or **Add Table Source**.
<Note>
-Two things have to be in place or the section does not appear at all. Your Postgres needs the `pgvector` extension, which Activepieces installs on startup when the database offers it — Cloud and the standard self-hosted images are covered, but a managed Postgres without `pgvector` hides knowledge entirely. And the agent's model provider has to support embeddings: OpenAI, Google, Azure, and OpenRouter do.
+Two things have to be in place or the section does not appear at all. Your Postgres needs the `pgvector` extension, which Activepieces installs on startup when the database offers it — Cloud and the standard self-hosted images are covered, but a managed Postgres without `pgvector` hides knowledge entirely. And the platform needs a way to create embeddings. An admin sets this up in **AI Center** → **Capabilities** → [Embeddings](/admin-guide/guides/ai-capabilities). If it isn't set up, Activepieces uses the chat key when its provider supports embeddings (OpenAI, Google, Azure, and OpenRouter do), and otherwise AI credits.
</Note>
## Which one
diff --git a/docs/docs.json b/docs/docs.json
index 76cfc67077c..9e770a9f58d 100644
--- a/docs/docs.json
+++ b/docs/docs.json
@@ -376,8 +376,15 @@
"group": "Setup",
"pages": [
"admin-guide/guides/general",
- "admin-guide/guides/setup-ai-providers",
- "admin-guide/guides/ai-capabilities",
+ {
+ "group": "AI Center",
+ "icon": "sparkles",
+ "pages": [
+ "admin-guide/guides/setup-ai-providers",
+ "admin-guide/guides/ai-tiers",
+ "admin-guide/guides/ai-capabilities"
+ ]
+ },
"admin-guide/guides/global-connections",
"admin-guide/guides/manage-pieces",
"admin-guide/guides/templates",
@@ -702,14 +709,6 @@
"endpoints/ai-capabilities/reset"
]
},
- {
- "group": "Usage",
- "pages": [
- "endpoints/ai-usage/overview",
- "endpoints/ai-usage/list-items",
- "endpoints/ai-usage/get-item"
- ]
- },
{
"group": "Platform Configuration",
"pages": [
diff --git a/docs/flows/ai-router.mdx b/docs/flows/ai-router.mdx
index caeda0fa618..641e9a963fd 100644
--- a/docs/flows/ai-router.mdx
+++ b/docs/flows/ai-router.mdx
@@ -165,7 +165,7 @@ nothing is charged. If no answer arrives within ten minutes, the step fails too.
The AI Router runs on the platform's OpenRouter key, the same way every AI step does, and reaches Jev
through OpenRouter's Decisions API. On Cloud, and on Enterprise instances with billing, that is the
built-in Activepieces provider, and each decision is billed at the cost OpenRouter reports, about
-0.03 credit. With your own OpenRouter key, added under **AI providers** in the platform admin, each
+0.03 credit. With your own OpenRouter key, added under **AI Center** → **Providers** in the platform admin, each
decision costs one AI credit, and nothing on Community Edition, which has no credits. The step
appears in the step list as soon as the project can reach one of those keys, and is hidden otherwise.
There is nothing to configure on the step itself.
diff --git a/docs/install/reference/breaking-changes-unreleased.mdx b/docs/install/reference/breaking-changes-unreleased.mdx
index 04ce81f7687..b0026d203e5 100644
--- a/docs/install/reference/breaking-changes-unreleased.mdx
+++ b/docs/install/reference/breaking-changes-unreleased.mdx
@@ -491,13 +491,13 @@ To find affected steps after upgrading, search your logs for the structured `Cod
#### Each chat keeps the AI model and key it started on
-A chat used to run on whatever key was the **Default AI key** at the time of each message. Now a chat remembers the key and model it first ran on. Changing the Default AI key affects new chats only. An existing chat moves to the new default only when its key is deleted, or no longer covers the chat's project or model.
+A chat used to run on whatever the platform's default key was at the time of each message. Now a chat remembers the key and model it first ran on. Changing the **Default chat model** affects new chats only. An existing chat moves to the new default only when its key is deleted, or no longer covers the chat's project or model.
-Message credits for AI agent turns, in chat, agents and flow steps, now follow the key that actually answered the turn. A turn answered by your own key costs one message credit, and a turn answered by Activepieces AI credits costs none (its AI usage is billed as before), whatever the Default AI key is.
+Message credits for AI agent turns, in chat, agents and flow steps, now follow the key that actually answered the turn. A turn answered by your own key costs one message credit, and a turn answered by Activepieces AI credits costs none (its AI usage is billed as before), whatever the Default chat model is.
#### What you need to do
-Nothing to configure or migrate. To move an existing chat to another model, pick it in the chat. If you switch the Default AI key to stop using a key, delete that key or narrow its projects so existing chats move too.
+Nothing to configure or migrate. To move an existing chat to another model, pick it in the chat. If you switch the Default chat model to stop using a key, delete that key or narrow its projects so existing chats move too.
#### Firecrawl's Scrape Website stops reusing cached pages, and Crawl keeps its pages when a screenshot fails
diff --git a/docs/install/reference/environment-variables.mdx b/docs/install/reference/environment-variables.mdx
index 11ae75de54f..6aa09386284 100644
--- a/docs/install/reference/environment-variables.mdx
+++ b/docs/install/reference/environment-variables.mdx
@@ -228,7 +228,7 @@ run timeouts, and the network egress posture for user code. Read
| `AP_NETWORK_MODE` | Egress posture for user code. `STRICT` installs the engine's in-process SSRF guard, blocking outbound connections to private, loopback, link-local, and cloud-metadata IPs across every Node egress path (`axios`, `fetch`, `undici`, raw `http`/`net`). This is best-effort, in-process protection — enforce the real boundary in infrastructure (see [Network Security](/install/architecture/network-security)). `UNRESTRICTED` disables the guard. | `UNRESTRICTED` |
| `AP_SSRF_ALLOW_LIST` | Comma-separated IPs or CIDR ranges that bypass `AP_NETWORK_MODE=STRICT`, e.g. `10.0.0.5,10.10.0.0/24`. Only applies when `AP_NETWORK_MODE=STRICT`. | `None` |
| `AP_MODEL_CATALOG_URL` | Source for AI model metadata (context window, pricing, capabilities), shown beside each model when picking one. Fetched once and cached for 24 hours. An install with no egress to the default CDN simply shows models without that metadata; point this at a self-hosted mirror of the same JSON to restore it. | `https://cdn.activepieces.com/ai/model-catalog.json` |
-| `AP_MODEL_TIERS_URL` | Source for the published AI model tiers file (Fast / Expert / Heavy and the model behind each) that chat, agent and Run Agent turns resolve against. Read at boot and refreshed every 15 minutes while turns run, so a re-pointed tier reaches a running server without a deploy. An install with no egress to the default CDN keeps the tiers shipped with the release and logs a warning at boot, then at most one every 5 minutes. | `https://cdn.activepieces.com/ai/pricing.json` |
+| `AP_MODEL_TIERS_URL` | Source for the published AI model tiers file (Fast / Expert / Heavy and the model behind each) that chat, agent and Run Agent turns resolve against. Read at boot and refreshed every 15 minutes while turns run, so a re-pointed tier reaches a running server without a deploy. An install with no egress to the default CDN keeps the tiers shipped with the release and logs a warning at boot, then at most one every 5 minutes. These are the tiers behind Activepieces AI credits, not the [tiers admins build](/admin-guide/guides/ai-tiers) from their own keys. | `https://cdn.activepieces.com/ai/pricing.json` |
---
diff --git a/docs/resources/screenshots/ai-center-add-key.png b/docs/resources/screenshots/ai-center-add-key.png
new file mode 100644
index 00000000000..aa4c1678b11
Binary files /dev/null and b/docs/resources/screenshots/ai-center-add-key.png differ
diff --git a/docs/resources/screenshots/ai-center-capabilities.png b/docs/resources/screenshots/ai-center-capabilities.png
new file mode 100644
index 00000000000..b3dd5ca1d24
Binary files /dev/null and b/docs/resources/screenshots/ai-center-capabilities.png differ
diff --git a/docs/resources/screenshots/ai-center-default-chat-model.png b/docs/resources/screenshots/ai-center-default-chat-model.png
new file mode 100644
index 00000000000..680a00ae712
Binary files /dev/null and b/docs/resources/screenshots/ai-center-default-chat-model.png differ
diff --git a/docs/resources/screenshots/ai-center-key-access.png b/docs/resources/screenshots/ai-center-key-access.png
new file mode 100644
index 00000000000..ab76e6c9be4
Binary files /dev/null and b/docs/resources/screenshots/ai-center-key-access.png differ
diff --git a/docs/resources/screenshots/ai-center-key-models.png b/docs/resources/screenshots/ai-center-key-models.png
new file mode 100644
index 00000000000..9725af9b160
Binary files /dev/null and b/docs/resources/screenshots/ai-center-key-models.png differ
diff --git a/docs/resources/screenshots/ai-center-providers.png b/docs/resources/screenshots/ai-center-providers.png
new file mode 100644
index 00000000000..bc47c2380e1
Binary files /dev/null and b/docs/resources/screenshots/ai-center-providers.png differ
diff --git a/docs/resources/screenshots/ai-center-tiers.png b/docs/resources/screenshots/ai-center-tiers.png
new file mode 100644
index 00000000000..f1993a6d65c
Binary files /dev/null and b/docs/resources/screenshots/ai-center-tiers.png differ
diff --git a/docs/resources/screenshots/ai-center-usage.png b/docs/resources/screenshots/ai-center-usage.png
new file mode 100644
index 00000000000..b1d1fd8d4c3
Binary files /dev/null and b/docs/resources/screenshots/ai-center-usage.png differ
diff --git a/packages/web/public/locales/en/translation.json b/packages/web/public/locales/en/translation.json
index aa915179c3f..93cf8300334 100644
--- a/packages/web/public/locales/en/translation.json
+++ b/packages/web/public/locales/en/translation.json
@@ -501,6 +501,8 @@
"Global connections guide": "Global connections guide",
"AI providers guide": "AI providers guide",
"AI capabilities guide": "AI capabilities guide",
+ "AI tiers guide": "AI tiers guide",
+ "AI usage guide": "AI usage guide",
"Pieces guide": "Pieces guide",
"Templates guide": "Templates guide",
"General settings guide": "General settings guide",
diff --git a/packages/web/src/app/components/admin/admin-page-resources.ts b/packages/web/src/app/components/admin/admin-page-resources.ts
index 7019f7d6046..b7a08ca9316 100644
--- a/packages/web/src/app/components/admin/admin-page-resources.ts
+++ b/packages/web/src/app/components/admin/admin-page-resources.ts
@@ -63,6 +63,18 @@ export const adminPageResources = {
path: 'admin-guide/guides/ai-capabilities',
}),
],
+ aiTiers: [
+ docs({
+ label: () => t('AI tiers guide'),
+ path: 'admin-guide/guides/ai-tiers',
+ }),
+ ],
+ aiUsage: [
+ docs({
+ label: () => t('AI usage guide'),
+ path: 'admin-guide/guides/ai-usage',
+ }),
+ ],
pieces: [
docs({
label: () => t('Pieces guide'),
diff --git a/packages/web/src/app/routes/platform/setup/ai/components/section-header.tsx b/packages/web/src/app/routes/platform/setup/ai/components/section-header.tsx
index f44c69820a8..a96e607246d 100644
--- a/packages/web/src/app/routes/platform/setup/ai/components/section-header.tsx
+++ b/packages/web/src/app/routes/platform/setup/ai/components/section-header.tsx
@@ -1,40 +1,21 @@
-import { cn } from '@/lib/utils';
-
export function SectionHeader({
title,
count,
description,
- isPageTitle = false,
}: {
title: string;
count?: number;
description: string;
- isPageTitle?: boolean;
}) {
- const Heading = isPageTitle ? 'h1' : 'h2';
return (
<div className="flex flex-col gap-1">
<div className="flex items-baseline gap-2">
- <Heading
- className={cn('font-semibold tracking-tight', {
- 'text-lg': isPageTitle,
- 'text-base': !isPageTitle,
- })}
- >
- {title}
- </Heading>
+ <h2 className="text-base font-semibold tracking-tight">{title}</h2>
{count !== undefined && (
<span className="text-sm text-gray-11 tabular-nums">{count}</span>
)}
</div>
- <p
- className={cn('text-gray-11', {
- 'text-xs': isPageTitle,
- 'text-sm': !isPageTitle,
- })}
- >
- {description}
- </p>
+ <p className="text-sm text-gray-11">{description}</p>
</div>
);
}
diff --git a/packages/web/src/app/routes/platform/setup/ai/tiers-tab/index.tsx b/packages/web/src/app/routes/platform/setup/ai/tiers-tab/index.tsx
index bad7ac2a96a..832b56e5fc7 100644
--- a/packages/web/src/app/routes/platform/setup/ai/tiers-tab/index.tsx
+++ b/packages/web/src/app/routes/platform/setup/ai/tiers-tab/index.tsx
@@ -8,6 +8,7 @@ import { AnimatePresence, motion, useReducedMotion } from 'motion/react';
import { useMemo, useState } from 'react';
import { Link } from 'react-router-dom';
+import { AdminPageHeader, adminPageResources } from '@/app/components/admin';
import { DataFetchErrorState } from '@/components/custom/data-fetch-error-state';
import { Button } from '@/components/ui/button';
import {
@@ -28,8 +29,6 @@ import { projectCollectionUtils } from '@/features/projects';
import { platformConfigurationHooks } from '@/hooks/platform-configuration-hooks';
import { AdminControl, adminControl } from '@/lib/admin-control';
-import { SectionHeader } from '../components/section-header';
-
import { DeleteTierDialog } from './delete-tier-dialog';
import { SpecificModelsSection } from './specific-models-section';
import { TierCard } from './tier-card';
@@ -101,14 +100,13 @@ export function TiersTab() {
return (
<div className="flex flex-col gap-6">
- <div className="flex items-start justify-between gap-3">
- <SectionHeader
- title={t('Tiers')}
- isPageTitle
- description={t(
- 'Named model groups your builders pick. Each one is a main model plus fallbacks.',
- )}
- />
+ <AdminPageHeader
+ title={t('Tiers')}
+ description={t(
+ 'Named model groups your builders pick. Each one is a main model plus fallbacks.',
+ )}
+ resources={adminPageResources.aiTiers}
+ >
{!isError && !noKeys && (
<div className="flex shrink-0 items-center gap-2">
{showPreview && (
@@ -149,7 +147,7 @@ export function TiersTab() {
</Button>
</div>
)}
- </div>
+ </AdminPageHeader>
{isError ? (
<DataFetchErrorState entity={t('tiers')} onRetry={retry} />
diff --git a/packages/web/src/app/routes/platform/setup/ai/usage-tab/index.tsx b/packages/web/src/app/routes/platform/setup/ai/usage-tab/index.tsx
index e39cfd7e04c..4fbc4e194fe 100644
--- a/packages/web/src/app/routes/platform/setup/ai/usage-tab/index.tsx
+++ b/packages/web/src/app/routes/platform/setup/ai/usage-tab/index.tsx
@@ -9,7 +9,12 @@ import {
import { t } from 'i18next';
import { CalendarRange, Gauge, Hash, TrendingUp, Type } from 'lucide-react';
-import { AdminPageHeader, StatCard, StatGrid } from '@/app/components/admin';
+import {
+ AdminPageHeader,
+ StatCard,
+ StatGrid,
+ adminPageResources,
+} from '@/app/components/admin';
import { DataFetchErrorState } from '@/components/custom/data-fetch-error-state';
import { aiUsageHooks } from '@/features/ai-usage';
@@ -39,6 +44,7 @@ export function UsageTab() {
description={t(
'Where your AI spend goes across flows, agents and chat.',
)}
+ resources={adminPageResources.aiUsage}
>
<UsageHeaderControls view={view} />
</AdminPageHeader>
diff --git a/packages/web/src/app/routes/platform/setup/ai/usage-tab/usage-detail-page.tsx b/packages/web/src/app/routes/platform/setup/ai/usage-tab/usage-detail-page.tsx
index 981109ad0aa..b9af59f2e9b 100644
--- a/packages/web/src/app/routes/platform/setup/ai/usage-tab/usage-detail-page.tsx
+++ b/packages/web/src/app/routes/platform/setup/ai/usage-tab/usage-detail-page.tsx
@@ -21,7 +21,12 @@ import {
import { ReactNode } from 'react';
import { Link, Navigate, useParams } from 'react-router-dom';
-import { AdminPageHeader, StatCard, StatGrid } from '@/app/components/admin';
+import {
+ AdminPageHeader,
+ StatCard,
+ StatGrid,
+ adminPageResources,
+} from '@/app/components/admin';
import { DataFetchErrorState } from '@/components/custom/data-fetch-error-state';
import { Button } from '@/components/ui/button';
import { aiUsageHooks } from '@/features/ai-usage';
@@ -80,6 +85,7 @@ export function UsageDetailPage() {
description={
data ? usageAdapters.itemSubtitle({ item: data.item }) : undefined
}
+ resources={adminPageResources.aiUsage}
>
<UsageHeaderControls view={view} />
</AdminPageHeader>
diff --git a/packages/web/src/app/routes/platform/setup/ai/usage-tab/usage-list-page.tsx b/packages/web/src/app/routes/platform/setup/ai/usage-tab/usage-list-page.tsx
index 6002505b28d..557fe0c8f34 100644
--- a/packages/web/src/app/routes/platform/setup/ai/usage-tab/usage-list-page.tsx
+++ b/packages/web/src/app/routes/platform/setup/ai/usage-tab/usage-list-page.tsx
@@ -10,7 +10,11 @@ import { ArrowDown, ArrowUp, ChevronLeft, ChevronRight } from 'lucide-react';
import { useRef, useState } from 'react';
import { Link, Navigate, useParams } from 'react-router-dom';
-import { AdminPageHeader, adminSurface } from '@/app/components/admin';
+import {
+ AdminPageHeader,
+ adminPageResources,
+ adminSurface,
+} from '@/app/components/admin';
import { DataFetchErrorState } from '@/components/custom/data-fetch-error-state';
import { SearchInput } from '@/components/custom/search-input';
import { TextWithTooltip } from '@/components/custom/text-with-tooltip';
@@ -72,6 +76,7 @@ export function UsageListPage() {
})
: undefined
}
+ resources={adminPageResources.aiUsage}
>
<UsageHeaderControls view={view} />
</AdminPageHeader>