teanode

module
v0.143.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2026 License: MIT

README

TeaNode

TeaNode

A mail server for your own domains, in one executable.

teanode.com · Quick start · Documentation

It receives mail over SMTP, checks that it is genuine (SPF, DKIM, DMARC, ARC), scores it for spam and optionally scans it for viruses, and then either files it in a mailbox here or hands it on — to an inbox you already read, to a webhook, or to another mail server. It also relays outbound mail from your own devices, signed with your domain's key so it arrives rather than landing in spam.

A mailbox is read in the dashboard or in any mail program over IMAP. An address that should not have a mailbox forwards instead, and one domain can do both. Each account also has a calendar, a reminders list and an address book, which a phone keeps in step over CalDAV and CardDAV.

Each person can turn on an agent of their own, pointed at a model the operator chose (OpenAI, Anthropic, Gemini, an Ollama or vLLM on the same machine, or a ChatGPT plan). It sorts the mail that arrives, drafts replies, answers questions with exactly that person's permissions, keeps a memory of what it learns, and can read the banks and cards they link. You can call it from the dashboard and talk, and it can see and prompt the Claude Code and Codex sessions on your computers. It is off until somebody turns it on.

flowchart LR
    A["you@example.com"] --> T
    B["hello@example.com"] --> T
    C["anything else@example.com"] --> T
    T["TeaNode<br/>SPF · DKIM · DMARC · ARC"]
    T --> M["a mailbox here,<br/>and over IMAP"]
    T --> D["you@example.net"]
    T --> E["an HTTP endpoint"]
    T --> F["another mail server"]

Why

Running mail for a domain usually means either handing it to a provider, or assembling Postfix, Dovecot, OpenDKIM, OpenDMARC, SpamAssassin and a policy daemon and keeping them in agreement. This is one executable and a PostgreSQL database, with the authentication that decides whether your mail is trusted built in rather than bolted on.

What it looks like

The dashboard is compiled into the binary; there is nothing else to deploy. It opens on your mailbox, and the pages that run the server are a mode behind Manage, which shows only what your permissions allow. Every picture here is of invented people and invented mail.

A mailbox, with a message open

Folders nest, search covers one folder or the whole mailbox, and a message is shown the way a mail program would show it.

The Priority view, with the agent's chips on each row

With the agent on, each message gets a category, a priority and a note of whether somebody is waiting on you, and Priority lists what needs you first.

A week of the calendar

The calendar, with the reminders list a tab away. An invitation that arrives as mail becomes an event you can answer.

The address book

The address book holds the people you keep, not everyone who ever wrote.

The chat drawer open beside the mailbox

The agent is a drawer on every page. Asked what needs you today, it searches your mail and answers from what it found; anything it cannot undo, and anything that leaves the server, waits for you to approve it.

A voice call in the drawer

Press the telephone beside send and talk. Each thing you finish saying goes to the agent as a turn, and the answer is read back as it is written; you can cut in, or mute the microphone for a word with somebody else.

A coding session's question in the drawer

With herdr on your computers, the agent sees every Claude Code and Codex session, reads what each did, types into one where you can see it, and brings you the questions they stop to ask, with the options as buttons. The other way round, hooks show those sessions what the agent's memory knows about the checkout they run in.

The agent's own settings page

Its own page says what to call it, how it should write, which mailboxes it may reach, and what it has spent today.

One page of the agent's memory

What it knows is a graph of pages. Each fact is numbered and carries the words it came from, and every change records who made it and what was there before.

The same memory as a graph

The same pages as a graph, joined by links that say how they relate.

Income and spending across twelve months

Link a bank, a card or a brokerage through Plaid or SimpleFIN, and the Finance page shows where the money went, against budgets that say where the month is heading.

A receipt matched to its charge

A receipt photographed into the chat is kept line by line, checked against its printed totals and matched to the charge it explains.

Net worth and assets

Net worth counts the linked accounts, what you enter yourself, and estimates the agent makes where you allowed it.

Behind Manage is the server: every message it has handled with what it decided about each one, the queue, DMARC reports, the domains, and who may do what.

People, groups and roles

A group is the only thing a role or a domain is attached to. Tie one to a domain and its permissions reach that far and no further; give it the name of a group in your identity provider and its membership follows the directory.

A domain's DNS records, each one checked

Each domain lists the DNS records it needs and checks every one, so you can see what is left rather than guessing.

Getting started

For a personal assistant without hosting email, use the assistant compose file and deployment guide. Claim your account, choose services in Server > Setup, configure a model and enable the assistant. No mail domain, MX records or SMTP ports are needed. Calendar, reminders and contacts are independent choices. Existing mail installations retain their behavior when upgraded.

The instructions below configure hosted mail.

Download the two programs, describe the server, run it:

curl -L -o /usr/local/bin/teanode-server \
  https://github.com/ziyan/teanode/releases/latest/download/teanode-server-linux-amd64
curl -L -o /usr/local/bin/teanode \
  https://github.com/ziyan/teanode/releases/latest/download/teanode-linux-amd64
chmod +x /usr/local/bin/teanode-server /usr/local/bin/teanode

mkdir -p /opt/teanode && cd /opt/teanode
teanode-server config env --preset mail --output .env \
  --hostname mail.example.com --domain example.com

Edit .env — it needs a PostgreSQL you can reach and an address for the certificate authority to write to — then set the server up and start it:

set -a; . ./.env; set +a
teanode-server config init
teanode dkim show example.com

