N1nEmAn

Bbd2api — Development skill for Claude Code

Development community

Backboard.io → Claude/OpenAI API proxy with tool calling and thread pooling.

How to install Bbd2api

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

What Bbd2api does

Backboard.io → Claude/OpenAI API proxy with tool calling and thread pooling.

Alternatives in Development

  • Imagegen — Generate and edit images using OpenAI's Image API for projects 14.6k ★
  • Agy2api — 将 Antigravity 转换为 OpenAI 、GEMINI 和 Claude API 接口 5.3k ★
  • Gcli2api — 将 GeminiCLI 和 Antigravity 转换为 OpenAI 、GEMINI 和 Claude API 接口 4.6k ★

README

bbd2api

A lightweight Flask reverse proxy that bridges the **Claude Messages API** and **OpenAI Chat Completions API** to [backboard.io](https://app.backboard.io)'s assistant/thread API — with tool calling, thread pooling, and sub-5s response times.

Features

  • Dual API compatibility — /v1/messages (Claude) and /v1/chat/completions (OpenAI)
  • Tool calling — prompt-injection approach; compact format (~800 chars vs ~68KB for full schemas)
  • Multi-turn tool continuity — tool_result messages route back to the correct thread automatically
  • Thread pool — pre-warms N threads at startup; zero cold-start on new conversations
  • Global assistant — single assistant reused across all requests; eliminates per-request creation overhead
  • System prompt stability — strips dynamic tags ( etc.) before hashing to prevent cache misses
  • Model routing — auto-detects provider from model name (claude→anthropic, gpt→openai, gemini→google, etc.)

Quick Start

git clone https://github.com/N1nEmAn/bbd2api.git
cd bbd2api
pip install -r requirements.txt
cp .env.example .env
# edit .env and set BBD_API_KEY
python server.py

Configuration

Variable Default Description
BBD_API_KEY (required) API key(s) — comma-separated for multi-key rotation: key1,key2,key3
BBD_UPSTREAM https://app.backboard.io/api Upstream API base URL
HOST 0.0.0.0 Listen address
PORT 10088 Listen port
THREAD_TTL 1800 Thread cache TTL in seconds
DEBUG 1 Enable debug logging (0 to disable)

API Endpoints

Method Path Description
POST /v1/messages Claude Messages API (streaming + sync)
POST /v1/chat/completions OpenAI Chat Completions API
GET /v1/models List available models
GET /health Health check
GET /debug/state Show assistant/threa