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
Getting Started →
Install DCP and create your first vault in 5 minutes
Packages Overview →
Understand the 8 DCP packages and when to use each
CLI Reference →
Complete command-line interface documentation
TypeScript SDK →
Integrate DCP directly into your agent code
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:
| Package | Purpose |
|---|---|
@dcprotocol/core | Encryption, wallet management, storage engine |
@dcprotocol/cli | Command-line interface for vault operations |
@dcprotocol/server | Local REST API server (localhost:8420) |
@dcprotocol/mcp | MCP server for Claude Desktop & Cursor |
@dcprotocol/client | TypeScript SDK for agent integration |
@dcprotocol/proxy | VPS proxy for remote agents |
@dcprotocol/relay | WebSocket relay server for remote access |
@dcprotocol/desktop | Cross-platform desktop app (Tauri) |
Next Steps
- Install & Setup - Create your first vault
- Understand the Packages - Learn which package to use
- 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.