TeaNode · Documentation · Source
Location
The TeaNode app on your phone, an iPhone or an Android phone, can keep a record of where you go: each visit
to a place, from when you arrived to when you left, on a map of your day.
Your server keeps it, names the places, shares it with the people you choose,
and your agent reads it, so "when did I last go to the gym" or "is Sam home
yet" has an answer. Nothing is asked of the phone until you open Location in
the app and turn it on.
What is recorded
- Visits, from the iPhone's own visit detection, or on Android from where
the phone stays put, also while the app is closed: a place, an arrival and a
departure. Two visits to one place a few
minutes apart are one visit.
- Positions, when you move about 500 meters, and live while the app is
open. A phone that stays put sends nothing.
- Places, made for each new spot you stop at. Rename one, move it, change
its radius, or label it home, work, school, family or gym, and the name you
give is never replaced. Check in says by hand that you are at a place
near you, and a place can be found by its address, which is how you set
home without standing in it.
What the phone records waits on the phone only until your server has it, so a
day offline arrives whole when the network is back.
Trips and ways of travel
Between two visits is a trip, and each part of it is sorted into a way of
travel: walk, run, bike, car, bus, train, boat or plane. Walking, running,
cycling and driving come from the phone's motion activity, which the app
asks for in Location setup (Motion & Fitness on the iPhone, Physical
activity on Android); a flight is told by its
distance and speed, and without motion activity the speed alone is a guess.
A bus, a train or a boat is yours to say: open the part's menu and choose
the right way, and your correction stays when the day is worked out again.
The Travel tab adds up how far you went each way, by day, week, month and
year, in the units you chose.
Where the names come from
A new place is first named after its nearest city, from a table that ships
with the server, and then named properly by the server's place provider:
OpenStreetMap's public Nominatim service unless the operator sets another
(a Photon of their own) or none. The provider is sent the place's position
and nothing else: not your name, not the time, not your other places. The
dashboard's and the Android app's maps are drawn from OpenFreeMap's tiles,
fetched through your server, so your browser and your phone talk to nobody
else; the iPhone app draws its maps with Apple Maps. Both are set under
places in the
configuration.
Sharing with your circle
Your location is yours. You share it with one person you share a
circle with, or with the whole circle, at one of two levels:
- Where I am now: where you are and the place you are at, and nothing
before it.
- Where I am and where I have been: also your visits, your places, your
paths and your trips.
You see no more of anybody than you share with them: share your visits to
see theirs, share where you are to see where they are, or share nothing and
see nothing. A phone allowed Location only while the app is in use shares no
visits, and Location off, recording off or a pause shares nothing. When that
hides somebody from you, a banner on the phone and the dashboard says what
you cannot see and why, with the button that changes it.
The people you share with see you on a map, live, on the dashboard and in the
app. When you arrive at or leave a place you named or labeled, those who
share their own visits with you get a notification ("arrived home"); a place the server only found a name for
tells nobody, and neither does a day the phone sends late. Leaving the circle
ends the share at once.
Your agent
Your agent reads all of it with its location tool: where you are, where
you were, how you got there and how far you cycled this month, which places
you go to, and where the people who share with you
are. Each day you have visits also becomes a short journal page that the
agent's dreams read, so it learns your routine. In a chat with other people
it speaks only of your own location, never of somebody who shared theirs
with you.
Erasing
Erase takes away your positions and visits, for a day, a range or
everything, along with the places you never named or labeled. Forget
removes one place and its visits. What your agent already learned from those
days stays in its memory until you remove it there, and the screens say so
when you erase. Turning Location off in the app stops the recording.
On the command line it is teanode location, with now, visits, trips,
travel, places, share, erase and the rest; teanode location --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.