LLMock: HTTP-based mocking server for deterministic LLM testing across processes

LLMock is a mocking server that intercepts LLM API calls by running as a real HTTP server on a specified port, allowing deterministic testing across multiple processes without hitting paid APIs.
Key Details
The tool was discovered after a developer spent $12 running Playwright tests against real OpenAI APIs. The problem occurred when using MSW (Mock Service Worker), which patches the HTTP module inside the Node.js process that calls server.listen(), but leaves separate processes (like a Python agent) completely blind to the mocking.
With LLMock, you point the OPENAI_BASE_URL environment variable at the mock server from every process, regardless of whether it's Node.js, Python, or any other language:
const mock = new LLMock({ port: 5555 });
await mock.start();
process.env.OPENAI_BASE_URL = "http://localhost:5555/v1";Fixtures are plain JSON files that match on user message substrings or regex patterns, eliminating handler boilerplate:
{
"fixtures": [
{
"match": { "userMessage": "stock price of AAPL" },
"response": { "content": "The current stock price of Apple Inc. (AAPL) is $150.25." }
}
]
}Key features from the source:
- Speaks actual OpenAI/Claude/Gemini SSE format correctly (getting event types wrong breaks streaming in subtle ways)
- Full tool call support - agent frameworks execute them normally
- Predicate routing for inspecting system prompt state or message history for multi-agent flows
- Request journal to assert on what was actually called, not just whether the test passed
- Zero dependencies
The developer ended up with 9 LLM calls across 3 Playwright tests, costing $0 and producing deterministic results every run.
📖 Read the full source: r/LocalLLaMA
👀 See Also

Krasis: Hybrid CPU/GPU Runtime for Large MoE Models Achieves 3,324 tok/s Prefill on RTX 5080
Krasis is a hybrid CPU/GPU runtime that runs large MoE models by handling prefill on GPU and decode on CPU, achieving 3,324 tokens/second prefill on an RTX 5080 with Qwen3-Coder-Next 80B Q4. It requires ~2.5x model size in system RAM but enables running models too large for VRAM.

Benchmark Shows CLI Tool Reduces Claude Code Token Costs by 32% Through Structural Navigation
A developer built a Rust CLI tool that gives Claude Code agents structural navigation commands like 'show me a 180-token summary of this 6,000-token class.' Benchmarking on Sonnet 4.6 across 54 automated runs showed 32% lower cost per task and 67% more code edits per session.

Coasts: Containerized Hosts for Running Multiple Localhost Environments
Coasts is a Docker-in-Docker solution that solves the problem of running multiple localhost environments simultaneously, handling port conflicts, secrets, and volume topologies without requiring complex scripting.

OpenBridge: Free Open-Source Remote Control for Claude Code via Slack/Discord
OpenBridge is a free, open-source tool that lets you control Claude Code from Slack or Discord, organizing projects as channels and conversations as threads. It runs locally or on a VPS and works with existing Claude Code/Codex subscriptions without extra API fees.