A local credential broker for humans and AI agents. AWS first.
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 --start-url https://your-org.awsapps.com/start --region us-east-1 login

# 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. No grantry in the loop.

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.

See the whole org

Admins can crawl who has which permission set in which account, and view it as an interactive graph. AWS gatekeeps the data.

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.