That last command prints the DNS record for your signing key, which was generated with the domain. Publish it, along with an MX record pointing at your server, then:

teanode-server run

The dashboard is on the same host. It lists exactly which DNS records are still missing, so you can see what is left rather than guessing. teanode is the command line client for the same API: sign in from a laptop with teanode auth login --url https://mail.example.com, and teanode domain list, teanode mailbox folder list, teanode group list and the rest work from there. A profile can be read-only, which is what to hand a script or an agent that should look but not touch.

The first person to open the dashboard creates the account, which is an administrator with a mailbox of its own. Point an address at that mailbox with an alias of kind mailbox, make an app password under Mailbox settings → Mail programs, and a mail program reads it over IMAP.

Or skip the binaries and run the compose file, which is how this is meant to run in production: the quick start is four commands.

Getting started has the full walk-through, including the DNS records and the reality that many providers block outbound port 25. Every document here is on teanode.com as well, rendered and translated.

What you need

  • A domain, and the ability to edit its DNS
  • A host with a stable address, reachable on ports 25, 80, 443 and 587, and on 993 if mail programs are to read the mailboxes
  • PostgreSQL, for the settings, the mailboxes and the mail it has handled

Nothing else. No AWS account. Certificates are obtained automatically over HTTP-01, so there is no DNS API to configure. An S3-compatible object store is optional, and only worth having if you run more than one instance: it is what lets them share the stored messages.

What it does

Mailboxes. Every account has one. Folders nest to any depth and can be renamed, moved and pinned; search covers one folder or the whole mailbox, with sender, recipient, subject, date and attachment filters; rules file mail as it arrives, and can be run over mail already filed. There are drafts whose attachments upload once, a signature, contacts kept from whoever you write to, and an out-of-office reply that knows not to answer machines, mailing lists or another mailbox that is also away. A message is stored once however many folders hold it, and kept for as long as one of them does.

IMAP. Port 993, and STARTTLS on 143, so a mail program reads the same mailbox. Each device gets an app password of its own, which signs in to IMAP and sends through the submission port as any of the mailbox's addresses.

Authenticates everything. SPF, DKIM, DMARC and ARC on the way in, with the results shown per message. Your outbound mail is DKIM signed, and forwarded mail keeps an ARC chain so it still passes at the far end.

Forwards flexibly. Aliases match the address with a regular expression and send the message to an address, an HTTP endpoint, or another mail server. An empty pattern is a catch-all, which receives whatever nothing else matched.

Calendar, reminders and contacts. A calendar and a reminders list over CalDAV, and an address book over CardDAV, so a phone keeps them in step. An invitation that arrives by mail becomes an event you can accept or decline. The notes a phone keeps in the mail account show in the dashboard too.

A personal agent, if you want one. Off until the operator configures a model and each person turns their own on, and blind to every mailbox until it is granted one. It sorts what arrives, summarizes long conversations, drafts replies in your voice, and can answer on your behalf under a policy you write. It answers questions in a drawer on every page or with teanode agent ask, through the same operations the dashboard uses, with your permissions. It can reach your calendar and contacts, your own computer and browser tab, the web, and servers you connect over the Model Context Protocol. It tells you, unasked, when mail shows something that cannot wait, within quiet hours and a daily limit you set. Operators cap what it may spend.

Talk to it. A call in the drawer, on a laptop or a phone: what you say is transcribed as you say it, the answer is written for the ear and read back, and you can talk over it. The operator turns it on and the provider's key never leaves the server.

Your coding sessions. Through herdr on each attached computer, the agent lists your Claude Code and Codex sessions, reads them, types an instruction into one, answers the questions they ask, and tells you when one finishes.

Memory in your coding sessions. teanode hook install claude-code (or codex) adds hooks that show each session what the agent knows about the checkout it runs in. When a session starts: the project's page and its facts most in use, and where the last session in that directory stopped (your last requests and the start of its last answer, read from the transcript). Before each prompt: what the prompt recalls and the lessons close to it, kept to the checkout's project so your mail and money stay out of the coding tool. After each answer: the computer's transcript source reads the session within a minute, so the next one knows where this one stopped. A hook that fails shows nothing and never stops the tool, and teanode agent memory checkout prints what a session would be shown. Memory in coding sessions has the details.

A memory that learns you. The agent keeps what it learns as a graph of pages, each fact numbered and tied to the words it came from. It writes pages without being asked, reads the places you point it at (a code checkout, a chat archive, your notes, a wiki), and works over the graph while you are away. Nothing is deleted, and every change can be put back.

Finance. Banks, cards, brokerages and lenders linked through Plaid or SimpleFIN, kept in your own database: transactions in your own categories, budgets that project the month, savings targets, and net worth over time. Accounts no provider reaches come in from an OFX statement or from screenshots, and receipts are kept line by line against their charges. The agent reads the same rows, so you can ask it how the month is going.

Model Context Protocol, both ways. An editor, a coding tool, or ChatGPT or Grok on your phone can use your agent's tools and ask it questions, so you can check on your coding sessions by voice from the car; approve it in your browser and there is no token to copy.

Relays your outbound mail. Per-device SMTP credentials on the submission port, each optionally restricted to one sender address.

Shows you the mail. The dashboard renders a message as a message: the authentication verdicts, the delivery attempts and why any of them failed, and the body itself with scripts stripped and remote images blocked until you ask for them.

