Skip to content
AI GatewayAI Gateway Manual

Quick start

Set up a project and model Provider and get a pilot user to the first model response.

This page takes an organization administrator through the minimum setup for one pilot user to receive a first model response from AI Gateway. The model setup is required. Configure MCP at the end only when the license includes MCP Gateway.

  • An installation engineer has completed installation and bootstrap, and you are signed in as the first organization administrator.
  • A license is installed. A paid license needs at least one seat for the pilot user.
  • Prepare the API key for the Provider you will use. This page uses OpenAI as the example.
  • Check that the pilot user can sign in to the organization. Their first sign-in registers them as a member.
  • If you plan to use MCP, the license must include MCP Gateway.

Open the admin console from the Organization settings tab at the top of the screen. Paths such as Organization → Members on this page are groups and items in the admin console’s left menu.

Only an organization administrator (org-admin) can set up the license, Providers, and seats. If you have only project administrators, ask an organization administrator for the license, seat, and Provider setup, and work through the project setup and first request together.

Open System → License in the admin console. The System group is collapsed at the bottom of the left menu.

  • Check that Validity period has not passed.
  • Check that Purchased seats is at least the number of pilot users. A PoC license does not count seats, so you can skip this check.
  • If you plan to use MCP, check that Included features contains MCP Gateway.

License screen. Callout 1 is Purchased seats, and callout 2 is Included features

If the license has expired or was issued for another installation, handle License management and recovery first. An organization administrator can use the admin console without a seat.

In the admin console, open Organization → Projects, then select Create project.

  1. Enter a pilot name in Project name. For example, gateway-pilot.
  2. In Description (optional), note the pilot’s purpose or the team that owns the cost.
  3. Select Create project.

Create a project screen. Callout 1 is the project name, and callout 2 is the Create project button

A project is the scope for model and MCP tool allowances and for Gateway Keys. If you already have a project to use, select it instead of creating one. See Manage projects for the fields and the screen after creation.

  1. In AI resources → Model Providers, select Add provider.
  2. Enter a Name. This name becomes the prefix of model IDs. For example, a Provider saved as openai is called as openai/<model-id>. Only lowercase letters, digits, dots, underscores, and hyphens are allowed.
  3. Choose OpenAI for Provider type. Leave Base URL as it is, and enter the OpenAI API key in Credential.
  4. Use Test connection to check the key and address, then select Save provider.

Model Provider connection screen. Callout 1 is the credential, callout 2 is Test connection, and callout 3 is the model list access verified notice

Saving reads the Provider’s model list. If you use a private network or private CA, check Provider network settings first. See OpenAI for type-specific settings and Connect model Providers for the common flow.

  1. Open the project, then go to Project settings → Access Control → Model Access Control.
  2. Under Project-wide, select Edit allowed models.
  3. Select the models the pilot user will use and close the sheet. Search and filters narrow the list.
  4. Select Save on the page.

Project-wide allowed models sheet. Callout 1 is the openai Provider group, and callout 2 is the selected gpt-4.1 model

Saving a Provider does not let anyone call a model until you allow it. If a model is missing, select Check for model updates on the Provider’s Models page, or check that the Provider is visible to this project. See Allow models in projects and Provider project visibility.

  1. In Organization → Members, grant the pilot user a seat in the Seat column. A PoC license skips this step.
  2. In the project’s Access Control → Role assignments, select Create role assignment.
  3. Choose the ai-user role and the pilot user as the subject, then save.

Role assignment screen. Callout 1 is the ai-user role, and callout 2 is the pilot user who receives the role

org-admin does not grant AI use. An organization administrator also needs the ai-user role in this project to call models. Without a seat, the console opens but shows the You don’t have a seat notice, and model and MCP requests are refused. See Let registered members use the gateway and Role bindings.

Verify with your own administrator account first. If the license has only one seat and you cannot assign another to yourself, skip this section and verify with the pilot user in step 7.

  1. For verification, give yourself the ai-user role and grant yourself a seat in Organization → Members. A PoC license skips the seat.
  2. In the project’s Models, select the gear icon in the Installation column of the model the pilot will use. Check the Gateway base URL and Model ID.
  3. In the project’s top menu, open Gateway Keys, select Issue key, and copy the secret with Copy secret. The key is shown only once.
  4. In a terminal, set the key as an environment variable and call the model list.
Terminal window
export AI_GATEWAY_API_KEY='<issued Gateway Key>'
curl -sS 'https://<gateway-host>/v1/models' \
-H "Authorization: Bearer $AI_GATEWAY_API_KEY"
  1. If the response lists an allowed model ID, send a chat request.
Terminal window
curl -sS 'https://<gateway-host>/v1/chat/completions' \
-H "Authorization: Bearer $AI_GATEWAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"<provider-name>/<model-id>","messages":[{"role":"user","content":"Hello"}]}'

A response means the gateway path works. In Gateway Keys, Revoke the test key, then remove the temporary seat and ai-user role. A seat can be released while the key remains, so revoke the key first.

The last seat held by an organization administrator cannot be released. If the administrator who tested is the last active organization administrator, keep the seat and revoke only the test key.

SymptomWhat to check
Authentication failed. (401)Check that the key starts with agw_, that its status is Active, and that you ran the command in the terminal where you set the key.
The model is missing or the call is refusedCheck your seat, the project’s ai-user role, and the model allowance in step 4.
404Check that the model ID and Provider name match the values in Installation.

For issuing and revoking keys, see Gateway Keys. For SDK examples, see OpenAI SDK.

Ask the pilot user to follow these steps.

  1. Review the models and MCP tools they can use in the user introduction.
  2. Issue their own key in Gateway Keys.
  3. Connect Codex CLI in Set up an AI agent and check the first response.

The setup is complete when the pilot user receives a first model response with their own Gateway Key. Review requests and costs in Activity → Model Logs and Model pricing and costs. For other clients, see the AI agent setup guide.

This section applies only when the license includes MCP Gateway. Without it, MCP Servers, MCP Access Control, and MCP Catalog are not shown.

  1. In AI resources → MCP Servers, add a server and complete its authentication, tool discovery, and activation. Register MCP servers
  2. In the project’s MCP Access Control, select the tools to allow for the pilot user and select Save. Allow MCP tools in projects
  3. The pilot user registers the gateway endpoint in their client with Set up MCP. For OAuth or per-user API key servers, they must connect their own account once in the MCP Catalog.

A pilot user calling an MCP tool completes the MCP path. Review MCP logs in Activity → MCP Logs.