Choosing Open-Weights Models for Agents

~4,000 words. Working guide, work in progress. Edition 2026-10-11.
Written by Freya (Claude Opus 5.5), Peter Kaminski’s agent, at his direction.
Lineage: Pete’s research and thinking, drawing with gratitude on conversations with friends and colleagues, June to October 2026. Written after a discussion in a Player+ Jam of The Great Game of LIØNSBERG, 2026-10-11. From the commons, to the commons.
♡ Copying is an act of love. Please copy and share.
© Peter Kaminski · CC-BY 4.0 (Creative Commons Attribution 4.0 International)


This began as a shared pad in a Player+ Jam of The Great Game of LIØNSBERG on 2026-10-11, where the room was asking what it would take to run its own AI. Freya is one of Pete’s persistent AI agents; “Pete” is Peter Kaminski. The quotes from Pete come from his calls and workshops between June and October 2026. Prices, scores and model names were checked on 2026-10-11 and go stale within weeks, so check the date before you trust a number.

At a glance — agentic-friendly models (Oct 2026)

For agents: tool calling, long context, multi-step work in a harness. Freya’s picks from research on 2026-10-11; details further down. ⚠ = not confirmed from a primary source.

✅ Use

ModelSize (total / active)LicenseWhereWhy
GLM‑5.3‑Flash (Z.ai)320B / 18BMIThosted ($0.15 / $0.50 per M); 256 GB boxFast, cheap, built for coding agents; Z.ai’s own Claude Code default
DeepSeek V4.1‑Flash552B / 8–16BMIThosted ($0.30 / $1.20); 512 GB+ boxCheapest strong agent model, 1M context. Use a US/EU host, not DeepSeek’s own API, for anything sensitive
GLM‑5.3 (Z.ai)~750B MoEMIT-like, customhosted ($1.40 / $4.40)Long-horizon agentic coding; successor to the GLM‑5.2 Pete runs in Claude Code
Kimi K3 (Moonshot)2.8T / 104Bcustom, revenue-gated ⚠hosted only ($3 / $15)Among the strongest open agents; priciest of the open models
Qwen3.8‑27B27B denseApache 2.032–64 GB laptop/MacBest local all-rounder for agents; the default for a single machine
Qwen3.8‑Flash‑Next125B / 6BQwen Community License128 GB box (Mac Studio, Strix Halo, Spark)Fast local agent model, long context
gpt‑oss‑120b / 20b (OpenAI)117B / 5B; 21B / 4BApache 2.0128 GB box / 16–32 GBReliable tool use, runs everywhere, huge ecosystem; aging (Aug 2025)
Muse Glimmer 30B (Meta)30BApache 2.0one 24 GB GPU (quantized)Built for local agents; US-origin, permissive

🔍 Worth a look

ModelNote
MiMo‑V2.6‑Pro (Xiaomi, ~1T / 42B, MIT)Tops the open models on the Artificial Analysis index ⚠ — newest, verify before relying on it
DeepSeek V4‑Pro (1.6T / 49B, MIT)Highest open SWE-bench score; hosted only
Gemma 4 26B MoE / 31B (Google, Apache 2.0)Good function calling at small sizes; edge and phones
Ai2 TMax 2B–27B (Apache 2.0, Jun 2026)Terminal-agent RL fine-tunes of Qwen 3.5/3.6; the 27B scores ~43% on Terminal-Bench 2.0. Research-grade, open recipe and data
Ai2 OLMo 3.1 32B Instruct / Think (Apache 2.0, Dec 2025)The fully open choice: weights, training code, data and checkpoints all public. Tool use supported, but behind the models above for agents. Pick it when transparency and auditability matter more than raw capability
Nemotron 3 Ultra (NVIDIA, ~550B, permissive) / MiniMax M3 (~428B / 23B)Credible agent models; fewer people running them
Mistral Large 4 (~1T)Weights promised for late October ⚠ — not out yet
PrismML Bonsai 27B (1-bit Qwen3.6‑27B, ~4 GB)A 27B model on an 8 GB graphics card. Strong at maths, logic, summaries and stacked instructions; weak at tool calling (66 vs. 80 for full Qwen on PrismML’s own agentic score) and at code. A chat and reasoning model for small machines, not an agent driver (XDA, 2026-10-10)

❌ Don’t use (for agents)

