TeaNode · Documentation · Source
Journal
Your server already holds most of what happens in a day: the photos you took,
the places your phone stopped at, the mail that came in, the meetings you
recorded, your calendar, the money you spent, your coding sessions, your
steps and sleep, the shopping you did. The Journal puts each day back
together: one page per day that links all of it in the order it happened,
with three things only a journal has. Your own words, the day's mood
and weather, and the story your agent writes of it.
A day
Open Journal on the dashboard, or in the phone app under More (and
make it one of your tabs if you like). The timeline lists your days, newest
first, each with its headline, mood and a photo. Opening a day shows:
- Your words, what you want to remember, in your own voice.
- Your mood: Awful, Low, Okay, Good or Great, and a few words if you
like. A State of Mind you logged in Apple Health shows until you choose.
- The weather, for the place you spent most of the day.
- The story: a headline and a few paragraphs your agent wrote, each
mention a link to the photo, mail or visit it names.
- What happened, read live from each part of TeaNode: a deleted photo
disappears from the day, and a corrected charge shows corrected.
A day links, it never copies. Only the words, the mood, the weather, the story
and a few numbers for the timeline are kept by the journal itself.
Your words are yours
TeaNode never changes what you write. If you want help, ask it to touch
up a day's words, optionally saying how ("shorter", "fix the grammar"). The
touched-up version is shown, marked as such, with your original a tap away;
you only ever edit the original, and the touched-up text is made again from
it. Turn touching up off and it is gone.
Any past day can be changed at any time, and its story is written again.
The story
During its background memory runs ("dreams") your agent writes each day's
story from that day's records, your words, your mood and the weather. It
picks the mail, documents and work messages that mattered, says why in a few
words, and counts the ones it left out. Every mention it makes is checked
against the day's records, so a story cannot name something that is not
there. Today is never written; the timeline shows a line built from the day's
numbers instead.
If the story gets something wrong, choose Something wrong? and say what,
in your own words ("it was Sam at lunch"). The correction is kept with the day
and every later telling follows it. You cannot edit the story by hand, but you
can have it written again or delete it.
Stories are written on their own for the last three months. An older day
shows its links, numbers, weather and your words, and you can ask for its
story from its page.
Weeks, months and years
Zoom out to a week (seven days side by side), a month (a calendar of
days with a photo, mood and temperature each) or a year (twelve small
calendars colored by mood). Each has its own story, written from the days in
it, and room for your own looking back.
What your agent reads
The journal's page reads everything that is yours. Your agent reads a day
only from what you gave it: the mailboxes and calendars granted to it, the
chats it may remember, the finance sources that are on, and Health only when
you let it read Health. The model your server uses sees the whole day, your
words included, and the page says so. Asked "what did I do last Thursday?",
it answers from the journal, but only in a conversation you started.
In the evening TeaNode can ask "How was today?", at 9 PM unless you change
it. The weather comes from a weather service at your day's place rounded to
about 11 km; both can be turned off under the Journal's settings.
Erasing
Erase removes every day, week, month and year: words, moods, weather,
stories, corrections and the memory pages made from them. Nothing the days
linked to is touched. Erasing Health or location history also forgets the
stories written from them.
On the command line it is teanode journal: day, week, month, write,
mood, touch-up, correct, search and the rest; teanode journal --help
lists them.
Documentation
Getting started
- What is TeaNode: Send and receive mail at your own domains: mailboxes read here or over IMAP, forwarding, what it does, and what you need to run it.
- Quick start: TeaNode running with docker compose in a few minutes: the assistant first, with no domain, then mail at your own domain if you want it.
- Getting started: Standing up a mail server for one domain, from nothing to mail arriving in a mailbox you can read in a mail program, including the DNS records and the port 25 problem.
Running it
- Deploying: The container image and the compose file, what runs beside the server, how it upgrades itself, and what to back up.
- Configuration: Where the settings live, the environment variables that say how to reach them, and every field an operator can set.
- Agents: The personal agent: what it needs, what it does with a mailbox, and what to weigh before turning it on.
- Memory: What your agent keeps between conversations: a graph of pages it writes without being asked, the places it reads from, and what it does with all of it in its dreams.
- Voice: Call your agent from the chat drawer: say what you want, hear the answer as it is written, and cut in when you like. On a laptop or a phone.
- Coding sessions: Your Claude Code and Codex sessions in herdr, on every computer you attached: your agent reads them, types into them where you can see, and brings you their questions to answer from anywhere.
- Memory in coding sessions: Claude Code and Codex shown what your agent knows about the checkout they run in: the project page and the last session when one starts, recall kept to the project before each prompt, and the transcript read within a minute.
- Model Context Protocol: TeaNode on both ends of the protocol: answering it, so your editor can use your agent's tools and ask it questions, and connecting out to servers of your own.
- Finance: Your banks, cards and brokerages linked through Plaid or SimpleFIN: transactions in your own categories, budgets that say where the month is heading, savings targets, net worth, and a tax year put together from your paystubs, W-2s, 1099s and 1098s, all kept in your own database.
- Circles and chats: The people on one server in circles: chats with each other in the drawer and the app, with voice messages and voice and video calls, with or without their agents, and calendars, albums, memory pages, skills, finance and location shared at the level each owner picks.
- Photos: Photos and videos on your own server: backed up from the phone in the background, found by place, date or what is in them, faces grouped into people you name, and albums shared with your circle.
- Location: Visits to named places recorded by the phone app, the trips between them and how you traveled, a map of your day, where you are shared with the people in your circle, and what leaves the server to name a place.
- Passwords: Logins, passkeys, one-time codes, cards and notes, encrypted on your own devices: filled in Chrome and on iPhone and Android, shared with your circle, and used by your agent only on the logins you turn on.
- Journal: A page for each day that links everything that happened, with your words, your mood and the weather, and the story your agent writes of it; weeks, months and years above the days.
- Shopping lists: Lists shared with your circle, shopped store by store and aisle by aisle, checked off live and by the receipt, with pictures, prices and a reminder at the store.
- The command line: The two programs: the server and the few things only its host can do, and the client that administers it from anywhere through the API.
Security
- Reporting a security problem: Where to report something exploitable, what is in scope, and what is not.
- Security review: A review of the whole program: what was examined, what was found, what was fixed, and what is still open.
Contributing
- Contributing: Naming, comments, the invariants that bite, tests, commits and the changelog that cuts a release.
- Local development: Getting a working build and a database to point it at, a development server that cannot send mail, and the optional scanners.
- Project structure: What each package is for and which way the dependencies point.
Every document is also plain markdown, listed in /llms.txt.