Scoped, expiring, auditable credentials for agents.
A user grants an agent a short-lived token with explicit scopes and spend limits. Tool servers ask agent-auth whether a request fits. A sub-agent only ever gets a narrower token, revoking a token revokes everything derived from it, and every decision lands in a hash-chained audit log.
npm install https://superintelligenceco.github.io/pkg/agent-auth-0.2.0.tgz $ agent-auth check --token "$TOKEN" --action gmail:send --param to=bob@acme.comALLOW [gmail:send to:*@acme.com] (19 uses left)$ agent-auth check --token "$TOKEN" --action gmail:send --param to=eve@evil.exampleDENY to eve@evil.example does not match *@acme.com (scope: gmail:send to:*@acme.com)$ agent-auth check --token "$TOKEN" --action payments:charge --amount 80USDDENY amount exceeds max=50USD (scope: payments:charge max=50USD)$ agent-auth attenuate --token "$SUB" --scope 'github:repo:read acme/*'error: scope_escalation: requested scopes exceed the parent token not covered by parent: github:repo:read acme/*