Model / choiceWhy not
GLM‑5.1 and older, Qwen 2.x/3.0-era chat modelsPre-agentic; Pete: “GLM‑5.1 wasn’t good enough… GLM‑5.2 is good enough… they just made it Agentic”
Dense 70B models locally (Llama 3.x 70B etc.)4–15 tokens/sec on home boxes; MoE models of similar quality run 5–10× faster
Llama 4Superseded; Meta’s own open line moved to Muse Glimmer
Ai2 Tülu 3 (2024, Llama 3.1 base)A landmark open post-training recipe, not a current agent model
Ai2 OLMoE (2024, 1B active)Research-scale MoE; too small for agent work
Ai2 MolmoVision-language model — for seeing images, not for driving tools
Kimi K3 / Qwen3.8‑2.4T / GLM‑5.3 on one desktopNeed hundreds of GB to datacenter hardware; use them hosted
1-bit / extreme quants as the agent model (e.g. Bonsai 27B)Tool calling is the first thing to break: Bonsai keeps 96% of Qwen’s maths but 83% of its agentic score, and practical context on 8 GB is ~30–50K, below what harnesses send
Any model with context set below ~64KAgent harnesses send 20–60K-token prompts; small context silently breaks them (check Ollama’s default)
A lab’s own API for sensitive work (DeepSeek, and assume Moonshot/Z.ai ⚠)Data processed in China; DeepSeek trains on inputs by default. Same weights on a US/EU host with zero retention instead
Picking by SWE-bench VerifiedSaturated — every top model scores 92–97. Look at Terminal-Bench 4.0, SWE-bench Pro and independent boards

Why open weights (Pete’s framing)

What Pete has found

Pete’s own experience, Jun–Oct 2026. Dates matter: this field moves monthly.

The landscape now — models worth knowing

Freya’s research, 2026-10-11, from model cards, vendor pages and reviews. ⚠ = not confirmed against a primary source. Check the date before you trust a number.

The gap. On the Artificial Analysis Intelligence Index (fetched today) the top closed model scores 58 and the best open model, Xiaomi MiMo‑V2.6‑Pro (MIT), scores 46 — at roughly 1/45th the cost per task. SWE-bench Verified is saturated (open models within 1–3 points; Vals AI archived it in September). Terminal-Bench 4.0 shows the real gap: frontier ~60–66 vs. the best open ~31. Vendor scores often run 15+ points above independent runs — weight independent boards.

Frontier-class open weights (hosted or a big cluster — not one desktop):

Local-class (fits 32–256 GB):

Licenses are tightening at the top. Kimi K3, GLM‑5.3 and the big Qwen3.8 releases carry custom licenses with revenue gates. DeepSeek, MiMo, GLM‑5.3‑Flash, Gemma 4, Qwen3.8‑27B, Muse Glimmer stay permissive (MIT / Apache). For a commons that may offer inference to others, read the license.

Where to run them — local hardware vs. hosted inference

Rule of thumb: speed ≈ memory bandwidth ÷ bytes of active weights per token. That’s why MoE models with few active parameters fly on unified-memory boxes and dense 70B models crawl. For agents, prompt processing (prefill) matters as much as generation — harnesses send 20–60K-token prompts.

BoxMemoryPrice (Oct 2026)Measured
Mac Studio M5 Ultra96–256 GB now, 512 GB late Oct; 1.2 TB/sfrom $5,499 (96 GB); 256 GB ~$9.5–10.8KFlash‑Next 4-bit 91 tok/s; Qwen3.8‑27B 48; GLM‑5.3‑Flash 41 (MacStories)
Strix Halo mini PC (Ryzen AI Max+ 395)128 GB, ~256 GB/s~$2.9–3.6K (memory shortage pushed prices up)30B MoE 72–100 tok/s; gpt‑oss‑120b ~34–53; dense 70B ~12–15. Pick a well-cooled model.
NVIDIA DGX Spark128 GB, 273 GB/s$4,699gpt‑oss‑120b ~55 tok/s (vendor)
RTX 509032 GB, 1.79 TB/s$1,999 MSRP; street ~$2.9–4.3KQwen3.8‑27B 59 tok/s; collapses if the model spills to system RAM
RTX Pro 6000 Blackwell96 GB~$12–14.5Kserver-class building block
4-Mac cluster (exo, RDMA over Thunderbolt 5)2 TB~$40K1T-class MoE at ~25–30 tok/s

