본문으로 건너뛰기
모든 클라이언트
Autonomous SWE Agent · Docker & CLI1M Context · ZDR

OpenHands

샌드박스 터미널·브라우저·GitHub 이슈를 자율 해결하는 오픈소스 SWE 에이전트.

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

대상 사용자
자율 코딩 파이프라인의 토큰 비용을 80% 이상 절감하려는 개발 팀.

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

OpenHands Docker and CLI autonomous SWE agent calling https://api.bf16.ai/v1 with 1M context and cached prefixes
OpenHands uses LiteLLM under the hood — prefix bf16 model IDs with openai/ and set LLM_BASE_URL=https://api.bf16.ai/v1.

OpenHands executes dozens to hundreds of sandboxed shell commands, test suites, and browser inspections per GitHub issue. Because each step resends the full trajectory, token bills on commercial flagship APIs quickly exceed $5–$20 per task.

Pairing OpenHands with DeepSeek V4.1 Flash Uncensored ($0.26 in / $0.045 cached / $1.00 out) cuts autonomous SWE run costs by 80–90% while maintaining 1M-token context and zero refusal interruptions during security or low-level systems debugging.

명령어에는 $BF16_API_KEY가 표시됩니다. 로그인하면 내 실제 키가 자동으로 채워집니다.

원커맨드 빠른 설정

One-Command OpenHands Headless Config

Exports the exact OpenHands LLM environment variables for headless CLI or Docker runs.

export BF16_API_KEY="sk-bf16-v1-..."
export LLM_API_KEY="$BF16_API_KEY"
export LLM_BASE_URL="https://api.bf16.ai/v1"
export LLM_MODEL="openai/deepseek/deepseek-v4.1-flash-uncensored-fast"
curl https://api.bf16.ai/v1/models -H "Authorization: Bearer $BF16_API_KEY"
  1. 1

    bf16.ai API 키 설정

    Open OpenHands Settings → LLM → toggle Advanced, or pass environment variables into your Docker container.

  2. 2

    bf16.ai 엔드포인트 및 1M 무검열 모델 연결

    이 페이지의 Base URL과 API 키를 입력하면 1M 컨텍스트와 엄격한 무저장(ZDR) 정책이 즉시 적용됩니다.

    LLM_MODEL=openai/deepseek/deepseek-v4.1-flash-uncensored-fast
    LLM_BASE_URL=https://api.bf16.ai/v1
    LLM_API_KEY=$BF16_API_KEY
OpenHands — Settings → LLM (Advanced / Custom Model)
설정 필드 인스펙터
Settings / LLM / Custom Model (OpenAI-Compatible)

핵심 설정값 대조표

Custom Model
openai/deepseek/deepseek-v4.1-flash-uncensored-fast

Leading openai/ tells OpenHands’ LiteLLM router to use OpenAI-compatible wire format

Base URL
https://api.bf16.ai/v1
API Key
sk-bf16-v1-••••••••••••
Prompt Caching
Automatic ($0.045–$0.055/1M read)
Works identically in OpenHands Web UI, Docker compose, and headless CLI evaluations.

역할별 권장 모델 구성

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

역할모델 ID권장 사유USD / 1M 토큰
Autonomous Issue Solving & CI Loopsdeepseek/deepseek-v4.1-flash-uncensored$0.045/1M cached input reads make 80-step OpenHands trajectories remarkably economical.$0.26 in / $0.045 cached / $1.00 out
High-Speed Interactive Sandboxesdeepseek/deepseek-v4.1-flash-uncensored-fastCuts wall-clock latency across iterative build-test-fix loops.$0.28 in / $0.055 cached / $1.12 out

제대로 작동하는지 확인하는 방법

  • 테스트 메시지를 보내면 bf16.ai 콘솔 요청 로그에서 즉시 확인할 수 있습니다.
  • curl https://api.bf16.ai/v1/models -H "Authorization: Bearer $BF16_API_KEY"

운영 가드레일 및 예산 격리

  • Always set max_iterations and a per-key daily USD cap in /dashboard/keys for unattended OpenHands batch jobs.

자주 발생하는 오류

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