For the complete documentation index, see llms.txt. This page is also available as Markdown.

AI OAuth-Based Gateway

Configure AI gateway access and OAuth-based authentication for custom LLMs.

Use AI OAuth to create a reusable authentication configuration for self-hosted or gateway-backed LLMs. An OAuth-managed gateway layer may be necessary when your company's security and compliance policy does not allow sending prompts directly to public LLM providers. The same configuration can be reused across external models.

Supported authentication option

You can enable the following authentication method:

  • OAuth 2.0 client credentials – Use client_credentials when the agent authenticates server-to-server on its own behalf. This is the standard choice for managed gateway or self-hosted model connections that do not require end-user consent during runtime.

Configure reusable OAuth access

Create the OAuth configuration once and reuse it across multiple agents that connect to the same gateway or provider.

Prerequisites

Gather the OAuth details from your gateway provider:

  • Required – Client ID and Token URL

  • Optional – Scopes, if your gateway provider requires them

  • Optional – a Client Secret stored as an AI Token

1

In the Management Dashboard, go to Agentic AI -> AI OAuth and choose Add new OAuth to start configuration.

2

Provide the authentication credentials

Fill in the details for your OAuth configuration:

  • OAuth ID – Enter a unique identifier for the configuration.

  • Client ID – Enter the client ID provided by the authentication provider.

  • Grant Type – Choose Client credentials.

  • Token URL – Enter the URL used to issue the access token.

  • Scopes – Optional. Enter the scopes required for restricted LLM access, if your gateway provider uses them.

  • Client Secret – Optional. Select a token defined in AI Tokens.

  • Enabled – Leave the toggle on. Toggle it off only when you want to disable the configuration temporarily.

When done, choose Save.

OAuth configuration with client credentials grant_type
OAuth configuration with client credentials grant_type
3

Use the OAuth configuration in the custom agent

The OAuth configuration is ready to use with an agent that uses a self-hosted LLM. The agent references the configuration instead of embedding secrets directly in the agent definition.

  1. In the Management Dashboard, go to Agentic AI -> AI Agents.

  2. Open the Model tab.

  3. Choose Self-hosted Ollama or Self-hosted vLLM.

  4. Toggle on Use OAuth authentication.

  5. Select the OAuth configuration you created.

Configuring self-hosted LLM model with OAuth config
Configuring self-hosted LLM model with OAuth config

For the full agent creation flow, see AI Agents.

Last updated

Was this helpful?