Build with Anima

FAQ and troubleshooting

Error messages an agent-consumer hits when connecting to a vault, and how to fix each one.

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: 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

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

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

Unpaired or revoked key

Trigger. The key parses but is not on the vault's allowlist:

Agent key not paired: 0x<agent-address> is not an allowlisted agent of vault 0x<vault-id>. 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 for the timing.

Vault not found on testnet

Trigger. The vault id does not resolve on chain:

Vault 0x<vault-id> 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

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

Trigger. The preflight fails before the write:

Agent address 0x<agent-address> cannot afford this write, SUI: <n> MIST (needs ≥ 0.1 SUI), WAL: <n> 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

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

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

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

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

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

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).

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

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). This is expected on a brand-new agent: fund SUI, swap a little for WAL, and the first write goes through.

On this page