Sends mail you write. Templates with variables and translations, a layout around them, pictures served from your own domain, and a record of whether the recipient's mail program fetched them.

Reports on your domains. Incoming DMARC aggregate reports are parsed and kept, which is how you find out somebody is forging your domain.

People, groups and roles. Permissions decide what each person sees: Administrator, Operator and Member come seeded and all of it is editable, and a group can be tied to a domain so its permissions reach only that far. Single sign-on through an OpenID Connect provider follows a group in your own directory. Every change to a user, group, role, domain, alias, credential or mailbox is in the audit log.

Scores spam without a second program. The filter inside the server reads what it already established about a message — the authentication results, the sending host's confirmed reverse DNS name, the name it gave in HELO — consults public block lists over ordinary DNS, and applies a classifier trained on the mail you mark in the dashboard. An external SpamAssassin daemon is still supported for deployments that want one.

Optional extras, all off by default. ClamAV, GeoIP, an S3 mirror of stored messages, an outbound SOCKS5 proxy for hosts whose address has a poor reputation, and DNS-01 certificates if you need a wildcard.

How a message gets through it

flowchart TD
    internet["The internet<br/>port 25"] --> smtpd["SMTP listener"]
    devices["Your devices<br/>port 587, with a credential"] --> smtpd
    smtpd --> route{"What is this?"}

    route -->|"a signed bounce or report address"| reports["Bounce, or a DMARC<br/>aggregate report"]
    route -->|"an authenticated credential"| outbound["Sign with the domain's key<br/>and relay it"]
    route -->|"anything else"| inbound["Inbound mail"]

    inbound --> checks["SPF · DKIM · DMARC · ARC<br/>spam scoring, optional virus scan"]
    checks --> stored["Recorded, with what<br/>each check decided"]
    stored --> aliases["Match the local part against<br/>this domain's aliases"]
    aliases --> delivery["One delivery per match"]
    delivery --> mailbox["A mailbox here:<br/>a reference to the stored<br/>message, filed by its rules"]
    delivery --> away["Elsewhere: an address,<br/>a webhook, another server"]

Every arrow above is a place the dashboard can show you what happened, which is the point of recording it.

Configuration

Everything lives in the database, so several instances share one answer and a change made in the dashboard reaches all of them. The environment says only how to reach that database and which instance this process is.

Domains, aliases, credentials and accounts are rows, managed one at a time:

teanode domain create example.com
teanode alias create example.com --pattern '^you$' --kind mailbox --mailbox <mailbox id>
teanode alias create example.com --pattern '^hello$' --kind email --email you@example.net

The settings — the listeners, TLS, the spam filter, single sign-on and the rest — are one document, which teanode-server config show prints and teanode-server config import reads, so a server's settings can be put under version control and loaded. Every field is documented in Configuration.

Running it

deploy/docker-compose.yml is a complete deployment: the server, PostgreSQL, and behind profiles the things only a cluster needs. It pulls the published image, so there is nothing to build:

docker compose up -d

The image carries the dashboard and nothing else — no shell, no package manager. docker compose build still builds the checkout, which is what you want when the change you are running is one you just made.

docs/reference/deployment.md walks the whole thing through, including upgrades, what to back up, and running more than one instance.

Contributing

CONTRIBUTING.md for conventions and the invariants that matter, AGENTS.md for orientation, docs/decisions/ for why the architecture is the way it is.

make            # format, build, test
make dev        # a development server on high ports that cannot send mail

Security

Do not open a public issue for anything exploitable in mail handling, authentication or certificate issuance. Report it privately through the Security tab; SECURITY.md has the details and says what is in scope.

docs/security/security-review.md records a review of the whole program: what was found, what was fixed, and what is still open.

License

MIT. See LICENSE.

Directories

