# AI credits Source: https://docs.elementary-data.com/cloud/ai-agents/ai-credits AI credits are consumed when Elementary's AI does the reasoning. With [MCP](/cloud/mcp/overview), Elementary returns data to the connected agent. The LLM (Cursor, Claude, etc.) handles reasoning and bills to that provider. *** ## What uses AI credits | Action | What the AI does | | ---------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | | [**Incident investigation**](/cloud/ai-agents/triage-resolution-agent) | Diagnoses a data issue: root cause, impacted tables, suggested fix | | [**Data discovery**](/cloud/ai-agents/catalog-agent) | Identifies which tables or columns to use for a specific metric or use case | | [**Test coverage**](/cloud/ai-agents/test-recommendation-agent) | Generates dbt test PRs based on configured data policies and opens them for review | | [**CI PR review**](/cloud/features/ci) | Lineage-aware review on every dbt PR, surfacing downstream impact before merge | *** ## What doesn't use AI credits | Feature | Why | | ----------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | | **All MCP tool calls** | Elementary returns data to the connected agent. The LLM handles reasoning | | **Slack alerts and notifications** | Pure notification delivery. No AI involved | | **Anomaly detection and monitors** | Volume and freshness monitors run on statistical algorithms, not LLMs | | **Lineage and catalog browsing** | All UI navigation: lineage graphs, asset catalog, test coverage pages | | **Manual incident merging** | Selecting and merging incidents by hand is a platform feature, not AI | | **Deterministic incident grouping** | Rule-based clustering (e.g. Fivetran fail + downstream freshness). Coming soon | | [**Reasoning on your own LLM key (BYOK)**](/cloud/ai-agents/byok) | When you connect your own Anthropic or OpenAI key, reasoning is billed by that provider, not by Elementary | *** ## Get more from credits Enable automatic root cause. With it on, Elementary runs one AI call per incident posted to Slack instead of multiple team members each triggering their own analysis. More efficient, and everyone sees the same context. Use MCP for ad hoc exploration. Querying lineage, assets, or test results via MCP costs zero Elementary credits. Use it freely from Cursor, Claude, or any MCP-compatible tool. [Bring your own LLM key (BYOK)](/cloud/ai-agents/byok). Connect your own Anthropic or OpenAI key and the agent's reasoning is billed by that provider — Elementary charges no AI credits for it. Credits consumed and credits remaining are always visible in the Elementary dashboard. Need a breakdown by user, action type, or time period? Contact the account team for a detailed usage report. # Bring your own key (BYOK) Source: https://docs.elementary-data.com/cloud/ai-agents/byok By default, the Elementary AI Agent runs on self-hosted models through Amazon Bedrock, and reasoning is billed as [AI credits](/cloud/ai-agents/ai-credits). With Bring Your Own Key (BYOK), you connect your own LLM provider key instead. The agent then runs on your account with that provider, and **Elementary does not bill AI credits for any reasoning that uses your key** — you pay the provider directly. ## Supported providers | Provider | Notes | | ------------- | ----------------------------------------------------------------------- | | **Anthropic** | Any Claude model available to your API key | | **OpenAI** | Chat-capable models available to your API key (`gpt-*`, `o1`/`o3`/`o4`) | Amazon Bedrock remains the default when no key is configured. ## How it works * The key is used for both the interactive **chat** agent and the background **runner** (incident triage, test recommendations, and other automated workflows). * When a key is configured, Elementary's AI credit quotas are **bypassed** — usage is metered by your provider, not by Elementary. * Token counts are still recorded for observability, but no cost is attributed on Elementary's side. * You can curate which models are exposed in the chat model picker. Leave the selection empty to expose every model your key can access. On BYOK accounts, the agent's requests (including the system prompt) are sent to your provider using your key, so they appear in your provider's own request logs. ## Set it up 1. Go to **Account → Agent Settings → Bring your own key**. 2. Choose a provider (Anthropic or OpenAI) and paste your API key. Keys are stored encrypted. 3. Optionally select which models to expose in the chat picker. 4. Save. New chat sessions and agent runs will use your key. Configuring Bring Your Own Key under Agent Settings To revert to Elementary's Bedrock models and AI credits, delete the key from the same screen. Managing BYOK requires the **Edit integrations** permission. # Catalog Agent Source: https://docs.elementary-data.com/cloud/ai-agents/catalog-agent **The Catalog Agent helps data analysts, business users, and AI tools find the right data on their own so engineers don't have to be the bottleneck.** By interpreting natural language questions and surfacing the right context—including data health, lineage, and metric definitions—it enables faster, more confident access to the data people need. The Catalog Agent lays the groundwork for more accurate and effective AI-powered workflows across your organization. ### Using the Catalog Agent Open the Catalog Agent to start a conversation. Just ask a question like **“Which table should I use to analyze user retention?”** or **“Can I trust the orders table?”** and the agent will guide you to the right assets or insights. The agent will interpret your request using metadata, lineage, and semantic context, and suggest relevant datasets, tables, or metrics. It will also surface freshness, incident status, and test results, and explain how the data is used and whether it can be trusted.