Claude Code model router

Kiro2cc Proxy

Kiro 代理到 Claude Code 与 Codex,支持 Claude Opus 5.5/5/4.8/4.7/4.6、Sonnet 5.5/5/4.6、Haiku 5.5、GPT-5.6、Kimi K3,支持前缀缓存,并支持 SSE 流式输出。Kiro proxy for Claude Code and Codex. Supports Claude Opus 5.5/5/4.8/4.7/4.6, Sonnet 5.5/5/4.6, Haiku5.5,GPT-5.6, Kimi K3, Supports Prefix Cache, and SSE streaming.

Install

Install
brew install node

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/TsinHzl/kiro2cc-proxy.git

From the README

🌉 kiro2cc-proxy

将 Anthropic Claude API 请求转换为 Kiro API 请求的 Rust 代理服务

🇺🇸 English | 🇨🇳 中文
✅ 支持模型:Claude Sonnet 5.5 · Claude Sonnet 5 · Claude Sonnet 4.5 · Claude Sonnet 4.6 · Claude Opus 5.5 · Claude Opus 5 · Claude Opus 4.5 · Claude Opus 4.6 · Claude Opus 4.7 · Claude Opus 4.8 · Claude Haiku 5.5 · Claude Haiku 4.5 · DeepSeek 3.2 · GLM-5 · MiniMax M2.1 · MiniMax M2.5 · Qwen3-Coder · Kimi K3 · GPT-5.6 Sol · GPT-5.6 Terra · GPT-5.6 Luna

📖 快速导航

🚀 快速开始 ・ 🍎 macOS 部署 ・ 🪟 Windows 部署 ・ 🐧 Linux 部署 ・ 🔑 获取账号 ・ ⚙️ 配置详解 ・ 🤖 接入 Claude Code ・ 🧬 接入 Codex CLI ・ 🔌 API 端点 ・ 🗺️ 模型映射 ・ 🛡️ Admin 面板 ・ ❓ 常见问题 ・ ⚠️ 注意事项

⚠️ 免责声明

本项目仅供研究使用,Use at your own risk,使用本项目所导致的任何后果由使用人承担,与本项目无关。本项目与 AWS/KIRO/Anthropic/Claude 等官方无关,不代表官方立场。

✨ 功能特性

🚀 快速开始(新手必读)

这个项目是什么?

kiro2cc-proxy 是一个代理服务。它把标准的 Anthropic Claude API 请求转发给 Kiro(AWS 的 AI 编程工具),让你可以用 Claude Code使用Kiro账号的模型。
 一句话说明白,就是:它能把登录的Kiro账号上的模型代理到claude code上进行使用。否则的话就只能在Kiro IDE或者Kiro Cli上使用。

使用前提:

1. 拥有一个 Kiro 账号(通过 kiro.dev 注册,支持 Social 登录)
2. 从 Kiro IDE 或账号管理工具中导出账号(refreshToken 等信息)
3. > ⚠️ 【重要】国内用户:必须配置本地 HTTP/SOCKS5 代理(Clash/V2Ray 等),否则所有 Claude 模型请求均会返回 INVALID_MODEL_ID 错误,无法使用。

整体流程:

🍎 本地部署(macOS)

第一步:安装依赖

打开终端,安装 Node.js 和 Rust:

第二步:获取项目代码

(可选)安装 Shell 快捷命令

运行项目自带的一键安装脚本,以后可在任意终端直接使用 build_kiro2cc_proxy、build_and_run_kiro2cc_proxy 和 run_kiro2cc_proxy 命令,无需切换到项目目录:

安装后即可使用:
脚本仅适用于 macOS,自动修改 ~/.zshrc 和 ~/.bashrc(如存在),可重复运行(幂等)。

第三步:构建项目

脚本会依次构建 web-ui/admin-ui 前端、web-ui/user-ui 前端,最后编译 Rust 二进制。首次构建约需 5~15 分钟。

构建成功后输出:
后续除非更新了代码,否则无需重新构建。

第四步:启动服务

方式一:双击启动(推荐)

在 Finder 中找到项目目录,双击 run-local-service-mac.sh 文件。

方式二:终端启动

首次启动会进入配置向导:

- ⚠️【重要】本地 HTTP 代理端口:也就是开魔法的端口。注意:本地搭建的话,不配置将无法访问 Claude 模型,如Claude4.6和Claude4.7模型

- > ⚠️ 【重要】代理端口(国内用户必须配置)
常在终端上使用的命令如:export http_proxy=http://127.0.0.1:10089; export…
Read the full README on GitHub

Details

Language
Rust
License
MIT
Last updated
3 November 2026

FAQ

What is Kiro2cc Proxy?

Kiro 代理到 Claude Code 与 Codex,支持 Claude Opus 5.5/5/4.8/4.7/4.6、Sonnet 5.5/5/4.6、Haiku 5.5、GPT-5.6、Kimi K3,支持前缀缓存,并支持 SSE 流式输出。Kiro proxy for Claude Code and Codex. Supports Claude Opus 5.5/5/4.8/4.7/4.6, Sonnet 5.5/5/4.6, Haiku5.5,GPT-5.6, Kimi K3, Supports Prefix Cache, and SSE streaming. It is a model router for Claude Code, from TsinHzl/kiro2cc-proxy on GitHub.

How do I install Kiro2cc Proxy?

Run brew install node, then follow the setup in the README.

Is Kiro2cc Proxy popular?

TsinHzl/kiro2cc-proxy has 333 GitHub stars and 59 forks. It was last updated on 3 November 2026.

More model routers & proxies

Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.