Developer Docs
SDK integration guide, API reference, and contract documentation for the VAELTUS AI Agent Observability & Guardrails Protocol.
What is VAELTUS?
VAELTUS is an observability and guardrails layer for autonomous AI agents operating onchain. It gives builders a way to register agents, stream operational events, enforce spend and permission policies, and anchor critical traces to Base for tamper-resistant auditability.
Logs tool calls, transactions, reasoning events, errors, and heartbeats from your agent runtime.
Validates API keys, stores events in Supabase, checks guardrails, and fires alerts.
Gives operators live status, incident triage, analytics, and policy controls.
Registry identity, budget governor primitives, circuit breaker state, and event hash anchoring on Base.
Free First: The MVP is 100% free. Token utility ($VLTS) is activated after product traction. Revenue in early phases comes from trading fees via Clanker LP.
SDK Integration Guide
Installation
npm install @vaeltus/sdk
Quick Start
Available Methods
connect()Start heartbeat and verify agent is live.
disconnect()Stop heartbeat and send final status.
logEvent(event)Log any agent event with guardrail checking.
logToolCall(tool, in, out?)Convenience wrapper for tool_call events.
logTransaction(hash, chain, from)Convenience wrapper for transaction events.
logError(message, ctx?)Log critical error with context.
trace<T>(name, fn)Wrap async reasoning spans with timing.
startHeartbeat()Start periodic liveness heartbeats.
checkBudget(amount)Pre-check if spend would violate limits.
checkToolAllowed(tool)Pre-check if a tool is permitted.
checkAddress(addr)Pre-check if a destination is blocked.
API Reference
Smart Contracts
VaeltusRegistryRegister agents onchain with owner binding and role-based access control.
BudgetGovernorEnforce per-hour and per-day spend limits that sync with offchain guardrail edits.
EventAnchorImmutably anchor keccak256 event hashes to Base. Tamper-proof audit trail.
CircuitBreakerEmergency halt mechanism with owner-controlled resume and onchain state.
Deploy to Base Sepolia
# Set your private key and relayer addresses in .env.local # Then run: forge script contracts/script/Deploy.s.sol \ --rpc-url https://sepolia.base.org \ --broadcast \ --verify \ --etherscan-api-key $BASESCAN_API_KEY
After deployment, update NEXT_PUBLIC_REGISTRY_ADDRESS, NEXT_PUBLIC_BUDGET_GOVERNOR_ADDRESS, NEXT_PUBLIC_EVENT_ANCHOR_ADDRESS in .env.local.
Local Development
Prerequisites
- ✓Node.js 20+
- ✓Foundry (forge, cast)
- ✓Supabase account (free tier works)
Commands
# Install dependencies npm install # Copy and fill environment variables cp .env.example .env.local # Run Supabase migrations (requires supabase CLI) supabase db push # Start dev server npm run dev # Run web tests npm run lint --workspace=apps/web npm run test:api --workspace=apps/web # Build SDK npm run build --workspace=packages/sdk npm run test --workspace=packages/sdk # Run contract tests forge test -vvv