Path Synopsis
cmd
teanode command
Command teanode administers a TeaNode server over its API.
Command teanode administers a TeaNode server over its API.
teanode-server command
Command teanode-server is a self-hosted mail forwarding and relay server.
Command teanode-server is a self-hosted mail forwarding and relay server.
internal
access
Package access is who may do what: the seeded roles and groups, the checks a resolver makes against a caller's effective permissions, and the one rescue path that bypasses them.
Package access is who may do what: the seeded roles and groups, the checks a resolver makes against a caller's effective permissions, and the one rescue path that bypasses them.
addressbook
Package addressbook implements authorized contact commands independently of transport.
Package addressbook implements authorized contact commands independently of transport.
agent
Package agent is a person's agent: the worker that does its processing with nobody present, and — in later milestones — the conversation it holds with the person and the tools it reaches everything through.
Package agent is a person's agent: the worker that does its processing with nobody present, and — in later milestones — the conversation it holds with the person and the tools it reaches everything through.
agent/feedback
Package feedback records corrections for subsequent agent work.
Package feedback records corrections for subsequent agent work.
agent/indexed
Package indexed is searching and reading what a person's sources put in front of their agent: the documents a pass read, and the passages they were cut into.
Package indexed is searching and reading what a person's sources put in front of their agent: the documents a pass read, and the passages they were cut into.
agent/reading
Package reading is how far the night has got through what was indexed: one measure that the API, the command line and the knowledge tool share, in a package of its own because the tool cannot import the agent.
Package reading is how far the night has got through what was indexed: one measure that the API, the command line and the knowledge tool share, in a package of its own because the tool cannot import the agent.
agent/tools
Package tools is the agent's tool kit: what a tool is, what a call and a result are, the catalog with its permissions and policy, and the registry every tool package registers into from its own init.
Package tools is the agent's tool kit: what a tool is, what a call and a result are, the catalog with its permissions and policy, and the registry every tool package registers into from its own init.
agent/tools/account
Package account is the person's own account: profile, tokens, sessions, app passwords, and what their permissions let them do.
Package account is the person's own account: profile, tokens, sessions, app passwords, and what their permissions let them do.
agent/tools/agentprofile
Package agentprofile is the agent's own profile, as the person tells it in conversation: what it is called, which language it talks in, and the lines the person wants added to its standing instructions.
Package agentprofile is the agent's own profile, as the person tells it in conversation: what it is called, which language it talks in, and the lines the person wants added to its standing instructions.
agent/tools/all
Package all imports every tool package, so that importing it is importing the catalog.
Package all imports every tool package, so that importing it is importing the catalog.
agent/tools/artifact
Package artifact is what the agent makes for the person to open beside the conversation: a page, a drawing or a document it wrote, kept as a file of the conversation, served to its owner alone and in a sandbox.
Package artifact is what the agent makes for the person to open beside the conversation: a page, a drawing or a document it wrote, kept as a file of the conversation, served to its owner alone and in a sandbox.
agent/tools/askuser
Package askuser is the question to the person, for when the answer changes what happens.
Package askuser is the question to the person, for when the answer changes what happens.
agent/tools/browser
Package browser is the agent's browser: a page in the operator's headless Chrome, signed in as nobody, read as a tree with [ref=N] on everything that can be acted on; or, with target tab, the person's own attached tab, with their session, while they watch.
Package browser is the agent's browser: a page in the operator's headless Chrome, signed in as nobody, read as a tree with [ref=N] on everything that can be acted on; or, with target tab, the person's own attached tab, with their session, while they watch.
agent/tools/calendar
Package calendar is what the agent knows about its person's diary: what they have on, when they are free, and -- asking first -- putting something in.
Package calendar is what the agent knows about its person's diary: what they have on, when they are free, and -- asking first -- putting something in.
agent/tools/coding
Package coding hands a piece of work to a coding agent on the person's own computer.
Package coding hands a piece of work to a coding agent on the person's own computer.
agent/tools/computer
Package computer is the person's own computer, when they attached one with `teanode computer`: a shell to run a command in, and its files to read, write, list and search, as the person, anywhere on it.
Package computer is the person's own computer, when they attached one with `teanode computer`: a shell to run a command in, and its files to read, write, list and search, as the person, anywhere on it.
agent/tools/connected
Package connected is the tool for the servers that speak the Model Context Protocol: what the operator has declared, what this person has connected, and the two steps of setting one up.
Package connected is the tool for the servers that speak the Model Context Protocol: what the operator has declared, what this person has connected, and the two steps of setting one up.
agent/tools/contact
Package contact is the person's address book: the people they keep.
Package contact is the person's address book: the people they keep.
agent/tools/conversation
Package conversation is how the agent reaches what was said before: the other conversations this person has with it, and the transcripts of the runs nobody watched.
Package conversation is how the agent reaches what was said before: the other conversations this person has with it, and the transcripts of the runs nobody watched.
agent/tools/datetime
Package datetime is the agent's time arithmetic: now, a conversion between zones, a duration added, the difference between two times, a phrase such as "next Tuesday 3pm" read in the person's zone.
Package datetime is the agent's time arithmetic: now, a conversion between zones, a duration added, the difference between two times, a phrase such as "next Tuesday 3pm" read in the person's zone.
agent/tools/domain
Package domain is the operator's domains and their delivery: domains, addresses, sending credentials, the queue.
Package domain is the operator's domains and their delivery: domains, addresses, sending credentials, the queue.
agent/tools/finance
Package finance is the person's money as the agent reads and keeps it for them: their finance sources (logins at banks, card issuers, brokerages and lenders, linked through a provider), finance accounts, transactions and trades, exchange rates, net worth, spending categories and rules, budgets and savings targets.
Package finance is the person's money as the agent reads and keeps it for them: their finance sources (logins at banks, card issuers, brokerages and lenders, linked through a provider), finance accounts, transactions and trades, exchange rates, net worth, spending categories and rules, budgets and savings targets.
agent/tools/folder
Package folder lists and manages a mailbox's folders.
Package folder lists and manages a mailbox's folders.
agent/tools/goal
Package goal is the conversation's standing instruction: the sentence the agent keeps working toward across turns of its own, and the one tool that says where it is with it.
Package goal is the conversation's standing instruction: the sentence the agent keeps working toward across turns of its own, and the one tool that says where it is with it.
agent/tools/idea
Package idea is the agent's list of ideas for the person, as the agent manages it in conversation: what is on offer, one it found for them, one they took up, finished or do not want.
Package idea is the agent's list of ideas for the person, as the agent manages it in conversation: what is on offer, one it found for them, one they took up, finished or do not want.
agent/tools/knowledge
Package knowledge is the tool for what the person pointed their agent at: their checkout, their chat archive, their notes, their wiki.
Package knowledge is the tool for what the person pointed their agent at: their checkout, their chat archive, their notes, their wiki.
agent/tools/location
Package location asks the browser the person is chatting in where it is.
Package location asks the browser the person is chatting in where it is.
agent/tools/mailact
Package mailact acts on messages: marks, stars, files, junks, trashes.
Package mailact acts on messages: marks, stars, files, junks, trashes.
agent/tools/mailaudit
Package mailaudit is the mail audit as tools: search, one message, its content, marks, and the reports.
Package mailaudit is the mail audit as tools: search, one message, its content, marks, and the reports.
agent/tools/mailbox
Package mailbox is what the mailbox tools share: the person's mailboxes and folders as the API lists them, a conversation and a message's content as the tools read them.
Package mailbox is what the mailbox tools share: the person's mailboxes and folders as the API lists them, a conversation and a message's content as the tools read them.
agent/tools/mailboxsettings
Package mailboxsettings renames a mailbox or sets its signature.
Package mailboxsettings renames a mailbox or sets its signature.
agent/tools/mailcomposehelp
Package mailcomposehelp writes the body of a reply for the person to use, without saving anything.
Package mailcomposehelp writes the body of a reply for the person to use, without saving anything.
agent/tools/maildraft
Package maildraft writes a draft into Drafts for the person to send.
Package maildraft writes a draft into Drafts for the person to send.
agent/tools/mailread
Package mailread reads a message, or the conversation it belongs to, as text the model can weigh.
Package mailread reads a message, or the conversation it belongs to, as text the model can weigh.
agent/tools/mailsearch
Package mailsearch finds messages by words, by meaning where it exists, and by what the agent decided about them.
Package mailsearch finds messages by words, by meaning where it exists, and by what the agent decided about them.
agent/tools/mailsend
Package mailsend sends a draft, with the person's word.
Package mailsend sends a draft, with the person's word.
agent/tools/memory
Package memory is the tool the agent keeps what it knows about the person with: a graph of pages, each addressed by a path, with facts on them and links between them.
Package memory is the tool the agent keeps what it knows about the person with: a graph of pages, each addressed by a path, with facts on them and links between them.
agent/tools/memorycheck
Package memorycheck is the memory check as the agent runs it in conversation: drafting questions from what it remembers about the person, putting them one at a time, and recording what the person says.
Package memorycheck is the memory check as the agent runs it in conversation: drafting questions from what it remembers about the person, putting them one at a time, and recording what the person says.
agent/tools/note
Package note is the person's notes, as the agent keeps them for them: the ones their phone's Notes app keeps in their mailbox.
Package note is the person's notes, as the agent keeps them for them: the ones their phone's Notes app keeps in their mailbox.
agent/tools/openpage
Package openpage moves the dashboard the person is reading the agent in to a page of itself: a page of the agent's memory, a message, a settings tab.
Package openpage moves the dashboard the person is reading the agent in to a page of itself: a page of the agent's memory, a message, a settings tab.
agent/tools/operator
Package operator is what the operator's tools share: a document run as the person with its answer as a map, and the domains the person manages as the API lists them.
Package operator is what the operator's tools share: a document run as the person with its answer as a map, and the domains the person manages as the API lists them.
agent/tools/people
Package people is the operator's people and access: accounts, groups, roles, and the audit log.
Package people is the operator's people and access: accounts, groups, roles, and the audit log.
agent/tools/phone
Package phone is the person's phones running the TeaNode app, for the agent: which there are and whether notifications reach them, naming them, choosing what each is told, a test notification, and removing one.
Package phone is the person's phones running the TeaNode app, for the agent: which there are and whether notifications reach them, naming them, choosing what each is told, a test notification, and removing one.
agent/tools/recording
Package recording exposes account-owned passive evidence through the API.
Package recording exposes account-owned passive evidence through the API.
agent/tools/reminder
Package reminder is the person's reminders list, as the agent keeps it for them: the list beside their calendar that their phone's Reminders app syncs.
Package reminder is the person's reminders list, as the agent keeps it for them: the list beside their calendar that their phone's Reminders app syncs.
agent/tools/replyqueue
Package replyqueue is the replies the agent holds on the person's behalf, and the <pending> overlay that lists them.
Package replyqueue is the replies the agent holds on the person's behalf, and the <pending> overlay that lists them.
agent/tools/rule
Package rule is the mailbox's rules as tools: listed, added, changed, removed, tried and applied.
Package rule is the mailbox's rules as tools: listed, added, changed, removed, tried and applied.
agent/tools/schedule
Package schedule is the tool the agent keeps its own times with: a prompt run on a cron line, at one moment, or a distance from now, in the person's zone, with nobody present.
Package schedule is the tool the agent keeps its own times with: a prompt run on a cron line, at one moment, or a distance from now, in the person's zone, with nobody present.
agent/tools/server
Package server is the server itself: its status, its settings, an upgrade.
Package server is the server itself: its status, its settings, an upgrade.
agent/tools/share
Package share is how the agent hands the person a file: the photo on a message, a file from their computer, something already in the conversation.
Package share is how the agent hands the person a file: the photo on a message, a file from their computer, something already in the conversation.
agent/tools/subscription
Package subscription is the mailing lists a mailbox receives and the ways out of each.
Package subscription is the mailing lists a mailbox receives and the ways out of each.
agent/tools/todo
Package todo is a conversation's task list: the agent's own, laid out when a piece of work has several steps and kept as it goes, so the agent keeps its place and the person watches its progress.
Package todo is a conversation's task list: the agent's own, laid out when a piece of work has several steps and kept as it goes, so the agent keeps its place and the person watches its progress.
agent/tools/toolsearch
Package toolsearch loads tools that are listed but not sent, when the catalog is long: the model names what it wants to do and the matching tools join the request from the next round.
Package toolsearch loads tools that are listed but not sent, when the catalog is long: the model names what it wants to do and the matching tools join the request from the next round.
agent/tools/webfetch
Package webfetch reads a web page as text for the agent: a public one through this server, with the same guarded fetcher the rest of the server uses, or any one through a computer the person attached, on the networks that computer is on.
Package webfetch reads a web page as text for the agent: a public one through this server, with the same guarded fetcher the rest of the server uses, or any one through a computer the person attached, on the networks that computer is on.
agent/tools/websearch
Package websearch asks the search service the operator configured.
Package websearch asks the search service the operator configured.
api
Package api holds what every version of the HTTP API shares: the error values, the request context, and the paths.
Package api holds what every version of the HTTP API shares: the error values, the request context, and the paths.
api/v1api
Package v1api serves version 1 of the HTTP API, mounted at /api/v1.
Package v1api serves version 1 of the HTTP API, mounted at /api/v1.
api/v1api/apigraph
Package apigraph implements the GraphQL endpoint, which is the whole of the management API.
Package apigraph implements the GraphQL endpoint, which is the whole of the management API.
api/v1api/apimail
Package apimail serves a stored message in its original form.
Package apimail serves a stored message in its original form.
api/v1api/apimedia
Package apimedia stores the pictures an operator puts in a template and serves them to the mail programs that later ask for them.
Package apimedia stores the pictures an operator puts in a template and serves them to the mail programs that later ask for them.
api/v1api/apioauth
Package apioauth answers the questions a program asks before it has a credential: who authorizes this server, and where do I go to be let in.
Package apioauth answers the questions a program asks before it has a credential: who authorizes this server, and where do I go to be let in.
api/v1api/apipush
Package apipush serves the push relay: what a TeaNode server does when the operator holds the TeaNode app's Apple push key and turns agent.push.relay.enabled on.
Package apipush serves the push relay: what a TeaNode server does when the operator holds the TeaNode app's Apple push key and turns agent.push.relay.enabled on.
api/v1api/apisend
Package apisend implements the endpoint that sends a templated message.
Package apisend implements the endpoint that sends a templated message.
api/v1api/apisso
Package apisso is the two HTTP paths a single sign-on passes through: the one that sends the browser to the identity provider, and the one it comes back to.
Package apisso is the two HTTP paths a single sign-on passes through: the one that sends the browser to the identity provider, and the one it comes back to.
bimi
Package bimi reads the logo a sending domain publishes for its mail.
Package bimi reads the logo a sending domain publishes for its mail.
bootstrap
Package bootstrap reads the settings a server needs before it can read its settings.
Package bootstrap reads the settings a server needs before it can read its settings.
browser
Package browser drives a Chrome the operator runs beside the server, over the DevTools protocol: a fresh, isolated context per run, a page in it, and the few things a model needs — navigate, read the page as a tree it can point into, click, type, scroll, wait, screenshot.
Package browser drives a Chrome the operator runs beside the server, over the DevTools protocol: a fresh, isolated context per run, a page in it, and the few things a model needs — navigate, read the page as a tree it can point into, click, type, scroll, wait, screenshot.
calendar
Package calendar knows the iCalendar format, so that nothing else has to.
Package calendar knows the iCalendar format, so that nothing else has to.
calendar/commands
Package commands applies authorized calendar changes independently of transport.
Package commands applies authorized calendar changes independently of transport.
channel
Package channel is the primary conversation on a chat app: a person's own bot in Telegram or Discord, run by the server, through which they talk to their agent.
Package channel is the primary conversation on a chat app: a person's own bot in Telegram or Discord, run by the server, through which they talk to their agent.
channel/discord
Package discord is a client for Discord as a personal agent's bot needs it: the gateway websocket for what is said to the bot, and the REST calls to answer.
Package discord is a client for Discord as a personal agent's bot needs it: the gateway websocket for what is said to the bot, and the REST calls to answer.
channel/telegram
Package telegram is a client for Telegram's Bot API, as much of it as a personal agent's bot needs: updates polled, messages sent and edited, typing shown, files fetched and sent, the command menu set.
Package telegram is a client for Telegram's Bot API, as much of it as a personal agent's bot needs: updates polled, messages sent and edited, typing shown, files fetched and sent, the command menu set.
client
Package client talks to a running TeaNode server's GraphQL API.
Package client talks to a running TeaNode server's GraphQL API.
cmd
Package cmd implements the teanode subcommands.
Package cmd implements the teanode subcommands.
cmd/server
Package server implements the subcommands of teanode-server: running the mail server, and the few operations that write the database directly rather than going through a running server.
Package server implements the subcommands of teanode-server: running the mail server, and the few operations that write the database directly rather than going through a running server.
computer
Package computer is the person's own computer as their agent reaches it: the program `teanode computer` runs there, answering the agent's requests over a websocket to the server, as the person, anywhere on the machine, and running what the server sends.
Package computer is the person's own computer as their agent reaches it: the program `teanode computer` runs there, answering the agent's requests over a websocket to the server, as the person, anywhere on the machine, and running what the server sends.
config
Package config defines the TeaNode configuration and the store that owns it.
Package config defines the TeaNode configuration and the store that owns it.
contacts
Package contacts knows the vCard format, so that nothing else has to.
Package contacts knows the vCard format, so that nothing else has to.
dav
Package dav serves a person's address book and their calendar to their phone and their desktop, over CardDAV and CalDAV.
Package dav serves a person's address book and their calendar to their phone and their desktop, over CardDAV and CalDAV.
db
Package db provides the database interface.
Package db provides the database interface.
db/dbtest
Package dbtest provides test helpers for database operations.
Package dbtest provides test helpers for database operations.
db/migrations
Package migrations provides database schema migrations.
Package migrations provides database schema migrations.
decide
Package decide asks a question whose answers are known in advance and gets one of them back, without a model writing any prose.
Package decide asks a question whose answers are known in advance and gets one of them back, without a model writing any prose.
dns
Package dns checks that each configured domain publishes the DNS records it needs, and reports what is missing.
Package dns checks that each configured domain publishes the DNS records it needs, and reports what is missing.
finance
Package finance talks to the providers that sign in to a person's financial institutions, and to the European Central Bank for exchange rates.
Package finance talks to the providers that sign in to a person's financial institutions, and to the European Central Bank for exchange rates.
finance/ofx
Package ofx reads the statements in an Open Financial Exchange file: what a bank's or a card issuer's "download transactions" button writes as .ofx, .qfx or .qbo.
Package ofx reads the statements in an Open Financial Exchange file: what a bank's or a card issuer's "download transactions" button writes as .ofx, .qfx or .qbo.
finance/rates
Package rates keeps the stored exchange rates current and converts amounts with them.
Package rates keeps the stored exchange rates current and converts amounts with them.
frontend
Package frontend serves the dashboard, which is compiled into the binary.
Package frontend serves the dashboard, which is compiled into the binary.
imap
Package imap serves mailboxes to mail programs.
Package imap serves mailboxes to mail programs.
llm
Package llm talks to language models and knows nothing about mail.
Package llm talks to language models and knows nothing about mail.
mailbox
Package mailbox implements authorized mailbox commands independently of their HTTP, agent or other transport adapters.
Package mailbox implements authorized mailbox commands independently of their HTTP, agent or other transport adapters.
mailer
Package mailer sends mail on this server's own behalf: a message somebody composed in the dashboard, or a template rendered for an application that called the send endpoint.
Package mailer sends mail on this server's own behalf: a message somebody composed in the dashboard, or a template rendered for an application that called the send endpoint.
mcp
Package mcp is a client for servers that speak the Model Context Protocol: the one wire format the model providers, the editors and most services have settled on for "here are my tools, call them".
Package mcp is a client for servers that speak the Model Context Protocol: the one wire format the model providers, the editors and most services have settled on for "here are my tools, call them".
mcpserve
Package mcpserve answers the Model Context Protocol, the other way round from internal/mcp: that package calls out to servers somebody else runs, and this one lets somebody else's program -- a coding harness, an editor -- call in and use what this server can do.
Package mcpserve answers the Model Context Protocol, the other way round from internal/mcp: that package calls out to servers somebody else runs, and this one lets somebody else's program -- a coding harness, an editor -- call in and use what this server can do.
models
Package models holds the structs shared between the database, the API and the mail path.
Package models holds the structs shared between the database, the API and the mail path.
mx
Package mx implements mail exchange processing.
Package mx implements mail exchange processing.
notes
Package notes is the format a phone's Notes app keeps a note in when it keeps its notes in a mail account: one message a note, in a folder of their own, a single HTML part, and a few headers of the phone's that say it is a note and which one.
Package notes is the format a phone's Notes app keeps a note in when it keeps its notes in a mail account: one message a note, in a folder of their own, a single HTML part, and a few headers of the phone's that say it is a note and which one.
push
Package push delivers notifications to people's phones through Apple's push service (APNs), and seals what a phone hands its server so that only the relay that sealed it can use it.
Package push delivers notifications to people's phones through Apple's push service (APNs), and seals what a phone hands its server so that only the relay that sealed it can use it.
recording
Package recording keeps passive evidence separate from conversation commands.
Package recording keeps passive evidence separate from conversation commands.
scheduling
Package scheduling is invitations by mail.
Package scheduling is invitations by mail.
skills
Package skills is how tools arrive without a release: a skill is a file of declarations, fetched from a registry that signs what it publishes, read as data and carried out by the interpreter here.
Package skills is how tools arrive without a release: a skill is a file of declarations, fetched from a registry that signs what it publishes, read as data and carried out by the interpreter here.
sources
Package sources reads a source type: a YAML file saying how to read one kind of knowledge source, either by naming a reader built into TeaNode or by listing the commands and web requests that list and read it.
Package sources reads a source type: a YAML file saying how to read one kind of knowledge source, either by naming a reader built into TeaNode or by listing the commands and web requests that list and read it.
spamfilter
Package spamfilter is the seam between the server and whatever scores its mail.
Package spamfilter is the seam between the server and whatever scores its mail.
sso
Package sso signs people in through an OpenID Connect identity provider.
Package sso signs people in through an OpenID Connect identity provider.
storage
Package storage keeps the raw bytes of messages the server has handled.
Package storage keeps the raw bytes of messages the server has handled.
strainer
Package strainer scores mail for spam inside this server.
Package strainer scores mail for spam inside this server.
upgrade
Package upgrade tells a running server what has been released since it was built, and replaces it with a newer one when it is asked to.
Package upgrade tells a running server what has been released since it was built, and replaces it with a newer one when it is asked to.
util/aggregate
Package aggregate is the shape a list query takes its filtering, sorting and faceting in.
Package aggregate is the shape a list query takes its filtering, sorting and faceting in.
util/arc
Package arc implements Authenticated Received Chain (ARC) validation and signing.
Package arc implements Authenticated Received Chain (ARC) validation and signing.
util/atomicfile
Package atomicfile provides helpers for atomic write-and-rename of files.
Package atomicfile provides helpers for atomic write-and-rename of files.
util/authres
Package authres parses and formats Authentication-Results
Package authres parses and formats Authentication-Results
util/autoacme
Package autoacme provides automatic ACME certificate management.
Package autoacme provides automatic ACME certificate management.
util/bufferpool
Package bufferpool provides a pool of reusable byte buffers.
Package bufferpool provides a pool of reusable byte buffers.
util/ceremony
Package ceremony parks the state of a challenge-response exchange between its two halves.
Package ceremony parks the state of a challenge-response exchange between its two halves.
util/clamav
Package clamav provides a client for ClamAV antivirus scanning.
Package clamav provides a client for ClamAV antivirus scanning.
util/commentparse
Package commentparse parses source code comments and creates a source code comment database.
Package commentparse parses source code comments and creates a source code comment database.
util/connctx
Package connctx provides helpers to set connection deadlines and watch for cancellation.
Package connctx provides helpers to set connection deadlines and watch for cancellation.
util/debugutil
Package debugutil provides debug server utilities.
Package debugutil provides debug server utilities.
util/deferutil
Package deferutil contains the guard every goroutine in this codebase starts with.
Package deferutil contains the guard every goroutine in this codebase starts with.
util/dkim
Package dkim implements DKIM (DomainKeys Identified Mail) signing and verification.
Package dkim implements DKIM (DomainKeys Identified Mail) signing and verification.
util/dmarc
Package dmarc implements DMARC as specified in RFC 7489
Package dmarc implements DMARC as specified in RFC 7489
util/dropper
Package dropper provides IP-based connection dropping using trie lookups.
Package dropper provides IP-based connection dropping using trie lookups.
util/dropper/trie
Package trie is a path-compressed (PC) trie implementation of the ranger interface inspired by this blog post: https://vincent.bernat.im/en/blog/2017-ipv4-route-lookup-linux
Package trie is a path-compressed (PC) trie implementation of the ranger interface inspired by this blog post: https://vincent.bernat.im/en/blog/2017-ipv4-route-lookup-linux
util/dsn
Package dsn provides Delivery Status Notification (DSN) generation.
Package dsn provides Delivery Status Notification (DSN) generation.
util/emoji
Package emoji tells whether a piece of text is nothing but emoji, and splits it into the ones it holds.
Package emoji tells whether a piece of text is nothing but emoji, and splits it into the ones it holds.
util/geoip
Package geoip provides IP geolocation using MaxMind databases.
Package geoip provides IP geolocation using MaxMind databases.
util/graphapi
Package graphapi provides a GraphQL schema generator using reflection.
Package graphapi provides a GraphQL schema generator using reflection.
util/mailparse
Package mailparse provides email parsing and canonicalization utilities.
Package mailparse provides email parsing and canonicalization utilities.
util/periodic
Package periodic provides a standard way to periodically run a handler at a specific time interval.
Package periodic provides a standard way to periodically run a handler at a specific time interval.
util/qrcode
Package qrcode draws text as a QR code, for a phone's camera to read off a screen: as an SVG image for a page, and as lines of block characters for a terminal.
Package qrcode draws text as a QR code, for a phone's camera to read off a screen: as an SVG image for a page, and as lines of block characters for a terminal.
util/ratelimit
Package ratelimit provides token bucket rate limiting.
Package ratelimit provides token bucket rate limiting.
util/resolver
Package resolver provides DNS resolution with caching.
Package resolver provides DNS resolution with caching.
util/safefetch
Package safefetch fetches something a stranger named, without letting them choose where this server connects to.
Package safefetch fetches something a stranger named, without letting them choose where this server connects to.
util/secretbox
Package secretbox encrypts a secret so it can be stored somewhere less trusted than the secret itself — in practice, a column of the database.
Package secretbox encrypts a secret so it can be stored somewhere less trusted than the secret itself — in practice, a column of the database.
util/security
Package security provides cryptographic utilities for random generation and signing.
Package security provides cryptographic utilities for random generation and signing.
util/smtpc
Package smtpc implements an SMTP client.
Package smtpc implements an SMTP client.
util/smtpd
Package smtpd implements a basic SMTP server
Package smtpd implements a basic SMTP server
util/spamc
Package spamc provides a client for SpamAssassin spam checking.
Package spamc provides a client for SpamAssassin spam checking.
util/spf
Package spf implements SPF (Sender Policy Framework) lookup and validation.
Package spf implements SPF (Sender Policy Framework) lookup and validation.
util/templating
Package templating provides template rendering with layout inheritance.
Package templating provides template rendering with layout inheritance.
util/testmail
Package testmail builds synthetic messages and keys for tests.
Package testmail builds synthetic messages and keys for tests.
version
Package version reports the build version of the binary.
Package version reports the build version of the binary.
voice
Package voice is a person talking to their agent: the audio they speak, streamed to a provider's realtime transcription as they speak it, and what the provider hears, said back in TeaNode's own terms.
Package voice is a person talking to their agent: the audio they speak, streamed to a provider's realtime transcription as they speak it, and what the provider hears, said back in TeaNode's own terms.
web
Package web provides the HTTP server and routing infrastructure.
Package web provides the HTTP server and routing infrastructure.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL