Fix False Refusals in Claude Code Without Changing Workflows
Keep your exact Claude Code terminal workflow, MCP servers, and tool calls while switching to weight-level uncensored 1M-context models via native /v1/messages.
Standard aligned models inside Claude Code frequently trigger false-positive refusals when inspecting authentication code, defensive security tests, SQL injection sanitizers, scraping parsers, or sensitive domain copy — derailing multi-step sessions mid-refactor.
How bf16.ai Solves This Workflow
- bf16.ai implements the native Anthropic Messages endpoint (/v1/messages), so Claude Code works without local proxies or plugins.
- Refusal behavior is edited directly out of open-weight models (GLM-5.3 Uncensored, DeepSeek V4.1 Flash Uncensored, Kimi K3.1 Pro Uncensored) — zero fragile prompt hacks.
- Full 1M context window plus up to 82% prompt-caching discounts keep long Claude Code sessions fast and affordable.
Recommended Model Split
Flagship architecture refactoring, Claude Code & Codex sessions
24/7 coding loops, subagent fan-out, and high-volume automation
Copy-Paste Production Config
Drop-in Claude Code shell profile
export ANTHROPIC_BASE_URL="https://api.bf16.ai"
export ANTHROPIC_API_KEY="$BF16_API_KEY"
export ANTHROPIC_MODEL="zai-org/glm-5.3-uncensored"
export ANTHROPIC_SMALL_FAST_MODEL="deepseek/deepseek-v4.1-flash-uncensored"
claudeFrequently Asked Questions
Why must ANTHROPIC_BASE_URL omit /v1 for Claude Code?
Claude Code appends /v1/messages automatically. Using https://api.bf16.ai (without /v1) prevents double /v1/v1/messages 404 errors.
Do MCP tools and bash/file edits still work with GLM-5.3 Uncensored?
Yes. bf16.ai translates and streams Anthropic tool_use blocks natively so file edits, terminal commands, and MCP servers run seamlessly.
Can I keep a separate fast subagent model inside Claude Code?
Yes. Set ANTHROPIC_SMALL_FAST_MODEL=deepseek/deepseek-v4.1-flash-uncensored ($0.26/$1.00) for fast exploration and compaction turns.
Related Guides & Comparisons
All Use CasesNot affiliated with Anthropic, OpenAI, Google, Z.ai, Moonshot AI, DeepSeek, or any third-party provider listed on this page. All trademarks belong to their respective owners. "bf16" is a brand name, not a statement about numeric precision. Third-party reference rates are public approximations; check official pricing pages for exact current terms.