What Is an AI Gateway? What It Controls — and Why It Cannot See What Employees Paste Into ChatGPT
.jpeg)
Last updated: November 2026
Direct answer: No. An AI gateway only inspects model traffic that an application is configured to send through it. It does not see what an employee pastes into chatgpt.com, the ChatGPT desktop app, or another AI tool on a laptop. Controlling that paste takes endpoint AI governance: policy and prompt inspection on the device, not only at an API proxy.
"AI gateway" names a real and useful product category. It's also one of the most stretched terms in security right now. A CISO hears "we have an AI gateway" in a board update and assumes employee AI use is covered. Usually it isn't. This page defines the term, compares it with a secure web gateway and endpoint prompt DLP, and shows where each one fits. If you want a vendor-by-vendor comparison, read Cloudflare AI Gateway vs Zscaler AI Broker vs Netskope AI Gateway vs dope.security.
Key takeaways
- An AI gateway governs the AI your developers build: model API calls from your own applications.
- It doesn't govern the AI your employees use in a browser tab, a desktop app, or an IDE, because that traffic never passes through it.
- A cloud SWG can see employee AI traffic, but only if the device is steered to the proxy and the traffic is decrypted.
- Endpoint AI governance inspects prompts and uploads on the device itself, which is where the paste happens.
- Many companies need both: a gateway for their products and endpoint governance for their people.
Definitions
AI gateway: An AI gateway is a proxy that sits between the applications your company builds and the model providers they call. It adds key management, routing, caching, spend limits, logging, and sometimes prompt and response DLP. It only governs traffic that an application is configured to send through it.
Secure web gateway (SWG): A secure web gateway inspects employees' web and SaaS traffic for URL filtering, TLS inspection, malware, and tenant control. A cloud SWG only sees traffic that is steered to its points of presence. An on-device SWG inspects traffic on the endpoint.
Endpoint AI governance and endpoint prompt DLP: Endpoint AI governance is the practice of discovering, controlling, and inspecting employee use of AI tools from an agent on the device. Endpoint prompt DLP is its inspection layer. It checks prompts, pastes, and uploads for sensitive data before they reach the AI provider.
The short version: a gateway sees what your apps send to it, a cloud SWG sees what's steered to it, and an endpoint agent sees what happens on the device.
What does an AI gateway actually do?
Take away the marketing and an AI gateway is an API proxy with model-aware features. Your application calls one endpoint. The gateway forwards the request to OpenAI, Anthropic, Google, Amazon Bedrock, or a self-hosted model, and handles the work around that call:
- Routing and failover. Send a request to a cheaper model, fall back to another provider when one is down, or A/B test models from one config.
- Caching. Return a stored answer for a repeated prompt instead of paying for a new completion.
- Rate limits and spend controls. Cap tokens or dollars per team, key, or model.
- Observability. Log prompts, responses, latency, cost, and token counts for debugging and chargeback.
- Guardrails and DLP. Some gateways scan prompts and responses for sensitive data or prompt injection.
Cloudflare AI Gateway, Kong AI Gateway, Portkey, and the open-source LiteLLM all fit this description. They're good at what they do, and what they do is manage API calls your own software makes. If engineering is shipping an LLM feature, a gateway is the right place for the keys, the budgets, and the logs.
What can't an AI gateway see?
Try this test. Open ChatGPT in Chrome, paste a customer list, and hit enter. Did that request go through your AI gateway? No. The ChatGPT web app talks to OpenAI directly from the browser. Attach a contract in the Claude desktop app, run an AI coding assistant against your repo, or install a browser extension that summarizes pages with Gemini. You get the same answer every time.
A gateway only sees traffic that something has been configured to send to it. Employee AI tools come with their own hard-coded endpoints, and you can't reconfigure a SaaS app you don't own to route through your proxy. That's the shadow AI problem, and a gateway sits on the wrong side of it. Our guide to detecting shadow AI in desktop apps, IDEs, and CLIs shows how much of that traffic happens outside the browser.
What do the vendors' own docs say?
Credit where it's due: the clearest statements of these limits come from the vendors themselves.
- Cloudflare AI Gateway DLP scans "both incoming prompts and outgoing AI responses" for traffic that passes through the gateway. It works as an AI proxy, so it doesn't need Cloudflare Gateway HTTP filtering or TLS decryption. Its inspection scope is the raw text of request and response bodies. It doesn't decode base64-encoded images or file attachments, and cached responses skip DLP scanning (Cloudflare docs). That's the right design for applications you build. It doesn't cover an employee's browser session, because that session doesn't go to the gateway.
- Microsoft Purview describes a layered model for AI data protection. Endpoint DLP can block pasting and uploading sensitive data to AI websites on managed devices. Browser Data Security in Edge for Business can inspect text typed or pasted into prompts for consumer AI apps, including ChatGPT (consumer), Google Gemini, and DeepSeek. Network Data Security extends detection to non-Microsoft browsers and apps (Microsoft Learn). Microsoft is explicit about scope. The Edge unmanaged-app policies apply on Intune-managed Windows 10 and 11 devices, in recent Edge for Business versions (Microsoft Learn). Microsoft's own Purview blog notes that some capabilities are in preview or pay-as-you-go, and that network-layer coverage depends on supported SASE/SSE integrations and how traffic is routed (Microsoft Tech Community, Aug 31, 2026).
Both vendors reach the same conclusion: what an employee pastes into an AI tool has to be governed close to the employee, in the browser or on the device. An API proxy can't do it.
AI gateway vs SWG vs endpoint prompt DLP
| AI gateway | Cloud SWG / proxy | Endpoint prompt DLP (on-device) | |
|---|---|---|---|
| Sees a paste into chatgpt.com in a browser? | No. Browser traffic isn't routed to it. | Yes, if the device is steered to the proxy, TLS is decrypted, and the domain isn't bypassed. | Yes, on managed devices running the agent. |
| Sees ChatGPT or Claude desktop apps and IDE assistants? | Only if the app can be pointed at the gateway. | Yes, if steered and decrypted. Certificate-pinned apps usually need bypasses. | Depends on the product. Agents that inspect at the network layer can, browser extensions can't. Certificate-pinned apps are an exception for any TLS inspection. |
| Tells a personal account from the corporate tenant on the same domain? | No. | Yes, with TLS decryption and a tenant-restriction policy. | Yes, if the agent reads tenant information in decrypted traffic. |
| Requires routing traffic through a vendor? | Yes. Apps call the gateway URL. | Yes. Traffic goes to a vendor point of presence. | No for the traffic itself. Policy, logs, and in some products classification use the vendor cloud. |
| Inspects file uploads to AI sites? | Only requests sent through it. Cloudflare's docs say base64 attachments aren't decoded. | Yes, when decrypted and DLP is licensed. | Yes, for supported apps. |
| Works on unmanaged or BYOD devices? | Yes, for apps you control, since it doesn't depend on the device. | Depends on client or browser coverage. | No. It needs the agent on a managed device. |
| Primary job | Control model API calls from apps you build. | Filter and secure employee web traffic. | Govern employee AI use: discovery, account control, and prompt and upload inspection. |
An AI gateway is the right tool for in-house LLM apps. Endpoint prompt DLP is the right tool for employee pastes. Many companies need both.
Which should you use?
| If your goal is… | Use | Why |
|---|---|---|
| Managing API keys, model costs, and failover for a product you're building | AI gateway | It's in the path of your app's model calls by design. |
| Allowing ChatGPT Enterprise while blocking personal ChatGPT on company laptops | Tenant control in an SWG (cloud or on-device) | It requires reading tenant details inside decrypted traffic. |
| Stopping sensitive pastes and uploads to AI tools on company laptops | Endpoint prompt DLP, or browser DLP if you enforce one browser | The paste happens on the device. Inspect it there. |
| Finding out which AI tools employees use | Endpoint or proxy discovery | A gateway only knows about traffic it was told about. |
| Covering unmanaged or personal devices | Browser-based or identity-based controls | An endpoint agent can't run where you don't manage the device. |
A recommended architecture
- AI gateway for the AI you build. Put your application's model keys, routing, spend caps, and API logging here.
- Tenant control for the AI you've licensed. Allow your enterprise ChatGPT, Claude, Gemini, or Copilot tenant and block personal sign-ins on the same domain.
- Prompt and upload inspection on the device. Classify what employees paste and upload into AI tools, and block or monitor by policy.
- Discovery across the fleet. Keep an up-to-date view of which AI apps are in use, by whom, and with which account type.
- Logs to your SIEM. Keep gateway logs and endpoint AI logs side by side. They answer different questions.
The workable position is to allow AI on your terms, not to ban it.
What should you check before you trust any coverage claim?
Every tool in this space has limits. Ask each vendor, including us:
- Which operating systems and browsers? Some controls only work in one browser or on one OS.
- Which desktop apps and IDE assistants? Get a named list. Ask how certificate-pinned apps are handled.
- Which devices? Managed only, or unmanaged and BYOD too?
- Personal accounts? Does the control distinguish a personal login from the corporate tenant on the same domain?
- Where does classification run? On the device, in the vendor cloud, or through a third-party model, and under what retention terms?
Where dope.security fits
dope.security is endpoint AI governance built into an on-device SWG for managed Mac and Windows laptops. The agent performs SSL inspection on the device and sends traffic directly to its destination, with no proxy detour. It applies three layers:
- Discover: AI Analytics in dope.console shows which AI apps are in use, by whom, and whether the account is personal or enterprise-licensed.
- Control: Cloud Application Control allows your enterprise tenant and blocks personal accounts on the same domain. For ChatGPT, you allow-list approved ChatGPT Enterprise workspace IDs (ChatGPT datasheet).
- Inspect: Dopamine DLP watches AI prompts and file uploads, extracts the text on the device, and sends it to the dope.cloud for classification through OpenAI's zero-data-retention API. It returns a Sensitive or Not Sensitive verdict, and the endpoint blocks or logs by policy before the prompt reaches the AI provider. The original file stays on the device, and content isn't retained or used for training (Meet Dopamine DLP).
One honest note on scope: dope.security is not an AI gateway. It doesn't route, cache, or meter your application's model API calls. Keep a developer gateway for that. It also covers managed Mac and Windows devices only, not personal phones or unmanaged laptops. For the full model, see What Is Endpoint AI Governance? and the three-layer AI governance stack.
To see what's actually in use before you pick a policy, start a free trial and run AI Analytics for a week, or book a 20-minute demo.
Frequently asked questions
Does an AI gateway control what employees paste into ChatGPT?
No. An AI gateway only inspects model traffic that an application is configured to send through it. It does not see what an employee pastes into chatgpt.com, the ChatGPT desktop app, or another AI tool on a laptop. Controlling that paste takes endpoint AI governance: policy and prompt inspection on the device, not only at an API proxy.
Do I need endpoint AI governance as well as an AI gateway?
If your company builds AI features and also lets employees use AI tools, usually yes. The gateway governs the AI your developers ship. Endpoint AI governance governs the AI your people use. Neither one covers the other's traffic.
Is Cloudflare AI Gateway a DLP tool for chatgpt.com?
No. Cloudflare AI Gateway includes DLP that scans prompts and responses, using the same detection profiles as Cloudflare One DLP, but only for requests that pass through the gateway. An employee's browser session to chatgpt.com doesn't pass through it. Covering that takes Cloudflare Gateway with TLS inspection on the device, or another endpoint or browser control.
Can Microsoft Purview endpoint DLP stop a ChatGPT paste?
Yes, within its documented scope. Microsoft documents Endpoint DLP blocking paste and upload to AI websites on managed devices. It also documents Browser Data Security in Edge for Business inspecting prompts to consumer ChatGPT on Intune-managed Windows 10 and 11 devices. Coverage of other browsers and desktop apps depends on Network Data Security and supported SASE integrations. Check current Microsoft Learn pages for your setup. Our Purview and ChatGPT paste comparison goes deeper.
Does an on-device SWG replace an AI gateway?
No. An on-device SWG governs employee web and AI traffic from the laptop. An AI gateway governs the model API calls your applications make. dope.security doesn't route or meter your application's API calls, so teams building LLM products keep a developer gateway alongside it.
Does endpoint prompt DLP send my prompt anywhere?
It depends on the product, so ask. With dope.security, the text is extracted on the device and sent to the dope.cloud for classification through OpenAI's zero-data-retention API. The original file isn't sent, and content isn't retained or used for training. If the text is classified as sensitive, it's blocked before it reaches the AI provider.
Related reading
- What Is Endpoint AI Governance?
- Cloudflare AI Gateway vs Zscaler AI Broker vs Netskope AI Gateway vs dope.security
- AI firewall vs AI gateway vs endpoint AI governance
- How to stop employees pasting sensitive data into ChatGPT
- ChatGPT Enterprise corporate network controls vs endpoint AI governance
- Choosing an AI governance platform: a buyer's guide
- MCP server security and governance
Questions about governing employee AI use? Email sales@dope.security.


.jpeg)

