Skip to content

Command Line ​

@memfork/cli provisions trees, verifies config, installs IDE integrations, and performs memory operations from the terminal.

Install ​

bash
npm install -g @memfork/cli

Or run without installing:

bash
npx @memfork/cli init --quick

Setup Commands ​

CommandDescription
memfork initInteractive setup for a new or existing tree.
memfork init --quickAuto-provision a testnet key, MemWal account, delegate key, and tree.
memfork joinJoin an existing tree as a teammate or delegated agent.
memfork doctorVerify config, credentials, RPC, relayer, and on-chain state.
memfork doctor --envPrint environment variables for hosted apps.
memfork install cursorInstall Cursor MCP config and MemForks agent rule.
memfork install codexInstall Codex plugin scaffold.

Memory Commands ​

CommandDescription
memfork statusShow tree, network, signer, branch, and head.
memfork logShow recent commits for the active branch.
memfork log --branch mainShow commits for a specific branch.
memfork recall <query>Semantic recall from the active branch.
memfork commit -m "..." --facts "..."Commit facts to branch memory.
memfork branch <name>Create a branch from the active branch.
memfork branch <name> --from mainCreate a branch from a specific source.
memfork checkout <name>Switch the local default branch.
memfork diff <a> <b>Compare recalled facts between branches.
memfork merge <from> <into> --resolver <id>Propose a governed merge.
memfork proposalsList open merge proposals.
memfork uiOpen the DAG visualizer when available.

Access Control Commands ​

CommandDescription
memfork grant --agent <addr>Grant on-chain delegate access.
memfork grant-memwal --agent <addr> --pubkey <hex>Register a MemWal decrypt key.
memfork revoke --agent <addr>Revoke delegate access.
memfork delegatesList delegates.

Typical Developer Workflow ​

bash
memfork init --quick
memfork doctor
memfork install cursor

Restart Cursor. The agent can now recall, remember, and commit memory scoped to the current branch.

Manual Branch Workflow ​

bash
memfork branch feature/auth --from main
memfork checkout feature/auth

memfork commit \
  --branch feature/auth \
  -m "auth decision" \
  --facts "Auth will use Privy for stable user identity"

memfork recall "auth decision"
memfork diff feature/auth main

Team Onboarding ​

Teammate:

bash
git clone <repo>
memfork join

Tree owner runs the commands printed by join:

bash
memfork grant --agent <teammate-address>
memfork grant-memwal --agent <teammate-address> --pubkey <hex>

The teammate verifies:

bash
memfork doctor

Config Files ​

FileCommittableContents
.memfork/config.jsonSometimestreeId, network, defaultBranch, optional RPC/package values.
~/.memfork/credentials.jsonNeverPrivate key, MemWal account, MemWal delegate key.

See Configuration for details.

Built on MemWal, Walrus, and Sui.