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.
Before you start
Section titled “Before you start”Prepare the following. If any item is missing, installation or bootstrap stops partway.
| Item | What you need |
|---|---|
| Host | Linux x86_64 or aarch64, Docker Engine with Docker Compose 2.20.0 or later, openssl, and curl |
| Address | A DNS hostname and a TLS load balancer with a valid certificate. https://<hostname> must reach web on the host. |
| IdP | An OIDC app in Google Workspace, Okta, or Keycloak, or an LDAP directory. For OIDC, register the redirect URI https://<hostname>/api/auth/oidc/callback. |
| License | Requires the Installation ID. If you do not have the license yet, read the ID at bootstrap step 2 and request the license. |
| First administrator | An email address that exists in the IdP |
| Organization name | 1 to 128 characters |
| Harbor account | An account that can pull images from harbor.chequer.io |
| Network | Outbound 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.
1. Install the package
Section titled “1. Install the package”Run these commands from the parent directory where you want to create aig/.
-
Download the package, extract it, and check the version.
Terminal window VERSION=2026.11.01curl -fLO "https://dl.querypie.com/releases/ai-gateway/$VERSION/package.tar.gz"mkdir -p aig/$VERSIONtar -xzf package.tar.gz -C aig/$VERSIONcd aig/$VERSIONcat VERSION -
Log in to Harbor. The account must be allowed to pull images.
Terminal window docker login harbor.chequer.io -u '<username>' -
Run the installer. Replace
<hostname>with the name users connect to.Terminal window ./install.sh install --hostname aig.example.comThe 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/ -
Log out of Harbor.
Terminal window docker logout harbor.chequer.ioYou will need to log in again for an upgrade.
-
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”-
Check the service state.
migrateshould beexited (0); the others should be running.Terminal window docker compose ps -a -
Check readiness. A 200 response with
{"status":"ready",...}means the gateway is ready.Terminal window curl -fsS http://127.0.0.1/readyzIf you changed
AIG_HTTP_PORT, add the port to the URL. -
Check the installed version.
Terminal window grep '^VERSION=' .env -
Back up
.envoff the host. It contains the field-encryption key; if you lose it, you cannot recover the stored secrets.Terminal window mkdir -p /secure/backupcp -p .env /secure/backup/aig-<version>.envFor the backup location and permissions, see Secrets and .env.
3. Bootstrap
Section titled “3. Bootstrap”-
Open
https://<hostname>/in a browser. It redirects to/login. -
Enter the
AIG_BOOTSTRAP_TOKENvalue from.envin Bootstrap token.Terminal window grep AIG_BOOTSTRAP_TOKEN .env

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

- 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.
4. Hand off
Section titled “4. Hand off”Give the customer administrator the following.
- Access URL:
https://<hostname>/ - Installed version: the
VERSIONvalue in.env - IdP redirect URI:
https://<hostname>/api/auth/oidc/callback .envbackup 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.
- Installation options and troubleshooting: Package installation
- Backups and secrets: Secrets and .env
- Upgrade and operations: Upgrade, Operations