Skip to main content

Getting Started

This guide will help you get started with AgentVault - an AI agent platform for the Internet Computer.

Prerequisites

Before installing AgentVault, ensure you have:

  • Node.js 18+ - Required for running AgentVault CLI
  • dfx - Internet Computer SDK for deploying canisters
    • Install with: sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"
    • Verify with: dfx --version
  • ICP cycles - Required for canister operations
  • Git - For cloning agent projects

Installation

Global Installation

Install AgentVault globally on your system:

npm install -g agentvault

Verify installation:

agentvault --version

Development Installation

For local development or contributing:

git clone https://github.com/your-org/agentvault.git
cd agentvault
npm install
npm run build
npm link

First Project

Create your first AI agent project:

agentvault init my-first-agent
cd my-first-agent

This creates the following structure:

my-first-agent/
├── agent.yaml # Agent configuration
├── src/
│ └── index.ts # Agent entry point
└── package.json # Node.js dependencies

Configuration

Edit agent.yaml to configure your agent:

name: My First Agent
description: A sample AI agent
entry: src/index.ts
memory: 256
compute: medium
cycles: 1000000000000 # 1T cycles

Configuration Options

OptionTypeDescriptionDefault
namestringAgent namepackage.json name
descriptionstringAgent description-
entrystringEntry point filesrc/index.ts
memorynumberMemory allocation in MB256
computestringCompute tier: low, medium, highmedium
cyclesbigintInitial cycles allocation1T
routingarrayRouting canisters-

Local Testing

Test your agent locally before deployment:

agentvault test

This runs the agent in a local test environment with simulated ICP interactions.

Testing Options

agentvault test --verbose
agentvault test --coverage

Deployment

Deploy your agent to the Internet Computer:

# Local deployment
agentvault deploy --network local

# Production deployment
agentvault deploy --network ic

Deployment Flags

FlagDescription
--networkNetwork: local or ic
--canister-idUpgrade existing canister
--cyclesCustom cycles allocation
--no-verifySkip post-deployment verification

Verification

Verify your deployed agent:

agentvault status <canister-id>

Troubleshooting

Common Issues

dfx not found

export PATH="$HOME/bin:$PATH"
dfx --version

Insufficient cycles

# Check wallet balance
agentvault wallet balance

# Request faucet
agentvault wallet request

Build failures

# Clean and rebuild
rm -rf dist
npm run build

Network timeouts

# Check network status
agentvault network status

# Switch to alternate network
dfx identity use ic

Next Steps

Getting Help

agentvault --help
agentvault <command> --help

For issues or feature requests, visit: