Build with Anima

Quickstart

Connect your own agent to a vault over anima-mcp in about ten minutes.

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

  • 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

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)

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:

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

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:

{
  "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

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 covers the common cases (unfunded agent, a stale index, a revoked key).

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:

pnpm pair revoke 0x<agent-address>

Either way, the agent is denied on its next session.

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:

{
  "mcpServers": {
    "anima-docs": {
      "command": "uvx",
      "args": ["--from", "mcpdoc", "mcpdoc", "--urls", "Anima:https://docs-anima.kadzu.dev/llms.txt", "--transport", "stdio"]
    }
  }
}

Next

On this page