본문으로 건너뛰기
모든 클라이언트
Local AI Gateway & Pool · 42k★1M Context · ZDR

Magpie

구독과 API 키를 하나의 로컬 게이트웨이로 묶는 오픈소스 도구(yetone/magpie). Chat·Responses·Anthropic 3개 프로토콜로 bf16.ai에 네이티브 연결.

기본 URL
https://api.bf16.ai/v1
프로토콜
openai-completions

대상 사용자
Magpie로 Claude Code·Codex·OpenCode·Cursor에 1M 무검열 모델과 장애 조치 풀을 연결하려는 개발자.

아키텍처 및 bf16.ai 연동 구조

Magpie local AI gateway (:3425) connected natively to api.bf16.ai across Chat Completions, Responses, and Anthropic Messages
Register bf16.ai once in Magpie with Chat, Responses, and Anthropic base URLs so Claude Code, Codex, OpenCode, and Cursor hit api.bf16.ai natively with zero protocol translation overhead.

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.

명령어에는 $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. 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. 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
Magpie — Providers → Add Provider (Custom)
설정 필드 인스펙터
Providers / Add Custom Provider · or `magpie provider add bf16`

핵심 설정값 대조표

Provider ID / Name
bf16
Chat Base URL (OpenAI)
https://api.bf16.ai/v1
Responses Base URL
https://api.bf16.ai/v1

Optional — lets Codex hit bf16 /v1/responses natively.

Anthropic Base URL
https://api.bf16.ai

Optional — lets Claude Code hit bf16 /v1/messages natively without translation.

API Key
sk-bf16-v1-••••••••••••
Magpie prefixes discovered IDs with your provider id (`bf16/`), so DeepSeek V4.1 Flash appears as `bf16/deepseek/deepseek-v4.1-flash-uncensored` and the smart router as `bf16/bf16/auto`.

역할별 권장 모델 구성

복잡한 설계는 플래그십 모델로, 병렬 서브에이전트와 스크린샷은 Flash 모델로 분리하세요.

역할모델 ID권장 사유USD / 1M 토큰
Fast Coding, Claude Code Subagents & Visionbf16/deepseek/deepseek-v4.1-flash-uncensoredHigh-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 Debuggingbf16/zai-org/glm-5.3-uncensoredNative 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 Fallbackbf16/bf16/autoAutomatically 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.

자주 발생하는 오류

증상
연결 테스트 시 404 또는 인증 오류가 발생합니다.
원인
엔드포인트 URL 끝에 /v1 또는 /chat/completions 경로가 잘못 붙었습니다.
해결
이 페이지에 표시된 정확한 Base URL을 복사해 입력해 주세요.

아직 설치하지 않으셨나요?

curl -fsSL https://usemagpie.ai/install.sh | sh
공식 문서