Granted
$ assume Official Med RiskCommon Fate's Granted (assume) streamlines switching across AWS SSO and IAM roles, opening isolated browser containers per account (assume -c) and injecting credentials into commands via assume <profile> --exec or .env export (--env).
brew install common-fate/granted/granted assume runs locally to populate AWS STS env vars or open browser containers; credential switching is a local shell concern, not an MCP capability.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Relies on a shell source alias wrapper for interactive terminals and lacks JSON output; agents must set FORCE_NO_ALIAS=true and use --exec.
- Requires
FORCE_NO_ALIAS=trueand--execto work cleanly in subshells - No
--jsonoutput mode; designed around interactive shell & browser UX
Uses OS keychain for SSO caches and --exec keeps STS tokens scoped to one child process, though --env writes plaintext secrets to .env.
--execscopes credentials to a single subprocess--env/--exportwrite temporary secrets to local files
Distributed via Homebrew tap (common-fate/granted/granted) and binaries, but requires shell alias integration for standard interactive assume usage.
- Requires
alias assume="source assume"for interactive shell export
Great developer UX for multi-account AWS console tabs and SSO role switching, though less necessary for headless agents using aws --profile directly.
- Excels at multi-account Firefox/Chrome container sessions (
assume -c)
MIT-licensed Go project maintained by Common Fate (common-fate/granted / fwdcloudsec/granted).
- MIT-licensed open-source repository
Clear docs at docs.commonfate.io, though scripting flags like FORCE_NO_ALIAS=true are less prominent.
- Official Granted documentation site
Security, Auth & Guardrails
Reads ~/.aws/config profiles and caches SSO/STS credentials in OS keychain or encrypted ~/.granted/ store.
MIT open-source CLI; free to use.
# Granted (assume) Agent Rules - Always set `FORCE_NO_ALIAS=true` and `GRANTED_QUIET=true` and prefer `--exec` over bare `assume <profile>` in non-interactive shells. - Never pass `--env` into a git-tracked directory without confirming `.env` is gitignored.
Agent-Ready Command Recipes
Safe Read-Only Queries
--exec FORCE_NO_ALIAS=true GRANTED_QUIET=true assume my-readonly-profile --exec "aws sts get-caller-identity --output json"
Bypasses the interactive shell-alias check and runs a single command with scoped STS credentials.
Controlled Writes & Previews
~/.aws/credentials FORCE_NO_ALIAS=true assume my-profile --export
Writes short-lived STS credentials for the assumed profile into ~/.aws/credentials.
Strengths for Agents
- +
assume <profile> --execinjects temporary STS creds into a single subprocess cleanly. - +
GRANTED_QUIET=trueandFORCE_NO_ALIAS=trueenable headless CI/agent invocation. - + Caches SSO tokens securely in the OS keychain.
Caveats & Pitfalls
- ! Interactive shell-alias design causes bare
assume <profile>to prompt for alias setup in clean subshells unlessFORCE_NO_ALIAS=trueis set. - ! No JSON output; expired SSO sessions still require interactive browser login.