Free self-checkread-only

Free cost and access self-check
for Snowflake

Runs on your machine with your own read-only role. Nothing leaves it.

VibeWright Self-Check for Snowflake is a set of SQL files and a small command-line tool. You run it yourself, with a read-only role you create and control. It reads account metadata (usage views, grants, table sizes) and leads with one number: the estimated avoidable spend a month. Nothing in the account is changed. It is free and open source (MIT).

SQL pack 0.1.0: a zip of worksheet files with a short README and the MIT licence. Not affiliated with Snowflake Inc.

THE HEADLINE NUMBER

The report leads with one figure

Fictional sample: Acme Outfitters, account DEMO1234
Estimated avoidable spend: $3,540 a month

Sum of the 16 cost findings below (each credit counted once) at $3.00 per credit, $2.00 per AI credit and $23 per TB-month, list prices assumed. That is 32% of the roughly $10,958 a month this account spent over the last 30 days (billed credits and stored bytes at the same prices).

Plus 19 access findings (3 high, 9 medium, 7 low); they carry no dollar figure.

That is the top of the sample report, word for word. The company, the account and every number in it are fictional. In a real report the line under the figure is the formula for your account: how many findings were added up, at which prices, and what share of the last 30 days’ spend that is.

Every dollar figure is an estimate: units (credits or TB) from a stated formula, times a price. If the role cannot see the cost views, the headline says “Not estimated” instead of showing $0 as if the account were clean.

Where the sample’s figure comes from

Warehouses
$3,280
a month (estimate, fictional)
AI spend
$9.00
a month (estimate, fictional)
Storage
$251
a month (estimate, fictional)
Est. a monthUnits a monthWarehouseFinding
$810270 creditsSERVE_WHMulti-cluster warehouse keeps extra clusters running
$720240 creditsREPORTING_WHWarehouse looks larger than its queries need
$567189 creditsBI_WHAuto-suspend is off or longer than 5 minutes
$486162 creditsETL_WHAuto-suspend is off or longer than 5 minutes
$23879.5 creditsDEV_WHWarehouse looks larger than its queries need

The first five of the sample’s 16 cost findings, ranked by estimated dollars a month. All names are invented. The sample report is one self-contained HTML file and loads nothing from anywhere else.

WHAT IT CHECKS

Warehouses, AI spend, storage and access

Warehousessavings in Platform credits
  • auto-suspend off or longer than 5 minutes, and the idle credits it costs
  • a large idle share where auto-suspend is already short, or where settings are not visible
  • warehouses larger than their queries need
  • multi-cluster warehouses that keep extra clusters running
  • cloud services billed above the daily 10% allowance
  • the premium paid for Gen2 warehouses (for information)
AI spendAI credits and Platform credits
  • AI spend counted once across the usage views, by feature, user, model and warehouse
  • how much a dashboard that sums every AI view would overstate
  • retiring AI usage views that reports may still read
  • AI functions called from a warehouse larger than Medium
Storagesavings in TB
  • tables with no recorded read or write in 90 days (needs Enterprise Edition)
  • Time Travel bytes that a 1-day retention would no longer hold
  • permanent tables that look rebuildable and pay for Fail-safe
Accessseverity, no dollars
  • tagged or masked tables that PUBLIC or many users can read, with the role chain from each user
  • grants with no evidence of use in 90 days, with a commented-out revoke script and its undo
  • who can use ACCOUNTADMIN, directly or through another role
  • people who sign in with a password and have no MFA
  • active users with no successful login in 90 days
  • unused or expired key pairs and access tokens, and old passwords

Each credit and each stored byte is claimed by one finding only, so the estimates can be added up. Where a rule needs an assumption, the finding says so.

HOW IT WORKS

Today with the SQL pack, then one command

Today, with the SQL pack

1. Review and run the setup SQL
setup/selfcheck_role.sql creates a read-only role that can read the metadata views and nothing else, an X-Small warehouse that suspends after 60 seconds, and a key-pair-only service user. Read it, change the names if you like, and run it yourself as ACCOUNTADMIN. The file explains every grant and ends with a commented-out teardown. Any role that can already read SNOWFLAKE.ACCOUNT_USAGE works too.
2. Paste a check into a worksheet
Each file under checks/ is one read-only statement (WITH ... SELECT) that runs as it is in a Snowsight worksheet, with its tunables in the first CTE. The files that read warehouse settings ask you to run SHOW WAREHOUSES first, in the same worksheet.
3. Read the rows
EST_UNITS_MONTH is in credits, AI credits or TB; the file says which. Multiply it by your own price to get dollars. Every such figure is an estimate. FIX_SQL columns are suggestions as text; nothing runs them for you.

