Konsolai
A local coding agent that lives in your terminal.
It routes every request to one of four intents, plans before it writes, and refuses what it should never run, on any OpenAI-compatible model you host yourself.

01 / THE TERMINAL
SEE IT RUN
Real captures from a session: the welcome screen, a build turn that recovers from a failed compile, the command palette and the theme picker.
Six palettes. Try one.
/theme opens a live picker in the REPL. These are the exact dark-mode colours from Konsolai's theme package, and this page follows whichever one you pick.
now: /set theme
✓ applied now
02 / ROUTING
ONE REQUEST, FOUR INTENTS
A small, fast model classifies the request before anything runs. The intent decides which tools exist for the turn and whether a plan has to be approved first.
› what is a goroutine
◆ answer
A goroutine is a function running concurrently with the rest
of the program, scheduled by the Go runtime onto OS threads.
0.1s · 619 → 84 tok
none
never
03 / SAFETY MODEL
IT ASKS BEFORE IT TOUCHES
Build turns are gated on an approved plan. Anything outside that plan is confirmed again, some commands are never run at all, and secrets are masked before they reach the database.
Plan gate
Writes must be in the approved plan.
required before any write
[y]es [n]o [a]ll [q]uit → y
you approve once
▸ write src/index.ts (in plan)
runs, no second prompt
▸ run: npm run build (in plan)
matches safety.MatchPlan
⚠ outside plan: npx tsc --version
asks again
Denylist
Refused outright, even under --yes.
✗ refused · safety.extra_command_deny adds more
Redaction
Masked before a message is stored.
sk-proj-7f3Kq9xL2mVb8nRt
ghp_Xr72LmQa9vBn3kTz0pWd
postgres://app:hunter2@db
sudo, doas, su and pkexec are refused. The model lists them for you instead: Run these yourself:
04 / UNDER THE HOOD
ARCHITECTURE
One Go binary, about 38k lines outside tests. Packages are layered so the parts that talk to the terminal, the model and the database stay apart.
TTY
Turn
Persistence
Leaves
RULES THAT MUST NOT REGRESS
- ✓tools, agent and ui never import pgx
- ✓agent never imports memory or store
- ✓the first store error disables memory for the process
- ✓UI checks run on a real PTY, not a pipe
STACK
05 / TRY IT
RUN IT LOCALLY
Point it at vLLM, llama.cpp or Ollama. Add Postgres with pgvector when you want memory and RAG.
go install github.com/SniksaX/Konsolai/cmd/konsolai@latest