Cortex AI Gateway, one governed door for every model your teams use

Snowflake's Cortex AI Gateway is generally available from November 2026. What it controls, how access and logging work, and what to decide before turning it on.

Code for this article

cloudcentrix-labs/snowflake-platform-foundations

A Snowflake account baseline as plain SQL: two-layer roles, warehouses per workload, a nightly dev clone, a DCM project and Cortex AI Gateway governance.

In CI. Lints the SQL with sqlfluff, apart from two files with newer syntax, and renders the DCM templates. That does not prove the scripts run.

5 posts are written against it

Most companies now have AI usage they cannot see. A coding assistant here, a chatbot prototype there, each with its own API key and its own bill. On 3 November 2026 Snowflake made the Cortex AI Gateway generally available, and it is aimed squarely at that problem: one governed endpoint through which an organisation's AI clients reach models, with a trace for every request and spend attributed to the user who made it.

What it gives you

  • One endpoint, familiar formats. The gateway accepts requests in the OpenAI Chat Completions format and the Anthropic Messages format, so existing clients and SDKs can be pointed at it with little change.
  • A trace per request. Spans can be queried from AGENT_TRACE_TABLE, and clients can export OpenTelemetry traces.
  • Cost by person. Spend is reported in the AI_GATEWAY_USAGE_HISTORY view, with shared resource budgets and per-user quotas on top.

Trace analytics in Snowsight and Tools for the gateway were still in preview at launch.

Access is ordinary Snowflake RBAC

The gateway is a single account object named SNOWFLAKE, created for you:

SQL
SHOW AI GATEWAYS;

Two privileges matter:

SQL
GRANT USAGE ON AI GATEWAY SNOWFLAKE TO ROLE my_role;
GRANT MONITOR ON AI GATEWAY SNOWFLAKE TO ROLE cost_admin;

USAGE lets a role send inference requests. MONITOR lets a role query usage data and read every user's traces; without it, a role sees only its own.

Two details deserve attention on day one:

  • USAGE is granted to PUBLIC by default. If you want the gateway limited to named teams, revoke it and grant it deliberately.
  • USAGE does not widen model access. The underlying model entitlements still apply. The gateway is a door, and the existing rules about who may use which model stay in force.

Logging, and the privacy decision inside it

With logging on, the gateway records metadata only. Capturing the prompts and responses themselves is a separate switch in the gateway specification:

YAML
schema_version: 1
models:
  - name: '*'
logging:
  enabled: true
  capture_payload:
    request_response: true
    exclude_tags:
      - governance.tags.payload_capture_exempt

The specification is applied with ALTER AI GATEWAY SNOWFLAKE FROM SPECIFICATION, and users can be exempted from payload capture with a tag:

SQL
CREATE TAG governance.tags.payload_capture_exempt;
ALTER USER exec_user SET TAG governance.tags.payload_capture_exempt = 'true';

Three things to know before you apply one:

  • The specification replaces the whole configuration. Fields you leave out revert to their defaults. Keep the full specification in version control and apply it as a unit.
  • Exemption tags are a privilege. Anyone who can set a listed tag can exempt a user from capture. Decide who owns those tags.
  • Changes are not instant. Model access changes can take up to five minutes to take effect through the gateway.

Payload capture is the decision to take to your privacy officer. Prompts routinely contain customer data, and under POPIA a store of captured prompts is personal information that needs a purpose, a retention period and access control like any other.

Where to start

  1. Run SHOW AI GATEWAYS and check who holds USAGE.
  2. Give your FinOps or platform lead MONITOR and look at a week of AI_GATEWAY_USAGE_HISTORY.
  3. Point one existing client at the gateway. A coding assistant is a good first choice because its usage is steady and easy to compare.
  4. Decide on payload capture with the people responsible for privacy, then set budgets and per-user quotas once you have a baseline.

The value here is less about any single feature and more about having one place to answer three questions: who is using which model, what is it costing, and what are we sending it.

Further reading

More from the same code.

Other posts written against snowflake-platform-foundations.

All 18 posts

Put this to work on your Snowflake account.

Dries van Wyk wrote this post. If you want a second pair of eyes first, ask for a Snowflake cost and access review: a senior engineer reads your account with read-only access and tells you what to fix first.

Talk to an engineerWe reply within one business day.

What happens next

  1. You send a few lines about the problem.
  2. One of us replies within one business day.
  3. You talk it through with the engineer who would do the work.
  4. You get a fixed scope, timeline and price before any work starts.

We sign an NDA before the first conversation if you want one.

Or write to info@cloudcentrix.co.za or call +27 82 445 4311.