Skip to content

Kiro Account Manager v1.6.0

Choose a tag to compare

@github-actions github-actions released this 11 May 19:06

🌟 更新内容 | What's New

v1.6.0 (2026-5-12)

反代 API 增强

  • 新增: Gemini v1beta API 兼容(/v1beta/models/v1beta/models/{model}:generateContent/v1beta/models/{model}:streamGenerateContent
  • 新增: 一键配置客户端支持 6 种:Claude Code、OpenCode、Codex CLI、Gemini CLI、Hermes、OpenClaw
  • 新增: AmazonQ CLI 端点隔离 — amazonq-cli 首选端点仅使用 SendMessageStreaming,失败不回退
  • 新增: 智能账号轮换 — 断路器 + 粘滞行为 + 指数退避 + 概率重试(参考 Kiro Gateway 架构)
  • 新增: 错误分类系统 — FATAL(请求问题,直接返回)vs RECOVERABLE(账号问题,切换下一个)
  • 新增: 主动配额过滤 — 已耗尽账号在选择前即被排除,不再等 429 才发现
  • 新增: onPoolEmpty 懒加载回调 — 代理收到首个请求时自动从 store 加载账号(修复 Mac 冷启动 503)
  • 新增: 冷启动账号池同步重试机制(5 次重试,2s/4s/6s/8s/10s 间隔)
  • 新增: 模型能力标签 — 模型列表显示 Thinking/Caching/Effort 等能力(从 ListAvailableModels 解析)
  • 新增: 隐藏模型支持 — Claude 3.7 Sonnet 等未在官方列表中但后端支持的模型
  • 优化: 请求头/UA/版本号完全匹配官方 Kiro IDE 0.12.155 抢包(SDK 1.0.34、动态 OS/Node 指纹)
  • 优化: 请求体新增 agentContinuationId/agentTaskType 字段,匹配官方协议
  • 优化: 所有出站请求统一走应用级 HTTP 代理(包括 Token 刷新、SSO 登录、图片下载等)
  • 优化: machineId 空值兆底(SHA-256 哈希)、Token 刷新随机 jitter(0-3s)、IDC UA 动态 OS
  • 优化: K-Proxy MITM 新增 body 中 machineId 替换 + telemetry 域名 kiro.dev 拦截
  • 优化: 工具调用 token 估算覆盖全部出口(工具名 + 参数 JSON)
  • 优化: 503 错误信息包含配额详情(All accounts quota exhausted (X/Y exhausted, Z in cooldown)
  • 优化: 扩展配额错误检测模式(402、429、ThrottlingException、ServiceQuotaExceededException、rate limit、limit exceeded)
  • 新增: 流式日志开关 — 默认关闭,开启后显示每个流式事件的详细 JSON(assistantResponseEvent/toolUseEvent 等)
  • 优化: Thinking 模式简化 — 移除旧的 <thinking> 标签检测,直接透传原生 reasoningContentEvent 为 OpenAI reasoning_content / Claude thinking block
  • 新增: additionalModelRequestFields 支持 — 客户端发送 thinking 参数时透传给 Kiro API

账号切换

  • 新增: Kiro CLI 切号支持 — 写入凭证到 ~/.local/share/kiro-cli/data.sqlite3 SQLite 数据库
  • 新增: 设置中可选择切号目标:「Kiro IDE」/「Kiro CLI」/「两者 (IDE + CLI)」(默认 IDE)
  • 新增: 手动切号和自动切号均遵循 switchTarget 设置
  • 新增: CLI 切号使用 Read-Merge-Write 策略,保留未知字段,清理过期优先级 key

订阅与超额

  • 新增: 批量超额设置页面 —「一键超额」(仅未开启)和「全部设置」(所有已订阅)按钮
  • 新增: 账号超额状态总览表(订阅类型、超额能力、超额状态)
  • 修复: overageStatus 字段检测 — 正确将 REST API 的 "ENABLED"/"DISABLED" 字符串映射为布尔值
  • 修复: 批量检查和批量刷新现在会返回 resourceDetailoverageCapability 给前端

UI & 交互

  • 新增: 注册页面全面重设计 — 使用 Card/Button/Input/Label/Progress/Badge/Switch 组件库
  • 新增: 订阅页面 Header 重设计 — 渐变色横幅风格
  • 新增: 两个页面均支持主题色切换和深色模式
  • 修复: 批量注册进度/历史切页后不再丢失(模块级 React setter refs)
  • 修复: Windows 开发终端中文乱码(dev 脚本前置 chcp 65001

账号注册

  • 新增: 账号注册功能(手动 / MoEmail / Outlook / 自建域名 模式)
  • 新增: 自建域名模式 — 用户提供域名(配置 catch-all 转发到 TempMail.Plus),系统自动生成随机英文人名邮箱前缀注册
  • 新增: 并发批量注册 — 可配置并发数(1-10 个任务同时执行)
  • 新增: 批量注册,支持自动导入、失败重试、每项状态跟踪
  • 新增: 手动模式步骤进度指示器
  • 新增: 所有模式注册成功后自动验活并导入账号
  • 新增: 会话级注册状态持久化(日志、阶段、历史切换页面后保留)
  • 新增: 手动模式支持中途取消注册
  • 新增: 注册页面完整 i18n 支持(中/英)

Bug 修复

  • 修复: 模型别名映射改为精确匹配,claude-opus-4.7 等动态模型不再被降级
  • 修复: 代理测试页加载真实 /v1/models 结果,避免选择不可用的静态别名
  • 修复: 未知模型 ID 原样透传,不再重映射到静态 Claude 默认值
  • 修复: 代理默认端点顺序改为 AmazonQ 优先,CodeWhisperer 备用
  • 修复: 反代流式请求通过应用级 HTTP 代理路由
  • 修复: CodeWhisperer 请求解析短别名为 ListAvailableModels 官方 ID
  • 修复: CodeWhisperer 请求包含 x-amzn-kiro-agent-mode
  • 修复: 解决注册页面白屏问题(TDZ 错误)
  • 修复: 解决手动模式注册后账号被重复导入
  • 修复: TLS 指纹升级到 chrome_144
  • 修复: 修正 tlsclientwrapper API 调用方式 — body 为第2参数、options 为第3参数

v1.6.0 (2026-5-12)

API Proxy Enhancement

  • New: Gemini v1beta API compatibility (/v1beta/models, /v1beta/models/{model}:generateContent, /v1beta/models/{model}:streamGenerateContent)
  • New: One-click client configuration supports 6 clients: Claude Code, OpenCode, Codex CLI, Gemini CLI, Hermes, OpenClaw
  • New: AmazonQ CLI endpoint isolation — amazonq-cli preferred endpoint uses SendMessageStreaming only, no fallback on failure
  • New: Smart account rotation — circuit breaker + sticky behavior + exponential backoff + probabilistic retry (inspired by Kiro Gateway architecture)
  • New: Error classification system — FATAL (request problem, return directly) vs RECOVERABLE (account problem, switch to next)
  • New: Proactive quota filtering — exhausted accounts excluded before selection, no more waiting for 429
  • New: onPoolEmpty lazy-load callback — proxy auto-loads accounts from store on first request (fixes Mac cold-start 503)
  • New: Cold-start account pool synchronous retry mechanism (5 retries, 2s/4s/6s/8s/10s intervals)
  • New: Model capability tags — model list displays Thinking/Caching/Effort capabilities (parsed from ListAvailableModels)
  • New: Hidden model support — Claude 3.7 Sonnet and other models not in official list but supported by backend
  • Improved: Request headers/UA/version fully match official Kiro IDE 0.12.155 capture (SDK 1.0.34, dynamic OS/Node fingerprint)
  • Improved: Request body adds agentContinuationId/agentTaskType fields, matching official protocol
  • Improved: All outbound requests routed through app-level HTTP proxy (including token refresh, SSO login, image download, etc.)
  • Improved: machineId empty value fallback (SHA-256 hash), token refresh random jitter (0-3s), IDC UA dynamic OS
  • Improved: K-Proxy MITM adds body machineId replacement + telemetry domain kiro.dev interception
  • Improved: Tool call token estimation covers all exits (tool name + parameter JSON)
  • Improved: 503 error message includes quota details (All accounts quota exhausted (X/Y exhausted, Z in cooldown))
  • Improved: Extended quota error detection patterns (402, 429, ThrottlingException, ServiceQuotaExceededException, rate limit, limit exceeded)
  • New: Streaming log toggle — off by default, shows detailed JSON for each streaming event when enabled (assistantResponseEvent/toolUseEvent, etc.)
  • Improved: Thinking mode simplified — removed legacy <thinking> tag detection, directly pass through native reasoningContentEvent as OpenAI reasoning_content / Claude thinking block
  • New: additionalModelRequestFields support — passes through thinking parameter from client to Kiro API

Account Switching

  • New: Kiro CLI switch support — writes credentials to ~/.local/share/kiro-cli/data.sqlite3 SQLite database
  • New: Settings allows selecting switch target: "Kiro IDE" / "Kiro CLI" / "Both (IDE + CLI)" (default: IDE)
  • New: Manual and auto switching both follow switchTarget setting
  • New: CLI switch uses Read-Merge-Write strategy, preserves unknown fields, cleans expired priority keys

Subscription & Overage

  • New: Batch overage settings page — "One-click Enable" (only disabled) and "Set All" (all subscribed) buttons
  • New: Account overage status overview table (subscription type, overage capability, overage status)
  • Fixed: overageStatus field detection — correctly maps REST API "ENABLED"/"DISABLED" strings to boolean values
  • Fixed: Batch check and batch refresh now return resourceDetail and overageCapability to frontend

UI & Interaction

  • New: Registration page full redesign — using Card/Button/Input/Label/Progress/Badge/Switch component library
  • New: Subscription page header redesign — gradient banner style
  • New: Both pages support theme color switching and dark mode
  • Fixed: Batch registration progress/history no longer lost after page navigation (module-level React setter refs)
  • Fixed: Windows dev terminal Chinese encoding issue (prepend chcp 65001 to dev script)

Account Registration

  • New: Account registration feature (Manual / MoEmail / Outlook / Custom Domain modes)
  • New: Custom domain mode — user provides domain (configure catch-all forwarding to TempMail.Plus), system auto-generates random English name email prefix for registration
  • New: Concurrent batch registration — configurable concurrency (1-10 tasks simultaneously)
  • New: Batch registration with auto-import, failure retry, per-item status tracking
  • New: Manual mode step progress indicator
  • New: All modes auto-verify and import account after successful registration
  • New: Session-level registration state persistence (logs, stages, history preserved after page navigation)
  • New: Manual mode supports mid-process cancellation
  • New: Registration page full i18n support (Chinese/English)

Bug Fixes

  • Fixed: Model alias mapping changed to exact match, claude-opus-4.7 and other dynamic models no longer downgraded
  • Fixed: Proxy test page loads real /v1/models results, avoids selecting unavailable static aliases
  • Fixed: Unknown model IDs passed through as-is, no longer remapped to static Claude defaults
  • Fixed: Proxy default endpoint order changed to AmazonQ first, CodeWhisperer fallback
  • Fixed: Proxy streaming requests routed through app-level HTTP proxy
  • Fixed: CodeWhisperer requests resolve short aliases to ListAvailableModels official IDs
  • Fixed: CodeWhisperer requests include x-amzn-kiro-agent-mode header
  • Fixed: Registration page blank screen issue (TDZ error)
  • Fixed: Manual mode registration accounts no longer imported twice
  • Fixed: TLS fingerprint upgraded to chrome_144
  • Fixed: Corrected tlsclientwrapper API call — body as 2nd parameter, options as 3rd parameter