Qwen Code
Open-source terminal coding CLI supporting OpenAI-compatible endpoints, tool calling, and large-codebase refactoring.
https://api.bf16.ai/v1openai-completionsWho this is for
CLI developers running Qwen Code (or Gemini CLI forks with OpenAI mode) who want 1M-context uncensored DeepSeek and Kimi models.
Architecture & Why Pair with bf16.ai
Qwen Code is a fast open-source terminal agent modeled for multi-file codebase exploration, git workflows, and shell automation using standard OpenAI environment variables.
By pointing Qwen Code to bf16.ai, you unlock 1M-context DeepSeek V4.1 Flash Uncensored Fast ($0.28/$1.12) and 2.8T Kimi K3.1 Pro Uncensored ($1.95/$6.90) with zero rate-limit bottlenecks and strict zero data retention.
Commands show $BF16_API_KEY. Sign in to fill in your own key automatically.
One-Command Qwen Code Launch on bf16.ai
Launches Qwen Code wired directly to DeepSeek V4.1 Flash Uncensored Fast.
export BF16_API_KEY="sk-bf16-v1-..."
OPENAI_BASE_URL="https://api.bf16.ai/v1" \
OPENAI_API_KEY="$BF16_API_KEY" \
OPENAI_MODEL="deepseek/deepseek-v4.1-flash-uncensored-fast" \
qwen- 1
Install Qwen Code CLI
npm install -g @qwen-code/qwen-code - 2
Launch with bf16.ai environment variables
Pass OPENAI_BASE_URL, OPENAI_API_KEY, and OPENAI_MODEL directly when starting qwen.
OPENAI_BASE_URL="https://api.bf16.ai/v1" \ OPENAI_API_KEY="$BF16_API_KEY" \ OPENAI_MODEL="deepseek/deepseek-v4.1-flash-uncensored-fast" \ qwen
Exact Field-by-Field Reference
https://api.bf16.ai/v1sk-bf16-v1-••••••••••••deepseek/deepseek-v4.1-flash-uncensored-fast1M Context · Native Tool CallingRecommended Uncensored Model Tiering
Route complex planning to Flagship models and high-frequency subagents or screenshots to Flash.
| Workflow Role | Model ID | Why This Model | USD / 1M Tokens |
|---|---|---|---|
| Primary Terminal Coding Agent | deepseek/deepseek-v4.1-flash-uncensored-fast | Fastest interactive CLI loop with 1M context and deterministic tool calls. | $0.28 in / $0.055 cached / $1.12 out |
| Deep Refactoring & Multimodal Audits | moonshotai/kimi-k3.1-pro-uncensored | Switch OPENAI_MODEL for 2.8T frontier reasoning on hard architectural changes. | $1.95 in / $0.28 cached / $6.90 out |
How to know it worked
- Qwen Code connects immediately without prompting for OAuth login.
- curl https://api.bf16.ai/v1/models -H "Authorization: Bearer $BF16_API_KEY"
Production Guardrails & Budget Isolation
- Create a dedicated key per workstation with a daily spend cap in /dashboard/keys.