Skip to main content
This guide covers installing Agentic Wallet for local development, testing, and production deployment.

Prerequisites

Node.js

Version: >= 20.x

npm

Version: >= 10.x

Solana CLI

Version: >= 1.18.xRequired for devnet funding and program deployment

Anchor CLI

Version: >= 0.31.xRequired for escrow program build/deploy

Installing Prerequisites

Add to your PATH:
Verify installation:
Configure for devnet:
See Solana CLI documentation for more details.
Anchor is required for building and deploying the escrow program.
Verify installation:
See Anchor documentation for troubleshooting.

Installation Steps

1

Clone or Download Repository

If you have the repository locally, navigate to it:
Or clone from your source:
2

Install Dependencies

Install all workspace dependencies:
This installs dependencies for:
  • 2 applications (apps/*): API Gateway, CLI
  • 7 services (services/*): wallet-engine, policy-engine, agent-runtime, protocol-adapters, transaction-engine, audit-observability, mcp-server
  • 3 packages (packages/*): common, sdk, observability
The post-install script runs automatically to patch RPC WebSocket compatibility.
3

Verify Installation

Run quality gates to ensure everything is installed correctly:
All commands should complete successfully.
If npm run build fails, check that all dependencies installed correctly and that you have sufficient disk space.

Post-Installation

Build All Packages

Build all services and packages:
This compiles TypeScript for:
  • All 7 microservices
  • SDK and shared packages
  • CLI application

Build Escrow Program (Optional)

If you plan to use escrow functionality, build the Anchor program:
This command:
  1. Syncs the program ID from the deploy keypair
  2. Builds the Anchor program
  3. Generates IDL and type definitions
You only need to build the escrow program if you plan to deploy it or modify escrow functionality.

Verification

System Health Check

Run the doctor command to verify your installation:
Expected output:

Service Startup Test

Verify all services can start:
You should see 8 services listening:
Press Ctrl+C to stop services.

Repository Structure

After installation, your repository should have this structure:

Service Ports

After installation, these ports will be used by default:
All ports are configurable via environment variables. See the Configuration guide.

Data Directories

By default, services store data in their local directories:
Production deployments should:
  • Use dedicated data directories outside the source tree
  • Implement regular backups of wallet-engine data
  • Use KMS/HSM for key storage instead of encrypted files
  • Configure external databases (PostgreSQL) instead of SQLite

Next Steps

Quickstart

Create your first wallet and execute a transaction

Configuration

Configure environment variables and signer backends

Creating Wallets

Learn wallet creation and management

Deployment

Deploy to production with proper security

Troubleshooting

You may have permission issues. Try:
Or use a Node version manager like nvm to avoid permission issues.
You need Rust installed for Anchor:
Then retry:
Ensure you’re using the correct Node version:
Clean and rebuild:
Check for existing processes:
Kill them:
Or configure different ports in .env (see Configuration).