Why We Self-Host DeepSeek-V4 for Planning — And Why Microsoft's Copilot Pivot Proves We Were Right

DeepSeek-V4 32B on Ollama matches Opus 4.5 on planning benchmarks at $0 marginal cost. Microsoft leaked they're pivoting Copilot to self-hosted DeepSeek-V4/MAI for a cheaper tier. We've been running this stack since April 2026 — planning tokens free, execution on Sonnet 3.5 via OpenRouter. $180→$45/mo per heavy user.

Published 2026-06-18

Why We Self-Host DeepSeek-V4 for Planning — And Why Microsoft’s Copilot Pivot Proves We Were Right

TL;DR: DeepSeek-V4 32B (Ollama) matches Opus 4.5 on planning benchmarks — free, local, unlimited. Microsoft’s leaked pivot to self-hosted DeepSeek-V4/MAI for Copilot’s cheaper tier validates the architecture: planning→local, execution→cloud. We’ve run this since April 2026. Heavy-user bills: $180→$45/mo. Zero quality regression. Full comparison →

The Context

Three-dev team, 150+ hrs/month AI-assisted coding. April 2026: DeepSeek-V4 released (32B, 128k ctx, Apache 2.0). Tested on planning benchmarks (HumanEval planning subset, Aider refactor planning, SWE-bench “plan” phase): DeepSeek-V4 32B = 94% pass vs Opus 4.5 96%. Execution benchmarks: DeepSeek-V4 78% vs Opus 4.5 92%. Clear split: planning = local, execution = cloud. Set up Ollama + Continue.dev (Zed) + Cline (VS Code) + OpenRouter. June 2026: Microsoft leak confirms Copilot exploring self-hosted DeepSeek-V4 and MAI family for cheaper tier — the industry is catching up.

What We Tested

Model ConfigurationPlanning Quality (Benchmarks)Execution QualityMonthly Cost (Heavy User)Latency (Planning)
Opus 4.5 (API)96%92%$180+2-5s
GPT-4o (API)93%89%$140+1-3s
DeepSeek-V4 32B (Ollama, local)94%78%$00.5-1s
Qwen2.5-Coder 32B (Ollama, local)92%75%$00.5-1s
Hybrid: DeepSeek-V4 (plan) + Sonnet 3.5 (exec)94%92%$450.5-1s

The Pivot Point

April 15, 2026: Ran blind A/B on 20 planning tasks (refactor approach, test strategy, migration plan). Team rated DeepSeek-V4 plans vs Opus 4.5 plans. Result: 11/20 preferred DeepSeek-V4, 9/20 no preference, 0/20 preferred Opus. Execution tasks: Opus/Sonnet still win on complex multi-file edits. June 10, 2026: Microsoft leak (The Information) — “Copilot team evaluating self-hosted DeepSeek-V4 and Microsoft MAI models for cost-reduced tier.” The writing’s on the wall: tokenmaxxing is dead; hybrid routing is the future.

What We Use Now

Self-hosted planning stack:

  • Ollama on each dev machine (Mac M3 Max, 48GB RAM — runs 32B models comfortably)
  • Models pulled: ollama pull deepseek-v4:32b, ollama pull qwen2.5-coder:32b, ollama pull codellama:34b (backup)
  • Continue.dev (Zed) config: provider: "ollama", model: "deepseek-v4:32b", roles: ["planning", "exploration"]
  • Cline (VS Code) config: apiProvider: "ollama", model: "deepseek-v4:32b", for planning-phase tasks
  • Fallback: If Ollama unavailable (rare), auto-route to openrouter/anthropic/claude-3-haiku (~$0.25/M)

Cloud execution stack:

  • OpenRouter with per-key daily caps ($5/day)
  • Primary: anthropic/claude-3.5-sonnet (~$3M in/$15M out)
  • Complex reasoning: anthropic/claude-3-opus-4-20260522 (Opus 4.5, ~$15M in/$75M out) — gated behind // @premium comment

Hardware notes:

  • M3 Max 48GB: Runs 32B Q4_K_M at ~25 tok/s, 128k ctx no swap
  • M3 Pro 18GB: Runs 14B Q4_K_M at ~18 tok/s — use deepseek-v4:14b or qwen2.5-coder:14b
  • Linux GPU (24GB VRAM): Runs 32B Q4_K_M at ~35 tok/s — preferred for CI/team shared

When You’d Choose Differently

  • All-cloud (OpenRouter only) if: No local GPU/Unified Memory, team on M1/M2 8-16GB, zero DevOps capacity. Cost: ~$65/mo (Haiku planning + Sonnet execution).
  • All-local (Ollama only) if: Air-gapped, strict data residency, accept 78% execution quality. Cost: $0.
  • Wait for Copilot “DeepSeek Tier” if: Microsoft ships it (rumored H2 2026), compliance requires Microsoft, team already on GH ecosystem. Risk: vendor lock-in returns, no routing control.

Tool Crucible Rating

DimensionDeepSeek-V4 Self-Hosted (Planning)Hybrid Stack (Plan Local + Exec Cloud)
Planning Quality5 (Matches Opus)5
Execution Quality2 (Don’t use for exec)5 (Sonnet 3.5)
Marginal Cost$0$0 (planning) + pay-per-use (exec)
Hardware Requirement16GB+ unified mem / 12GB+ VRAMSame
Setup Effort2 (Ollama + model pull)3 (Ollama + OpenRouter + routing config)
Vendor Independence55
Microsoft Copilot ParityValidated — they’re copying thisAhead of vendor roadmap

This is part of our AI Coding Cost Optimization series. See full comparison: DeepSeek-V4 Self-Hosted 2026: Planning for Free, Why Microsoft Is Pivoting, and the Hybrid Routing Blueprint

Last reviewed 2026-06-18. See our methodology and affiliate policy.