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

Remote Agents

For remote agents, prefer Desktop's generated invite command:

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