With the command-line tool

1. Connect with a key pair
Add a key-pair connection for the read-only service user to your connections file. You name the account you expect, and the run stops if a different account answers.
2. Run one command
It runs every check, prints each one with its seconds as it finishes, and prints the headline.
3. Open the HTML report
It writes report.html and findings.json, and a revoke script with its undo when the access checks found grants with no evidence of use. Every statement in the revoke script is commented out.

The command-line tool that builds this report (one command, the headline number, role chains, the commented-out revoke script) is finished and tested. I am publishing its repository shortly.

What it never does

SELECT and SHOW only
Every statement the tool sends is a single SELECT, WITH or SHOW. A guard refuses anything else before it reaches the connection. Each file in the SQL pack is one read-only statement. Nothing in the account is changed.
No query text
No check selects QUERY_TEXT, ERROR_MESSAGE or BIND_VALUES, and no check reads a row of your tables. It works from metadata only: usage views, grants and table sizes.
Nothing is sent anywhere
The tool talks to your Snowflake account and to nothing else. No data or metadata is sent anywhere. The report is one self-contained HTML file with no scripts and no external requests.
The revoke script is never run
It is generated as a file in which every statement is commented out, next to an undo file with the matching re-grants. The tool never runs either one; you decide what to run.
HOW I TESTED IT

What has been tested, and what has not

Every check runs against fictional accounts built in DuckDB. The shipped SQL files are transpiled from Snowflake SQL to DuckDB with sqlglot, and the results are compared with hand-calculated numbers: for each check, an entity that must be reported and one that must stay quiet for a stated reason.

Every shipped query has also passed a parity run on a real Snowflake account, with the fixture rows inlined as VALUES and the results compared with the DuckDB results.

And the tool has been run end to end against a real account with a read-only role: the access checks read live metadata there, while the cost and storage checks were skipped cleanly because that role could not see the metering, AI usage and storage views. So the cost and storage queries are proven by the parity run, not yet against live cost data.

That is all the testing there is.

WORTH KNOWING

AI credits are easy to count twice, and the older usage views are retiring

Snowflake’s AI cost page says the embedding rows in CORTEX_SEARCH_DAILY_USAGE_HISTORY must be left out of a combined total, because the same credits also appear in CORTEX_AI_FUNCTIONS_USAGE_HISTORY. CORTEX_AISQL_USAGE_HISTORY repeats AI function credits as well (all functions except AI_EXTRACT) and is slated for deprecation on January 15, 2027. CORTEX_FUNCTIONS_USAGE_HISTORY and CORTEX_FUNCTIONS_QUERY_USAGE_HISTORY stopped updating on November 21, 2025 and were slated for deprecation on November 22, 2026. Their replacement, CORTEX_AI_FUNCTIONS_USAGE_HISTORY, starts on January 5, 2026.

So a report that sums every AI usage view counts some credits twice, and one that still reads the two older views shows nothing after November 21, 2025. Dates as documented on December 1, 2026: Snowflake documentation, AI cost management.

ALREADY BUILT IN

What Snowflake already gives you for free

Look at these first; they are built in.

  • Optimization insights in Snowsight (Admin, Cost management) flag idle warehouses, large tables that are never queried, tables that are written but not read, and short-lived permanent tables, refreshed weekly.
  • Trust Center. The Security Essentials scanner package is on by default and its scheduled runs are free; it checks MFA enrolment for password users and the account network policy. The CIS Benchmarks package covers more (the number of ACCOUNTADMIN users, users with no login in 90 days), but it has to be enabled first and its runs use serverless credits.

Where a check overlaps one of these, the report says so next to the finding. What this tool adds is a credit or TB figure on each finding, AI spend counted once, the role chains to sensitive tables, grants with no evidence of use, and one ranked list for all of it.

METHOD AND LIMITS

