OpenHands
샌드박스 터미널·브라우저·GitHub 이슈를 자율 해결하는 오픈소스 SWE 에이전트.
https://api.bf16.ai/v1openai-completions대상 사용자
자율 코딩 파이프라인의 토큰 비용을 80% 이상 절감하려는 개발 팀.
아키텍처 및 bf16.ai 연동 구조
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
bf16.ai API 키 설정
Open OpenHands Settings → LLM → toggle Advanced, or pass environment variables into your Docker container.
- 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
핵심 설정값 대조표
openai/deepseek/deepseek-v4.1-flash-uncensored-fastLeading openai/ tells OpenHands’ LiteLLM router to use OpenAI-compatible wire format
https://api.bf16.ai/v1sk-bf16-v1-••••••••••••Automatic ($0.045–$0.055/1M read)역할별 권장 모델 구성
복잡한 설계는 플래그십 모델로, 병렬 서브에이전트와 스크린샷은 Flash 모델로 분리하세요.
| 역할 | 모델 ID | 권장 사유 | USD / 1M 토큰 |
|---|---|---|---|
| Autonomous Issue Solving & CI Loops | deepseek/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 Sandboxes | deepseek/deepseek-v4.1-flash-uncensored-fast | Cuts 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.