Skip to content
AI GatewayAI Gateway Manual

Quick start

Install the package, run bootstrap, and hand off to the first administrator with the minimum steps.

This page covers the minimum steps for an installation engineer to deploy AI Gateway on a single customer host and hand it off to the first administrator. Each step links to the reference for options and troubleshooting.

Prepare the following. If any item is missing, installation or bootstrap stops partway.

ItemWhat you need
HostLinux x86_64 or aarch64, Docker Engine with Docker Compose 2.20.0 or later, openssl, and curl
AddressA DNS hostname and a TLS load balancer with a valid certificate. https://<hostname> must reach web on the host.
IdPAn OIDC app in Google Workspace, Okta, or Keycloak, or an LDAP directory. For OIDC, register the redirect URI https://<hostname>/api/auth/oidc/callback.
LicenseRequires the Installation ID. If you do not have the license yet, read the ID at bootstrap step 2 and request the license.
First administratorAn email address that exists in the IdP
Organization name1 to 128 characters
Harbor accountAn account that can pull images from harbor.chequer.io
NetworkOutbound HTTPS to Harbor, the IdP, model providers, and remote MCP servers

A host runs only one installation. The Compose project name is fixed to aig. A bootstrap session expires 30 minutes after you enter the token or after 15 minutes without input.

Run these commands from the parent directory where you want to create aig/.

  1. Download the package, extract it, and check the version.

    Terminal window
    VERSION=2026.11.01
    curl -fLO "https://dl.querypie.com/releases/ai-gateway/$VERSION/package.tar.gz"
    mkdir -p aig/$VERSION
    tar -xzf package.tar.gz -C aig/$VERSION
    cd aig/$VERSION
    cat VERSION
  2. Log in to Harbor. The account must be allowed to pull images.

    Terminal window
    docker login harbor.chequer.io -u '<username>'
  3. Run the installer. Replace <hostname> with the name users connect to.

    Terminal window
    ./install.sh install --hostname aig.example.com

    The installer pulls images, runs migrations, and waits for /readyz. It ends with the following output.

    [aig] AI Gateway <version> is ready
    [aig] bootstrap URL: https://<hostname>/
    [aig] bootstrap token: AIG_BOOTSTRAP_TOKEN in .../.env (grep AIG_BOOTSTRAP_TOKEN .env)
    [aig] IdP redirect URI: https://<hostname>/api/auth/oidc/callback
    [aig] setup guide: https://<hostname>/manual/install/bootstrap/
  4. Log out of Harbor.

    Terminal window
    docker logout harbor.chequer.io

    You will need to log in again for an upgrade.

  5. Change to aig/current. Run the remaining commands from there.

    Terminal window
    cd ../current

For package installation options and image pull failures, see Package installation.

2. Verify the installation and back up .env

Section titled “2. Verify the installation and back up .env”
  1. Check the service state. migrate should be exited (0); the others should be running.

    Terminal window
    docker compose ps -a
  2. Check readiness. A 200 response with {"status":"ready",...} means the gateway is ready.

    Terminal window
    curl -fsS http://127.0.0.1/readyz

    If you changed AIG_HTTP_PORT, add the port to the URL.

  3. Check the installed version.

    Terminal window
    grep '^VERSION=' .env
  4. Back up .env off the host. It contains the field-encryption key; if you lose it, you cannot recover the stored secrets.

    Terminal window
    mkdir -p /secure/backup
    cp -p .env /secure/backup/aig-<version>.env

    For the backup location and permissions, see Secrets and .env.

  1. Open https://<hostname>/ in a browser. It redirects to /login.

  2. Enter the AIG_BOOTSTRAP_TOKEN value from .env in Bootstrap token.

    Terminal window
    grep AIG_BOOTSTRAP_TOKEN .env

Bootstrap token screen. Callout 1 is the Bootstrap token field, and callout 2 is Next

  1. Complete the seven steps.

    StepInput
    1Bootstrap token
    2License. Note the Installation ID at the top of the screen.
    3Identity provider (IdP) settings
    4First administrator email
    5Organization name (1 to 128 characters)
    6Review the settings and click Create organization
    7First administrator sign-in

Copy the Installation ID from the license step.

License step screen. Callout 1 is the Installation ID, and callout 2 is the license field

  1. Bootstrap is complete when the first administrator reaches /admin.

If you do not have the license yet, record only the Installation ID at step 2 and end the session. Restart bootstrap with the token after you receive the license. The Installation ID does not change. If an IdP value is wrong or sign-in fails, see Bootstrap.

Give the customer administrator the following.

  • Access URL: https://<hostname>/
  • Installed version: the VERSION value in .env
  • IdP redirect URI: https://<hostname>/api/auth/oidc/callback
  • .env backup location
  • First administrator account

The administrator configures provider connections, project and model allowlists, the ai-user role, and MCP server and tool policies in the administration quick start. The installation engineer does not need to verify model calls.