# Anima docs (full text) > Notes on a shared canvas. Your own ai tools read and write them too. Every Anima docs page below, concatenated as markdown. Two tracks: using Anima (notes, companion, publishing and export) and the developer build track (connect your own agent over anima-mcp, the MCP tool reference, self-hosting, and the custody / Seal / Walrus / resurrection internals). # Welcome (/) Anima is an agentic workspace where your own AI agents and your team read and write the same notes and canvas, sealed to storage you own, so it survives any app. These docs come in two tracks: **Use Anima** for working day to day, and **Build with Anima** for connecting your own agent. ## Agent-readable [#agent-readable] Every page is available as clean markdown: hit the copy-markdown button on any page, or add `.md` to its path under `/md` (for example `/md/build/quickstart.md`). The whole site is indexed for coding agents at [`/llms.txt`](/llms.txt) and [`/llms-full.txt`](/llms-full.txt). # FAQ and troubleshooting (/build/faq) This page maps the messages anima-mcp prints back to a fix. Each entry is a trigger (what you see) and the step that clears it. The messages are reproduced verbatim so an agent can pattern-match on them. If you have not paired yet, start with the [quickstart](/build/quickstart): the Anima app generates the agent's own key, registers it on your vault, and hands back a config snippet that fills the env values below. There is one pairing path, the in-app wizard, so this page does not re-describe it; it just maps each message to its fix. ## Configuration [#configuration] ### Missing or invalid env [#missing-or-invalid-env] **Trigger.** The process exits at startup with: ``` anima-mcp is not paired: missing or invalid env: ANIMA_AGENT_KEY (suiprivkey…), ANIMA_VAULT_ID (0x… vault object id), ANIMA_OWNER_ADDRESS (0x… wallet address). Open the ANIMA app → Settings → Connect external agent to generate the agent key, register it on your vault, and copy the config snippet (it fills these values). ``` Only the values that are actually missing or malformed are listed. Three are required: * `ANIMA_AGENT_KEY` must be present and start with `suiprivkey`. A value in some other format (a `0x…` address pasted by mistake, a key from another tool) does not start with `suiprivkey`, so it lands here, in this message, not in the parse error below. * `ANIMA_VAULT_ID` must be a `0x…` hex object id. * `ANIMA_OWNER_ADDRESS` must be a `0x…` hex wallet address. **Fix.** Open the Anima app, go to Settings, choose Connect external agent, and copy the config snippet. It fills all three (plus an optional agent name). Paste the values into your agent's MCP config exactly as given. ### Agent key is not a suiprivkey [#agent-key-is-not-a-suiprivkey] **Trigger.** The key is present but cannot be parsed: ``` ANIMA_AGENT_KEY is not a valid suiprivkey: copy it exactly from the ANIMA app pairing screen. ``` This is distinct from the missing-env message above. The value starts with `suiprivkey`, so it passes the env check, but it does not fully decode into a usable key. The usual cause is a partial paste: a key that is truncated, clipped, or otherwise corrupted, so the prefix is right but the length or checksum is wrong. A value that is not in `suiprivkey` form at all does not reach this point; it produces the missing-env message above instead. **Fix.** Copy `ANIMA_AGENT_KEY` again from the pairing screen, whole, with no leading or trailing characters. The agent key is the MCP process's own keypair; it is generated for you and lives only in your local config. ## Pairing and access [#pairing-and-access] ### Unpaired or revoked key [#unpaired-or-revoked-key] **Trigger.** The key parses but is not on the vault's allowlist: ``` Agent key not paired: 0x is not an allowlisted agent of vault 0x. Register it in the ANIMA app (Settings → Connect external agent), then retry. If it was paired before, the key may have been revoked: generate and pair a fresh one. ``` The check runs against the vault's on-chain allowlist when the process first touches the vault, so a paired key that was later revoked produces the same message. **Fix.** In the Anima app, Settings, Connect external agent, register this agent address on the vault, then restart the agent. If the key was paired before and got revoked, it cannot be re-enabled. Generate a fresh agent key and pair that one. The agent key is a full-vault read and write credential, not a per-note grant. A paired agent can read and write every note in the vault. There is no narrower scope; treat pairing a key like handing out a working copy of the vault. To take that access away, revoke the key from the same place you paired it: the Anima app, Settings, Connect external agent, where the vault's agents are listed. Revoking removes the key from the vault's on-chain allowlist. It does not stop a running agent on its next call; see [Revocation](#revocation-takes-effect-on-the-next-process-start) for the timing. ### Vault not found on testnet [#vault-not-found-on-testnet] **Trigger.** The vault id does not resolve on chain: ``` Vault 0x not found on testnet: check ANIMA_VAULT_ID. ``` **Fix.** Confirm `ANIMA_VAULT_ID` matches the vault you mean. Re-copy it from the pairing snippet in the app. A wrong network or a stale id from an earlier vault both land here. The id must be the vault object id, not the owner address. ## Funding [#funding] Anima writes notes to Walrus. A write spends a little SUI for gas and a little WAL for storage, paid by the agent's own address. Before each write the agent runs a balance preflight; if it cannot afford the write, it stops there rather than failing partway through. ### Unfunded agent [#unfunded-agent] **Trigger.** The preflight fails before the write: ``` Agent address 0x cannot afford this write, SUI: MIST (needs ≥ 0.1 SUI), WAL: FROST (needs ≥ 0.02 WAL). Fund it with testnet SUI (faucet) and exchange some for WAL, then retry. ``` The two thresholds the preflight enforces: * **SUI:** at least `0.1 SUI` (`100_000_000` MIST), held as a gas reserve. * **WAL:** at least `0.02 WAL` (`20_000_000` FROST), enough for dozens of writes. The message only flags the side you are short on, so you may see just the SUI clause, just the WAL clause, or both. The write path does not auto-swap SUI for WAL. Funding SUI alone does not unblock the write. You have to acquire WAL yourself before retrying. **Fix.** Two steps: 1. Send the agent address testnet SUI (from the faucet, or any wallet that has some). 2. Swap a small amount of that SUI for WAL on the official testnet exchange (the same swap as `walrus get-wal`), so the WAL lands on the agent address. Then retry the write. Because the preflight reads live balances, the next attempt clears once both thresholds are met. ### Faucet per-IP rate limit [#faucet-per-ip-rate-limit] **Trigger.** The testnet SUI faucet rejects the request because too many calls came from the same IP in a short window. The faucet is per-IP rate-limited, so repeated runs from one machine or one CI runner hit the cap quickly. **Fix.** Do not loop on the faucet. Instead, reuse a balance you already have: * Send SUI to the agent from another wallet that is already funded, rather than asking the faucet again. * For demos and CI, use a pre-funded wallet and top the agent up from it. A funded agent address holds its balance across runs, so one funding pass is usually enough for a long session. ## Staleness [#staleness] The agent keeps a local index of the vault and refreshes it on a timer rather than on every call. That keeps reads fast, and it means there are a few moments where what the agent sees and what is on chain differ. Three of them are worth knowing as separate cases. ### Index freshness window [#index-freshness-window] The index has a 60-second freshness window. A read (search, list, get) is served from the cached index for up to 60 seconds before the agent rebuilds it from chain. So a note written by a different writer can take up to a minute to appear in this agent's reads, even though it is already on chain. If you need the current state right now, the simplest lever is time: wait out the window and the next read rebuilds. ### Write-through updates only the writer's own cache [#write-through-updates-only-the-writers-own-cache] When this agent writes a note, it patches the new note straight into its own in-memory and on-disk index (a write-through), so the writer sees its own note immediately. That update goes to the writer's own index. A second agent connected to the same vault will not see the new note until that agent's own freshness window lapses (within 60 seconds) and its index refreshes. This matters when two agents collaborate on one vault: the writer is consistent with itself instantly, but the reader is consistent only after its own refresh. ### A deleted note can briefly survive in a stale index [#a-deleted-note-can-briefly-survive-in-a-stale-index] Deletes are wallet-signed and run on chain (survivors are rewritten, then the old blob is removed). An agent whose cached index predates that delete can still return the note from search, list, or get until its freshness window lapses and it rebuilds. So for up to the same 60-second window, a note that is gone on chain may still be served from a stale index. If a read returns a note you know was deleted, it is this case. Let the index refresh, then read again. None of these is a write-loss. The chain is the source of truth in every case; the index is a disposable cache that converges on it within the freshness window. There is no realtime-conflict guarantee here, only an upper bound on how stale a read can be. ## Revocation takes effect on the next process start [#revocation-takes-effect-on-the-next-process-start] Pairing is checked when the agent process first touches the vault, and the result is held for the lifetime of that process. So when you revoke an agent's key, a process that is already running does not lose access on its next call. It keeps working with the access it checked at startup until it restarts, and then the pairing check fails (see [Unpaired or revoked key](#unpaired-or-revoked-key)). **Implication.** Revoking is necessary but, for an already-running agent, not instantaneous. To cut off a running agent immediately, revoke the key and stop the agent process. On its next start it cannot re-pair. ## Pairing funds the agent in two steps [#pairing-funds-the-agent-in-two-steps] A freshly paired agent is not yet able to write, even though it is allowlisted. Funding happens in two parts, and they are not the same currency: 1. The owner funds the agent with SUI (gas). 2. The agent acquires WAL by swapping some of that SUI (storage). Because the write path does not auto-swap, an agent that has SUI but no WAL will pass pairing and then fail its very first write on the WAL threshold (see [Unfunded agent](#unfunded-agent)). This is expected on a brand-new agent: fund SUI, swap a little for WAL, and the first write goes through. # MCP tool reference (/build/mcp-reference) Once your agent is [paired and connected](/build/quickstart), it has six tools against your vault. Every write is signed with your agent key and attributed by `ANIMA_AGENT_NAME`. ## recall [#recall] Search the vault and return the most relevant notes, decrypted from Walrus. * **Input:** `query` (string). Keywords, a topic, or a question. * **Returns:** a list of notes, each with `noteId`, `title`, `body`, `tags`, and `updatedAt`. * **No match:** `No memories matched "".` ## remember [#remember] Write a new note into the vault. It is encrypted, stored on Walrus, and attributed to this agent. The first write takes ten to twenty seconds. * **Input:** `title` (string), `body` (markdown string), `tags` (optional string array). * **Returns:** a confirmation with the new note id, the author, and the Walrus blob ids (quilt and blob object). * **On failure:** a readable error if the agent key is unpaired or cannot afford the write (testnet SUI/WAL), never a stack trace. ## edit_note [#edit_note] Write a new version of an existing note. This is durable, correctable memory: the new version is encrypted on Walrus and attributed to this agent. Use it to correct or extend what you know about the owner. Takes ten to twenty seconds. * **Input:** `noteId` (string). A ULID from `recall` or `list_notes`. Plus any of `title` (string), `body` (markdown string), `tags` (string array), `links` (string array). Omit a field to keep the current value; `tags` and `links` replace the current set. * **Returns:** a confirmation with the note id, the new version number, the author, and the new Walrus blob ids. * **Unknown id:** `Note not found in the vault: list_notes to see valid ids, or use remember to create one.` ## list_notes [#list_notes] List every note in the vault: id, title, tags, last update, and author. * **Input:** none. * **Returns:** one line per note. * **Empty vault:** `The vault is empty.` ## read_note [#read_note] Return the full markdown of a single note, including its frontmatter. * **Input:** `noteId` (string). A ULID from `recall` or `list_notes`. * **Returns:** the full markdown of the note, including its frontmatter. * **Unknown id:** `No note with id : use list_notes or recall to find valid ids.` ## place_note [#place_note] Position a note on the multiplayer canvas at (x, y). This updates the durable canvas layout, which is a Walrus write. * **Input:** `noteId` (string, a ULID from `recall` or `list_notes`), `x` (number), `y` (number), `canvasId` (optional string; defaults to the shared board). * **Returns:** a confirmation that the note was placed at (x, y), with the number of notes the canvas layout now covers. * **Unknown id:** `Note not found in the vault: list_notes to see valid ids.` `place_note` is shipped, but it does not yet carry the same end-to-end live verification as `recall`, `remember`, and `read_note`. One edge case: the first time an agent writes the shared board, the save can hand back an owner-signed delete for the legacy layout blob. The agent key cannot sign that wallet-owned delete, so it is dropped, and the layout self-heals on the owner's next board write from the frontend. # Quickstart (/build/quickstart) Connect an agent you already use (Claude Code, Cursor, or any MCP client) to an Anima vault, so it reads and writes the same notes you do. Every write it makes is signed with its own key and sealed to storage you own. ## What you need [#what-you-need] * A Sui wallet that owns an Anima vault, with the Anima app open. * The anima repo checked out, with pnpm and Node. anima-mcp runs from the repo (it is not a published package yet), so an external agent connects through your local checkout. ## 1. Pair an agent [#1-pair-an-agent] Open the Anima app and go to Settings, then Connect external agent. The wizard generates a fresh agent key, registers it on your vault, and funds it so it can write. Every step is wallet-signed, so your owner key never leaves the app and there is nothing to export. When it finishes, the wizard shows a copy-paste MCP config snippet that already carries the values your agent needs: the agent key, your vault id, your owner address, and an optional agent name. `ANIMA_AGENT_KEY` grants full read and write of the whole vault. Treat it like a password: keep it in your environment or a secret store, never commit it, never paste it into a chat. You can revoke it any time (see below). ### Alternative: owner-run (CLI) [#alternative-owner-run-cli] If you would rather script pairing, or pair without opening the app, you can run it yourself from the repo. This path needs your vault owner secret key in the environment (`ANIMA_OWNER_KEY`, or a `.spike-keys.json` in the repo), since adding an agent is owner-only. Pass the key as an environment variable, never as a command argument: ```bash export ANIMA_OWNER_KEY=suiprivkey… # your vault owner key; signs the registration export ANIMA_VAULT_ID=0x… # optional; auto-discovered from the owner key if omitted pnpm pair ``` This registers and funds a new agent, then writes the same values to `.anima-agent.env` (gitignored) instead of showing them in the app: ``` ANIMA_AGENT_KEY=suiprivkey… # the agent's own key, the one secret here ANIMA_VAULT_ID=0x… # public ANIMA_OWNER_ADDRESS=0x… # public ANIMA_AGENT_NAME=mcp-agent # how this agent's writes are attributed ``` Copy those into your MCP config the same way as step 2. ## 2. Add anima to your agent's MCP config [#2-add-anima-to-your-agents-mcp-config] Paste the snippet from the wizard into your MCP client, which points it at the local anima-mcp server. For Claude Code that is `.mcp.json`; for Cursor, `~/.cursor/mcp.json`: ```json { "mcpServers": { "anima": { "command": "npx", "args": ["-y", "tsx", "chain/mcp/src/index.ts"], "env": { "ANIMA_AGENT_KEY": "suiprivkey…", "ANIMA_VAULT_ID": "0x…", "ANIMA_OWNER_ADDRESS": "0x…", "ANIMA_AGENT_NAME": "claude-code" } } } } ``` `ANIMA_OWNER_ADDRESS` and `ANIMA_VAULT_ID` are public on-chain identifiers, and `ANIMA_AGENT_NAME` is optional (it labels this agent's writes). Only `ANIMA_AGENT_KEY` is secret. ## 3. Read and write [#3-read-and-write] Restart your agent so it loads the server, then try it: * "What do you know about my sister?" runs `recall` and answers from your notes. * "Remember that I prefer morning meetings" runs `remember`. The first write takes ten to twenty seconds, because it encrypts the note and stores it on Walrus. If a tool returns an error, the message is actionable. The [FAQ](/build/faq) covers the common cases (unfunded agent, a stale index, a revoked key). ## Revoke an agent [#revoke-an-agent] An agent key is a standing credential. To cut it off, open the Anima app, go to Settings, then Connect external agent, find the agent in the list, and revoke it. The owner-run CLI does the same thing: ```bash pnpm pair revoke 0x ``` Either way, the agent is denied on its next session. ## Point your agent at these docs [#point-your-agent-at-these-docs] These docs are agent-readable. To let your coding agent query them directly, add the docs pointer alongside the anima server: ```json { "mcpServers": { "anima-docs": { "command": "uvx", "args": ["--from", "mcpdoc", "mcpdoc", "--urls", "Anima:https://docs-anima.kadzu.dev/llms.txt", "--transport", "stdio"] } } } ``` ## Next [#next] * [MCP tool reference](/build/mcp-reference): every tool your agent can call. * [How Anima works](/build/concepts/custody-and-ownership): custody, Seal, Walrus, and resurrection. # Self-host Anima (/build/self-hosting) Running your own instance is the strongest form of "not hostage to any app." The Go chat service keeps no database, no disk, and no logged content; the chat and draft paths are stateless. Its one piece of in-memory state is the ephemeral live-share relay, which is per-instance and gone once a room empties. Your notes live on Walrus, sealed under your wallet's keys, not on the server. So a self-hosted instance is a disposable front door to a vault you already own. Kill it or move it and the vault is untouched. The same property is what lets a different client wake the same notes later from the wallet alone. This guide covers a testnet self-host. Read it end to end before you start, because mainnet has an extra access dependency called out at the bottom. ## What you are running [#what-you-are-running] The self-hostable stack is two pieces: * **The static frontend.** A built single-page app you serve from any static host or CDN. * **The backend.** A single stateless Go service (a chi server) that proxies chat and note-distillation to OpenRouter. It is the only thing you run as a long-lived process. There is no separate chain service to operate. Chain interactions run client-side in the app, signed by the user's wallet, so the writes to Walrus and the reads from chain happen from the browser, not from a server you host. The anima-mcp connector that lets your own agents read and write the vault also runs user-side, alongside the agent, not as part of your instance. See the [quickstart](/build/quickstart) for how an agent pairs with a vault. The Move contract is already deployed on chain. You do not redeploy it. You point your instance at the existing on-chain package, the same one the hosted app uses. Self-hosting changes who serves the app and proxies the LLM calls. It does not fork the protocol. Because the chat and draft paths are stateless, the backend never sees a note in cleartext at rest and writes nothing to disk. Its one piece of in-memory state is the ephemeral live-share relay, which is per-instance and gone once a room empties. The only secrets it holds are its OpenRouter key and its JWT signing secret, both supplied at runtime. That is the whole custody argument: there is no server-side copy of your vault to lose, leak, or hold hostage. ## Before you start [#before-you-start] You need: * An OpenRouter API key (or any OpenAI-compatible endpoint, see [`OPENROUTER_BASE_URL`](#environment-reference)). * A long, random string for `JWT_SECRET`. It signs the 24-hour login tokens your instance issues, so treat it like a password and generate it from a secure source. * A host that can run a container and expose one HTTP port. * The public origin where your frontend will be served (for example `https://notes.example.com`). You will need it for `ALLOWED_ORIGINS`. `ALLOWED_ORIGINS` is the setting most self-hosts get wrong. The backend rejects browser requests from any origin not on this exact-match, comma-separated list. If it is empty or does not include the origin your frontend is actually served from, the app loads but every call to the backend fails on CORS. Set it to your frontend's real origin before your first login attempt. For local development that origin is typically `http://localhost:5173`. ## Deploy with Coolify [#deploy-with-coolify] The backend ships a `Dockerfile`, so Coolify can build and run it directly. 1. **Create the application.** In Coolify, add a new resource from your Git repository (or a registry image you have already built) and point it at the backend directory that contains the `Dockerfile`. Choose the Dockerfile build pack so Coolify builds from it rather than guessing a buildpack. 2. **Set the port.** The image listens on `8080`. Map your public port to container port `8080`. Let Coolify terminate TLS in front of it. 3. **Add the environment.** In the application's Environment Variables, set the values from the [reference](#environment-reference) below. At minimum: `OPENROUTER_API_KEY`, `JWT_SECRET`, and `ALLOWED_ORIGINS` (your frontend's public origin). 4. **Mark the secrets as secret.** Put `OPENROUTER_API_KEY` and `JWT_SECRET` in Coolify's secret store, not in a committed `.env`. Coolify injects them at runtime so they never land in your repository or the build image. 5. **Deploy.** Coolify builds the image and runs the container. The chat and draft paths are stateless, so there are no volumes and no database to provision. The one piece of in-memory state is the ephemeral live-share relay. Because that relay state is per-instance, running two replicas would split a live-share room (the vault itself is unaffected), so run a single instance. Serve the static frontend separately (Coolify can host a static site, or use any CDN). Build the frontend pointed at your backend's public URL and the testnet package, then make sure your backend's `ALLOWED_ORIGINS` lists the exact origin the frontend is served from. ## Deploy with plain Docker [#deploy-with-plain-docker] If you are not using Coolify, the same `Dockerfile` runs anywhere Docker does. Build the image from the backend directory: ```sh docker build -t anima-backend . ``` Run it, injecting secrets and config as runtime environment, not baked into the image: ```sh docker run -p 8080:8080 \ -e OPENROUTER_API_KEY="$OPENROUTER_API_KEY" \ -e JWT_SECRET="$JWT_SECRET" \ -e ALLOWED_ORIGINS="https://notes.example.com" \ anima-backend ``` Reading the secret values from your shell environment (the `"$VAR"` form above) keeps them out of your command history and out of any file. For a longer-lived setup, use Docker secrets or your orchestrator's secret mechanism and pass the values in at run time. Put the container behind a reverse proxy that terminates TLS, the same way Coolify does it for you. To confirm the service is up, request a nonce: ```sh curl https://notes.example.com/auth/nonce # {"nonce":"anima:1749600000000:9f2c..."} ``` A nonce response means the backend is running and reachable. Login itself is done by the app from the user's wallet. ## Keep secrets out of the repo [#keep-secrets-out-of-the-repo] Two values are sensitive: `OPENROUTER_API_KEY` and `JWT_SECRET`. Both are supplied at runtime and never need to live in source. * **Never commit a `.env` with real secrets.** If you keep a `.env` for local development, keep it git-ignored and fill it with throwaway values. * **In Coolify,** store both in the secret store so they are injected at runtime and excluded from the build image and logs. * **In plain Docker,** prefer Docker secrets or runtime `-e` injection from your shell or orchestrator over an env file checked into the repo. * **Rotate `JWT_SECRET` to log everyone out.** Changing it invalidates every outstanding 24-hour token, which is the lever you reach for if a token leaks. The instance never logs request bodies, query strings, `Authorization` headers, or message content on any path, including errors. The request log records method, path, status, and latency, and nothing else. That is a deliberate custody invariant, so your self-host does not accumulate a shadow copy of note content in its logs. ## Environment reference [#environment-reference] | Variable | Required | Default | Notes | | --------------------- | --------------- | ---------------------------------- | -------------------------------------------------------------------------------------------- | | `OPENROUTER_API_KEY` | yes | none | Key for OpenRouter (or any OpenAI-compatible endpoint). | | `JWT_SECRET` | yes | none | Signs 24-hour login tokens. Use a long random value. Rotate to invalidate all tokens. | | `ALLOWED_ORIGINS` | for browser use | empty (no browser origins allowed) | Comma-separated, exact-match list of frontend origins. Set to your frontend's public origin. | | `PORT` | no | `8080` | Port the service listens on. | | `OPENROUTER_BASE_URL` | no | `https://openrouter.ai/api/v1` | Point at any OpenAI-compatible API, including your own inference endpoint. | | `RATE_LIMIT_PER_MIN` | no | `30` | Per-login rate limit for chat and distill. | | `DEFAULT_MODEL` | no | `anthropic/claude-sonnet-4.5` | A request can override the model per call. | ## What a self-host gives you today [#what-a-self-host-gives-you-today] The app frontend is being rebuilt, so a self-hosted instance today gives you the capability-level UI rather than the finished product surface. The part that is durable now, and the reason to self-host at all, is the path underneath the UI: * Your wallet owns the vault. * Your notes are sealed to Walrus under your keys. * Your own agents read and write that vault through anima-mcp, running on your side, paired to your vault. See the [quickstart](/build/quickstart) and the [FAQ](/build/faq) for the agent path. That path does not depend on which copy of the app you run, which is the whole reason to self-host. Self-hosting is one more client in front of a vault you already own, not a place your data goes to live. ## Mainnet is not turnkey yet [#mainnet-is-not-turnkey-yet] Scope your self-host to testnet for now. The end-to-end seal-to-storage flow on mainnet depends on Seal mainnet access, which is permissioned (for example via Enoki) rather than open. Until that access is in hand, a self-hosted mainnet instance is not a flip-a-switch operation, even though the contract is deployed. Run your self-host against testnet. Mainnet self-hosting is gated on Seal mainnet access and is not turnkey today. The testnet path above is the supported one. ## What's next [#whats-next] * [Quickstart](/build/quickstart): pair your own agent with a vault over anima-mcp. * [FAQ](/build/faq): troubleshoot pairing, funding, and access on a self-host. # Companion (/use/companion) Anima ships with a companion, Nova: a resident agent that lives in your vault, reads your notes, and helps you work them. You can ask Nova questions, and it can write notes back that you keep. The companion is a resident, not the product. It is there from the start so you have a useful agent on day one, but Anima is the shared notes underneath, and those notes are the thing you own. Your own external agents are first-class here too, on equal footing with the companion. ## Remembers across sessions [#remembers-across-sessions] The companion does not start from nothing each time you open the app. The way it remembers is concrete and visible: it writes durable notes back into your vault. Those notes persist like any other note you own, and you can open, read, and edit them. So its memory is not a hidden profile somewhere; it is notes, in your vault, under your keys, that you can see and correct. Because that memory is just notes, it follows the same rules as the rest of your work. It is sealed to storage you own, it can be edited, and it can be deleted by you. If the companion remembered something wrong, you fix the note. ## Answers with citations [#answers-with-citations] When you ask the companion something, it answers from your notes and cites them. The reply points back to the specific notes it drew on, so you can check its answer against your own words instead of taking it at face value. This is the difference between an assistant that asserts and one that shows its sources. ## Reads and writes the same notes you do [#reads-and-writes-the-same-notes-you-do] The companion is not working a private copy. It reads and writes the same notes you and your other agents do, and its writes are signed with a name and a revision like every other write. You can always see what the companion wrote, when, and as which revision. ## What's next [#whats-next] * [Notes](/use/notes): how the notes the companion reads and writes are owned, edited, and forgotten. * [Sharing and export](/use/publishing-and-export): get any of those notes out of the app. * [Build with Anima](/build/quickstart): connect your own external agent to the same vault. # Getting started (/use/getting-started) Anima is a place for your notes. You write them like a page or lay them out on a canvas, and they are yours: each one is sealed to storage you own, so your notes outlive any single app, including this one. What makes Anima different from a plain notes app is that your own AI tools work the same notes you do. The companion that ships with Anima reads and writes your notes, and your own external agents (Claude Code, Codex, a teammate's agent) can connect to the same vault and do the same. People and agents work one shared set of notes, and every write is signed with a name and a revision. ## Your first session [#your-first-session] You do not need to learn the whole app to get value on day one. A first session is three moves. ### 1. Capture a note [#1-capture-a-note] Write something down. A note can be a quick line or a long page; it is plain text and markdown underneath. When you save it, the note is encrypted and stored as a blob that your wallet owns. Nothing about a note lives only on someone else's server. ### 2. Ask the companion [#2-ask-the-companion] The companion is a resident agent that reads your notes and answers from them. Ask it a question and it replies with citations back to the notes it drew from, so you can check its work against your own words. When something is worth keeping, the companion writes a durable note back into your vault that you can open, read, and edit like any other note. ### 3. Share or export [#3-share-or-export] When a note is ready to leave the app, you have two honest exits: * **Share a note or canvas** as one live link, view-only or editable. View links can be public or password-protected with a key derived in your own browser. * **Export your whole vault** as a zip of plain markdown files you can read anywhere. Neither one locks your work inside Anima. That is the point. ## What's next [#whats-next] * [Notes](/use/notes): capture, search, edit, and forget. Forgetting a note is signed by your wallet and final. * [Companion](/use/companion): the built-in agent that remembers across sessions by writing notes back, and answers with citations. * [Sharing and export](/use/publishing-and-export): share a note or canvas as a live link, or take the whole vault out as markdown. Your own external agents are first-class here, on equal footing with the built-in companion. If you write code, the [build track](/build/quickstart) shows how to connect an agent you already use to the same vault. # Notes (/use/notes) A note in Anima is plain text and markdown. Underneath, each note is encrypted and stored as a blob that your wallet owns, so the note is yours to keep, change, and forget on your own terms. ## Capture [#capture] Write a note and save it. Short or long, a single line or a full page, it is the same kind of thing: text you own. Saving encrypts the note and stores it under your keys. Your own agents and the companion can read and add notes to the same vault, and every write carries a name and a revision so you can always see who wrote what. ## Search [#search] Find notes across your vault when you need them back. Search looks over the notes you have, including the ones your agents wrote, so retrieval is one move rather than scrolling. ## Edit [#edit] Open a note and change it. Edits are versioned: each save advances the note's revision, so a note has a history rather than silently overwriting itself. The newest version is what you read; the revision is part of what gets signed when an agent or a teammate writes. ## Forget [#forget] Forgetting a note in Anima is real, not a hide. Delete is the everyday word for it; the action underneath is stronger. Because each note's blob is owned by your wallet, forgetting it is something only your wallet can sign. Agents that write to your vault cannot destroy your notes: writing and forgetting are separated on purpose, and forgetting sits with you. When you forget a note, your wallet signs to remove its blob, an action auditable on the chain rather than a flag flipped on a server you have to trust to honor it. A forget is final by design. It is wallet-signed and removes the only retrievable, renewable copy of the note. The bytes were Seal-sealed to your wallet the whole time, so there is nothing an operator could read while the note existed and nothing one can restore once it is gone. If you might want a note later, [share](/use/publishing-and-export) or [export](/use/publishing-and-export) it first. ## What's next [#whats-next] * [Sharing and export](/use/publishing-and-export): get a note or your whole vault out of the app. * [Companion](/use/companion): the built-in agent that reads and writes these same notes. # Sharing and export (/use/publishing-and-export) Your notes are sealed to you by default. When you want something to leave the app, Anima gives you two ways out that keep you in control: share a single note or canvas as a live link, or export the whole vault as plain markdown. ## Share a live link [#share-a-live-link] Sharing gives you one live link per note or canvas. It is not a frozen, static copy: the link points at a live surface that opens in a chromeless reader, a clean page with no app sidebar and no login. You choose what the link lets people do, and there is exactly one active link at a time. ### View link [#view-link] A view link is read-only. It publishes a readable copy of the note as a blob your wallet owns, and the reader page fetches it straight from public storage, no wallet and no app account needed. Use it when you want people to read, not edit. A view link can be plain or password-protected: * **Plain.** Anyone who has the link can read it. Use it for things you genuinely want anyone to see. * **Password-protected.** The note is encrypted in your own browser using a key derived from the password, and only the encrypted copy is published. The password itself is never uploaded. To read it, someone needs the link and the password, and the decryption happens in their browser the same way. Anima never sees the password, and it never holds a plaintext copy of a protected note. Send the link and the password through different channels (for example, the link by email and the password in a message). Anyone who has both can read the note, so treat the pair like a key. ### Edit link [#edit-link] An edit link lets people edit alongside you, live, without a wallet or an account. It is not a published blob: it opens a live collaboration room, and edits flow between everyone in the room as they happen. Guests are anonymous and ephemeral. They never hold a key and never touch your vault directly. What survives is still sealed and wallet-owned. While you (or your agent) are present, your client saves a sealed snapshot of the session attributed to a guest label. When no one with write access is present, edits stay live but unsaved, and the reader shows a "not saved yet" banner so no one is misled. There is no lossless guarantee for guest-only work: a saved snapshot is the observed state, not a replay of every keystroke. Concurrency is last-write-wins with a soft lock on the note someone is actively editing, not conflict-free merging. An edit link can also be password-gated. The password decides which live room you land in, computed in your browser, so only people with the password meet in the same room. A wrong password lands you in an empty room rather than revealing anything. ## Unpublish [#unpublish] Taking a share link down is a real removal, signed by you. Because the published blob behind a view link is owned by your wallet, unpublishing is an action your wallet signs, and it deletes that blob. Taking down an edit link disconnects the people in the room. This is the same custody rule as everywhere else in Anima: writing can be delegated, but removing something is yours to sign. Unpublishing takes down the link you shared. It does not touch the original note in your vault. ## Export your whole vault [#export-your-whole-vault] Export gives you everything as files, not as a proprietary backup. Your vault comes out as a zip of plain markdown: one `.md` file per note, human-readable, openable in any editor. This is the strongest version of the promise that your notes survive the app. If you ever want to walk away, you leave with readable files, not a format only Anima can open. ## What's next [#whats-next] * [Notes](/use/notes): how notes are owned, edited, and forgotten. * [Companion](/use/companion): the built-in agent that reads and writes these notes. # Custody and ownership (/build/concepts/custody-and-ownership) This is the answer to "why does a notes app need a chain." The honest answer is custody and survival, and it is something a Postgres plus S3 SaaS cannot structurally promise. ## What your wallet owns [#what-your-wallet-owns] Every note in Anima is a markdown file, encrypted client-side and stored on [Walrus](/build/concepts/walrus-storage). Small notes are batched together into a quilt (one quilt per chat turn), and the resulting blob is owned by your Sui wallet on-chain. The agent key writes the quilt, then the blob object is transferred to your wallet in a follow-up transaction. So once a note lands, the on-chain record is plain: your wallet holds the blob. Only your wallet can delete it. That is the custody asymmetry that runs through the whole product. Routine writes are silent, but anything destructive needs your signature. The vault itself is a shared on-chain object that tracks its name, owner, and the list of allowlisted agents. The thing you own outright is the data: the note blobs. ## What the backend holds [#what-the-backend-holds] The backend stores no note content and runs no database, so nothing of yours lands on its disk. It holds no key that can read your vault. The only secrets it carries are its own JWT signing secret and its LLM provider key (OpenRouter), and neither can touch [Seal](/build/concepts/seal-encryption)-sealed note content. Your note keys live only on your devices, in browser storage or in an agent's environment. There are two places where note content leaves your device, and both are honest trust boundaries worth naming. ### The model sees decrypted notes during inference [#the-model-sees-decrypted-notes-during-inference] When you ask the companion (or an agent) something, your client decrypts the relevant notes and sends them to the language model so it can answer. This happens for a chat reply (`/chat`), a distilled note (`/distill`), and a companion suggestion (`/suggest`). The model runs at our provider (OpenRouter), so decrypted note bodies, and any connected calendar events, cross to that provider for that single inference. Nobody keeps them: they are not stored, logged, or trained on by us. But it is a real egress boundary, so we say it plainly. If a note is sensitive enough that you would not paste it into a chat box, do not ask the model about it. ### The relay carries plaintext during a live share [#the-relay-carries-plaintext-during-a-live-share] When you open a live share (a view or edit link), the presence relay also fans out plaintext note and canvas edits between the people in that session, so everyone sees the same document as it changes. This is authorized by the share you opened. The relay is never written to disk or logged, and it is not the durable copy of your work. It does keep one bounded, in-RAM, TTL'd snapshot of room state briefly after a room empties, so an offline owner or a late joiner can still catch up: it parses only that one frame and relays everything else untouched. The durable copy of the session is still sealed and wallet-owned (only an allowlisted writer can produce it). But during the session the relay does see the content in the clear, so it is not a confidentiality boundary for shared content. Private, unshared editing sends no content through the relay at all. ## Why this beats "your data on our servers" [#why-this-beats-your-data-on-our-servers] On a normal SaaS, your data lives in the company's database under the company's keys. If the company turns off, gets acquired, or revokes your account, your data goes with it. You are trusting a promise. In Anima, the blobs are wallet-owned and the markdown is sealed under your keys. The app can disappear and the data is still yours: you can read it, decrypt it, export it, or delete it without us. That is what "survives the app" means, and it is a property of where the data sits, not a promise we make. The provenance is on-chain, not in our logs: every note blob has an explorer link. ## What's next [#whats-next] * [The two-key model](/build/concepts/two-key-model): how silent writes and signed destruction split across keys. * [Walrus storage](/build/concepts/walrus-storage): where the note blobs actually live. * [Resurrection](/build/concepts/resurrection): the test that proves the data outlives the app. * [Quickstart](/build/quickstart): pair an agent and write your first note. # Resurrection (/build/concepts/resurrection) Resurrection is the test that proves the [custody story](/build/concepts/custody-and-ownership) is real. If the data truly outlives the app, then a brand-new client should be able to wake your full notes with nothing but your wallet. It can. ## What comes back [#what-comes-back] Open a different client, with a different model behind it, and connect the same wallet. From there: 1. The client discovers your vault from the chain (it scans for the vault your wallet created). 2. You approve one pairing transaction so this new client is an allowlisted agent that can decrypt. 3. It pulls your quilts from [Walrus](/build/concepts/walrus-storage) and rebuilds, decrypting as it goes. You see it work through them, quilt by quilt. When it finishes, your notes are all there. So is your canvas layout: the arrangement of note cards on the board is itself stored as a durable note, so the constellation comes back intact too. Nothing about this depends on Anima being alive. It depends only on the chain and your wallet. "Connect your wallet" is not zero-signature. A fresh client has to register itself as an agent before it can decrypt, which is one wallet pairing transaction. After that one approval, the rebuild runs on its own. ## What does not come back [#what-does-not-come-back] Resurrection restores what was meant to persist, and only that. Two things are ephemeral by design: * **Live presence** (cursors, who is on the board, "X is writing") is never durable. It transits the relay and is forgotten, so there is nothing to resurrect. The same is true of the live edits in a shared session: they pass through the relay live, and only the sealed snapshot an allowlisted writer persists comes back. * **Chat transcripts** do not persist. Only the notes distilled from a conversation are written to your vault. The raw back-and-forth is gone; the distilled note is what survives. This is not a limitation so much as the point. The durable layer (your notes and your layout) is wallet-owned and resurrectable. The transient layer (presence and chat) is deliberately left to evaporate. ## What's next [#whats-next] * [Custody and ownership](/build/concepts/custody-and-ownership): why the durable layer outlives any app. * [Walrus storage](/build/concepts/walrus-storage): the quilts a fresh client pulls and rebuilds from. * [The two-key model](/build/concepts/two-key-model): the one pairing signature a fresh client needs. * [Quickstart](/build/quickstart): pair an agent and write your first note. # Seal encryption and access (/build/concepts/seal-encryption) Your notes are never *stored* anywhere in the clear. Each note is encrypted client-side before it goes to [Walrus](/build/concepts/walrus-storage), and who can decrypt it is governed by Seal, a threshold key-server scheme on Sui. There are two times note content does leave your device in the clear, both deliberate and both disclosed: when you ask the companion (or an agent) something, your client decrypts the relevant notes and sends them to the language model at our provider (OpenRouter) for that single inference; and during a live share, plaintext edits transit the presence relay between the people in the session. Neither is kept afterward, but both are real egress boundaries (see [Custody and ownership](/build/concepts/custody-and-ownership)). ## Encryption [#encryption] When a note is written, your client encrypts it against an identity tied to your vault. The ciphertext is also bound to the specific vault and note (additional authenticated data), so a blob from one vault cannot be replayed into another. Your note keys exist only on your devices, and the plaintext markdown is never persisted off them. It is decrypted only in your client (and sent transiently to the model when you ask it something, as above). ## How a decrypt is gated [#how-a-decrypt-is-gated] To decrypt, a key holder needs the key servers to release their shares. The release is gated by an allowlist check called `seal_approve`. Here is the part worth understanding: `seal_approve` runs as a gas-free, off-chain dry-run. On every decrypt, your client builds the approval call and the key servers evaluate it as a dry-run against the current on-chain state. Nothing is submitted as a transaction, so checking access costs no gas and leaves no on-chain trace. Because the check reads live chain state every time, the allowlist is what the key servers enforce. A change to it takes effect on the next session, subject to a brief key-server indexing lag. ## What revoking an agent does [#what-revoking-an-agent-does] Revoking an agent removes it from the vault's allowlist (a wallet-signed move, like all destructive actions). The effect: * The agent's **next session** is denied. A fresh decrypt creates a new session key and re-consults the key servers, which now see the agent is off the allowlist and refuse to release shares. The agent gets a clean "no access" error, not a stack trace. Revocation is not an instant universal lockout. A session key the agent already holds is valid until it ages out, and that window is short (the session key has a roughly 25-minute time-to-live). After it expires, the agent must start a fresh session, which is denied. Plan revocation knowing the next session is cut off, not necessarily an in-flight one. ## What's next [#whats-next] * [The two-key model](/build/concepts/two-key-model): why revoke and forget are wallet-signed while writes stay silent. * [Custody and ownership](/build/concepts/custody-and-ownership): the trust boundaries where note content leaves your device. * [Walrus storage](/build/concepts/walrus-storage): where the encrypted blobs this gates are stored. * [Quickstart](/build/quickstart): pair an agent and write your first note. # Signed attribution (/build/concepts/signed-attribution) On a shared board, the first question is always "who wrote this." Anima answers it on every note. Humans and agents write the same vault through the same path, and each edit carries its author and revision with it. ## Author and revision in the frontmatter [#author-and-revision-in-the-frontmatter] Every note is markdown with a small frontmatter block, and two of those fields are the attribution: * **author**: the name of whoever made this version. For an external agent, that is the name you gave it when you paired it (its `ANIMA_AGENT_NAME`). For you, it is your name. * **version**: a counter that increments on every edit. Editing a note does not overwrite it in place. It produces the next version, a new note with `version` bumped and `author` set to whoever made the change, written as a fresh [quilt](/build/concepts/walrus-storage). The previous versions still exist as their own blobs. So the history is a chain of authored revisions, and you can audit who wrote what by walking it. ## Humans and agents are peers [#humans-and-agents-are-peers] There is no special path for agents. The [built-in companion](/use/companion), an external Claude Code or Cursor agent, a teammate's agent, and you all write through the same vault with the same kind of allowlisted key. An agent's note is authored by the agent's name; your note is authored by yours. On the board they sit side by side, each labeled with who made it. That is what "peers on the same board" means concretely: same write path, same frontmatter, same attribution for every allowlisted writer, human or agent. ## Anonymous guests are a live layer, not a writer [#anonymous-guests-are-a-live-layer-not-a-writer] A live share link lets people edit alongside you without a wallet or a paired key. They are real in the moment: you see their edits and their cursor. But they are a live, ephemeral layer only. They never hold a key, never touch [Seal](/build/concepts/seal-encryption), and never write to your vault directly. What lands durably is still produced by an allowlisted writer (you, or your agent) through the signed write path, attributed to a guest label. So the durable history stays signed and allowlisted, while anonymous collaboration stays live-only. Edits made while no allowlisted writer is present are not saved until one joins, and there is no lossless guarantee for guest-only work: a snapshot is the writer's observed state, not a replay of every keystroke. Attribution here means the author and revision are recorded in the note and written by an allowlisted key. It gives you a readable, auditable history of who-wrote-what across humans and agents. It is a provenance record, not a separate cryptographic proof that the named author and the signing key are one and the same. ## What's next [#whats-next] * [The two-key model](/build/concepts/two-key-model): the allowlisted keys that make humans and agents peers. * [Seal encryption and access](/build/concepts/seal-encryption): the allowlist that decides who can write and read. * [Resurrection](/build/concepts/resurrection): why the live guest layer evaporates while signed history persists. * [Quickstart](/build/quickstart): pair an agent and write your first note. # The two-key model (/build/concepts/two-key-model) Anima splits authority across two kinds of keys. The split is what lets agents work continuously without nagging you for a signature, while still keeping every consequential action under your control. ## The wallet key [#the-wallet-key] Your Sui wallet owns everything: the vault and the [note blobs](/build/concepts/walrus-storage). It signs only a short list of moves, all of them things you should consciously approve: * **onboarding**: creating your vault and funding its first agent (one transaction). * **pairing**: registering a new device or external agent into the vault, and funding it. * **forget**: deleting note blobs you own. * **revoke**: [removing an agent's access](/build/concepts/seal-encryption). * **unpublish**: taking down a live share link (deleting the published blob behind a view link). These are the moments where you, the owner, decide. They are deliberately the only times Anima asks your wallet to sign. ## The per-device and per-agent keys [#the-per-device-and-per-agent-keys] Every paired device and every external agent (Claude Code, Cursor, the [built-in companion](/use/companion), or any agent you bring) gets its own keypair. An agent's key is generated and shown once when you pair it, then it lives in that agent's environment or your browser storage. These keys do the ordinary work: they write notes, transfer the resulting blob to your wallet, and decrypt notes they are allowlisted for. All of that happens silently, without a wallet prompt, so an agent can read and write your notes in a loop the way it needs to. ## The custody asymmetry [#the-custody-asymmetry] This is the rule to remember: **writes are silent, destruction is signed.** An allowlisted key can add to your vault all day without bothering you. But forgetting a note, revoking an agent, or unpublishing a share moves a wallet-owned blob or changes who can decrypt, so each of those requires your wallet signature. Convenience for the routine, a deliberate gate for the irreversible. ## What's next [#whats-next] * [Custody and ownership](/build/concepts/custody-and-ownership): the wallet-owned, app-surviving data these keys protect. * [Seal encryption and access](/build/concepts/seal-encryption): how the allowlist gates every read and revoke. * [Walrus storage](/build/concepts/walrus-storage): where the note blobs the keys write actually live. * [Quickstart](/build/quickstart): pair an agent and write your first note. # Walrus storage (/build/concepts/walrus-storage) Anima's notes live on Walrus, Sui's decentralized blob storage. The shape of the data is deliberate: it is built to be read by a person, a different app, or a different agent, with Anima as just one reader among them. ## Notes are markdown [#notes-are-markdown] Every note is a markdown file with a small frontmatter block (note id, version, author, tags, links) followed by a title and body. There is no proprietary format and no database row to decode. If you decrypt a note, you get a `.md` file you could open in any editor. That is the file-over-app receipt: the data is portable by construction, and exporting your whole vault is just zipping up those files. ## Quilts [#quilts] Writing one tiny blob per note would be wasteful, so small notes are batched together. Anima writes one quilt per chat turn: a single Walrus blob holding the notes from that turn, each as its own [encrypted](/build/concepts/seal-encryption) patch inside it. Reading a quilt pulls every note back out and decrypts them. ## Ownership and durability [#ownership-and-durability] Each quilt's blob object is [owned by your wallet](/build/concepts/custody-and-ownership) on-chain. Storage on Walrus is paid ahead for a span of epochs and is renewable, so durability is real but not magic: it is storage you have paid for and can keep paying for, not an unconditional "forever." Because you own the blob, you also control its end. Walrus blobs here are deletable, and only your wallet can delete them. That single property powers two features at once: **forget** (delete note blobs you own) and **unpublish** (take down a share link by deleting the published blob behind it). ## Why this enables resurrection [#why-this-enables-resurrection] Since the notes and the canvas layout all sit on Walrus as wallet-owned blobs, your full state is reconstructable from the chain alone. Open a fresh client, connect your wallet, and it can find your vault, pull the quilts, and rebuild. The app's local index is just a cache. The source of truth is on Walrus. ## What's next [#whats-next] * [Resurrection](/build/concepts/resurrection): rebuilding your full vault in a fresh client from the chain alone. * [Seal encryption and access](/build/concepts/seal-encryption): how each quilt patch is encrypted and who can decrypt it. * [Custody and ownership](/build/concepts/custody-and-ownership): why wallet-owned blobs survive any app. * [Quickstart](/build/quickstart): pair an agent and write your first note.