Claude Code model router

AIonDemandCluster

Spin up any open LLM on rented GPUs (vast.ai/RunPod), serve it with vLLM or llama.cpp, and drive it from Claude Code via Claude Code Router. Pay by the hour.

Install

Install
pipx install aiondemandcluster     # or: uv tool install aiondemandcluster  /  pip install aiondemandcluster

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/jhammant/AIonDemandCluster.git

From the README

AI on Demand Cluster (aiod)

Spin up any HuggingFace model on a vast.ai GPU, serve it with vLLM, and drive
it from Claude Code through Claude Code Router (CCR) — all from one command.

Give it a HuggingFace link; aiod figures out how much VRAM the model needs, finds
the cheapest matching machine on vast.ai, shows you the live $/hr before you commit,
rents it, waits for the model to load, and writes your CCR config so you can run
ccr code against your own hosted model.

Why CCR sits in the middle: Claude Code speaks the Anthropic Messages API, while
vLLM serves the OpenAI API. CCR runs locally and translates between them, so the
remote box can stay a plain OpenAI-compatible server.

Prerequisites

- Python 3.10+
- A vast.ai account (sign up) + an API key from
  Account → API Keys (required)
- A HuggingFace token — only for gated/private models like Llama/Gemma (optional)
- Claude Code Router (classic CLI) installed locally:
Note: the project has a Desktop app (v3) that stores config under
~/Library/Application Support/.... aiod targets the classic CLI, whose
config lives at ~/.claude-code-router/config.json and uses ccr start/code/stop.

Install
Early release — install from source for now. PyPI (pipx install aiondemandcluster)
is wired up and coming shortly.

Then run aiod init to set up your keys.

Once on PyPI (pipx / uv / pip)

Dev setup (tests + lint)

Configure

Guided setup (recommended) — opens the right pages, validates each key as you paste
it, and writes .env for you:

Check an existing setup any time:

Or configure manually:

.env is gitignored — secrets never reach the public repo. Keys are read from (in
order) environment variables → project .env → global ~/.config/aiod/.env, so a
global install (pipx install / uv tool install) finds your keys from any…
Read the full README on GitHub

Details

Language
Python
License
MIT
Last updated
20 September 2026

FAQ

What is AIonDemandCluster?

Spin up any open LLM on rented GPUs (vast.ai/RunPod), serve it with vLLM or llama.cpp, and drive it from Claude Code via Claude Code Router. Pay by the hour. It is a model router for Claude Code, from jhammant/AIonDemandCluster on GitHub.

How do I install AIonDemandCluster?

Run pipx install aiondemandcluster # or: uv tool install aiondemandcluster / pip install aiondemandcluster, then follow the setup in the README.

Is AIonDemandCluster popular?

jhammant/AIonDemandCluster has 42 GitHub stars and 7 forks. It was last updated on 20 September 2026.

More model routers & proxies

Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.