AWS SSO CLI
$ aws-sso Community Med RiskAWS SSO CLI (aws-sso) secures multi-account AWS IAM Identity Center (SSO) workflows without storing static IAM keys on disk. It supports aws-sso exec scoped subshells, AWS CLI credential_process JSON integration, and cached SSO sessions.
brew install aws-sso-cli aws-sso runs locally to broker temporary AWS STS credentials for downstream CLI commands; credential brokering cannot be delegated to a remote MCP.
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
Works non-interactively via aws-sso exec -p <profile> and credential_process JSON once an SSO session is active, though expired OAuth tokens require browser login.
- Supports
aws-sso exec -p <profile>andaws-sso processJSON for AWS CLI - Browser OAuth login required when Identity Center token expires
Eliminates long-lived static AWS_SECRET_ACCESS_KEY files in favor of short-lived STS tokens and OS-keychain-encrypted caches.
- Short-lived STS tokens scoped per subprocess with
aws-sso exec
Single Go binary via Homebrew and GitHub Releases across macOS, Linux, and Windows, though initial config.yaml setup is needed.
- Available via
brew install aws-sso-cli
Cleanly bridges AWS IAM Identity Center with multi-account CLI/agent workflows and credential_process.
- Auto-generates
~/.aws/configprofiles viaaws-sso config-profiles
Well-maintained community Go project (synfinatic/aws-sso-cli) under GPL-3.0.
- Active open-source maintenance under GPL-3.0
Detailed GitHub docs covering exec, process, list, and config.yaml schemas.
- Comprehensive quickstart and command docs in repository
Security, Auth & Guardrails
Stores SSO configuration in ~/.aws-sso/config.yaml and caches encrypted OAuth/STS tokens in OS keychain or local secure store.
GPL-3.0 open-source CLI; free to use.
# AWS SSO CLI Agent Rules - Use `aws-sso exec -p <readonly-profile> -- <cmd>` so temporary credentials stay scoped to one command. - Never run `aws-sso eval` or `aws-sso login` if the SSO browser session is expired—ask the user to authenticate.
Agent-Ready Command Recipes
Safe Read-Only Queries
aws-sso list --fields AccountId,AccountName,RoleName
Lists cached IAM Identity Center account/role mappings using explicit fields.
aws-sso exec -p my-readonly-profile -- aws sts get-caller-identity --output json
Injects temporary STS env vars into a single subprocess without modifying global shell state.
Strengths for Agents
- +
aws-sso exec -p <profile>isolates temporary STS credentials to a single child command. - + Eliminates static IAM access keys on disk using short-lived Identity Center sessions.
- + Supports
credential_processJSON output for transparentawsCLI integration.
Caveats & Pitfalls
- ! When the SSO OAuth session expires, agents cannot complete browser MFA/login autonomously.
- ! GPL-3.0 license and initial
~/.aws-sso/config.yamlsetup add minor onboarding friction.