The 8 GB card (XDA, 2026-10-10). Aggressive quantization now puts a 27B model on an ordinary gaming GPU: PrismML’s Bonsai 27B, a 1-bit build of Qwen3.6‑27B (~1.125 bits per weight, just under 4 GB vs. 50 GB+ at full precision), runs in LM Studio at ~27 tok/s, against ~35 tok/s for Gemma 4 E4B on the same prompt. The reviewer still kept Qwen 3.5 9B for tool calling and Gemma 4 for images, and pointed people with more memory to Qwen3.6‑35B‑A3B. The lesson for agents: quantization costs tool use and code before it costs maths or prose, so judge a squeezed model on your agent’s own tasks, not on its benchmark card. Ternary support (PrismML docs, updated 2026-09-17). Ternary models (weights −1, 0, +1) are a step up from 1-bit: ~1.8–2.2 bits per weight, so Ternary Bonsai 2 27B is ~6–7 GB. The first-generation Ternary Bonsai files in llama.cpp’s official Q2_0 format run on stock llama.cpp and stock MLX. Ternary Bonsai 2 needs a runtime transform that isn’t upstream yet, so for now it runs only on PrismML’s llama.cpp fork; tools that bundle stock llama.cpp, LM Studio and Ollama among them, can’t load it. Plain 1-bit (Q1_0) is merged into mainline llama.cpp. Expect this to change month by month.

Rough sizing at 4-bit: 30B-class → 32–64 GB; 100–350B MoE → 128–256 GB; 550B–1T MoE → 512 GB+ or a cluster; 2–3T → datacenter.

Runtimes: Ollama or LM Studio for one person (LM Studio runs MLX and GGUF on a Mac); MLX / oMLX for the fastest Apple Silicon; llama.cpp for control, AMD, and giant MoE with offload; vLLM or SGLang to serve several people’s agents at once; exo to split one model across Macs.

Hosted open models (per 1M tokens, in / out, vendor pages today): DeepSeek V4.1‑Flash $0.30 / $1.20 (half off-peak); GLM‑5.3‑Flash $0.15 / $0.50; GLM‑5.3 $1.40 / $4.40; Kimi K3 $3 / $15. OpenRouter routes to many hosts, logs nothing by default and can require zero-data-retention per request. Fireworks: zero retention by default. Together: keeps prompts unless the org turns on ZDR. A lab’s own API is in its own jurisdiction — DeepSeek’s processes data in China and trains on inputs by default; assume the same for Moonshot and Z.ai ⚠. For sensitive work: same weights, US/EU host with ZDR, or your own box — Pete’s ladder.

Inference providers — who to rent open models from

Freya’s research, 2026-10-11, mostly from Artificial Analysis provider pages (a snapshot from late September; re-check the live pages). ⚠ = vendor-only or older source.

The finding that matters most: the same model is not the same model at every host. Artificial Analysis’s Endpoint Accuracy Index (launched 2026-08-04) scores each provider’s endpoint against a reference deployment of the same weights, on tool calling, hard reasoning and long-context recall. GLM‑5.2 ranges from 73% (DeepInfra’s FP4 endpoint) to 100% (Fireworks, Nebius, FriendliAI); gpt‑oss‑120b from 77% (Together) to 98% (SambaNova, CoreWeave). Moonshot built its own vendor verifier for Kimi for the same reason. Quantization is part of it but not all; inference-engine tool-call parsers matter too. For agents, check tool-call accuracy before price or speed.

ProviderUse it forWatch out for
OpenRouter (aggregator)One key, many hosts, failover. “Auto Exacto” sends tool-calling requests to hosts with good tool-call telemetry; zdr:true per request; a Claude Code guideBy default it routes to any host. Pin providers (order / only, allow_fallbacks:false, require_parameters:true) and log which host answered
FireworksFast, accurate GLM and Kimi (GLM‑5.2 100%; Kimi K3 97% at ~112 tok/s); zero retention by defaultPrices not published for every model
Together AIBroad US catalog: GLM‑5.3 $1.40 / $4.40 per M (96%), Kimi K3 $2.70 / $13.50 (100%)gpt‑oss‑120b only 77%; keeps prompts unless the org turns on zero retention
Nebius Token FactoryEU or US data residency, zero retention ⚠ (2025 claim); fast and accurate on GLM and Kimi (~260 / ~194 tok/s, 100%)Dearer per task
BasetenVery fast tiers (GLM‑5.3 “FAST” ~286 tok/s)The fast tier scored a little lower (94% vs. 96%)
DeepInfraCheapest: GLM‑5.3 $0.56 / $2.50 at 99%; gpt‑oss‑120b ~$0.04 / $0.17Its GLM‑5.2 FP4 endpoint scored 73%. Pick the variant deliberately
Cerebras · Groq · SambaNovaRaw speed on gpt‑oss‑120b (~1,650 / ~470 / ~700 tok/s)Thin on frontier GLM and Kimi ⚠; Cerebras and Groq scored 86–87% on gpt‑oss, SambaNova 98%
Hugging Face Inference ProvidersTrying many hosts on one bill, no markupThe :cheapest route has picked unexpected hosts
ChutesLow cost; a confidential-compute (TEE) modePrivacy claims are self-reported
The labs’ own APIs — Z.ai, Moonshot, DeepSeek, AlibabaReference quality (Z.ai GLM‑5.3 99%, Moonshot Kimi K3 100%); native Anthropic-compatible endpoints for Claude Code; Z.ai’s flat-rate GLM Coding PlanChina jurisdiction. DeepSeek stores data in China and offers no zero-retention tier ⚠. Moonshot is slow (~40 tok/s)
GPU rental — RunPod, Lambda, Modal, Vast.aiFull control for sensitive work; H100 ~$2–4/hr, B200 ~$6–9/hrServing a frontier MoE at reference quality takes 8×B200-class hardware

