Status: [UNTESTED]
Endpoints found:
http://127.0.0.1:8001/v1/chat/completions
Source: https://github.com/orangeboyChen/codebuddy2api
# CodeBuddy2API
[](https://github.com/orangeboyChen/codebuddy2api/actions/workflows/ci-main.yml)
[](https://codecov.io/gh/orangeboyChen/codebuddy2api)
Proxy CodeBuddy with OpenAI-compatible and Anthropic-compatible APIs for Codex, Claude Code, and standard SDK clients.
CodeBuddy2API is a self-hosted gateway with a web-based admin console for managing credentials, access keys, usage, account status, debug traces, and runtime settings. The console is a progressive web app, so a browser can install it as a desktop or home-screen app.
This project is a substantial refactor of [Sliverkiss/CodeBuddy2api](https://github.com/Sliverkiss/CodeBuddy2api), with a redesigned admin console, multi-protocol API support, and flexible storage backends.
## Quick Start
The following command starts a single-instance deployment with SQLite:
```bash
docker run -d \
--name codebuddy2api \
--restart unless-stopped \
-p 8001:8001 \
-v codebuddy2api-data:/app/.codebuddy_data \
-e CODEBUDDY_STORAGE_BACKEND=sqlite \
-e CODEBUDDY_STORAGE_ENCRYPTION_KEY='replace-with-a-long-random-secret' \
-e CODEBUDDY_STORAGE_IMPORT_LEGACY_FILES=false \
ghcr.io/orangeboychen/codebuddy2api:latest
```
Open `http://127.0.0.1:8001/dashboard`, complete CodeBuddy authentication or add a credential manually, then create an access key for your clients.
## Desktop App
Electron builds ship with every release — macOS (Apple silicon and Intel), Windows, and Linux (x86_64 and arm64):
**[Download the latest release](https://github.com/orangeboyChen/codebuddy2api/releases/latest)**
The app bundles the same gateway: it starts it on `127.0.0.1:8001` and opens the console in a native window.