DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to run a local model as the backend for a coding agent with Lithos Metal

Serve Qwen3.8-27B on your Mac and point a coding agent at it without sending code to a hosted API.

Short answer: Install the precompiled package with brew install lithos-ai/tap/lithos-metal; then start the server with lithos-metal serve --model nvidia/Qwen3.8-27B-NVFP4 and wait for compilation and warmup to finish; install your client separately, for example Claude Code or Codex, in a second terminal. All steps.

Who it is forA developer on an Apple silicon Mac who wants a coding agent to run against a model that stays on the local machine.

The problemHosted coding agents send prompts and code off the machine, and the developer wants a local model with low-latency generation instead.

The outcomeA running local OpenAI-compatible server at http://127.0.0.1:8000 that a coding agent client uses as its model backend.

What you need first

  • An Apple silicon Mac running macOS 26 or later
  • Enough unified memory for the target model, draft model, and context (the README tests Qwen models on a 40-core M5 Max with 48 GB)
  • Homebrew, or Xcode Command Line Tools and Python 3.12 for a source build
  • Client tools such as opencode, claude, codex, or hermes installed separately, if you use the launchers

Steps

  1. Install the precompiled package with brew install lithos-ai/tap/lithos-metal.
  2. Start the server with lithos-metal serve --model nvidia/Qwen3.8-27B-NVFP4 and wait for compilation and warmup to finish.
  3. Install your client separately, for example Claude Code or Codex, in a second terminal.
  4. Launch the client through Lithos Metal with lithos-metal claude or lithos-metal codex.
  5. Send a short test prompt in the client and confirm a response comes back from the local server.

Prompt for your agent

Using the lithos-metal repo at https://github.com/lithos-ai/lithos-metal, start the server with `lithos-metal serve --model nvidia/Qwen3.8-27B-NVFP4` on this Mac, then run `lithos-metal <client>` where <client> is the coding agent you want to use. Report the served model name and the first reply to a one-line test prompt. Verify that http://127.0.0.1:8000 answers before reporting success.

Caveat. The README says one generation runs at a time, and the first start includes model download, weight preparation, compilation, and warmup, so expect a slow first run.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for lithos-ai/lithos-metal and "Run a local model as the backend for a coding agent"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer