Remembers in character
After each exchange the companion decides what to keep: a fact, a promise, an open thread. Facts must have been said word for word.
Clanka is long-term memory for chat companions. After each exchange the companion's own model decides, in character, what to keep. When the conversation ends it sleeps on it, and the next one recalls what it wrote down.
A companion is a soul.md plus an encrypted database of what it remembers. The soul says who the companion is, how it talks, what it cares about and which values it does not give up. The same text decides what it keeps from a conversation.
Everything stays on your machine. Only the conversation goes to the model you choose.
The persona and its traits, in one Markdown file you write and edit.
The transcript, the memories, the mood and a log of every write. Its key stays in your keychain.
Any OpenAI-compatible endpoint. The model that talks is the model that remembers.
Create a companion, write its persona, and talk to it where you already talk.
clanka init Nova
$EDITOR ~/.config/clanka/souls/<id>.md
clanka soul lint ~/.config/clanka/souls/<id>.md
clanka chat ~/.config/clanka/souls/<id>.mdclanka chat needs a [model] in config.toml. Send /sleep to end the conversation and turn it into memories.
hermes/install.sh
clanka hermes profile nova ~/.config/clanka/souls/<id>.md
hermes -p nova chatThe profile is that companion and nothing else. See the Hermes guide.
clanka mcp ~/.config/clanka/souls/<id>.mdRegister it as a stdio server in any MCP host. See the MCP guide.
After each exchange the companion decides what to keep: a fact, a promise, an open thread. Facts must have been said word for word.
Sleep turns a conversation into the night's episode and lets memories drift. After it, you can send the companion into a dream.
See the relevance and score behind every recalled memory, tune the ranking, and check the change against a cases file.
Freeze writes, read the write log, roll the memory back to a point in time, or delete a memory for good.
Build clanka, create a companion and have the first conversation.
What a good persona looks like, and how to brief a model that writes one.
Levels, open threads, mood and how recall ranks what comes back.
Run a companion as a Hermes profile, and let Nightshade write its soul.
Every setting config.toml takes, with its default.
Every command, argument and flag.