๐ This CLI Tool Solved My AWS SSO Credentials Nightmare (DEPRECATED)
Update (June 2026): This tool has evolved a lot and is now awssesh โ simpler, faster, npm-installable. ๐ Read the current version here.
๐ This CLI Tool Solved My AWS SSO Credentials Nightmare (DEPRECATED)
Update (June 2026): This tool has evolved a lot and is now awssesh โ simpler, faster, npm-installable. ๐ Read the current version here.
Every day, same story. ๐ค Tokens expire. Deploys break at the worst possible time. Iโm running aws sso login five times a day across 10+ AWS accounts, juggling browser tabs and verification codes โ all while trying to actually get work done.
I couldnโt find a tool that handled this properly. So I built one. ๐ ๏ธ

๐ฉ The Daily Pain
If you manage multiple AWS accounts through SSO, you already know this pain intimately:
๐ Open terminal. Run a command. Open browser. Enter code. Wait. Repeat. โ No idea which profiles are still valid and which expired an hour ago. ๐ฅ A deploy breaks silently because a token expired mid-way. ๐ซ No dashboard. No bulk operations. Just one profile at a time, manually.
The AWS CLI gives you aws sso login โ profile my-profile. One profile. One at a time. Every. Single. Time. โณ
After months of this frustration, I decided to build the tool I always wished existed โ and thatโs how SSOmatic was born. ๐
โก What SSOmatic Does
SSOmatic is a single CLI tool that auto-discovers every SSO profile in your ~/.aws/config and gives you a live status dashboard โ instantly. No configuration files. No setup steps. Just run it and see everything at a glance.
On first launch, it scans your config, finds all your profiles โ including sso-session blocks โ and shows you exactly whatโs valid, whatโs expired, and what needs attention. ๐ข Green dot means youโre good. ๐ด Red dot means itโs time to refresh. Simple as that.
๐ Bulk Refresh Changed Everything
This is the feature that genuinely saved my sanity. Select the profiles you want, hit Enter, and SSOmatic handles the entire SSO device auth flow for each one โ token polling, caching, credential writing. You just approve in the browser. Thatโs it. โ
I also added a favorites system โ so your most-used profiles are always pre-selected. One keystroke to refresh everything you need for the day. โญ
๐ป The Daemon That Runs in the Background
This is the real game-changer. Set a refresh interval โ 15 minutes, 30 minutes, whatever fits your workflow โ pick your profiles, and SSOmatic silently keeps them alive in the background. It refreshes tokens before they expire and sends desktop notifications when something needs your manual attention. ๐
No more mid-deploy surprises. No more โwhich profile expired?โ guessing games. Just peace of mind. ๐
๐ Press W, Get a Web Dashboard
This is the feature Iโm most proud of. While building the CLI, I realized that sometimes I just want a browser tab I can glance at without switching context. So I embedded a web server directly into the CLI โ no extra process, no separate install.

Press w in the terminal. A sleek dark-mode web dashboard spins up on localhost instantly. Same data, same profiles, same live status โ just beautifully rendered in React with Tailwind. Press w again and the server stops. ๐จ
One binary. Two interfaces. Your preference is remembered too โ next time you launch SSOmatic, the web server starts automatically if you had it on before. ๐ก
๐ ๏ธ The Technical Side
For those who want to peek under the hood โ hereโs the stack:
โก Bun as the runtime โ blazing-fast startup and single binary compilation. ๐ฅ๏ธ React + Ink for the terminal UI โ yes, actual React, in the terminal. ๐ React + Vite + Tailwind for the web dashboard. ๐ช TypeScript everywhere. ๐ The web server is a Bun HTTP server with a simple RPC bridge to the same credential logic the CLI uses.
The whole project is a flat, single-package structure. No monorepo madness. No workspace complexity. One entry point, one build command. Clean and simple. ๐งน
๐ Itโs Open Source
I built SSOmatic to scratch my own itch โ but if youโre dealing with the same AWS SSO pain, Iโd love for you to give it a try. Itโs free, open source, and actively maintained.
๐ป Install via Homebrew (macOS / Linux):
brew install tux86/tap/ssomatic
GitHub: https://github.com/tux86/ssomatic
Install it, fire up bun run start, and let me know what you think. Issues, feedback, and PRs are all very welcome โ I read everything. ๐
If you work with AWS SSO across multiple accounts and this resonates with you, share it with your team. Chances are theyโre suffering through the exact same manual refresh cycle โ and theyโll thank you for it. ๐ฌ
#AWS #DevTools #OpenSource #CLI #TypeScript #Bun #CloudEngineering #DevOps
๋ฉํ๋ฐ์ดํฐ
- post_id
- b89b03bed097
- slug
- this-cli-tool-solved-my-aws-sso-credentials-nightmare-b89b03bed097
- url
- https://medium.com/@walid.karray/this-cli-tool-solved-my-aws-sso-credentials-nightmare-b89b03bed097
- canonical_url
- https://medium.com/@walid.karray/this-cli-tool-solved-my-aws-sso-credentials-nightmare-b89b03bed097
- author_url
- https://medium.com/@walid.karray
- status
- ok
- fetched_at
- 2026-06-28 04:42:08