npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

kiro-claude-proxy

v1.3.0

Published

Proxy server to use Kiro's Claude models with Claude Code CLI

Readme

Kiro Claude Proxy

A proxy server that exposes an Anthropic-compatible API backed by Kiro's AWS CodeWhisperer, letting you use Claude models with Claude Code CLI or any Anthropic-compatible client.

How It Works

┌──────────────────┐     ┌─────────────────────┐     ┌────────────────────────────┐
│   Claude Code    │────▶│  This Proxy Server  │────▶│  AWS CodeWhisperer         │
│   (Anthropic     │     │  (Anthropic → AWS   │     │  (codewhisperer.           │
│    API format)   │     │   CodeWhisperer)    │     │   us-east-1.amazonaws.com) │
└──────────────────┘     └─────────────────────┘     └────────────────────────────┘
  1. Receives requests in Anthropic Messages API format
  2. Uses OAuth tokens from Kiro CLI database
  3. Transforms to AWS CodeWhisperer format
  4. Sends to AWS CodeWhisperer API
  5. Converts responses back to Anthropic format with full streaming support

Prerequisites

  • Node.js 18 or later
  • Kiro CLI installed and authenticated (kiro auth)

Installation

Option 1: npm (Recommended)

# Run directly with npx (no install needed)
npx kiro-claude-proxy start

# Or install globally
npm install -g kiro-claude-proxy
kiro-claude-proxy start

Option 2: Clone Repository

git clone <repository-url>
cd kiro-claude-proxy
npm install
npm start

Quick Start

1. Authenticate Kiro CLI

Make sure Kiro CLI is installed and authenticated:

kiro auth

2. Start the Proxy Server

# If installed via npm
kiro-claude-proxy start

# If using npx
npx kiro-claude-proxy start

# If cloned locally
npm start

The server runs on http://localhost:8080 by default.

3. Verify It's Working

# Health check
curl http://localhost:8080/health

# List available models
curl http://localhost:8080/v1/models

Using with Claude Code CLI

Configure Claude Code

Create or edit the Claude Code settings file:

macOS: ~/.claude/settings.json Linux: ~/.claude/settings.json Windows: %USERPROFILE%\.claude\settings.json

Add this configuration:

{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "dummy",
    "ANTHROPIC_BASE_URL": "http://localhost:8080",
    "ANTHROPIC_MODEL": "claude-opus-4-5",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-4-5",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4-5",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-haiku-4-5",
    "CLAUDE_CODE_SUBAGENT_MODEL": "claude-sonnet-4-5"
  }
}

Load Environment Variables

Add the proxy settings to your shell profile:

macOS / Linux:

echo 'export ANTHROPIC_BASE_URL="http://localhost:8080"' >> ~/.zshrc
echo 'export ANTHROPIC_API_KEY="dummy"' >> ~/.zshrc
source ~/.zshrc

For Bash users, replace ~/.zshrc with ~/.bashrc

Windows (PowerShell):

Add-Content $PROFILE "`n`$env:ANTHROPIC_BASE_URL = 'http://localhost:8080'"
Add-Content $PROFILE "`$env:ANTHROPIC_API_KEY = 'dummy'"
. $PROFILE

Windows (Command Prompt):

setx ANTHROPIC_BASE_URL "http://localhost:8080"
setx ANTHROPIC_API_KEY "dummy"

Restart your terminal for changes to take effect.

Run Claude Code

# Make sure the proxy is running first
kiro-claude-proxy start

# In another terminal, run Claude Code
claude

Available Models

| Model ID | Description | |----------|-------------| | claude-opus-4-5 | Claude Opus 4.5 | | claude-sonnet-4-5 | Claude Sonnet 4.5 | | claude-sonnet-4 | Claude Sonnet 4 | | claude-haiku-4-5 | Claude Haiku 4.5 | | auto | Let Kiro choose the best model |


API Endpoints

| Endpoint | Method | Description | |----------|--------|-------------| | /health | GET | Health check | | /v1/messages | POST | Anthropic Messages API | | /v1/models | GET | List available models |


Troubleshooting

"Kiro CLI not authenticated"

Make sure Kiro CLI is installed and authenticated:

kiro auth

"Kiro CLI database not accessible"

Ensure Kiro CLI is properly installed and has created its database. Try running any Kiro command first:

kiro --help

401 Authentication Errors

Your Kiro authentication may have expired. Re-authenticate:

kiro auth

Development

Running in Debug Mode

kiro-claude-proxy start --debug

Environment Variables

  • PORT - Server port (default: 8080)
  • DEBUG - Enable debug logging (set to 'true')

License

MIT


Credits

This project uses Kiro CLI's authentication system to access AWS CodeWhisperer models through an Anthropic-compatible API interface.