kiro2cc  by bestK

Go CLI tool for Kiro Auth Token management

Created 2 months ago
295 stars

Top 89.8% on SourcePulse

GitHubView on GitHub
Project Summary

This Go-based command-line tool, kiro2cc, is designed for developers and researchers working with Anthropic's Claude models. It simplifies the management of Kiro authentication tokens, enabling token refresh, environment variable export for seamless integration with other tools, and the setup of a local HTTP proxy for the Anthropic API.

How It Works

kiro2cc operates by reading Kiro authentication tokens from a specified JSON file in the user's .aws/sso/cache/ directory. It leverages refresh tokens to obtain new access tokens and can then export these credentials as environment variables or use them to power a local HTTP server that acts as a proxy to the Anthropic API. This proxy approach allows local applications to interact with Claude models without direct configuration of API endpoints or authentication headers.

Quick Start & Requirements

  • Install/Run: Compile from source using go build -o kiro2cc main.go. Pre-built binaries are available via GitHub Releases.
  • Prerequisites: Go toolchain for building.
  • Setup: Compilation is straightforward. Running the tool requires a correctly formatted Kiro token file (kiro2cc-token.json).
  • Docs: GitHub Releases for binaries.

Highlighted Details

  • Manages Kiro authentication tokens, including refreshing access tokens.
  • Exports environment variables (ANTHROPIC_BASE_URL, ANTHROPIC_API_KEY) for easy integration.
  • Provides an HTTP proxy server for the Anthropic API, defaulting to port 8080.
  • Supports cross-platform usage (Windows, Linux, macOS) with appropriate environment variable export commands.

Maintenance & Community

The project utilizes GitHub Actions for automated builds and testing on code pushes and pull requests. Release artifacts are automatically generated for major operating systems.

Licensing & Compatibility

The project's license is not explicitly stated in the README. Compatibility for commercial use or closed-source linking would depend on the specific license chosen.

Limitations & Caveats

The README does not specify the license, which is crucial for determining commercial usability. The tool relies on a specific file path and format for Kiro tokens, which might require manual setup or verification.

Health Check
Last Commit

4 weeks ago

Responsiveness

Inactive

Pull Requests (30d)
1
Issues (30d)
4
Star History
33 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.