Skip to content
Cloudflare Docs

Manage gateways

You have several different options for managing an AI Gateway.

Create gateway

Default gateway

AI Gateway can automatically create a gateway for you. When you use default as a gateway ID and no gateway with that ID exists in your account, AI Gateway creates it on the first authenticated request.

The request that triggers auto-creation must include a valid cf-aig-authorization header. An unauthenticated request to a default gateway that does not yet exist does not create the gateway.

The auto-created default gateway uses the following settings:

SettingDefault value
AuthenticationOn
Log collectionOn
CachingOff (TTL of 0)
Rate limitingOff

After creation, you can edit the default gateway settings like any other gateway. If you delete the default gateway, sending a new authenticated request to the default gateway ID auto-creates it again.

Create a gateway manually

Go to AI Gateway
  1. Log into the Cloudflare dashboard and select your account.
  2. Go to AI > AI Gateway.
  3. Select Create Gateway.
  4. Enter your Gateway name. Note: Gateway name has a 64 character limit.
  5. Select Create.

Edit gateway

To edit an AI Gateway in the dashboard:

  1. Log into the Cloudflare dashboard and select your account.
  2. Go to AI > AI Gateway.
  3. Select your gateway.
  4. Go to Settings and update as needed.

Delete gateway

Deleting your gateway is permanent and can not be undone.

To delete an AI Gateway in the dashboard:

  1. Log into the Cloudflare dashboard and select your account.
  2. Go to AI > AI Gateway.
  3. Select your gateway from the list of available options.
  4. Go to Settings.
  5. For Delete Gateway, select Delete (and confirm your deletion).