A local credential broker for humans and AI agents. AWS first.
zsh — you and your agents, one broker
Local first. No server. No telemetry.

One login. Every tool. Every agent.

grantry logs you into AWS IAM Identity Center once, then hands out short lived credentials on demand. You get a clean command line. Your AI coding agents get the same credentials over MCP, but only for the accounts and roles you allow, only for as long as you permit, and every request is written to an audit log.

Everything stays on your machine. grantry talks to AWS and nothing else. Tokens live in the OS keychain, never in a plain file.

Get going in four lines

# point grantry at your Identity Center, just once
grantry login --start-url https://your-org.awsapps.com/start --region us-east-1

# generate a policy from your real access, then use any role
grantry init
grantry run my-dev/AWSReadOnlyAccess -- aws s3 ls

After login, the native aws CLI, boto3, and Terraform work too. Add a credential_process profile if you want every native fetch policy checked and audited.

What makes it different

Built for agents

Agents get credentials over MCP, gated by your policy. When a session expires, the agent asks you to log in and resumes on its own.

Policy you control

A short YAML file decides which identities each agent may use and for how long. Deny beats allow. Unlisted is denied for agents.

Every grant audited

An append only log records who asked for what, when, and which rule decided it. It never contains a credential.

Native tools too

A credential_process profile routes the aws CLI, boto3, and Terraform through grantry, so those fetches are checked and logged like the rest.

Console in one command

grantry console opens the AWS console in your browser as any identity you can use. No copy pasting keys, no juggling profiles.

See the whole org

Admins crawl who has which permission set in which account, snapshot it, and diff what changed since last time. AWS gatekeeps the data.

See who has what across the org

grantry admin assignments --visualize crawls the whole organization and writes one self-contained HTML file: principals → permission sets → accounts, colour-coded by privilege, with risk KPIs. Click any node to trace its access; a group shows its members, a permission set its policies, an account its OU.

Navigating the grantry access graph

Wire it into your AI clients

grantry install            # auto detect every client you have
grantry install cursor     # or a specific one

Supported: Claude Code, Claude Desktop, Cursor, Windsurf, and VS Code. grantry is added without touching your other MCP servers, and each client gets its own audit label.