KiroaaS (Kiro as a Service) Your Gateway to Kiro. Expose Kiro's models to any application via standard APIs. Power your tools with Kiro's intelligence.
  • Python 86.5%
  • TypeScript 11.1%
  • Rust 2%
  • PowerShell 0.1%
  • JavaScript 0.1%
Find a file
Chihow 2945c8cdeb
feat: fix account credits calculation and display user info (#18)
* dev under windows

* feat: fix account quota calculation and display user info

    - Backend: Add isEmailRequired flag to GetUsageLimits request to retrieve user email from Kiro API
    - Backend: Fix quota calculation to sum trial + free credits (not just free)
    - Backend: Return separate trial/free quota fields for detailed breakdown
    - Frontend: Update AccountCard to display user info
    - Frontend: Update UsageCard to calculate total credits from trial + free + bonus
    - Frontend: Add trial and free quota cards with color-coded display
    - i18n: Add 'quota' translation key for all 8 languages

---------

Co-authored-by: Chihow <yaoqihao@teemo.group>
2026-03-23 18:46:19 +08:00
.github Update FUNDING.yml 2026-02-25 15:56:20 +08:00
docs Refactor code structure for improved readability and maintainability 2026-03-10 23:23:53 +08:00
public feat: update auto-launch initialization to accept boolean parameter in main.rs 2026-03-23 02:35:40 +08:00
python-backend feat: fix account credits calculation and display user info (#18) 2026-03-23 18:46:19 +08:00
releases feat: update version to 1.1.3 in package.json, latest.json, Cargo.toml, and tauri.conf.json 2026-03-23 01:36:01 +08:00
src feat: fix account credits calculation and display user info (#18) 2026-03-23 18:46:19 +08:00
src-tauri feat: fix account credits calculation and display user info (#18) 2026-03-23 18:46:19 +08:00
.env.example init 2026-02-03 21:56:13 +08:00
.gitignore feat: update build process and configuration for kiro-gateway, add release notes 2026-02-11 01:42:12 +08:00
app-screenshot.webp feat: add application version retrieval and update check functionality 2026-02-05 17:07:59 +08:00
build-macos.sh feat: add xattr shim for macOS 15+ compatibility in build script 2026-03-22 21:51:34 +08:00
build-windows.ps1 feat: add Windows build support 2026-02-17 22:12:55 +08:00
components.json init 2026-02-03 21:56:13 +08:00
index.html feat: add Tauri API wrapper functions and utility for class name merging 2026-02-04 02:30:04 +08:00
latest.json.example feat: implement auto-update functionality and update repository links 2026-02-04 19:44:54 +08:00
LICENSE init 2026-02-03 21:56:13 +08:00
package-lock.json feat: update version to 1.1.3 in package-lock.json and Cargo.toml; refactor auto-launch initialization in main.rs 2026-03-23 02:06:42 +08:00
package.json feat: update version to 1.1.3 in package.json, latest.json, Cargo.toml, and tauri.conf.json 2026-03-23 01:36:01 +08:00
postcss.config.js init 2026-02-03 21:56:13 +08:00
README.md Refactor code structure for improved readability and maintainability 2026-03-10 23:23:53 +08:00
tailwind.config.js init 2026-02-03 21:56:13 +08:00
tsconfig.json init 2026-02-03 21:56:13 +08:00
tsconfig.node.json init 2026-02-03 21:56:13 +08:00
vite.config.ts init 2026-02-03 21:56:13 +08:00

KiroaaS Logo

KiroaaS

Kiro as a Service

Turn Kiro into an OpenAI-compatible and Anthropic-compatible API with one click

Powered by https://github.com/jwadow/kiro-gateway

🇺🇸 English • 🇨🇳 中文🇯🇵 日本語🇰🇷 한국어🇷🇺 Русский🇪🇸 Español🇧🇷 Português🇮🇩 Indonesia

License: AGPL-3.0 Platform PRs Welcome

KiroaaS Screenshot


❤️ Sponsor

ai18n Thanks to ai18n for sponsoring this project! ai18n is a reliable and efficient API relay service provider, offering relay Claude models for OpenClaw, Claude Code, Codex, Gemini, and more.

📢 Notice: The next version will fix compatibility with Claude Code v2.1.69+, which sends tool_reference content blocks inside tool_result messages when using the ToolSearch deferred tool mechanism. Fixed

KiroaaS (Kiro as a Service) is a desktop gateway that exposes Kiro's AI models through a local OpenAI-compatible and Anthropic-compatible API. Use your favorite AI tools, libraries, and applications with Kiro - no code changes required.

Features

Feature Description
🔌 OpenAI-compatible API /v1/chat/completions endpoint for OpenAI SDK
🔌 Anthropic-compatible API /v1/messages endpoint for Anthropic SDK
🌐 VPN/Proxy Support HTTP/SOCKS5 proxy for restricted networks
🧠 Extended Thinking Reasoning support exclusive to our project
👁️ Vision Support Send images to model
🛠️ Tool Calling Supports function calling
💬 Built-in Chat Test your setup with the integrated chat interface
📡 Streaming Full SSE streaming support
🔄 Retry Logic Automatic retries on errors (403, 429, 5xx)
🔐 Smart Token Management Automatic refresh before expiration
🌍 Multi-language UI English, 中文, 日本語, 한국어, Русский, Español, Português, Indonesia
🔗 CC Switch Integration One-click import to CC Switch for Claude Code
🔄 Auto Update Built-in update checker keeps you on the latest version

📦 Installation

Download

Download the latest release from GitHub Releases:

Platform Architecture Download
macOS Apple Silicon (M1/M2/M3) KiroaaS_aarch64.dmg
macOS Intel KiroaaS_x64.dmg
Windows x64 KiroaaS_x64-setup.exe

Linux support coming soon.

Build from Source

# Clone the repo
git clone https://github.com/hnewcity/KiroaaS.git
cd KiroaaS

# Install dependencies
npm install
cd python-backend && pip install -r requirements.txt && cd ..

# Run in dev mode
npm run tauri:dev

# Or build for production
npm run tauri:build

🚀 Quick Start

  1. Launch KiroaaS
  2. Configure your Kiro credentials (auto-detected from Kiro CLI if available)
  3. Generate a Proxy API Key (or use one provided by your administrator)
  4. Start the server
  5. Use http://localhost:8000 as your OpenAI/Anthropic API endpoint

Example: cURL

curl http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_PROXY_API_KEY" \
  -d '{
    "model": "claude-sonnet-4-5",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Example: Python (OpenAI SDK)

from openai import OpenAI

client = OpenAI(
    base_url="http://localhost:8000/v1",
    api_key="YOUR_PROXY_API_KEY"
)

response = client.chat.completions.create(
    model="claude-sonnet-4-5",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)

Example: JavaScript (OpenAI SDK)

import OpenAI from 'openai';

const client = new OpenAI({
  baseURL: 'http://localhost:8000/v1',
  apiKey: 'YOUR_PROXY_API_KEY',
});

const response = await client.chat.completions.create({
  model: 'claude-sonnet-4-5',
  messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(response.choices[0].message.content);

🔌 Works With

KiroaaS is compatible with popular AI tools and libraries:

Category Tools
Python OpenAI SDK, Anthropic SDK, LangChain, LlamaIndex
JavaScript OpenAI Node.js SDK, Anthropic SDK, Vercel AI SDK
IDE Extensions Cursor, Continue, Cline, Claude Code
Chat Apps ChatGPT-Next-Web, LobeChat, Open WebUI

⚙️ Configuration

Authentication Methods

KiroaaS supports multiple authentication methods:

Method Description
Kiro CLI Database Auto-detect credentials from Kiro CLI (recommended)
Credentials File Use a JSON credentials file
Refresh Token Manually enter your refresh token

Server Settings

Option Default Description
Host 127.0.0.1 Server bind address
Port 8000 Server port
Proxy API Key - Required key for API authentication

Advanced Settings

Option Description
Show Thinking Process Toggle whether thinking/reasoning output is exposed through the compatible APIs
VPN/Proxy URL HTTP/SOCKS5 proxy for network restrictions
First Token Timeout Timeout for initial response (seconds)
Streaming Read Timeout Timeout for streaming responses (seconds)

🛠️ Tech Stack

Layer Technology
Frontend React + TypeScript + Tailwind CSS
Desktop Tauri (Rust)
Backend Python + FastAPI

🤝 Contributing

Contributions are welcome! Feel free to:

  • 🐛 Report bugs via GitHub Issues
  • 💡 Suggest features
  • 🔧 Submit pull requests
  • 🌍 Help with translations

📄 License

AGPL-3.0 © KiroaaS Contributors