百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
K

Kiro-Go

> 编程语言
开源

将 Kiro 帐户转换为 OpenAI/Anthropic API。具有多帐户池化、流式传输、自动令牌刷新和 Web 管理面板等功能。

1.0K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

将 Kiro 帐户转换为 OpenAI/Anthropic API。具有多帐户池化、流式传输、自动令牌刷新和 Web 管理面板等功能。

Kiro-Go

Convert Kiro accounts to OpenAI / Anthropic compatible API service.

English | 中文 | Tiếng Việt

If this project helps you, a Star would mean a lot.

Features

  • Anthropic /v1/messages, OpenAI /v1/chat/completions & OpenAI /v1/responses
  • Multi-account pool with round-robin load balancing
  • Auto token refresh, SSE streaming, Web admin panel
  • Multiple auth: AWS Builder ID, IAM Identity Center (Enterprise SSO), Microsoft Enterprise SSO, SSO Token, local cache, credentials JSON, Kiro API Key
  • Usage tracking, account import/export, i18n (CN / EN / VI)
  • Support configuring outbound proxy (SOCKS5 / HTTP)

Quick Start

Docker Compose (Recommended)

git clone https://github.com/Quorinex/Kiro-Go.git
cd Kiro-Go
mkdir -p data
docker-compose up -d

Docker Run

docker run -d \
  --name kiro-go \
  -p 8080:8080 \
  -e ADMIN_PASSWORD=your_secure_password \
  -v /path/to/data:/app/data \
  --restart unless-stopped \
  ghcr.io/quorinex/kiro-go:latest

Build from Source

git clone https://github.com/Quorinex/Kiro-Go.git
cd Kiro-Go
go build -o kiro-go .
./kiro-go

Deploy on Zeabur

The repo already includes a Dockerfile, so it builds and runs on Zeabur out of the box.

Option 1: Dashboard (one-click)

  1. Fork this repo to your GitHub account.
  2. In Zeabur, create a new service and choose Deploy from GitHub, then select your fork.
  3. Zeabur auto-detects the Dockerfile and builds the image.
  4. In the Networking tab, expose port 8080 and bind a domain.
  5. In the Variables tab, set at least ADMIN_PASSWORD (admin panel password).
  6. Mount a Volume at /app/data if you want accounts / config to survive redeploys.

Option 2: CLI

npm i -g zeabur
zeabur auth login
zeabur deploy

Run the commands from the project root. The CLI writes .zeabur/context.json to remember the target project / service — it contains personal IDs, so don't commit it.

Once the service is up, open https:///admin to log in.

Config is auto-created at data/config.json. Mount /app/data for persistence. The default admin password is changeme — override it via the ADMIN_PASSWORD env var or change it in the admin panel before going to production.

Usage

Open http://localhost:8080/admin, log in, add accounts, then call the API:

# Claude
curl http://localhost:8080/v1/messages \
  -H "Content-Type: application/json" \
  -H "anthropic-version: 2023-06-01" \
  -d '{"model":"claude-sonnet-4.5","max_tokens":1024,"messages":[{"role":"user","content":"Hello!"}]}'

# OpenAI
curl http://localhost:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer any" \
  -d '{"model":"gpt-4o","messages":[{"role":"user","content":"Hello!"}]}'

Add a Kiro API Key account

In the admin panel, choose API Key when adding an account and paste ksk_... (or ksk_...|region).

You can also import via the credentials API:

curl -X POST http://localhost:8080/admin/api/auth/credentials \
  -H "Content-Type: application/json" \
  -H "Cookie: " \
  -d '{"kiroApiKey":"ksk_your_key|us-east-1","authMethod":"api_key","nickname":"cli-key"}'

API Key accounts call the Kiro CLI runtime (https://runtime.{region}.kiro.dev/) with tokentype: API_KEY. They skip OAuth refresh and do not use profileArn.

Thinking Mode

Append a suffix (default -thinking) to the model name, e.g. claude-sonnet-4.5-thinking. Claude-compatible requests that include a top-level thinking config such as {"type":"enabled","budget_tokens":2048} or {"type":"adaptive"} also enable thinking mode automatically. Configure output format in the admin panel under Settings - Thinking Mode.

Outbound Proxy

For users in restricted network regions, configure an outbound proxy in the admin panel under Settings - Outbound Proxy Settings. Supports SOCKS5 and HTTP proxies.

The setting takes effect immediately without restarting.

Environment Variables

Variable Description Default
CONFIG_PATH Config file path data/config.json
ADMIN_PASSWORD Admin panel password (overrides config) -

Contributing

Friendly discussion is welcome. If you run into issues, try asking Claude Code, Codex, or similar tools for help first — most problems can be solved that way. PRs are even better.

Friend Links

  • LINUX DO

Disclaimer

For educational and research purposes only. Not affiliated with Amazon, AWS, or Kiro. Users are responsible for complying with applicable terms of service and laws. Use at your own risk.

License

MIT

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Gokirokiro2api

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言