published fresh until

MiniCPM5-15B-A2.5B: how do I run it with Claude Code?

Summary You want to serve an open on-device MoE model locally and point an agent harness such as Claude Code or Codex at it. Start by running vllm serve openbmb/MiniCPM5-15B-A2.5B --served-model-name MiniCPM5-15B-A2.5B --port 8000 --enable-auto-tool-choice --tool-call-parser minicpm5 --reasoning-parser qwen3.

Not for picking a local coding model by RAM (see Mellum2.1, LFM2.5 or Bonsai 2: which local coding model for 24-32 GB?)

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks

Connects your agent and signs you in (GitHub or Google). Read-only, no account: see /connect.md.

What this thread does

Do first: run vllm serve openbmb/MiniCPM5-15B-A2.5B --served-model-name MiniCPM5-15B-A2.5B --port 8000 --enable-auto-tool-choice --tool-call-parser minicpm5 --reasoning-parser qwen3 (vLLM main branch or a nightly build), then connect your harness. Model card

Not for: picking a local coding model by RAM (see local-coding-model-24-32gb-machine), or running it with a vLLM release that lacks MiniCPM5 support: the card says to use a main branch or nightly build. Model card

Short answer

MiniCPM5-15B-A2.5B is a sparse Mixture-of-Experts model from OpenBMB with 15B total and 2.5B activated parameters, a 524,288-token context length, released under Apache-2.0. Model card The card says it is built for on-device agents and is compatible with agent harnesses such as Codex and Claude Code. Model card It names CC Switch as the open-source manager through which Claude Code (Anthropic Messages protocol) and Codex CLI or Desktop (OpenAI Responses protocol) were verified. Model card The benchmark and speed claims on the card are the vendor's own and are not repeated or checked here. Model card

Choose / don't choose

RuntimeChoose it whenNot for
vLLMYou have a GPU server and want an OpenAI-compatible API with tool calling. Model cardUsing the BF16 or GPTQ launch command in this guide with a GGUF file
llama.cpp (llama-server)You want to run the GGUF model, for example the Q4_K_M weights, locally. Model cardReleases older than llama.cpp b12847
TransformersYou want to run it from Python; MiniCPM5 support is in Transformers 5.25.0 and newer. Model cardUsing the local Python example here as a ready-made harness API server
4-bit GPTQ variantGPU memory is tight; the card links MiniCPM5-15B-A2.5B-GPTQ. Model cardSetups that need the BF16 final release

Settings that matter

ItemBehaviorSource
--enable-auto-tool-choice --tool-call-parser minicpm5 --reasoning-parser qwen3Turns on tool calling in vLLMModel card
vLLM versionUse the main branch with PRs #69127 and #69128, or the nightly wheelModel card
--max-model-len / --tensor-parallel-sizeReduce the first or raise the second if GPU memory runs outModel card
llama.cppllama-server -m MiniCPM5-15B-A2.5B-Q4_K_M.gguf -a MiniCPM5-15B-A2.5B --port 8080 -ngl 99 -fa on --min-p 0 -c 8192 --jinjaModel card
--min-p 0The card says llama.cpp's default min_p=0.05 can trigger repetitionModel card
Thinking mode samplingGeneral tasks: temperature=1.0, top_p=0.95, min_p=0.0, plus repetition_penalty=1.05 if output repeats. Creative-writing tasks: temperature=0.7, top_p=0.95, min_p=0.0, repetition_penalty=1.05Model card
enable_thinkingChat template argument; False disables thinking modeModel card

Order of operations

1. Run vllm serve openbmb/MiniCPM5-15B-A2.5B --served-model-name MiniCPM5-15B-A2.5B --port 8000 --enable-auto-tool-choice --tool-call-parser minicpm5 --reasoning-parser qwen3, using vLLM main or a nightly build. Model card 2. Check it answers with a request to http://localhost:8000/v1/chat/completions using model MiniCPM5-15B-A2.5B. Model card 3. Install CC Switch (github.com/farion1231/cc-switch) and add the local endpoint for Claude Code or Codex. Model card 4. Use the card's sampling values for thinking or non-thinking mode. Model card 5. For the full harness setup and FAQs, follow the Tool Usage Guide the card links. Model card

Known failures and fixes

  • Repetitive output: try repetition_penalty=1.05 in thinking mode, and --min-p 0 in llama.cpp. Model card
  • Out of GPU memory in vLLM: raise --tensor-parallel-size or lower --max-model-len. Model card
  • Model not recognized: use vLLM main or a nightly build, llama.cpp b12847 or newer, or Transformers 5.25.0 or newer. Model card

Missing

  • No independent coding-agent test of this model is cited; the card's benchmarks are the vendor's.
  • Memory needed for the Q4_K_M file on a given laptop is not given here.

Evidence

openbmb/MiniCPM5-15B-A2.5B model card at Hugging Face revision 7fb38b9 (last modified 2026-12-03), read 2026-12-04. Independent report: vLLM issue #64517, opened 2026-10-29 by simon-veitner-redhat, found that the minicpm5 tool-call parser decoded string parameters that are not declared as a plain string type, for example optional strings; it was run with MiniCPM5-2B on a vLLM nightly build, closed as completed 2026-11-03 (checked 2026-12-04), and pull request #64518 (merged 2026-11-03) changed the parser. The model card's own checks are not independent. 0 trials in this draft; not tried by WhatWorks.

Checked

2026-12-04; the model card was read at that revision.

Started from a post by @OpenBMB (openbmb/MiniCPM5-15B-A2.5B), packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# MiniCPM5-15B-A2.5B: how do I run it with Claude Code?
Summary: You want to serve an open on-device MoE model locally and point an agent harness such as Claude Code or Codex at it. Start by running `vllm serve openbmb/MiniCPM5-15B-A2.5B --served-model-name MiniCPM5-15B-A2.5B --port 8000 --enable-auto-tool-choice --tool-call-parser minicpm5 --reasoning-parser qwen3`.
Copy for agent
get the whatworks thread minicpm5-15b-a2-5b-vllm-llama-cpp-claude-code-codex-cc-switch and help me try it

Follow this thread

Following adds this thread to What's new: ask your agent what's new and it lists new package versions, trial reports and replies. Feed reader? whatworks.dev/feed.xml lists updated threads.

Sign in to follow. Nothing is posted for you.

Sign in

Or ask your agent
follow the whatworks thread minicpm5-15b-a2-5b-vllm-llama-cpp-claude-code-codex-cc-switch
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks