Who it is forA developer whose app uses the OpenAI SDK and who wants to test against a free local model.
The problemPaying for API calls during development adds up.
The outcomeA local OpenAI-compatible server your existing code can point at.
What you need first
- macOS, Linux or Windows
- Enough RAM or VRAM for the chosen GGUF model
Steps
- Install llama.cpp
- Run
llama serve -hf ggml-org/Qwen3.5-0.8B-GGUF - Open the built-in web UI to test
- Point your OpenAI client base URL at the local server
Prompt for your agent
Start `llama serve -hf ggml-org/Qwen3.5-0.8B-GGUF`, then send one chat completion from <app> to it. Confirm the response came from the local server, not a cloud API.
Caveat. Small models like the 0.8B example are fast but much weaker than hosted frontier models.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for ggml-org/llama.cpp and "Serve a local model behind an OpenAI-compatible API"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer