Skip to content

Agent identity

Instead of giving an agent a long-lived key to your services, let it ask Stillbox for a token:

  • it lasts minutes;
  • it works for one service only;
  • it names the sandbox it came from and the person driving the agent.

Your service checks it against your organization’s published keys, like any OpenID Connect token.

From any program in a sandbox:

Terminal window
curl -s -X POST "$STILLBOX_PLATFORM_URL/v1/identity/token" \
-d '{"audience": "https://api.your-company.com", "minutes": 15}'
{"token": "eyJ…", "token_type": "Bearer", "expires_at": "2026-10-26T10:15:00Z",
"issuer": "https://api.global.stillbox.app/v1/identity/org-…", "subject": "sandbox:ws-…"}

minutes is 15 by default and at most 60. Send the token as Authorization: Bearer <token>.

Your issuer, its discovery document and its keys are under Developers → Agent identity. A token’s claims:

Claim Holds
iss your organization’s issuer
aud the audience the agent asked for: check it is your service
sub sandbox:<sandbox ID>
act.sub, act.email the person driving the agent (user:<ID>)
sandbox the sandbox’s id, name and image
org, region, jti, iat, nbf, exp as usual

Tokens are signed with RS256. Any OpenID Connect library can check them. In Go, for example:

provider, _ := oidc.NewProvider(ctx, issuer)
token, err := provider.Verifier(&oidc.Config{ClientID: "https://api.your-company.com"}).Verify(ctx, raw)

Cloud providers’ workload identity federation (AWS IAM OIDC providers, Google Cloud workload identity pools, Azure federated credentials) can trust the issuer too, so agents get cloud credentials without stored keys.

Every token is recorded in the audit log with its audience.

Owners can rotate the signing key under Developers → Agent identity. Tokens signed with the old key still check for a day, while services pick up the new key from the published keys.