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-foundationsA 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.
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_HISTORYview, 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:
SHOW AI GATEWAYS;
Two privileges matter:
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:
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:
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
- Run
SHOW AI GATEWAYSand check who holdsUSAGE. - Give your FinOps or platform lead
MONITORand look at a week ofAI_GATEWAY_USAGE_HISTORY. - Point one existing client at the gateway. A coding assistant is a good first choice because its usage is steady and easy to compare.
- 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.