What this is, and what it is not

  • List prices are assumed unless you pass your own. US$3.00 per Platform credit (Enterprise Edition, on demand, AWS US; Standard is $2.00, Business Critical $4.00), US$2.00 per AI credit, US$23.00 per TB a month. Source: Snowflake Service Consumption Table, effective 2026-11-20. Your contract price may differ from the list price, so use your own numbers when you know them.
  • Estimates, not a bill. They assume the pattern of the window continues. They come from stated formulas and are not a quote or a bill.
  • ACCOUNT_USAGE lags. It reads metadata, so it sees what Snowflake records. ACCOUNT_USAGE views lag by up to a few hours, and some are not visible to every role or edition; the Coverage section of the report lists every check that could not run and why.
  • The access-history checks need Enterprise Edition. Tables with no recorded read or write in 90 days, and unused table privileges, are read from ACCESS_HISTORY, which exists on Enterprise Edition and higher. On Standard Edition those are skipped and the report says why.
  • “No recorded read or write” and “no evidence of use” mean what they say. A table used once a year, a role used only as a secondary role, and a table read only by a data-sharing consumer all look idle. Review before you drop or revoke anything.
  • Adaptive and Interactive warehouses are left out of the idle and auto-suspend checks, because they are billed differently.
  • One account at a time. Role chains, the users behind a sensitive table and the ACCOUNTADMIN count are worked out by the command-line tool; the SQL pack gives you the flat queries they are built from.
  • The report holds account metadata (names of warehouses, tables, roles and users). Treat it like any internal document.
NEXT STEP

A second pair of eyes on the access side

If you want a second pair of eyes on the access side, the fixed-price audit is US$750. It maps every user to every table and tagged column they can read, shows the role chain behind each one, and comes with dry-run revoke scripts and their undo. No credentials are shared with me and nobody logs in to your account.

FAQ

Questions

Does anything leave my machine?+

No. The command-line tool talks to your Snowflake account and to nothing else, and its report is one self-contained HTML file with no scripts and no external requests. The SQL pack is plain SQL files that you paste into your own worksheet. No data or metadata is sent anywhere.

Does it change anything in my account?+

No. Every statement the tool sends is a single SELECT, WITH or SHOW, and a guard refuses anything else before it reaches the connection. Each file in the SQL pack is one read-only statement. Suggested fixes are text. The revoke script is a file in which every statement is commented out, and the tool never runs it. The setup script, which you read and run yourself, creates a read-only role, an X-Small warehouse that suspends after 60 seconds and a key-pair-only service user, and it ends with a commented-out teardown.

Does it read query text or table data?+

No. No check selects QUERY_TEXT, ERROR_MESSAGE or BIND_VALUES, and no check reads a row of your tables. It works from metadata only.

Which prices does it use?+

Dollars are units times one of three prices. The command-line tool uses, in this order: a price you pass as a flag; your account’s own rate sheet, when the role can read it and it is in US dollars; or a list price, labelled “list price assumed” in the report: US$3.00 per Platform credit (Enterprise Edition, on demand, AWS US), US$2.00 per AI credit and US$23.00 per TB a month, from the Snowflake Service Consumption Table effective 2026-11-20. With the SQL pack you multiply EST_UNITS_MONTH by your own price.

What is the difference between the SQL pack and the command-line tool?+

The SQL pack is the checks as worksheet files: each returns its own rows, with EST_UNITS_MONTH in credits, AI credits or TB. The command-line tool runs them in one command and adds what the flat queries do not give: the headline number, the rule that the same credit is not claimed by two findings, the role chains to sensitive tables, the ACCOUNTADMIN finding, the commented-out revoke script with its undo, and the HTML report.

Does it work on Standard Edition?+

Mostly. The check for tables with no recorded read or write in 90 days needs ACCESS_HISTORY, which exists on Enterprise Edition and higher, and so does the table-privilege part of the unused-grants check. On Standard Edition those are skipped and the report says why. Multi-cluster warehouses need Enterprise Edition, so that check is quiet on Standard Edition.

Does Snowflake already show some of this?+

Yes, and it is worth looking there first. Optimization insights in Snowsight flag idle warehouses and large tables that are never queried, and Trust Center checks MFA enrolment for password users. Where a check overlaps one of these, the report says so next to the finding. What this tool adds is a credit or TB figure on each finding, AI spend counted once, the role chains to sensitive tables, grants with no evidence of use, and one ranked list for all of it.

Is it really free?+

Yes. It is free and open source under the MIT licence, and it stays free. If you would like someone to go through the access side of your account with you, I do a fixed-price access audit for US$750.

Is this affiliated with Snowflake?+

No. VibeWright is not affiliated with Snowflake Inc. Snowflake is a trademark of Snowflake Inc.

Sources: Snowflake documentation, AI cost management; Optimization insights; Trust Center; Account Usage; Service Consumption Table.

WHO RUNS THIS

VibeWright

VibeWright, a registered business in Ontario, Canada. I build data tools and audits, including the Access Map for Snowflake and an ADA Title II document triage. Questions about the self-check go through the request form on the audit page or the contact form.

Not affiliated with Snowflake Inc. Snowflake is a trademark of Snowflake Inc.