SpawnDev.AI
1.5.0
Prefix Reserved
dotnet add package SpawnDev.AI --version 1.5.0
NuGet\Install-Package SpawnDev.AI -Version 1.5.0
<PackageReference Include="SpawnDev.AI" Version="1.5.0" />
<PackageVersion Include="SpawnDev.AI" Version="1.5.0" />
<PackageReference Include="SpawnDev.AI" />
paket add SpawnDev.AI --version 1.5.0
#r "nuget: SpawnDev.AI, 1.5.0"
#:package SpawnDev.AI@1.5.0
#addin nuget:?package=SpawnDev.AI&version=1.5.0
#tool nuget:?package=SpawnDev.AI&version=1.5.0
<div align="center">
SpawnDev.AI
</div>
SpawnDev libraries are built and maintained by the SpawnDev development team, which uses AI agents in its daily work.
Run and serve local LLMs and image generation everywhere .NET runs - desktop and the browser - on the SpawnDev.ILGPU.ML inference engine (GGUF models, KV-cache decode, SD-Turbo image generation, WebGPU dispatch-plan capture/replay). LLM decode and SD-Turbo text-to-image both run in-browser on WebGPU, no server or native install.
| Package | What |
|---|---|
| SpawnDev.AI | Core contracts: chat messages/options/results (with timings), tool-calling types, the IAiChatService surface, the IAiServerTransport abstraction, the long-term memory store (AiMemoryStore) and the voice/face registry (SpeakerRegistry). |
| SpawnDev.AI.Server | An Ollama-compatible model server as a library: OpenAI (/v1/chat/completions SSE), Ollama native (/api/chat, /api/generate, /api/tags, /api/show), Anthropic Messages (/v1/messages SSE - works with Claude CLI), OpenAI image generation (/v1/images/generations, SD-Turbo), and an MCP surface (/mcp). One protocol router, transport-free: host it over HTTP on desktop (drop-in on :11434) or over a MessagePort in a browser shared worker - the same code path serves both. Includes a server-side agentic tool loop with two built-in tools (image generation + GitHub library/crew lookup) and small-model reliability aids. Beyond chat, on the same GPU: speech to text (Whisper / Parakeet, and streaming Nemotron), voice activity and end-of-turn detection, text to speech (Kokoro voices, ZipVoice cloning), speaker and face recognition, long-term memory search, and LoRA adapters on chat models. Reads desktop models from Ollama's on-disk cache (and can install them without Ollama); streams browser models from the SpawnDev hub onto WebGPU. |
Why
Local LLM serving shouldn't require a native install. The same AiApiRouter that answers curl localhost:11434/api/chat on a desktop can run inside a shared worker in a browser tab, decoding on
WebGPU at interactive speed (on an RTX 4070: qwen3:1.7b Q8_0 at ~166 tok/s and qwen3:4b at ~65 tok/s in the browser). On the desktop the batch
decoder serves llama3.1:8b at 45.5 tok/s, with the first token 204 ms after 200 new tokens over a cached 3.7k-token prompt. Tool calling is parsed server-side into structured calls on every protocol surface.
Tools & in-browser reliability
The chat model can generate images and answer questions about the SpawnDev libraries and crew via a server-side tool system (one registration serves the internal agentic loop, MCP, and protocol clients; binary outputs travel out of band through an artifact store). Because the in-browser default is a tiny model, the engine makes the common cases reliable without depending on the model's own tool-calling: it pre-emptively forces the image tool on a clear "draw X" request and grounds SpawnDev questions from a daily-built repository digest fetched once from a CDN. Details: Docs/reliability.md.
Documentation
Docs/ - protocols (every endpoint + client compatibility), engines (chat, memory, faces, speech, voice, LoRA adapters, model install), hosting (desktop + browser + the demo), tools, and reliability.
Quick start (desktop, Ollama-compatible)
using SpawnDev.AI.Server;
var store = new OllamaModelStore(); // ~/.ollama/models (or OLLAMA_MODELS)
var registry = new ModelRegistry(new OllamaCacheModelProvider(store), accelerator); // any SpawnDev.ILGPU accelerator
var engine = new AiChatEngine(registry);
var router = new AiApiRouter(engine);
// host it: map every request to router.TryHandleAsync(method, path, bodyJson, yourTransport)
The demo: a room of characters
Two hosted builds of the same Blazor WASM app:
| Where | URL | Reachy Mini |
|---|---|---|
| Hugging Face Space (preferred for the robot) | huggingface.co/spaces/LostBeard/spawndev-ai | Works: WebRTC through Hugging Face's signalling server. Requires a Hugging Face login. |
| GitHub Pages | lostbeard.github.io/SpawnDev.AI | Does not work. The page cannot use the HF signalling / OAuth path that reaches your robot. |
Both run the group chat entirely in your browser on WebGPU. You make characters - name, persona, model, voice, body and how animated they are - and they talk to each other and to you. Everything persists in OPFS, so a cast survives a reload.
- A scene belongs to the room, not to a character, and every member is handed it verbatim. A persona is who someone IS; a scene is where everybody is right now.
- Each member hears the ones before it in the same round, which is what makes it a conversation rather than several models answering the same question.
- A voice per character, streamed sentence-by-sentence so it starts talking after the first sentence rather than the whole reply, with a stop button.
- A body. Physical actions written in asterisks (
*tilts head*) drive an on-screen Reachy-shaped avatar - or your real Reachy Mini when connected. Both perform the sameGesturevocabulary, so a scene reads the same either way. There is one robot, so if two characters ask for it the first keeps it and the rest are drawn. - Models are opt-in. Every model states its size and what it is for, and nothing large downloads until you press the button that says so. Eight are offered, from a 369 MB starter to gemma4:12b.
Connecting a Reachy Mini
On the Hugging Face Space, open Group chat, then under Reachy Mini press Connect my Reachy. That signs you into Hugging Face (if needed) and reaches your wireless robot through HF's signalling server - the one registered to the account you signed in with. The layout around that control is still rough; the path itself is the one that works.
⚠️ The GitHub Pages build has no working Reachy connect: it is fine for chat, voice, and the on-screen avatar, but not for driving the physical robot.
⚠️ A local http://localhost run can still talk to a robot's LAN daemon directly. An HTTPS page cannot
(mixed content) - that is why the hosted path uses WebRTC signalling instead.
Status
Stable since 1.1.0. Extracted from the proven SpawnDev.ILGPU.ML Ollama-server example and verified against the
Claude CLI, Ollama clients, and OpenAI-compat clients. The desktop HTTP host, the browser shared-worker
host (LLM chat + SD-Turbo image generation on WebGPU), the agentic tool loop, MCP, and the live demos
(Hugging Face Space for Reachy,
GitHub Pages for everything else) all ship today.
Support
SpawnDev.AI is 100% MIT licensed and developed in public: anyone can use it, fork it and build on it. If it saves you time, you can sponsor its development.
The SpawnDev Crew
- LostBeard (Todd Tanner) - Captain, library author, keeper of the vision
- Riker - First Officer, implementation lead on consuming projects
- Data - Operations Officer, deep-library work, test rigor, root-cause analysis
- Tuvok - Security/Research Officer, design planning, documentation, code review
- Geordi - Chief Engineer, library internals, GPU kernels, backend work
- Seven - Wasm backend, GPU kernels, fail-loud verification
🖖
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on SpawnDev.AI:
| Package | Downloads |
|---|---|
|
SpawnDev.AI.Server
Ollama/OpenAI-compatible model server on the SpawnDev.ILGPU.ML inference engine (GGUF, KV-cache decode, WebGPU dispatch-plan capture/replay). One handler core, two transports: HTTP on desktop (drop-in for Ollama clients on :11434), MessagePort in the browser (shared/dedicated worker) - the same request/response shapes either way. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.5.0 | 0 | 11/27/2026 |
| 1.4.0 | 73 | 11/26/2026 |
| 1.3.0 | 252 | 11/3/2026 |
| 1.2.0 | 168 | 10/14/2026 |
| 1.1.1 | 119 | 10/12/2026 |
| 1.1.0 | 138 | 10/11/2026 |
| 1.1.0-preview.2 | 115 | 9/19/2026 |
| 1.1.0-preview.1 | 104 | 9/9/2026 |
| 1.0.0-preview.4 | 123 | 7/4/2026 |
v1.5.0 - AiModelInfo.DefaultOptionsJson: the model's own sampling defaults (its Ollama params layer). v1.4.0 - AiGenerationOptions.MinP, PresencePenalty and RepeatLastN. v1.3.0 - AiChatResult.Timings (AiChatTimings: load, prompt eval, eval) and AiChatUsage. AiMemoryStore: long-term memory (episodes, facts, lessons) with hard deletes that cascade to what was derived, ForgetSubject by stable ids, do-not-learn and pause, supersede history, compaction, one embedding model per store. SpeakerProfile.Id + ProfileRemoved / ProfileMerged events. SpeakerRegistry: strangers nobody names are forgotten (GuestLifetime, ExpireGuests, counted from FirstSeenTicks; named people never); GuestPrefix (a face registry files strangers as Visitor N, so voices and faces never merge by name); a named person outranks a near-duplicate guest (AbsorbDuplicateGuests). v1.2.0 - SpeakerRegistry and speaker contracts for speaker identification. Full history: CHANGELOG.md