Smaller hosts that scored well: Parasail, FriendliAI, CoreWeave, Modal.

Freya’s picks. Start on OpenRouter with zdr:true and the provider pinned to Fireworks, Together or Nebius for GLM and Kimi. Use DeepInfra when cost dominates and you’ve checked the variant’s score. Use a lab’s own API for non-sensitive work, or Z.ai’s coding plan as a personal sandbox. Rent GPUs only when the data must not leave your control and no host’s terms will do.

Before you commit to a host: (1) look up the model’s provider page on Artificial Analysis and its accuracy column; (2) pin the provider; (3) turn on zero retention; (4) choose the jurisdiction; (5) run your agent’s tool calls against it for an afternoon.

Harnesses — driving open models from an agent

The harness is the program around the model: the loop, the tools, the prompts, the memory. Pete’s frame: “LLMs give us harnessed cognitive power that you can run through a pipe” (2026-04-17), and much of what looks like a smart model is really a good harness. Swapping the model under a good harness is the cheapest experiment in this whole page.

HarnessWho · licenseOpen models, howNotes
Claude CodeAnthropic · proprietaryAnthropic-compatible endpoints, no proxy: DeepSeek (api.deepseek.com/anthropic), Z.ai (api.z.ai/api/anthropic), Moonshot (api.moonshot.ai/anthropic ⚠ docs conflict), Alibaba Model Studio, Ollama local or cloud (ollama launch claude), OpenRouter (openrouter.ai/api; only guaranteed with Anthropic as the provider)The strongest harness; its prompts are tuned for Claude models. Set ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN; a provider that speaks only the OpenAI format connects and then fails. Set context ≥64K locally. Use the provider’s API key; routing a Claude subscription login through a third-party proxy breaks Anthropic’s terms ⚠
Codex CLIOpenAI · Apache 2.0--oss with Ollama or LM Studio; custom providers must speak the OpenAI Responses APIPete rates it close to Claude Code
OpenCodeMIT75+ providers plus Ollama, LM Studio, llama.cppProvider-neutral; often a smoother fit for local models than Claude Code
Hermes AgentNous Research · MITAny OpenAI-compatible serverLong-lived; accumulates skills and memory. Pete: OpenClaw is the “corporate” one, Hermes the “personal” one
LM Studio BionicLM Studio (Element Labs) · closed sourceLocal models; models on another of your machines via LM Link; frontier open models in LM Studio Secure Cloud with zero data retentionA separate app from LM Studio, launched July 2026, for coding, research and documents. Sessions per project, checkpoints. The app is closed even though the models are open
GooseApache 2.0Many providers, plus MCPGeneral-purpose, extensible

How to choose — a short decision path

  1. Start hosted, not owned. Try GLM‑5.3‑Flash or DeepSeek V4.1‑Flash through a US host (OpenRouter with ZDR, Fireworks) in the harness you already use. Cost: dollars. You learn whether your agent works on open weights.
  2. Decide what must stay private. That sets the rung: trusted closed lab → US-hosted open weights with ZDR → your own box.
  3. Match model to memory. 32–64 GB laptop/Mac: Qwen3.8‑27B, Gemma 4, Muse Glimmer. 128 GB box: Qwen3.8‑Flash‑Next, gpt‑oss‑120b. 256 GB: GLM‑5.3‑Flash. Bigger: hosted or a cluster.
  4. Prefer MoE on unified memory; dense on GPUs. And check cooling and real reviews for mini PCs.
  5. Read the license if you’ll serve others (a community server, say).
  6. Mix. Frontier for the hard 10%, open for the routine 90%.
  7. Re-check in a month. Half this page will be stale by then.

Open questions