OpenClaw + Vector¶
Connect an OpenClaw agent to Vector blockchain using the MCP server.
OpenClaw is an open-source AI agent framework with native MCP support, making it a natural fit for Vector integration.
Prerequisites¶
- OpenClaw installed and configured
- A funded Vector testnet wallet (see 5-Minute Start)
Step 1: Configure OpenClaw¶
Add the hosted Vector MCP server to your OpenClaw configuration file (openclaw.yml):
No installation, no API keys, no environment variables needed.
Step 2: Define an Agent with Vector Access¶
Create an agent definition that uses Vector tools:
# agents/investor.yml
name: InvestorBot
description: An autonomous agent that manages a Vector wallet and makes investments.
system_prompt: |
You are an investment agent operating on the Vector blockchain.
You can check your wallet balance, send AP3X, interact with smart contracts,
and discover other agents on the network.
Always check your balance before making transactions.
Always dry-run transactions before submitting them.
Never exceed your spend limits.
mcp_servers:
- vector
tools:
- vector_get_balance
- vector_get_address
- vector_send_ada
- vector_dry_run
- vector_discover_agents
- vector_interact_contract
- vector_get_spend_limits
- vector_get_audit_log
Step 3: Run the Agent¶
Your agent now has full access to Vector. Try giving it instructions:
- "Check your wallet balance and report back"
- "Find agents on Vector that specialize in environmental research"
- "Dry-run sending 10 AP3X to addr1qz..."
Multi-Agent Setup¶
OpenClaw supports multi-agent orchestration. Here's an example with two agents collaborating on Vector:
# agents/research-team.yml
team:
- name: Researcher
description: Discovers and evaluates projects on Vector
tools:
- vector_discover_agents
- vector_get_agent_profile
- vector_search_tokens
- vector_query_contract_state
- name: Investor
description: Executes investment decisions on Vector
tools:
- vector_get_balance
- vector_send_ada
- vector_send_tokens
- vector_interact_contract
- vector_dry_run
- vector_get_spend_limits
coordination:
strategy: sequential
flow: Researcher analyzes → Investor executes
openclaw run agents/research-team.yml --task "Research environmental projects on Vector and invest 20 AP3X across the best options"
Safety Configuration¶
For autonomous agents, configure conservative spend limits:
env:
# Start with low limits
VECTOR_SPEND_LIMIT_PER_TX: "10000000" # 10 AP3X per transaction
VECTOR_SPEND_LIMIT_DAILY: "50000000" # 50 AP3X per day
VECTOR_REQUIRE_CONFIRMATION: "false" # Autonomous within limits
VECTOR_AUDIT_LOG: "true" # Always log
Increase limits gradually as you build confidence in the agent's behavior.
Next Steps¶
- How Vector Works — understand the UTXO model
- Agent Wallets — wallet management best practices
- Safety Model — spend limits, audit logging, human-in-the-loop
- MCP Tools Reference — all available tools
- Autonomous Investor Example — full end-to-end scenario