AI usage controls

AI controls are only available on Pro and Enterprise plans (both self-hosted and on Metabase Cloud).

Admin > AI > Usage controls

Once you’ve connected an AI provider (see AI settings), you can can control who can use Metabot and set usage budgets.

AI feature access

Admin > AI > Usage controls > AI feature access

The AI feature access table lets you toggle Metabot on or off per group, and pick what Metabot can do for each group. Rows are your internal groups and tenant groups; columns are Metabot capabilities.

  • AI features — the master toggle for the group. When off, people in that group won’t see the Metabot icon, keyboard shortcuts, or any inline AI affordances.
  • Chat and NLQ — access to the Metabot chat sidebar and natural language querying.
  • SQL generation — permission to have Metabot write or edit SQL (from the sidebar or inline).
  • Other tools — other AI tools like error-fixing and chart analysis.

These controls are granular. If you uncheck SQL generation but leave Chat and NLQ checked, Metabot will try to answer SQL-shaped prompts with a query builder result.

Tenant groups follow the same model as regular groups.

AI usage limits

Admin > AI > Usage controls > AI usage limits

AI usage limits

By default, AI usage is unlimited.

These limits let you cap how much Metabot traffic Metabase allows — either across your whole instance, or for people in specific groups.

Settings and general limits

  • How do you want to limit AI usage? Choose between:
    • By token usage in millions of tokens, so 2 would be 2 million tokens.
    • By message count. Each message someone sends to Metabot counts as one message (not a conversation, but a single message).
  • When should usage limits reset? The counter resets automatically; the limit values stay put. Pick from:
    • Daily (resets at midnight).
    • Weekly (resets on Monday).
    • Monthly (resets the 1st).

You can also set:

  • Total instance limit: the total pool of tokens or messages across every person and group. Once this limit is hit, Metabot stops responding to requests until the next reset.
  • Quota-reached message: the error Metabot shows when someone hits a limit. Write whatever makes sense for your Metabase (like a Slack channel to ping, or a link to a request form).

Group limits

Group limits set a per-_person_ cap for everyone in a user group. So, each person in the group gets the limit, not the group as a whole.

If a person belongs to multiple groups, Metabase gives them the highest limit across those groups (not the cumulative number across all of their groups). So if someone is in two groups, one group capped to 100 messages per week, and another group capped to 500, that person would enjoy 500 per week (not 600).

Tenant group limits

You can set a limit for each tenant group. They work just like the group limits described above.

Specific tenant limits

This specific tenant limit is an aggregate pool shared by everyone in a single tenant. When the pool is empty, no one in that tenant can use Metabot for the rest of the period, regardless of how generous their tenant-group limits are.

Per-tenant limits are handy for billing scenarios. Say you have a customer, Megafauna Analytics, who pays you for 100 million tokens a month. Set Megafauna Analytics’s tenant limit to 100, and Metabase enforces that cap across every seat they provision.

Further reading

Read docs for other versions of Metabase.

Was this helpful?

Thanks for your feedback!
Want to improve these docs? Propose a change.