Concepts
The handful of things every command and endpoint is about.
Accounts and identity
An account belongs to one person, identified by the sign-in they used in the browser. Everything in rentfree belongs to an account: its collections, memories, sources, agents, and keys. There is no sharing between accounts yet.
Keys
Every request to the API carries a key, as Authorization: Bearer rf_…. A key is shown once, when it is made, and stored only as a hash. There are two kinds:
- A user-level key acts as you. It can read and write every collection and manage the account: collections, agents, keys, the embedding model, deletion.
rf initgives you one. - An agent key acts as one agent and carries its permissions. It can never manage the account, so an agent cannot mint keys or widen what it may do.
Revoking a key stops it at once. Revoking an agent revokes every key it holds.
Agents
An agent is a named identity with permissions: whether it may read memories, whether it may write them, and which collections each applies to. A Claude Code session, a CI job, and a reviewer bot are three agents. Everything an agent writes is attributed to it, so history shows who said what.
A project acts as an agent when its rf.json names one and a key for that agent is stored beside your login, which rf agents create --use sets up in one step. It does so for the agent, not for you: Claude Code, its hooks, and anything run with RF_AGENT=1 use the agent's key there, while you in your own terminal keep your login, account commands included. On a machine where you are also logged in, that is a guardrail against an agent's mistakes rather than a wall: the agent key is a boundary where it is the only key, such as in CI.
Collections
A collection is a space for memories and sources: a project, a client, a topic. Every account has one default collection, used when a request names none. An archived collection can still be read and searched, but takes no new sessions, sources, or memories; the default cannot be archived.
How memories come to be
- Capture. An agent logs a session as events: what the user said, what it answered, what tools it ran. You add sources: text, a URL, or a file, which is chunked.
- Distill. A recap run reads the new events and proposes memories, each citing the events that support it. A memory is kept only if its quote appears in an event it cites.
- Recall. A search finds memories and chunks by meaning and by words. A context pack is the one call an agent makes per turn: the collection's profile, then the memories and chunks that bear on the question, trimmed to a token budget. A passage two sources hold word for word, under the same title and headings, comes back once, from the source updated most recently.
The embedding model
Content is embedded with the model the account chose, from a set of OpenAI and Voyage models at the sizes each offers. The choice is open until the account has any content and fixed afterwards, since vectors from different models cannot be compared. Changing a model with content in place means re-embedding everything, which is planned but not built.