/batch-inference:onboardingfrom batch-inference
First-time setup for batch inference. Finds local model servers, records the user's backends (Ollama, llama.cpp, vLLM, LM Studio, their own servers, cloud APIs), and takes their guide to when each should be used, plus spend rules, secrets wrapper and notebook location. Rerun to change any of it. Use for "onboarding", "set up batch inference", "add my Ollama server", "add a backend", "change when we use local models".
Ships in batch-inference. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The goal is a guide the router can follow without asking again: which backends exist, and when each one is right. The rules are the user's, so ask for them and write them down in their words. Don't invent policy.
Data directory: scripts/paths.sh dir. Two files go there, and neither belongs in a repo that's public:
backends.json: connection facts (format: shared/backends.example.json). Never a key, only api_key_env.defaults.md: the guide and everything else (format: shared/defaults.example.md).If they exist, read them first and change only what the user wants changed. Show what you'd keep.
python3 scripts/backends.py discover # local servers on the usual ports
python3 scripts/backends.py check # anything already configured
command -v ollama llama-server vllm lms
env | cut -d= -f1 | grep -E 'OPENROUTER|ANTHROPIC|DEEPSEEK|OPENAI'
Report what you found, as names only.
Backends
OLLAMA_HOST says otherwise.When to use which. This is the heart of it. Offer these prompts, and take the answers as given:
The rest
backends.json, then defaults.md with a ## When to use which backend section: one row per rule, in order, first
match wins, ending in the default.
python3 scripts/backends.py check
python3 scripts/backends.py speed <name> --model <model> --items 1000 --out-per-item 150
Add the measured speed to the backend's notes with today's date: routing needs it to weigh hours against dollars. A
backend that's down isn't a failed onboarding if it's a machine that sleeps. Say so, and leave it in.
Finish by running one sample job past the guide: "for 5,000 private emails I'd use X, because rule 1". Ask if that's right.
What SKILL.md sets; muted values are Claude Code's defaults
batch-inference@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin batch-inferenceOther plugins' skills for the same job
16 skills in this plugin
/anthropic-batchRun a bulk job through the Anthropic Message Batches API — Claude Haiku 5.5 by default, half price, usually done in minutes — from a JSONL file of prompts, with structured JSON output, a cached system prompt, resume-by-batch-id and cost logging. The default lane for batch work. Use when the user says "Anthropic batch", "Haiku batch", "batch this with Haiku", "run it on the Batches API", or batch-defaults routes here./batch-defaultsPick the model, provider and lane for any bulk or batch LLM job (labelling, classification, extraction, synthetic data, summarising hundreds or thousands of items). Defaults: Claude Haiku 5.5 on the Anthropic Batches API for judgement work, Hy4 Flash on parallel sync for short generation, DeepSeek V4.1 Flash for other cheap volume (batch or sync, whichever costs less today), OpenRouter Batch API for other named models; the user's own defaults file overrides these. Use first whenever the user says "batch this", "run it as a batch job", "bulk job", "use Haiku", "cheapest batch possible", "do it with DeepSeek", or a task needs one LLM call per item over many items./batch-research-checkRead the research notebook before choosing a provider, model or lane for a bulk/batch LLM job, or before quoting a batch price — per-task screening tables (which model was picked for a task type and why), dated verdicts (use / avoid / watch), the latest price per provider and model, provider gotchas, and records of past runs with their measured cost. Use when planning any batch job, when the user asks "what's the cheapest/best way to batch this", "which batch provider", "what did that cost last time", or before estimating spend for a bulk run.