Self-hosting kit · Private Claude Code Kit
Run Claude Code on an open model you host yourself
A kit for pointing Claude Code and the Claude desktop app (gateway mode) at an open model on your own GPU server, through a LiteLLM gateway and a vLLM server. It includes the configuration, two filters for specific failures and an eval harness to measure the result.

The result
Before
Claude Code only runs on cloud models.
After
You point it at an open model you host yourself, through LiteLLM and vLLM.
The problem it solves
Some teams can't send code or documents to an outside model, or want control over cost. Self-hosting looks simple until the open model repeats the same tool call, chokes on PDFs or loses track of long context. This kit has the settings and filters that address those failures, and a way to test them on your own setup.
Who it's for
- Teams whose code and data must stay on their own servers
- Companies with a GPU server and an open model
- Platform engineers rolling Claude Code out to several people
- Anyone comparing an open model with their current setup
Needs: Your own GPU server, vLLM and LiteLLM, Python 3.9+
See it in 20 seconds.
A short video of what the kit does for you, with sound.
What's inside
Gateway config, vLLM recipe, two gateway filters (24 and 27 unit tests), a rules pack, and an eval harness verified end to end with a fake agent.
A kit for pointing Claude Code and the Claude desktop app (gateway mode) at an open model you host yourself, through a LiteLLM gateway and a vLLM server.
What you get (75 files, one zip):
- LiteLLM config example: Claude-style aliases routed to your model.
- vLLM launch recipe with the reason for each flag that matters for tool calling and long context.
- Per-person key script, keychain credential helper, gateway smoke test, client config examples.
- pdf_to_text filter: PDFs become text before they reach the model. 24 unit tests.
- tool_loop_breaker filter: after 3 identical tool calls with identical results, the model gets a "move on" note. 27 unit tests.
- A CLAUDE.md rules pack for weaker models, with the creator's before/after numbers and the run-to-run noise.
- Eval harness, standard library only: 10 synthetic tasks, automatic graders, offline self-check, blind A/B, load test.
- Rollout playbook and troubleshooting guide.
What you customize:
- Your GPU server and the open model you pick.
- vLLM flags for your model and versions: tool-call parser, context length.
- The LiteLLM config: aliases, timeouts, the two filters.
- One key per person and the client config on each machine.
Good to know: open models are weaker agents than Claude; this kit reduces specific failures and does not close the gap. You need your own GPU server, model and client apps, and you are responsible for the terms of every app and model you use. Not affiliated with Anthropic.
Questions about this kit
Will an open model work as well as Claude?
No. Open models are weaker agents than Claude. This kit reduces specific failures, like repeated tool calls and PDFs, and does not close the gap.
What do I need?
Your own GPU server and open model, vLLM, LiteLLM and Python 3.9+. You're responsible for the terms of every app and model you use.
How do I know it's working?
The eval harness runs 10 synthetic tasks with automatic graders, an offline self-check, a blind A/B and a load test, using only the standard library.
Is it affiliated with Anthropic?
No. It's an independent kit.
Private Claude Code Kit
Run Claude Code on your own open model, with the fixes and an eval to prove it
Other kits you might like
Agent Team OS for Claude CodeRun Claude Code as a board with specialist agents and written review gates$39
Bug Hunter Loop for Claude CodeAn exploratory-QA agent loop that turns every reproduced bug into a red E2E test$29
AI App Launch KitDocs, Claude Code rules and an App Review playbook for your first iOS app$24