The agents runon my own hardware.
Self-hosted LLM inference on an NVIDIA DGX Spark, tuned for coding agents working at roughly 200k-token context, plus the API proxies, MCP servers and agent harnesses that sit around it.
The point was never the model. It was making a locally served model dependable enough that a coding agent can lean on it all day, without a round trip to the cloud for every call.
- Role
- Independent
- Dates
- 2025 – 2026
- Surface
- Inference serving, API proxies, MCP tooling
- Hardware
- NVIDIA DGX Spark
- Stack
- vLLM, SGLang, FastAPI, Go, Swift
The problem
A coding agent works best when the model answers fast, holds a long context, and costs nothing per token. Cloud inference pays per token and adds a round trip for every call; a local box pays once.
The aim was a local stack an agent can lean on all day, without the serving layer becoming the thing that stalls it.
What was built.
Three layersThe serving stack
vLLM and SGLang on a DGX Spark, with quantised models, speculative decoding, prefix caching and memory limits tuned so several concurrent coding agents hold roughly 200k-token context without stepping on each other.
The API layer
A FastAPI proxy that translates Anthropic API calls to OpenAI-compatible backends, with dynamic token budgeting, tool-call deduplication and stream-stall detection, plus a Responses API to Chat Completions wrapper.
The agents around it
MCP servers and agent harnesses deployed with Docker Compose behind a private mesh VPN, including scheduled agents with tool access. A Go backend for a personal agent app, and iOS apps in Swift that carry a local coding agent.
What was measured
What I would do differently
I would have written the benchmarks first, before the serving stack: a number you can show beats a claim you can feel.
And I would have given the proxy its own telemetry, so a stalled stream is a metric with a timestamp instead of a hang you notice late.