Skip to content

Authenticate to Amelfi

Start with a deployed gateway, its control-plane URL, and the authentication method configured by your operator. The console and an MCP client may use different login flows. A console session is not automatically a runtime access token.

MethodHow identity is established
OIDC JWTThe gateway verifies a token from the configured identity provider.
Trusted proxyAn approved proxy authenticates the request and supplies normalized identity.
Local identityThe gateway verifies a local account and manages its session.
Local header bootstrapDevelopment-only identity headers in a controlled environment.

For production, use the deployment’s configured identity flow. Do not copy identity headers from a local development example into a public deployment.

For a deployment using bearer-token authentication, set the control-plane origin and obtain a valid token through the configured identity provider. The example assumes the token is already available in your process environment as AMELFI_TOKEN.

Terminal window
export AMELFI_CONTROL_PLANE="https://gateway.example.com"
curl --fail-with-body "$AMELFI_CONTROL_PLANE/v1/identity/me" \
-H "Authorization: Bearer $AMELFI_TOKEN"

Check the returned actor and permissions. A valid token with insufficient permissions is an authorization problem; a rejected token is an authentication problem. Keep token material out of screenshots and shared logs.

Confirm that the console is showing the intended environment. For self-hosted deployments, scope is supplied by the backend configuration. Administrative role bindings govern changes to gateway resources; runtime Cedar policy governs tool calls.

Continue with your first governed call.

Read the source contract.

Amelfi documentation · Space Grotesk / Geist Mono