Switch AWS profiles instantly

A fast, minimal AWS profile switcher for your terminal. Fuzzy search, SSO support, and identity verification built-in.

curl -fsSL https://raw.githubusercontent.com/rnihesh/awsp/main/install.sh | bash
View on GitHub
Terminal
$ awsp
AWS Profile > dev-account
AWS_PROFILE=dev-account
Identity verified
{
  "Account": "111111111111",
  "Arn": "arn:aws:iam::111111111111:user/dev"
}

Features

Fuzzy Search

Interactive profile selection with fzf. Falls back to numbered menu if fzf is not installed.

SSO Support

Automatically detects expired SSO tokens and prompts you to re-authenticate. Shows expiration time and remaining validity.

Identity Verification

Confirms your identity after every profile switch using AWS STS.

SSO Expiration Display

View SSO token expiration time when switching profiles or using the status command.

Shell Support

Works with both Bash and Zsh. Easy one-line installation.

Fast & Minimal

Simple shell function. No bloat, no slowdown to your terminal startup.

Commands

awsp Interactive profile selector
awsp <profile> Switch to specific profile
awsp list List all profiles
awsp clear Clear current profile
awsp-current Show current profile
awsp --help Show help