ai-gateway action on a Cloud or Agent endpoint, with a custom *.ngrok.app URL and provider keys defined in your policy. The AI Gateway now runs on a shared URL you manage from app.ngrok.ai.
If you’re starting fresh, follow the Quickstart instead.
What changed
| Old setup | New setup |
|---|---|
Custom endpoint URL (https://*.ngrok.app) | https://gateway.ngrok.ai |
| Endpoint-bound gateway key | Access key (account-scoped) |
| Provider keys in Traffic Policy | Provider keys in app.ngrok.ai |
Traffic Policy model_selection (CEL) | Model in the request body and access key configurations |
| Provider and model allowlists in Traffic Policy | Access scope on configurations |
| Traffic Policy request/response modification | Not available on gateway.ngrok.ai |
Migration steps
Add provider keys in app.ngrok.ai
For each upstream credential in your Traffic Policy, add a provider key. For OpenAI and Anthropic you can use credits with ngrok.ai inference instead.
Create access key configurations
Recreate allowlists and routing rules as access key configurations. Attach stored provider keys in routing rules.
Create access keys
Create an access key for each client and assign the appropriate configuration.
Update your applications
Point
baseURL / base_url at https://gateway.ngrok.ai and use the new access key. Remove any provider API keys from client code.What isn’t available on gateway.ngrok.ai
- CEL
model_selectionandapi_key_selectionin Traffic Policy—use request models and access key configurations instead - Traffic Policy request and response modification