@911218sky/kiro-cli-auth
v0.1.48
Published
CLI for switching Kiro accounts
Readme
kiro-cli-auth
Switch between multiple Kiro CLI accounts quickly.
kiro-cli-auth saves each account as a local snapshot, then restores the selected snapshot into Kiro CLI's active data.sqlite3 when you switch.
Install
npm install -g @911218sky/kiro-cli-authYou can also run it without installing globally:
npx @911218sky/kiro-cli-auth listSupported npm platforms:
- Linux x64
- Linux arm64
- macOS x64
- macOS arm64
- Windows x64
The npm package is a small launcher. During install it downloads the matching binary from the GitHub Release for that package version.
Quick Start
Add the current Kiro account:
kiro-cli-auth login workAdd another account:
kiro-cli-auth login personalList accounts:
kiro-cli-auth listSwitch accounts:
kiro-cli-auth switch workStop running Kiro CLI sessions, then switch:
kiro-cli-auth switch --stop workShow the active account:
kiro-cli-auth currentRemove an account:
kiro-cli-auth remove personalCommands
kiro-cli-auth login [alias]
kiro-cli-auth list
kiro-cli-auth switch [alias] [--stop]
kiro-cli-auth current
kiro-cli-auth remove [alias]
kiro-cli-auth export [alias] -o <dir>
kiro-cli-auth import <dir>
kiro-cli-auth refresh [alias]
kiro-cli-auth refresh --all
kiro-cli-auth clean
kiro-cli-auth logout
kiro-cli-auth stop
kiro-cli-auth stop --force
kiro-cli-auth updateIf switch, remove, or export does not receive an alias, it opens an interactive picker.
Update
Update kiro-cli-auth itself:
kiro-cli-auth updateOr update through npm:
npm update -g @911218sky/kiro-cli-authUninstall
npm uninstall -g @911218sky/kiro-cli-authAccount data is stored locally:
- Linux/macOS:
~/.kiro-cli-auth/ - Windows:
%APPDATA%\kiro-cli-auth\
Remove that directory if you want to delete all saved account snapshots.
Notes
- Close running Kiro CLI sessions before switching accounts.
- Use
kiro-cli-auth stopto stop running Kiro CLI sessions before switching accounts. - Use
kiro-cli-auth switch --stopto stop Kiro CLI first, then switch. - Use
kiro-cli-auth refresh --allto refresh cached account usage and status. - On Linux and Windows, machine IDs are kept in the
kiro-cli-authregistry only. - On macOS, the per-account machine ID is also written to
~/Library/Application Support/Kiro/machineid. - If Kiro CLI stores
data.sqlite3in a non-standard path, setKIRO_CLI_DATA_PATHto that exact file.
