DCP Documentation

Complete developer documentation for DCP (Delegated Custody Protocol) - a secure vault that lets AI agents use your sensitive data without ever seeing the raw secrets.

Quick Start

What is DCP?

DCP (Delegated Custody Protocol) is a secure vault system that enables AI agents to use your sensitive data - wallets, API keys, credentials, identity information - without ever having access to the raw secrets.

Core Principle: Agents get USE of your data, not the VALUES. Private keys never leave the vault - agents receive signed results.

The Problem DCP Solves

  • Unsafe credential sharing: Giving raw wallet keys or API keys to agents is dangerous
  • Fragmented security: Every agent framework implements security differently
  • Data silos: You enter the same data multiple times for different agents
  • No audit trail: You can't see what agents did with your data

How DCP Works

┌─────────────┐
│ AI Agent    │  "Sign 1.5 SOL transaction"
└──────┬──────┘
       ↓
┌──────────────┐
│ DCP Vault    │  User approves → Signs internally
└──────┬───────┘
       ↓
┌─────────────┐
│ AI Agent    │  Receives signature (NOT the key!)
└─────────────┘

Key Features

  • Delegated signing: Agents request signatures, vault signs with your keys
  • Budget enforcement: Per-transaction and daily spending limits
  • Consent system: Approve every sensitive request
  • Audit trail: Complete log of all agent actions
  • Multi-agent support: One vault, many agents, different permissions
  • Local-first: Your data stays on your machine

Architecture Overview

DCP consists of 8 packages that work together:

PackagePurpose
@dcprotocol/coreEncryption, wallet management, storage engine
@dcprotocol/cliCommand-line interface for vault operations
@dcprotocol/serverLocal REST API server (localhost:8420)
@dcprotocol/mcpMCP server for Claude Desktop & Cursor
@dcprotocol/clientTypeScript SDK for agent integration
@dcprotocol/proxyVPS proxy for remote agents
@dcprotocol/relayWebSocket relay server for remote access
@dcprotocol/desktopCross-platform desktop app (Tauri)

Next Steps

  1. Install & Setup - Create your first vault
  2. Understand the Packages - Learn which package to use
  3. Try an Example - See DCP in action

Need Help?

Join our community or open an issue on GitHub. We're here to help you integrate DCP.