Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Multi-account pooling, quota multiplexing, and automatic rate-limit failover for Kiro CLI.
Jump to setup instructionsFetched from the repository for this visit.
kiro-pool)Scale beyond single-account limits by pooling an arbitrary number ($N$) of Google accounts together under one Linux user. Rotate prompts round-robin across accounts to multiply your available AI quotas, and automatically fail over to healthy accounts when rate limits hit.
node, bun, tui.js, run/). 50 accounts use ~2.5 MB instead of 50 GB.429, ThrottlingError, or quota exhaustion and immediately retries the prompt with the next available account.kiro-pool status.kiro-cli installation and default primary account remain 100% untouched.Kiro CLI stores authentication tokens in an unencrypted SQLite table at $XDG_DATA_HOME/kiro-cli/data.sqlite3.
kiro-pool wraps your installed kiro-cli binary, dynamically injecting isolated environment variables (XDG_DATA_HOME, KIRO_HOME, XDG_RUNTIME_DIR) per command:
flowchart TD
A[You run: kiro-pool chat --no-interactive 'Prompt'] --> B[kiro-pool Orchestrator]
B --> C[1. Read state & pick next healthy account]
B --> D[2. Bench throttled accounts in cooldown window]
B --> E[3. Inject isolated XDG & KIRO environment triple]
E --> F[Execute official kiro-cli binary]
F --> G{Execution Result}
G -- Success --> H[Return response to stdout]
G -- Throttled 429 / RateLimit --> I[Mark account in 60m cooldown]
I --> J[Auto-retry with next available account]
J --> F
(See docs/INTERNAL_ARCHITECTURE.md for full reverse-engineered details.)
Clone and run the installer:
git clone https://github.com/MishraShardendu22/kiro-account-pool-manager.git
cd kiro-account-pool-manager
./install.sh
Ensure ~/.local/bin is in your PATH (default in Ubuntu and most distributions).
You can enroll accounts in two ways:
Log in normally via standard kiro-cli login in your browser, then import it into a permanent pool slot:
kiro-cli login
kiro-pool import acc1
Repeat for any other Google or GitHub account—each imported session is permanently isolated and protected from being overwritten.
kiro-pool add acc1
kiro-pool add acc2
[!TIP] Why Stock Kiro Was Limited to 2 Accounts: In default unmanaged
kiro-cli, session credentials are stored in a single SQLite table (auth_kv) with only one key for social login (kirocli:social:token) and one for AWS Builder ID (kirocli:builder-id:token). Logging into a second Google account in stock Kiro simply overwrote the file on disk! Withkiro-pool's isolated sandboxes, you can run an unlimited number of accounts simultaneously. Server-side tokens do not expire or invalidate each other.
# View active accounts, OAuth provider, and health
kiro-pool status
# Clean up / remove any accounts that lost authentication or were logged out
kiro-pool prune
# Set any pooled profile as your active default for standard 'kiro-cli'
kiro-pool switch acc1
Example Output:
Kiro Multi-Account Pool Status
============================================================================
Profile Email Auth State Used
----------------------------------------------------------------------------
01 work.dev@gmail.com Ready (Google) 16
upsc personal.code@gmail.com Ready (Github) 14
acc3 experimental@gmail.com Cooldown (45m) 8
acc4 old.dev@gmail.com Login Required 2
============================================================================
Tip: 1 account(s) require re-login. Run kiro-pool prune to remove them from rotation.
kiro-pool is designed for autonomous agents, CI/CD runners, and background subtasks:
kiro-pool inspects the profile's SQLite session. If an account is logged out or unauthenticated, it is automatically skipped—it will never block your terminal.kiro-pool marks it in a 60-minute cooldown and immediately retries on another healthy account from the SAME provider before falling back to other providers.kiro-cli attempts to launch an interactive browser callback (localhost:3128), kiro-pool catches it immediately, skips the expired profile, and transparently retries on the next healthy account.scripts/auto_auth_playwright.py is included to automate device flow logins via Chromium.Every prompt automatically alternates across your account pool:
# Prompt 1 -> Uses acc1 (Google)
kiro-pool chat --v3 --model claude-haiku-4.5 --no-interactive "Scaffold a FastAPI application"
# Prompt 2 -> Uses acc2 (Google)
kiro-pool chat --v3 --model claude-haiku-4.5 --no-interactive "Write pytest integration tests"
# Prompt 3 -> Explicitly target a specific provider if desired
kiro-pool --provider google chat --v3 --no-interactive "Generate Dockerfile"
If an account hits a rate limit or requires authentication, kiro-pool automatically benches that account and reroutes the prompt to a backup account of the same provider without failing.
kiro-pool chat
Ctrl+C or /quit).kiro-pool chat again picks the next account in rotation.Add this alias to your ~/.bashrc or ~/.zshrc:
alias kiro="kiro-pool"
Now you can run:
kiro status
kiro switch 01
kiro chat --no-interactive "Review PR #42"
| Command | Description |
|---|---|
kiro-pool add <name> | Enroll a new Google/GitHub account into the pool |
kiro-pool import <name> | Import active system login (~/.local/share/kiro-cli) into a permanent profile |
kiro-pool switch <name> | Set a pooled profile as the default for standard kiro-cli commands |
kiro-pool remove <name> [name2...] | Remove account(s) from the pool (aliases: rm, delete, del) |
kiro-pool prune | Remove unauthenticated or expired accounts from the pool (alias: clean-unauthed) |
kiro-pool status | View account health, auth state, cooldowns, and usage (aliases: list, ls) |
kiro-pool reset-cooldown | Manually clear cooldown timers for all accounts |
kiro-pool run [--provider P] <args..> | Run any Kiro CLI command rotated through healthy accounts |
kiro-pool <args...> | Shorthand for run (e.g., kiro-pool whoami) |
kiro-pool --version | Display current version number |
kiro-pool --help | Show command usage and options |
| Dimension | Real-World Assessment |
|---|---|
| Best For | Background code generation, PR review delegation, test scaffolding, bulk script generation. |
| Not Suited For | Real-time interactive keystroke completions (due to 5–8s daemon cold-start latency). |
| Strengths | Free frontier model compute (Claude 3.5 Sonnet / Haiku 4.5, Qwen Coder), multiplied quotas, zero card required. |
| Limitations | Session token expiration, device OAuth management overhead, background daemon spin-up time. |
kiro-pool Genuinely Shineskiro-cli engine spawns background runtimes (kas, node, bun) and runs local SQLite synchronization. This introduces an intrinsic 5–8 second startup latency before output streams. It is best suited for batch prompts and background delegation rather than instant sub-second queries.kiro-pool protects headless automation by auto-skipping expired profiles (and provides kiro-pool prune), maintaining a large pool of 10+ accounts requires occasional re-enrollment (which can be automated using scripts/auto_auth_playwright.py).kiro-pool acts as a prompt runner and tool execution pipeline. It is not an autonomous IDE agent with native workspace tree indexing.The test suite runs using Python's native unittest framework (zero third-party dependencies):
python3 -m unittest discover -s tests -v
In unmanaged kiro-cli, authentication tokens are stored in a single SQLite table (auth_kv) that has only two fixed keys: kirocli:social:token (Social Login: Google OR GitHub) and kirocli:builder-id:token (AWS Builder ID). When you logged into a second Google account in vanilla kiro-cli, it immediately overwrote kirocli:social:token in SQLite, wiping out the first Google account.
With kiro-pool, every profile has its own sandboxed SQLite database (~/.local/share/kiro-profiles/<name>/kiro-cli/data.sqlite3), completely removing this constraint.
No. AWS CodeWhisperer/Kiro generates independent OAuth refresh tokens and AWS profile ARNs tied to the specific account identity. The backend has no link between separate Google accounts; each has its own independent refresh cycle and lifetime. They remain active concurrently.
kiro-cli?No. Standard kiro-cli continues to use your primary default account (~/.local/share/kiro-cli/data.sqlite3). However, if you want standard kiro-cli to switch to any account in the pool, you can conveniently run kiro-pool switch <name>.
No. Kiro's cloud runtime anchors conversation threads to the user's Profile ARN. Alternating accounts per message within a single unbroken conversation thread causes backend rejection (InvalidConversationId). Rotation happens per prompt or per session.
Kiro CLI automatically refreshes expired tokens in the background using each profile's independent .refresh.lock and SQLite database. No manual re-login is required.
Contributions are warmly welcomed! Please read our Contributing Guide and Code of Conduct.
MIT License. See LICENSE for details.
GitHub checked 208h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.