Skip to main content

Prerequisites

Before deploying Agentic Wallet, ensure you have the following installed:
  • Node.js >= 20
  • npm >= 10
  • Solana CLI >= 1.18 (required for devnet funding and escrow deployment)
  • Anchor CLI >= 0.31 (required for escrow program build and deployment)

Local Development Setup

1

Clone and Install

Install all dependencies for the monorepo:
2

Configure Environment

Copy the example environment file and configure required variables:
Edit .env and set at minimum:
For production deployments, generate strong random secrets using:
3

Load Environment Variables

Export environment variables to your shell:
4

Start All Services

Launch the full stack using the development script:
This starts all services concurrently:
  • api-gateway (port 3000)
  • wallet-engine (port 3002)
  • policy-engine (port 3003)
  • agent-runtime (port 3004)
  • protocol-adapters (port 3005)
  • transaction-engine (port 3006)
  • audit-observability (port 3007)
  • mcp-server (port 3008)

Health Check Endpoints

Verify that all services are running correctly:
The CLI includes a built-in doctor command that checks all service health endpoints:

Escrow Program Deployment

The Agentic Wallet includes a real Anchor escrow program that must be deployed to devnet.
1

Set Deployment Key

Configure your deployment wallet in .env:
Ensure this wallet has sufficient SOL for program deployment (~5-10 SOL on devnet).
2

Build Escrow Program

Compile the Anchor program:
This syncs the declare_id! macro and builds the program artifacts.
3

Deploy to Devnet

Deploy the compiled program:
This command:
  1. Syncs declare_id! and Anchor.toml from the deploy keypair
  2. Builds and deploys via Anchor CLI
  3. Automatically updates .env with ESCROW_PROGRAM_ID=<deployed_id>
4

Verify Escrow Adapter

Check that the escrow adapter is properly configured:
Expected response:

Validation and Quality Gates

Run the full validation suite before deploying:

Devnet Smoke Tests

Validate the deployment with end-to-end smoke tests:

Environment Configuration Reference

RPC and Execution Tuning

Storage and Durability

Outbox Queue Configuration

See .env.example in the repository root for the complete list of configuration options.