Run Claude Code on a local model for private legal case files

A lawyer points Claude Code at a DeepSeek model on eight 2018 V100 GPUs in their office to read case files, pull facts and draft, so documents never leave the building.

Done withClaude Code· Nov 5, 2026

What they did

The poster, u/TumbleweedNew6515, is a lawyer who runs a 2-bit quant of DeepSeek-V4.1-Flash on eight Tesla V100 cards across two NVLink boards, served through a ported vLLM build with their own speed tuning. Because Claude Code can talk to any server that speaks Anthropic's API, they point it at this machine and have it read folders of their own case records, extract facts, dates and numbers, summarise, and take a first pass at routine drafting, with tool calls working. Claude Code also ran the benchmarks and crunched the numbers for the post.

How it went

They say the setup is genuinely useful for real work and estimate 50 to 60% of their LLM workflows can move off frontier models. Measured speeds were about 200 tokens a second on code and 110 on legal writing, with 524K tokens of context. They found and fixed a parser bug that sent tool call arguments twice, after which Claude Code's tool call tests passed 144 of 144. It still serves one request at a time, so Claude Code cannot run subagents against it yet.

Worth knowing

Nothing the model drafts goes out without their own review. The cards cost about $3,200 plus $800 per board, with roughly $80 a month in power; they put the payback at about five months measured against API prices. A long 256K prompt takes about two minutes before the first token, fine for reading a file, slow for chat.

Try it

With Claude Code· 4 parts to fill in

You are connected to a local model at [server address] so that nothing leaves this machine. Read every document in [case folder]. Build a chronology of key facts, dates, parties and amounts, each with the file and page it came from. Then write a short summary of the matter and a first draft of [routine document, e.g. a demand letter or a pleading caption]. Flag anything that looks inconsistent between documents. Do not send, upload or share anything; save the output to [output folder] and stop so I can review it.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related