Magpie
複数のサブスクと API キーを 1 つのローカルゲートウェイに集約するオープンソースツール(yetone/magpie)。Chat・Responses・Anthropic の 3 プロトコルで bf16.ai にネイティブ接続。
https://api.bf16.ai/v1openai-completions対象ユーザー
Magpie 経由で Claude Code・Codex・OpenCode・Cursor に 1M 無検閲モデルを配信したい開発者。
アーキテクチャと bf16.ai 連携の利点
Magpie (yetone/magpie, 42k+ ★) unifies all of your coding subscriptions and pay-as-you-go API keys behind a single local app and localhost gateway (:3425), letting you assign any model to Claude Code, Codex, OpenCode, Cursor, or Hermes from one list — with routing groups and automatic failover when a subscription quota runs dry.
Because api.bf16.ai speaks all three wire protocols natively (OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages) and publishes structured `/v1/models` capability metadata, adding bf16.ai as a custom provider in Magpie immediately discovers all live 1M-context uncensored models and passes `magpie provider test bf16` across every endpoint.
セットアップ
サインインしてAPIキーを自動入力 →コマンドには $BF16_API_KEY と表示されています。サインインすると自分のキーが自動入力されます。
One-Command Magpie 3-Protocol Provider Setup & Verification
Registers bf16 in Magpie with native Chat, Responses, and Anthropic endpoints, auto-fetches all live models from api.bf16.ai/v1/models, and runs Magpie’s built-in 3-protocol health check.
export BF16_API_KEY="sk-bf16-v1-..."
magpie provider add bf16 \
url=https://api.bf16.ai/v1 \
responses=https://api.bf16.ai/v1 \
anthropic=https://api.bf16.ai \
key="$BF16_API_KEY"
magpie provider test bf16- 1
bf16.ai API キーを設定する
Register bf16 once with https://api.bf16.ai/v1 for Chat/Responses and https://api.bf16.ai for Anthropic Messages. Magpie automatically queries https://api.bf16.ai/v1/models and exposes all active 1M-context models.
magpie provider add bf16 \ url=https://api.bf16.ai/v1 \ responses=https://api.bf16.ai/v1 \ anthropic=https://api.bf16.ai \ key="$BF16_API_KEY" - 2
bf16.ai エンドポイントと 1M 無検閲モデルを接続する
ページ上部の Base URL と API キーを設定するだけで、1M コンテキスト・ゼロ保持(ZDR)の全モデルが利用できます。
magpie provider test bf16 magpie claude bf16/zai-org/glm-5.3-uncensored magpie codex bf16/deepseek/deepseek-v4.1-flash-uncensored
入力パラメータ早見表
bf16https://api.bf16.ai/v1https://api.bf16.ai/v1Optional — lets Codex hit bf16 /v1/responses natively.
https://api.bf16.aiOptional — lets Claude Code hit bf16 /v1/messages natively without translation.
sk-bf16-v1-••••••••••••用途別おすすめモデル構成
設計・監査には Flagship モデル、並列サブタスクや画面認識には Flash モデルを組み合わせます。
| 役割 | モデル ID | 選定理由 | USD / 1M トークン |
|---|---|---|---|
| Fast Coding, Claude Code Subagents & Vision | bf16/deepseek/deepseek-v4.1-flash-uncensored | High-speed 1M-context coding and screenshot analysis — great as a pay-as-you-go fallback behind subscription pools. | $0.26 in / $0.045 cached / $1.00 out |
| Flagship Engineering & Deep Debugging | bf16/zai-org/glm-5.3-uncensored | Native Anthropic Messages + OpenAI Responses support for complex Claude Code and Codex refactoring sessions. | $1.35 in / $0.25 cached / $4.20 out |
| Zero-Markup Smart Router Fallback | bf16/bf16/auto | Automatically routes to the healthiest uncensored endpoint inside Magpie failover groups. | Model rate · $0 router fee |
正しく動いているか確認する方法
- テスト送信後、bf16.ai ダッシュボードのリクエストログにリアルタイムで記録されます。
- curl https://api.bf16.ai/v1/models -H "Authorization: Bearer $BF16_API_KEY"
本番運用の安全策と予算上限
- Bind all three URLs (`url`, `responses`, `anthropic`) so Claude Code and Codex use bf16.ai natively instead of translating through Chat Completions.
- Create a dedicated bf16.ai API key with a daily USD cap specifically for your Magpie failover pool so runaway agent loops cannot exhaust your balance.