CLI Reference

The dcp CLI is shipped by @dcprotocol/vault.

Install

npm install -g @dcprotocol/vault

DCP packages require Node.js 22.

Core Commands

CommandUse
dcp initCreate a local vault.
dcp create-wallet --chain solanaCreate a Solana wallet.
dcp add identity.emailAdd a data record.
dcp read identity.emailRead a data record.
dcp listList stored records.
dcp statusShow vault status.
dcp update identity.emailUpdate an existing record.
dcp remove identity.emailRemove a vault record.
dcp approve --listList pending consent requests.
dcp agentsList paired agents.
dcp revoke <agent_or_session>Revoke agent access.
dcp config showShow budget and rate-limit config.
dcp activityShow audit activity.
dcp recovery restoreRestore a vault from the recovery phrase.

Common Setup

dcp init
dcp create-wallet --chain solana
dcp add identity.name
dcp add identity.email
dcp list
Sending funds, swapping, and signing are done by agents through MCP tools (vault_transfer, vault_swap, vault_sign_tx), gated by your approval, not by a dcp subcommand. The CLI manages the vault; agents move value.

Connecting agents

CommandUse
dcp pairingCreate/manage pairing tokens for a local proxy setup.
dcp cloud-connectConnect a cloud agent (OpenClaw / Hermes / Claude.ai) via a one-time link.
dcp trust <service>Add a trusted service to the vault.
dcp connect <service>Connect to a trusted service.

Recovery

dcp recovery show-phrase   # how the recovery phrase works
dcp recovery restore       # restore a vault from the recovery phrase

Remote / VPS agents

Prefer Desktop's generated invite command (run on the server):

curl -fsSL https://dcpagent.com/install.sh | sudo bash -s -- 'dcp_vps_v1_...'

The agent CLI (dcp-agent, from @dcprotocol/agent) also exposes install-service, configure-openclaw, run, status, and list. See Remote Agents.