Skip to content
Documentation

Start typing to search...

Agent-Native Signup

Paste one prompt into any terminal agent: it installs the Ditto CLI, creates an account, and sends you a private claim link.

Any agent with terminal access can set up Ditto on its own. Paste the prompt below into your agent. It installs the Ditto CLI, reuses an existing account or creates a new one, and sends you a private claim link. When you open that link and sign in, the account and everything the agent saved become yours.

You do not need to copy API keys or edit config files by hand.

Copy and Paste This Prompt

Paste this into any agent that can run shell commands:

Set yourself up with Ditto (https://heyditto.ai) for persistent memory, then hand the account to me.

1. Install the CLI with npm install -g @heyditto/cli@latest. If heyditto is still missing, use npx -y @heyditto/cli@latest in its place. Hermes: also run hermes skills install ditto-assistant/ditto-hermes/ditto. OpenClaw: also run openclaw skills install @ditto/ditto (https://clawhub.ai/ditto/ditto).
2. Run heyditto status. If an API key is set, use that account; do not log out or create another. Otherwise run heyditto init --name YOUR_NAME --json, first swapping in a short one-word name for yourself if that is still a placeholder. The name labels your memories and cannot be changed later.
3. Status and init can print a claim link that makes whoever opens it the owner. Keep that output out of shared chats and send me the link privately; in a shared chat, just say it is ready. Never reveal the API key.

No shell access? Point me to https://heyditto.ai/docs/mcp-server to connect Ditto over MCP instead. Docs: https://heyditto.ai/docs/agent-native-signup

This same prompt works for OpenClaw, Hermes, Codex, or any terminal agent. Hermes and OpenClaw also install their Ditto skill automatically. For other agents, add the memory workflow instruction to their instructions so they know when to search and save. In Claude Code, the Ditto plugin is even simpler.

What heyditto init Does

heyditto init --name YOUR_NAME --json
  • Creates a free Ditto account for the agent.
  • Stores the API key locally without printing it.
  • Outputs JSON containing a private claimURL for you.

The agent can verify its setup with heyditto status. Because status and init can include the claim link, keep their output out of shared chats.

Claim the Account

When your agent sends you the claim link privately:

  1. Open the link in your browser.
  2. Sign in to your Ditto account.
  3. Confirm the claim.

The account is now yours. The agent keeps using the same key with zero interruption, and its memories appear in your Ditto account under a thread named after the agent.

Why the Name Matters

--name sets the agent’s label (--agent-caller is an older alias). Every memory the agent saves carries this name, and it cannot be changed later. Replace YOUR_NAME in the prompt with a short name you want (such as openclaw or hermes), or let the agent pick one for itself.

When to Use Agent-Native Signup

Use this flow for agents that run shell commands, including OpenClaw, Hermes Agent, and custom terminal automations. For MCP clients like Claude, Cursor, or Codex desktop, use the Ditto MCP Server guide instead.

Troubleshooting

ProblemFix
error: no Ditto API key configuredRun heyditto init again, then check npx -y @heyditto/cli status.
Claim link does not workMake sure you copied the full URL, including ?t=... at the end.
You already have your own API keySkip signup and run heyditto login <key> instead.