neuron-explorer
Qwen3.5‑4B 전용 조향형 뉴런 탐색기, 모든 MLP 뉴런을 밀어 결과를 보관·탐색
Proxy CodeBuddy with OpenAI-compatible and Anthropic-compatible APIs for Codex, Claude Code, and standard SDK clients.
저장소 README에서 가져옴
README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
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.
This project is a substantial refactor of Sliverkiss/CodeBuddy2api, with a redesigned admin console, multi-protocol API support, and flexible storage backends.
The following command starts a single-instance deployment with SQLite:README 전문 보기 ↗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, with a redesigned admin console, multi-protocol API support, and flexible storage backends.
The following command starts a single-instance deployment with SQLite:
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.
Electron builds ship with every release — macOS (Apple silicon and Intel), Windows, and Linux (x86_64 and arm64):
The app bundles the same gateway: it starts it on 127.0.0.1:8001 and opens the console in a native window. Data stays in Electron's userData directory, so there is nothing to configure. The macOS builds are signed and notarized, so the dmg opens on a double-click; on Windows, dismiss the SmartScreen prompt with Run anyway.
The gateway exposes these endpoints under /v1:
POST /v1/chat/completions — OpenAI Chat CompletionsPOST /v1/responses — OpenAI ResponsesPOST /v1/messages — Anthropic MessagesGET /v1/models — models available to the requesting access keyAuthenticate inference requests with either header:
Authorization: Bearer <access-key>
x-api-key: <access-key>
Example OpenAI-compatible request:
curl http://127.0.0.1:8001/v1/chat/completions \
-H 'Authorization: Bearer <access-key>' \
-H 'Content-Type: application/json' \
-d '{
"model": "<model>",
"messages": [{"role": "user", "content": "Hello"}]
}'
file — zero-configuration storage for a single instancesqlite — encrypted SQLite storage for a single instancepg — PostgreSQL storage for multiple instancesDatabase backends require CODEBUDDY_STORAGE_ENCRYPTION_KEY. Set DATABASE_URL for PostgreSQL or CODEBUDDY_STORAGE_SQLITE_PATH for SQLite.
Switching an existing file deployment to a database backend imports only config, admin auth, access keys, debug settings, and credentials. Usage events and debug traces are left behind, so export what you need from the console before switching.
/v1/* is unauthenticated until an access key exists. With no access key stored, inference requests are allowed through by design so a fresh instance needs no setup. Create an access key in the console before exposing the port beyond localhost.file backend stores credentials and access keys as plain JSON with 0600 permissions and ignores CODEBUDDY_STORAGE_ENCRYPTION_KEY entirely, so setting the key on a file deployment changes nothing. Move to sqlite or pg to get encryption — those backends refuse to start without the key.CODEBUDDY_STORAGE_ENCRYPTION_KEY and the storage-crypto/kdf-salt row stored alongside it. A partial restore — passphrase without the database, or a namespace-by-namespace export that skips that row — leaves every encrypted credential and access key unreadable even with the right passphrase.aes-256-gcm:v2, which older releases cannot decrypt; they fall back to the wrong key and fail on every credential and access key. The admin console still loads because admin auth is not encrypted, so a rollback looks healthy while /v1/* is broken. Roll forward, or restore the pre-upgrade database backup.See LICENSE.