Provider network settings
How administrators set timeouts, a private CA, TLS verification, and private network access for a model provider, and what to do after upgrading.
This guide explains the Network settings of a model provider. Use them when a Provider sits behind a private CA, runs on a private address, or needs longer timeouts than the defaults.
Before you start
Section titled “Before you start”- Permission: only organization administrators (
org-admin) can change Providers. - Scope: the settings apply to one Provider only. They cover model discovery, model update checks, and every inference request sent to that Provider. They do not apply to OpenAI Codex Providers.
Open the admin console from the Organization settings tab at the top of the screen. Then go to AI resources → Model Providers.
The five settings
Section titled “The five settings”In the Provider form, open the Network section. It is collapsed by default.
The static example below shows the section expanded with its default values. The timeout fields are at the top, followed by the CA certificate and the two switches.
| Setting | Default | What it does |
|---|---|---|
| Request timeout (seconds) | 60 | For a non-streaming request, the total time allowed. For a streaming request, the time to wait for the response headers. Model checks and syncs wait at most 30 seconds even when this is higher. Range 1 to 3600. |
| Stream idle timeout (seconds) | 120 | Closes a stream that sends no data for this long. Range 1 to 3600. |
| CA certificate (PEM) | Empty | Certificates to trust for this Provider, in addition to the system trust store. |
| Skip TLS verification | Off | Accepts any server certificate. |
| Allow private network | Off | Lets AI Gateway connect to private addresses. |
Open the Network section when you add a Provider, or on the Provider’s General page to change an existing one. The five values are saved together. Changing them on an existing Provider does not re-read its model list; click Check for model updates on the Models page to confirm the connection.
An Anthropic Provider that uses Personal Claude subscription connects to the fixed Anthropic address with certificate verification, so only its timeouts can be changed. CA certificate (PEM), Skip TLS verification, and Allow private network are locked, and its model list is not read. See Anthropic.
Check the connection before saving
Section titled “Check the connection before saving”On the Add provider page, Test connection checks access to the model list with the current connection settings. It supports OpenAI, Anthropic, Gemini, AWS Bedrock, AWS Bedrock Mantle, and Custom. For OpenAI Codex, save the Provider before connecting a ChatGPT account. An Anthropic Provider that uses Personal Claude subscription has no server credential, so Test connection is not shown.
- Open AI resources → Model Providers → Add provider.
- Enter the Provider type, Base URL, and authentication details. Custom allows an empty credential. Bedrock’s Server default credentials option uses the AWS credentials configured on the server.
- For a private CA or private address, open Network and configure the corresponding settings.
- Click Test connection. You can leave Name empty. Look for Model list access verified and the number of models found. A valid empty model list also counts as a successful connection test.
- To save, enter a name and click Save provider. Saving reads the model list again, so it can fail even after a successful test.
A connection test stores no Provider, models, or credentials. It checks model-list access, so it does not guarantee inference permissions or successful calls to every model. You can also save without testing first.
During a test, Test connection and Save provider are disabled. Connection settings remain editable; changing them cancels the active test and clears its result. Changing only the name preserves the result.
If a test fails, follow the screen’s guidance to correct the endpoint, authentication, or network settings and try again. For DNS errors, check the Gateway’s DNS or proxy configuration. For TLS errors, check CA certificate (PEM). For a refused connection, check the host and port in Base URL and the service’s status. For HTTP 404/405 or an unexpected model-list response, check Base URL and Provider type; for Custom, also check Base format. For a blocked private address, follow Allow private network below.
Register a private CA
Section titled “Register a private CA”Use this when the Provider’s endpoint presents a certificate from your own certificate authority.
- Open the Network section.
- Paste the CA certificate into CA certificate (PEM). To trust a chain, paste every certificate one after another.
- Save the Provider.
The value must contain only CERTIFICATE blocks and be at most 64 KiB. A private key is rejected, so a key pasted by mistake is never stored. The CA is added to the system trust store for this Provider only; other Providers keep rejecting certificates it issued. A Provider with a publicly trusted certificate keeps working with a CA stored.
Skip TLS verification
Section titled “Skip TLS verification”Skip TLS verification makes AI Gateway accept any certificate from the Provider, so the connection can be intercepted. Keep it off, and register the CA instead. While it is on, the CA you registered is kept but not used.
Allow private network
Section titled “Allow private network”With Allow private network off, AI Gateway refuses to connect to private, loopback, link-local, shared, and reserved addresses. It checks the address it actually connects to, so a host name that resolves to such an address is refused too. If a host name resolves to several addresses and any one is refused, the connection is refused.
Turn it on for a Provider that runs on your internal network, such as a self-hosted model server.
Cloud metadata addresses (169.254.0.0/16 and fd00:ec2::254) are always refused, even when Allow private network is on.
Environment-variable proxies
Section titled “Environment-variable proxies”If the server runs with HTTPS_PROXY or HTTP_PROXY, requests sent through the proxy are not checked against this policy. The proxy decides where traffic may go, so apply your egress rules there.
A Provider on a private address that AI Gateway must reach directly has to be listed in NO_PROXY. Its requests then connect directly and the policy applies, so turn on Allow private network for it.
AWS Bedrock through PrivateLink
Section titled “AWS Bedrock through PrivateLink”A Bedrock VPC endpoint resolves to private addresses, so the Bedrock Provider needs Allow private network on. See Reach Bedrock through a VPC endpoint.
The settings apply to Bedrock requests to the Provider’s endpoints. The calls that fetch AWS credentials, to STS and to the instance metadata service, are not affected by them.
When a connection is blocked
Section titled “When a connection is blocked”When you add or edit a Provider, or check or sync its models, a blocked destination fails with the error code UPSTREAM_DESTINATION_BLOCKED. The message tells you to turn on Allow private network for the Provider. When adding or saving a Provider fails this way, nothing is saved. Turning a Provider on or off is not checked, so you can still turn off a blocked Provider.
Clients calling the model through AI Gateway see the usual upstream unavailable error, with no hint about the cause. If a Provider’s requests start failing like that, check this setting first.
After upgrading
Section titled “After upgrading”The upgrade sets Allow private network to off for every existing Provider. A Provider on a private address stops working until you turn it on.
- List the Providers whose Base URL is a private address, such as a self-hosted model server or a Bedrock VPC endpoint.
- For each one, open its General page, open the Network section, turn on Allow private network, and save.
- Click Check for model updates on the Models page. A successful check confirms the connection.
To change many Providers at once, update the database instead. Set updated_at in the same statement, because AI Gateway uses it to notice a changed Provider:
UPDATE llm_providersSET allow_private_network = true, updated_at = now()WHERE id IN (...);Without the updated_at change, a running server can keep using the old setting. Then run the model check for each Provider as in step 3.