BYOKEY banner
AprilNEA AprilNEA

BYOKEY

AI community

Description

Turn AI subscriptions into standard API endpoints. OpenAI & Anthropic compatible gateway — for Amp Code, Cursor, Factory CLI, and more.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

English | 简体中文

BYOKEY

**Bring Your Own Keys**
Turn AI subscriptions into standard API endpoints.
Expose any provider as OpenAI- or Anthropic-compatible API — locally or in the cloud.

[![ci](https://img.shields.io/github/actions/workflow/status/AprilNEA/BYOKEY/ci.yml?style=flat-square&labelColor=000&color=444&label=ci)](https://github.com/AprilNEA/BYOKEY/actions/workflows/ci.yml)   [![crates.io](https://img.shields.io/crates/v/byokey?style=flat-square&labelColor=000&color=444)](https://crates.io/crates/byokey)   [![license](https://img.shields.io/badge/license-MIT%20%7C%20Apache--2.0-444?style=flat-square&labelColor=000)](LICENSE-MIT)   [![rust](https://img.shields.io/badge/rust-1.85+-444?style=flat-square&labelColor=000&logo=rust&logoColor=fff)](https://www.rust-lang.org)

BYOKEY screenshot

Subscriptions                                     Tools

Claude Pro  ─┐                              ┌──  Amp Code
OpenAI Plus ─┼──  byokey serve  ────────────┼──  Cursor · Windsurf
Copilot     ─┘                              ├──  Factory CLI (Droid)
                                            └──  any OpenAI / Anthropic client

Features

  • Multi-format API — OpenAI and Anthropic compatible endpoints; just change the base URL
  • OAuth login flows — PKCE, device-code, and auth-code flows handled automatically
  • Token persistence — SQLite at ~/.byokey/tokens.db; survives restarts
  • API key passthrough — Set raw keys in config to skip OAuth entirely
  • Deploy anywhere — Run locally as a CLI, or deploy as a shared AI gateway
  • **