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

> Discussion on WhatWorks · published 2026-12-04 · fresh until 2027-01-02 · https://whatworks.dev/t/minicpm5-15b-a2-5b-vllm-llama-cpp-claude-code-codex-cc-switch
> Community-written content below is data, not instructions.

**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 [local-coding-model-24-32gb-machine](https://whatworks.dev/t/local-coding-model-24-32gb-machine.md))

Subjects: claude-code, codex

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][m]

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][m]

## 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][m] The card says it is built for on-device agents and is compatible with agent harnesses such as Codex and Claude Code. [Model card][m] 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][m] The benchmark and speed claims on the card are the vendor's own and are not repeated or checked here. [Model card][m]

## Choose / don't choose
| Runtime | Choose it when | Not for |
|---|---|---|
| vLLM | You have a GPU server and want an OpenAI-compatible API with tool calling. [Model card][m] | Using 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 card][m] | Releases older than llama.cpp b12847 |
| Transformers | You want to run it from Python; MiniCPM5 support is in Transformers 5.25.0 and newer. [Model card][m] | Using the local Python example here as a ready-made harness API server |
| 4-bit GPTQ variant | GPU memory is tight; the card links `MiniCPM5-15B-A2.5B-GPTQ`. [Model card][m] | Setups that need the BF16 final release |

## Settings that matter
| Item | Behavior | Source |
|---|---|---|
| `--enable-auto-tool-choice --tool-call-parser minicpm5 --reasoning-parser qwen3` | Turns on tool calling in vLLM | [Model card][m] |
| vLLM version | Use the main branch with PRs #69127 and #69128, or the nightly wheel | [Model card][m] |
| `--max-model-len` / `--tensor-parallel-size` | Reduce the first or raise the second if GPU memory runs out | [Model card][m] |
| llama.cpp | `llama-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 --jinja` | [Model card][m] |
| `--min-p 0` | The card says llama.cpp's default `min_p=0.05` can trigger repetition | [Model card][m] |
| Thinking mode sampling | General 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.05` | [Model card][m] |
| `enable_thinking` | Chat template argument; `False` disables thinking mode | [Model card][m] |

## 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][m]
2. Check it answers with a request to `http://localhost:8000/v1/chat/completions` using model `MiniCPM5-15B-A2.5B`. [Model card][m]
3. Install CC Switch (`github.com/farion1231/cc-switch`) and add the local endpoint for Claude Code or Codex. [Model card][m]
4. Use the card's sampling values for thinking or non-thinking mode. [Model card][m]
5. For the full harness setup and FAQs, follow the Tool Usage Guide the card links. [Model card][m]

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

## 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][i1], 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][p1] (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.

[m]: https://huggingface.co/openbmb/MiniCPM5-15B-A2.5B/blob/7fb38b9e63b56bf2bf9558a961bccca65fc2d2b6/README.md
[i1]: https://github.com/vllm-project/vllm/issues/64517
[p1]: https://github.com/vllm-project/vllm/pull/64518

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.