Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

aws-vault

$ aws-vault Community High Risk
99designs (OSS) · Security & Secrets · MIT · macos / linux / windows

aws-vault keeps long-lived AWS IAM access keys encrypted in the OS keychain instead of plaintext ~/.aws/credentials, injecting temporary STS credentials into subshells via aws-vault exec. However, macOS Keychain prompts and MFA dialogs can block headless agents.

FCRS-1.0 Score
79 /100
Good
Medium Confidence
Zero-Friction Install
brew install --cask aws-vault
CLI vs MCP Decision CLI Only

aws-vault exec wraps local aws CLI subprocesses with STS env vars; an MCP layer cannot unlock OS keychains safely.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

aws-vault exec works cleanly once unlocked, but lacks --json and stalls if macOS Keychain or --prompt MFA dialogs appear.

  • Table-formatted list; interactive Keychain/MFA unlocks block headless runs
Trust & Safety 18 / 25

Strongly improves local IAM hygiene via short-lived STS tokens, though aws-vault export and --server EC2 metadata mode carry credential-exposure risks.

  • aws-vault export prints temporary credentials to stdout
Setup & Portability 12 / 15

Single Go binary, though keychain backends differ sharply between macOS Keychain and headless Linux (pass/file).

  • Platform-dependent keychain backend setup
Utility & Efficiency 14 / 15

Protects developer laptops from plaintext ~/.aws/credentials leaks while remaining transparent to aws CLI.

  • Drop-in STS session wrapper for AWS tools
Maintenance & Lineage 8 / 10

Established OSS standard (99designs/aws-vault) in mature maintenance mode.

  • Widely adopted MIT project
Docs & Verifiability 9 / 10

Thorough USAGE.md covering keychain backends, MFA, and IAM role assumptions.

  • Detailed USAGE.md documentation

Security, Auth & Guardrails

Auth Modes
OS Keychain Config File
Credential Storage

Encrypts long-lived IAM keys in macOS Keychain, Secret Service, pass, or encrypted file backend; reads profile roles from ~/.aws/config.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

100% free and open-source (MIT).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# aws-vault Agent Rules
- Use `aws-vault exec <readonly-profile> -- <cmd>`; NEVER run `aws-vault export` (which prints raw STS keys to stdout).
- Expect macOS Keychain / MFA prompts if the vault is locked; ask the user to unlock or authenticate first.

Agent-Ready Command Recipes

Safe Read-Only Queries

List configured AWS profiles and session status
aws-vault list

Displays configured profiles, credential existence, and cached STS sessions without printing secrets.

Verify caller identity using temporary STS credentials
aws-vault exec dev-readonly -- aws sts get-caller-identity --output json --no-cli-pager

Mints short-lived STS credentials in memory to run a read-only aws check.

Strengths for Agents

  • + Eliminates plaintext ~/.aws/credentials by encrypting IAM keys in OS keychains.
  • + Injects short-lived STS credentials straight into child aws CLI invocations.

Caveats & Pitfalls

  • ! Keychain unlock and MFA prompts require human interaction when sessions expire.
  • ! Never run aws-vault export in agent shells as it prints AWS_SECRET_ACCESS_KEY and AWS_SESSION_TOKEN.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI