Kairos AI
Open source · local-first · one consumer GPU

Local AI, built in the open.

Kairos AI is a small workshop of open-source projects that run on your own machine against your own models: a companion that keeps an auditable memory, a story engine where the dice are real, and a book that writes itself as you read it. Everything is MIT-licensed and on GitHub.

any OpenAI-compatible endpoint LM Studio · llama.cpp · vLLM built on an RTX 2060 12 GB MIT licensed
The Kairos room: a desktop in the browser with app folders, a dock and her portrait

Kairos

A local AI companion framework that owns its memory, plus a from-scratch CUDA engine to run it.

The Clockwork Dark in play

The Clockwork Dark

An emergent-story engine: a deterministic world holds the truth, a local model narrates it.

Primer's reader window beside a generated picture of a castle keep

Primer

An offline illustrated primer: click any phrase to branch, draw or animate it.

Companion framework

Kairos

Nothing she knows is ever deleted.

Kairos is a Python harness and a React "room" for a companion that remembers the person she talks to, speaks when she has a reason to, and spends time on her own while you are away. It runs against any OpenAI-compatible chat endpoint on one consumer GPU. No weights ship with it, and her personality starts blank; it's shaped by whoever she talks to.

  • Memory you can audit. One append-only fact registry. Changed facts are tombstoned with their provenance, never dropped, and anything she concluded has a why button showing what it was drawn from.
  • Her own time. When the room goes quiet, an idle clock gives her reasons to act: continue a thread, check in, remind, think. Every impulse is metered and judged, and what she did is readable afterwards.
  • A face, clothes and a voice. A catalog of looks, gestures and motion loops. Inline marks move real state mid-sentence: mood, voice, what she's wearing.
  • She looks things up. Web search inside the turn, plus an optional slower research tier whose receipts you can read.
  • A desktop in the browser. Folders, a dock, movable windows, and a top bar that says how she is, how her day is going and how the machine is.
Optional backend

kairos-engine

A from-scratch CUDA inference engine and Rust HTTP daemon, built and measured on one 12 GB card for Gemma-4-26B-A4B. The 13 GB Q4 model doesn't fit in VRAM, so the experts live in pinned host RAM with an LRU expert cache on the GPU.

It exposes things a generic endpoint can't, like the raw stop-versus-continue logit gap that lets her pick a cut-off sentence back up.

RTX 2060 12 GB, Gemma-4-26B-A4Bkairos-enginellama.cpp -ncmoe 14
prefill, 4,204 tokens5.95 s (~707 tok/s)~340 tok/s
decode at ~4.2k35.5 tok/s34.4 tok/s

October 2026, same card, fresh daemon per run. Decode is at parity and prefill is about 2.1× ahead. In one round of work, decode went 27.3 → 35.5 tok/s and prefill 16.4 s → 5.95 s; the companion's ~9k persona snapshot capture went 55 s → 15 s.

Story engine

The Clockwork Dark

The engine resolves. The model narrates.

An emergent-story engine for local AI. A deterministic engine holds the truth: time, dice, money, law, what the city's schemers did last night. Local LLM agents only narrate it. Seeded systems run into each other, the engine settles the result, and a model on your own machine writes the prose.

Seven stories ship: grounded low fantasy, a fae-court bargain, cyberpunk survival, rain-and-radiator noir, a thief's comedy and a dating story played on a phone. The engine itself doesn't know any of them exist.

  • Illegal actions can't be sampled. The output grammar is a JSON Schema rebuilt every turn from what the engine will accept. An unreachable destination simply isn't in the enum.
  • Choices carry intents. Anything that moves, spends or risks something runs through the engine before the next word is written, and the model narrates the receipt.
  • Seeds replay. Each system draws from its own named RNG stream. Same seed and same choices give the same world.
  • Every mechanic reaches the prose. An evaluator rejects success narrated over a failed check, and a refused move gets an engine-written refusal rather than silence.
  • Local-first. LM Studio by default, or llama-server, Ollama, vLLM. Shipped art packs mean every scene has a picture with no image model at all.
Offline reader

Primer

A book that writes itself as you read it.

Start from a loose interest, like castles. Every phrase on the page can be clicked, and each one branches into a new page. Any phrase can be drawn as a picture or turned into a short clip, and you keep reading while they render. Pages can be grounded in an offline copy of Wikipedia, with citations you can follow.

Everything you read and every picture it draws is kept, so your wandering becomes a book you can browse again later.

  • Three ways out of every phrase. In this context, General, or Sideways, a related idea you might not have thought to ask about.
  • It thinks ahead. While you read, it quietly writes the page you're most likely to open next, so the click is instant.
  • Pictures and video on demand. stable-diffusion.cpp in the background: SDXL, Qwen-Image, MOSS-Image, and Wan 2.2 or LTX for clips. Every image records its seed.
  • Grounded when you want it. Offline Wikipedia via Kiwix, or the live web, with numbered citations and a badge saying what the page was written from.
  • It asks back. Test me quizzes you on a page, Review brings questions back over the following days, and places get pinned on an offline map.
About

Who's behind this

I'm Ray Daniels, in Victoria, Australia. I've been online almost every day since the BBS days, before the internet reached Australia, and I've been building PCs since the early '90s.

These projects are built almost entirely by AI agents, hands-off, and everything is pushed public, with markdown continuity notes in each repo so people and agents can follow along. Taken together they're also a record of how agentic coding has changed from one model generation to the next.

Everything here runs locally, on hardware you own. If something interests you, open an issue, fork it, or get in touch.