Skip to main content

Quick Start

This guide walks you from zero to a running control plane with a connected agent in under five minutes.

Prerequisites

  • Node.js 18 or later
  • pnpm 9 or later (npm install -g pnpm)
  • Git

1. Clone the repository

git clone https://github.com/vaultys/vaultysclaw.git
cd vaultysclaw

2. Install dependencies

pnpm install

3. Configure environment variables

Copy the example environment files:

# Control plane (Next.js reads .env and .env.local)
cp packages/control-plane/.env.example packages/control-plane/.env.local

# Agent controller
cp packages/agent-controller/.env.example packages/agent-controller/.env

Open packages/control-plane/.env.local and at minimum set:

NEXTAUTH_SECRET=your-random-secret-here
# Generate a strong value with: openssl rand -base64 32

Open packages/agent-controller/.env and set your LLM provider:

AGENT_NAME=my-agent
LLM_PROVIDER=openai
LLM_MODEL=gpt-4o
LLM_API_KEY=sk-...
Using Ollama (no API key required)?
LLM_PROVIDER=ollama
LLM_MODEL=llama3.2
LLM_BASE_URL=http://localhost:11434

4. Start the platform

Open two terminals:

Terminal 1 — Control plane:

pnpm vaultysclaw:dev

You should see output like:

✓ Control plane ready on http://localhost:3000
✓ WebSocket hub ready on ws://localhost:8080

Terminal 2 — Agent controller:

pnpm agent:dev

You should see output like:

✓ VaultysId loaded: did:vaultys:z6Mkf...
✓ Connected to control plane WebSocket
✓ Registration pending admin approval

5. Approve the agent

Open http://localhost:3000 in your browser.

  1. Sign in (first user automatically gets global admin)
  2. Navigate to AgentsPending Registrations
  3. Click Approve on your agent, selecting the capabilities to grant

The agent will immediately receive its signed policy and become active.

6. Send your first intent

curl -X POST http://localhost:3000/api/intents \
-H "Content-Type: application/json" \
-H "Cookie: <your-session-cookie>" \
-d '{
"action": "echo",
"params": { "message": "Hello from VaultysClaw!" }
}'

Response:

{
"intentId": "int_01HZ...",
"action": "echo",
"sentTo": ["did:vaultys:z6Mkf..."],
"count": 1
}

7. Chat with your agent

Open http://localhost:3000/chat, select your agent, and start a conversation.

Next steps