Skip to content
World-Class

The self-hosted coding stack

For teams whose code cannot leave their own infrastructure, running open weights they control end to end.

Weights on infrastructure you own, which is the whole point: self-hosting removes the jurisdiction question that hosted open-weight APIs raise, since the hosted APIs for GLM and Kimi are served from China and Qwen's is Alibaba Cloud. Qwen's Apache-2.0 line is the current default for new self-hosted coding work, served at production throughput by vLLM and prototyped locally through Ollama, with DeepSeek as a second open-weight option. The ceiling still holds: on ambiguous specs and sustained multi-agent work the closed frontier models win, so even here the pattern is a self-hosted daily driver with a frontier seat kept to the side for the hard fraction.

03COSTS

What it costs

The software is free and the weights cost nothing to run; spend shifts to the GPUs and the engineering time to serve them well. There is no per-seat or per-token vendor bill, which is the trade for owning the operational burden.

ToolEntry tierWhat drives cost up
QwenFree tier + paid plansThe Apache-2.0 open-weight line is free to download and self-host, with spend shifting to GPUs and the engineering time to serve them; a paid hosted API exists alongside, and the current flagship Qwen 3.7 models are closed-weight and API-only.
vLLMFreeOpen source and free; the costs are GPUs and the engineering time to run them well.
OllamaFreeOllama is free and open source; the cost is the hardware it runs on. A capable laptop runs small models, while larger models want serious GPU or unified memory.
DeepSeekFree tier + paid plansFree hosted chat; API pricing among the lowest at frontier-adjacent quality; open weights free to self-host.

Compare the members

Written comparisons between these tools and their nearest substitutes.

05FAQ

Common questions

What does this stack actually cost per month?

All four tools here have a genuine free tier, so a working configuration costs nothing while you evaluate it. The 03 COSTS table above breaks down each tool. Self-hosting shifts the meter off seats and tokens onto two things that climb with use: GPU capacity, and the engineering time to serve the weights. Hardware is the visible cost; the time to run it reliably is the one teams underbudget. Price the people, not just the GPUs.

Do I need all four tools from day one?

Rarely. Qwen on Ollama covers the first move: a capable open model running locally on hardware you own, enough to prototype before anything is served. The numbered steps lay out the capability layers, not an adoption sequence. Start there, bring in vLLM when a prototype needs to become infrastructure other systems call, and add DeepSeek only when a task suits it better than Qwen.

I already use Ollama. What changes?

Then you are already running the local end of this stack: Ollama gives you a model on your own hardware, no cloud and no account. Keep it for prototyping. What the stack adds is the path off the laptop: vLLM serves the same open weights at production throughput for other systems to call, Qwen sets the default model, and DeepSeek is the second option. Ollama proves the idea; vLLM runs it.

Where do these tools overlap, and which wins?

vLLM and Ollama both run open weights on infrastructure you control, the one overlap here. The dividing rule is audience. Ollama serves one developer at a time: a clean command line on ordinary hardware, made for prototyping. vLLM serves everything else: production throughput for the systems that call the model. The vLLM and Ollama comparison, linked above, covers where the line falls.

When is this stack too much?

Often, and this tier says so. Self-hosting earns its keep only when code cannot leave your own infrastructure and you have the GPUs and engineering time to serve models well. Two signals say you have overshot: no policy or jurisdiction rule forbids a hosted open-weight API, or nobody owns the serving infrastructure. A team reaching for control it does not need wants the competitive tier, the open-weight coding agent stack.

What can I safely put into these tools?

Self-hosting inverts the usual answer: run these weights on infrastructure you own and confidential code stays there. Two conditions hold that guarantee. Keep Ollama's optional web-connected features off, since one outbound call breaks the promise; and vLLM's security is now yours to own, not a vendor's. The line not to cross is the hosted APIs: Qwen's runs on Alibaba Cloud and DeepSeek's under Chinese jurisdiction, so sensitive material belongs only on the weights you host yourself.

Before sharing confidential or personal data, check this tool's data-governance and training policies. They differ between providers and can change.

Last checked: July 2026

Where to start

Not sure what to adopt first?

Five quick questions about your job, task and constraints. We'll suggest your top three tools, plus the one to try first.

Tool facts last checked July 2026