Why Your Snowflake Cost Dashboard Misses Cortex Agents Spend (and How to Track AI Credits)
Cortex Agents bill as serverless AI credits in their own Account Usage views, so a warehouse-only dashboard under-reports
WAREHOUSE_METERING_HISTORY will not show Cortex Agents spend, because it reports warehouse and cloud services credits only. Per the Snowflake documentation on exploring compute cost, it provides "hourly credit usage of each warehouse, including the cloud services cost associated with using the warehouse." Agent usage is billed as a serverless AI feature and recorded in its own view, CORTEX_AGENT_USAGE_HISTORY. A dashboard built on warehouse metering alone will under-report the moment a team ships its first agent.
Key Takeaways
- •WAREHOUSE_METERING_HISTORY covers warehouses and their cloud services cost only; it is not a complete bill.
- •Snowflake's docs tag ten separate Cortex usage views as serverless, including CORTEX_AGENT_USAGE_HISTORY, CORTEX_ANALYST_USAGE_HISTORY and CORTEX_SEARCH_SERVING_USAGE_HISTORY.
- •METERING_HISTORY is the account-level roll-up that includes serverless features, so it is the right reconciliation target for any AI spend dashboard.
- •Some Cortex costs are fixed rather than usage-driven: one published estimate puts a 50GB Cortex Search index at about 315 credits a month whether or not anyone queries it.
- •Track AI spend per feature view, reconcile against METERING_HISTORY, and alert on the gap between the two.
Why a warehouse-centric cost dashboard goes blind
Most Snowflake cost dashboards were built in the era when compute meant a virtual warehouse. A query runs, the warehouse resumes, credits accrue, and WAREHOUSE_METERING_HISTORY records them hourly. Every chart downstream, from per-team showback to idle-warehouse alerts, inherits that assumption. It was a reasonable model for years, and it is still correct for what it measures. The problem is that it measures one billing category among several.
Cortex Agents do not run on your warehouse in the way a dbt model does. An agent orchestrates model calls, tool calls and retrieval, and Snowflake bills that work through serverless AI metering. The credits are real and they land on the same invoice, but they never pass through the view your dashboard reads. The result is a quiet divergence: the invoice grows, the dashboard stays flat, and the finance question "why is Snowflake up this month?" has no answer in the tool built to answer it.
This is a structural gap, not a bug in any dashboard. Teams rarely notice it until a pilot agent gets popular. By then the usage has no tags, no per-team attribution and no budget attached, because the cost-allocation work was done against warehouses.
Where AI Credits actually land in Account Usage
The Snowflake compute cost reference lists 29 Account Usage views tagged as serverless, and ten of them are Cortex views: CORTEX_AI_FUNCTIONS_USAGE_HISTORY, CORTEX_AGENT_USAGE_HISTORY, CORTEX_ANALYST_USAGE_HISTORY, CORTEX_FINE_TUNING_USAGE_HISTORY, CORTEX_FUNCTIONS_QUERY_USAGE_HISTORY, CORTEX_DOCUMENT_PROCESSING_USAGE_HISTORY, CORTEX_FUNCTIONS_USAGE_HISTORY, CORTEX_REST_API_USAGE_HISTORY, CORTEX_SEARCH_DAILY_USAGE_HISTORY and CORTEX_SEARCH_SERVING_USAGE_HISTORY. Each one covers a different billable surface, so there is no single "AI cost" table to point a chart at.
For agent work specifically, the view to start with is CORTEX_AGENT_USAGE_HISTORY. But an agent that answers questions over structured data often also calls Cortex Analyst, retrieves through Cortex Search, and invokes AI functions underneath. Its true cost is spread across several views. Check the column list for each view in the Snowflake docs before you build, because the schemas differ by feature and we would rather you read them than rely on our summary.
Snowflake Intelligence, the end-user chat experience, sits on top of the same machinery. One 2026 cost guide tells teams to build custom monitoring on CORTEX_FUNCTIONS_USAGE_HISTORY from day one, which is sound advice for the function layer and incomplete on its own for agents. Treat any single-view recommendation as a starting point, and confirm the view list against the current docs.
Five steps to track Cortex Agents and AI Credits
We use a five-step sequence when a team asks "how much are agents costing us?" It works because it starts from the invoice-level total and works down to features, rather than building up from a view that might be missing something.
Step one is to establish the total. Query METERING_HISTORY, which the Snowflake docs describe as reporting "credits consumed by warehouses, cloud services, serverless, and Openflow features on an hourly basis." This is the reconciliation anchor. Any number you present as total spend should tie to it.
Step two is to subtract the warehouse portion by summing WAREHOUSE_METERING_HISTORY over the same window. What remains is serverless and cloud services spend that the warehouse view cannot see. If that remainder is a rounding error, you have no AI exposure yet. If it is growing, you have found the blind spot.
Step three is to attribute the remainder by feature. Union the Cortex views you actually use, normalize their credit columns into one shape (feature, day, credits), and compare the sum against the remainder from step two. Step four is to map credits to owners, using the user, role or request metadata each view exposes, so spend can be charged back to a team. Step five is to alert on drift: when the unexplained gap between METERING_HISTORY and your feature views exceeds a threshold, a new billable feature has appeared that your dashboard does not know about.
The costs that do not scale with usage
Agent cost reviews tend to focus on token volume, but some AI spend is a standing charge. The same cost guide estimates a 50GB Cortex Search index at roughly 315 credits a month at $3 a credit, billed whether or not queries run. That is an estimate from a third party, so verify it against your own CORTEX_SEARCH_DAILY_USAGE_HISTORY before quoting it internally, but the shape of the cost is the point.
This matters for attribution. An agent that was a pilot in October and abandoned in November can keep billing through the search index it depends on. Per-query dashboards will show zero activity while the daily serving charge continues. The review habit that catches this is a weekly list of AI resources with spend but no recent calls.
It also matters for forecasting. Usage-driven costs rise with adoption and can be capped with access controls. Fixed costs rise with data volume and index count, and they need a different owner conversation: who is allowed to create a search service, and who reviews it when the project ends.
Why the gap is hard for a human to keep closed
Snowflake adds usage views faster than most FinOps dashboards are updated. The list of ten Cortex views is a snapshot from the current docs, not a stable contract. Each new feature brings a new view, a new credit unit and sometimes a new billing model. Keeping a hand-built union query current is a recurring task with no deadline, which is exactly the kind of task that slips.
The second problem is context. The cost view tells you what was spent. It does not tell you which agent, which prompt or which pipeline change caused the jump, and answering that means joining cost data to query history, access logs and deployment events across systems. That join is where the engineer becomes the integration layer.
The Cost Agent in Data Workers reads these views through the Connectors Agent and flags the gap between metered total and attributed spend, so a new billable feature shows up as an alert rather than a surprise on the invoice. It chains with the Usage Intelligence Agent to separate AI resources that are idle from those that are busy. Both are MCP servers, per the Model Context Protocol specification, so you can ask from Claude Code or Cursor: "How much are we spending on Snowflake this month, and how much of it is AI?" The OSS edition is read-only by default, which suits cost analysis.
What to decide before the first agent ships
Cost visibility is cheapest to build before usage exists. Three decisions are worth making early. First, agree which view is the source of truth for total spend, and make it METERING_HISTORY rather than a warehouse view. Second, decide how AI spend is attributed: by team, by agent or by use case, and make sure the metadata to do that is captured at creation time.
Third, set a budget and an alert for AI features separately from warehouse budgets. A single combined budget hides the fact that AI spend can grow ten times faster than analytics compute during an adoption spike. Separate budgets let finance see which line is moving.
None of this requires new tooling to start. A union view, a reconciliation query and one alert get most teams from blind to informed in an afternoon. The tooling question comes later, when the number of billable features grows beyond what anyone wants to maintain by hand.
Frequently Asked Questions
Does WAREHOUSE_METERING_HISTORY include Cortex Agents costs?
No. The Snowflake docs describe it as hourly credit usage per warehouse including associated cloud services cost. Cortex Agents are recorded as a serverless feature in CORTEX_AGENT_USAGE_HISTORY. To see all credits in one place, use METERING_HISTORY, which spans warehouses, cloud services and serverless features.
Which view should I query for Snowflake Intelligence spend?
Start with CORTEX_AGENT_USAGE_HISTORY and then check the other Cortex views your agents depend on, such as Cortex Analyst and Cortex Search. No single view is guaranteed to hold the whole cost, so reconcile your feature totals against METERING_HISTORY and investigate any difference.
Can I track AI Credits without building custom SQL?
Snowflake's own cost management pages are the first stop, and they cover much of the ground. For continuous reconciliation across features, an agent that reads the views and alerts on unexplained gaps removes the maintenance. Data Workers' Cost Agent does this, and you can keep your existing dashboards alongside it.
Why did my invoice grow when warehouse credits stayed flat?
Usually because serverless features grew. Subtract total warehouse credits from the METERING_HISTORY total for the same period, then attribute the remainder across the serverless and Cortex views. The largest contributor is your answer, and it is often a feature that no dashboard was reading.