Claude Code model router

Opencode Proxy API

Use OpenCode / Claude Code For Free

Install

From source
git clone https://github.com/sionex-code/opencode-proxy-api.git

From the README

Kiro Agent Proxy 🚀
  A robust local proxy bridging OpenAI-compatible editors with the native Kiro AWS Event Stream protocol.

📖 Overview

The Kiro Agent Proxy enables advanced AI IDEs (like Opencode) that expect standard OpenAI-compatible API responses to communicate seamlessly with Kiro's backend infrastructure.

It accomplishes this by translating standard JSON-based chat completions into AWS Binary Event Streams, injecting custom tool definitions, and converting the resulting streams back into OpenAI-compatible Server-Sent Events (SSE).

Additionally, it features a Web Dashboard for managing multiple Kiro accounts, handling OAuth PKCE flows, dynamic proxy controlling, and automatic token refreshing.

✨ Features

- Multi-Account Dashboard: Easily manage and switch between different Kiro authenticated profiles.
- Dynamic Active Switching: The proxy automatically routes requests through whichever account is currently marked "Active" in the dashboard.
- Auto-Refreshing Tokens: Background monitoring of token lifespans. Automatically hits the /refreshToken endpoint when an active token is within 5 minutes of expiring.
- Detailed Quota Tracking: Real-time visibility into usage metrics, properly aggregating standard allocations and Free Trial limits.
- Native Tool Translation: Transparently maps generic OpenAI tool calls into the Kiro toolSpec schema.
- Subprocess Management: Start and stop the proxy server directly from the web interface without touching the terminal.

📂 Project Structure

🚀 Usage Guide

1. Installation

Clone the repository and install the required dependencies:

2. Start the Dashboard

Run the main management script. This acts as both your OAuth handler and your proxy controller.

3. Add an Account
1. Open http://localhost:3128 in your browser.
2.…
Read the full README on GitHub

Details

Language
Python
License
MIT
Last updated
29 April 2026
Topics
claude-codeopencode

FAQ

What is Opencode Proxy API?

Use OpenCode / Claude Code For Free It is a model router for Claude Code, from sionex-code/opencode-proxy-api on GitHub.

How do I install Opencode Proxy API?

Clone sionex-code/opencode-proxy-api from GitHub and follow the setup steps in its README.

Is Opencode Proxy API popular?

sionex-code/opencode-proxy-api has 53 GitHub stars and 13 forks. It was last updated on 29 April 2026.

More model routers & proxies

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