
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
opencode-kiro-multi-auth
Advanced tools
OpenCode multi-account authentication plugin for AWS Kiro — production-hardened with encrypted token storage, intelligent account rotation, and automatic failover
Production-hardened multi-account authentication plugin for OpenCode — provides access to Claude models via AWS Kiro with intelligent account rotation, encrypted token storage, and automatic failover.
src/
├── core/
│ ├── auth/ Token refresh (single-flight), OAuth device flow, CLI sync
│ ├── request/ Request handler, retry strategy, error classification
│ └── account/ Account selection (sticky/round-robin/lowest-usage), usage tracking
├── plugin/
│ ├── storage/ SQLite with AES-256-GCM encryption, WAL mode
│ ├── streaming/ AWS event stream → OpenAI SSE conversion
│ ├── config/ Zod-validated config with env overrides
│ ├── sync/ Kiro CLI database import/export
│ └── ... Token refresh, HTTP utilities, redaction, logging
├── kiro/ OAuth IDC device code flow, token encoding
├── tui.ts Interactive account manager (raw ANSI)
├── cli.ts CLI entry point with guided-add flow
└── plugin.ts OpenCode plugin registration
{
"plugin": ["opencode-kiro-multi-auth"],
"provider": {
"kiro": {
"models": {
"claude-sonnet-4-6": {
"name": "Claude Sonnet 4.6",
"limit": { "context": 200000, "output": 64000 },
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }
},
"claude-sonnet-4-6-thinking": {
"name": "Claude Sonnet 4.6 Thinking",
"limit": { "context": 200000, "output": 64000 },
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
"variants": {
"low": { "thinkingConfig": { "thinkingBudget": 8192 } },
"medium": { "thinkingConfig": { "thinkingBudget": 16384 } },
"max": { "thinkingConfig": { "thinkingBudget": 32768 } }
}
},
"claude-opus-4-6": {
"name": "Claude Opus 4.6",
"limit": { "context": 200000, "output": 64000 },
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }
},
"claude-opus-4-6-thinking": {
"name": "Claude Opus 4.6 Thinking",
"limit": { "context": 200000, "output": 64000 },
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
"variants": {
"low": { "thinkingConfig": { "thinkingBudget": 8192 } },
"medium": { "thinkingConfig": { "thinkingBudget": 16384 } },
"max": { "thinkingConfig": { "thinkingBudget": 32768 } }
}
}
}
}
}
}
See the full model list in the Models section.
kiro-cli login
The plugin auto-imports your session on startup via auto_sync_kiro_cli: true.
opencode auth login
# Select "Other" → type "kiro" → follow prompts
For IAM Identity Center, you'll be prompted for Start URL and region.
kiro-multi-auth tui # Interactive TUI
kiro-multi-auth add # Guided add flow
Edit ~/.config/opencode/kiro.json:
{
"account_selection_strategy": "lowest-usage",
"default_region": "us-east-1",
"auto_sync_kiro_cli": true,
"max_request_iterations": 50,
"request_timeout_ms": 120000,
"token_expiry_buffer_ms": 120000,
"rate_limit_retry_delay_ms": 5000,
"rate_limit_max_retries": 3,
"usage_tracking_enabled": true,
"reAuthCooldownMs": 60000
}
| Option | Default | Description |
|---|---|---|
account_selection_strategy | lowest-usage | sticky, round-robin, or lowest-usage |
auto_sync_kiro_cli | true | Import sessions from Kiro CLI on startup |
max_request_iterations | 50 | Max retry loop iterations before failing |
request_timeout_ms | 120000 | Total request timeout (ms) |
token_expiry_buffer_ms | 120000 | Refresh tokens this far before expiry |
reAuthCooldownMs | 60000 | Cooldown after failed re-auth attempt |
idc_start_url | — | IAM Identity Center Start URL |
idc_region | — | IAM Identity Center region (sso_region) |
idc_profile_arn | — | CodeWhisperer/Q Developer profile ARN |
All config options can be overridden via KIRO_* environment variables:
KIRO_LOG — log level (debug, info, warn, error)KIRO_RATE_LIMIT_RETRY_DELAY_MS, KIRO_REQUEST_TIMEOUT_MS, etc.All Claude models available through Kiro:
| Model | Context | Thinking |
|---|---|---|
claude-sonnet-4-6 | 200K | — |
claude-sonnet-4-6-thinking | 200K | ✓ |
claude-sonnet-4-6-1m | 1M | — |
claude-sonnet-4-6-1m-thinking | 1M | ✓ |
claude-sonnet-4-5 | 200K | — |
claude-sonnet-4-5-thinking | 200K | ✓ |
claude-opus-4-6 | 200K | — |
claude-opus-4-6-thinking | 200K | ✓ |
claude-opus-4-6-1m | 1M | — |
claude-opus-4-6-1m-thinking | 1M | ✓ |
claude-opus-4-5 | 200K | — |
claude-opus-4-5-thinking | 200K | ✓ |
claude-haiku-4-5 | 200K | — |
claude-haiku-4-5-thinking | 200K | ✓ |
~/.config/opencode/.kiro-key)| Platform | Database | Config |
|---|---|---|
| Linux/macOS | ~/.config/opencode/kiro.db | ~/.config/opencode/kiro.json |
| Windows | %APPDATA%\opencode\kiro.db | %APPDATA%\opencode\kiro.json |
All accounts failed authentication. Run kiro-multi-auth tui to check account health, or kiro-cli login to refresh credentials.
Wait for the cooldown period shown in the error message, or add more accounts.
IAM Identity Center requires a profile ARN. Run kiro-cli profile to select one, or set idc_profile_arn in config.
Ensure kiro-cli login succeeds and auto_sync_kiro_cli is true in config.
kiro-multi-auth Interactive TUI
kiro-multi-auth accounts list List all saved accounts
kiro-multi-auth accounts add Guided add flow
kiro-multi-auth accounts sync Import current Kiro CLI session
kiro-multi-auth accounts switch N Set account N as active
kiro-multi-auth accounts enable N Enable account N
kiro-multi-auth accounts disable N Disable account N
kiro-multi-auth accounts reset N Reset health markers
kiro-multi-auth accounts remove N Delete saved account
MIT
FAQs
OpenCode multi-account authentication plugin for AWS Kiro — production-hardened with encrypted token storage, intelligent account rotation, and automatic failover
We found that opencode-kiro-multi-auth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.