Skip to content

Authenticate to the gateway

Before you can register servers, author policy, or call tools, the gateway has to know who you are. This page assumes a gateway is already deployed and reachable at $GATEWAY.

Your gateway is configured for one of four modes (set by whoever deployed it). How you get a token depends on the mode:

ModeWhen it’s usedHow you authenticate
oidc_jwtProduction with an identity providerSend a Bearer JWT from your IdP in Authorization.
trusted_proxyBehind a reverse proxy that authenticates usersThe proxy injects normalized x-gateway-* identity headers.
local_identitySelf‑hosted without an external IdPUsername/password login; the first admin is bootstrapped once.
local_header_bootstrapDev / evaluation onlyTrusted identity headers; never for production.

For the most common production case (oidc_jwt), obtain an access token from your identity provider and export it:

Terminal window
export GATEWAY="https://your-gateway.example.com"
export TOKEN="<JWT from your IdP>"

For local_identity, the operator bootstraps the first admin with the CLI, then you log in:

Terminal window
gatewayctl bootstrap-admin --email you@example.com

Confirm the gateway recognizes you and see exactly which permissions you hold. This is the fastest way to tell whether a later 403 is an auth problem or a policy one.

Confirm your identity and permissions
  1. Sign in to the console.
  2. Open the account menu in the top bar — your actor, roles, tenant, and environment are listed there.

If this returns your actor with the roles you expect, you’re ready for your first governed tool call.

Type set in Geist, Source Serif 4, and Departure Mono.