Skip to content

Get your AI agent connected to the gateway in under 5 minutes.


You need the following installed:

ToolCheckPurpose
bashbash --versionScript runtime (4.0+ recommended)
curlcurl --versionHTTP requests
jqjq --versionJSON parsing
python3python3 --versionToken extraction and SSO server
base64echo test | base64JWT decoding

You also need one of the following for authentication:

  • M2M credentials: GATEWAY_CLIENT_ID, GATEWAY_CLIENT_SECRET, and GATEWAY_TOKEN_ENDPOINT (from your team admin or terraform output)
  • SSO access: A Cognito user pool configured for browser-based login
  • Existing JWT: A valid access token obtained through another method

The interactive wizard handles everything: connectivity testing, authentication, agent configuration, and an optional inference test.

Terminal window
./scripts/gateway-setup.sh

The wizard walks through six steps:

  1. Gateway connection — Enter the gateway URL, verify connectivity
  2. Authentication — Choose M2M credentials, SSO browser login, or paste an existing JWT
  3. Token validation — Confirm the token works against the gateway
  4. Agent selection — Pick your AI agent (Claude Code, OpenCode, Goose, Continue.dev, LangChain, or custom)
  5. Configuration — Get the exact environment variables and config files for your agent
  6. Inference test — Optionally send a test prompt to verify end-to-end

Copy the environment variables the wizard outputs into your shell profile (~/.zshrc or ~/.bashrc), then reload:

Terminal window
source ~/.zshrc

For agents that need config files (OpenCode, Continue.dev, Codex CLI), create or edit the files as shown by the wizard.


Run the health check to confirm everything is working:

Terminal window
# Basic connectivity check
./scripts/check-health.sh --url "$GATEWAY_URL"
# Full check with authentication
TOKEN=$(./scripts/get-gateway-token.sh)
TOKEN="$TOKEN" ./scripts/check-health.sh --url "$GATEWAY_URL" --token "$TOKEN"
# Include provider checks
TOKEN="$TOKEN" ./scripts/check-health.sh --url "$GATEWAY_URL" --token "$TOKEN" --providers

ScriptPurpose
scripts/gateway-setup.shInteractive onboarding wizard
scripts/get-gateway-token.shFetch a Cognito M2M access token (client_credentials grant)
scripts/sso-login.shSSO browser login flow (opens browser, captures callback)
scripts/check-health.shHealth check: connectivity, auth, token details, provider status