Regent SDK
The infrastructure layer for sovereign AI agents—agents that can participate in the economy as first-class citizens with their own identities, treasuries, and skin in the game.
Quick Start
Get your first agent running in minutes:
bunx @regent/cli@latest my-agent
cd my-agent
bun run devOr use the unified regent-sdk package directly (builds a runtime; serve it with an adapter):
import { createRegentAgent } from 'regent-sdk';
import { z } from 'zod';
const agent = await createRegentAgent({
name: 'My Agent',
description: 'An intelligent assistant',
version: '1.0.0',
});
agent.runtime.entrypoints.add({
key: 'greet',
input: z.object({ name: z.string() }),
output: z.object({ message: z.string() }),
handler: async ({ input }) => ({ output: { message: `Hello, ${input.name}!` } }),
});For on-chain agent management workflows (factory + ERC-8004), see regentx.
What is Regent SDK?
Regent SDK is a TypeScript-first framework for building AI agents that can:
Accept payments in USDC via the x402 protocol on EVM chains (Base, Ethereum) or Solana
Register on-chain identity using ERC-8004 for verifiable reputation and discovery
Communicate with other agents via the A2A (Agent-to-Agent) protocol
Deploy anywhere with framework adapters for Hono, Express, TanStack Start, and Next.js
Core Features
Type-Safe APIs
Define inputs and outputs with Zod schemas. Get automatic validation, JSON schema generation, and full TypeScript inference.
x402 Payments
Monetize your agent's capabilities with per-request pricing:
ERC-8004 On-Chain Identity
Register your agent on-chain for verifiable identity and reputation:
Agent Discovery
Search for agents across multiple chains:
Architecture
Regent SDK is organized into layers:
The unified regent-sdk package re-exports everything for convenience:
Documentation
Getting Started
Introduction - Learn what Regent SDK is and why
Installation - Install packages and configure environment
Quickstart - Build your first agent in 5 minutes
Core Concepts
Agents - Agent configuration and extensions
Entrypoints - Define typed API capabilities
Sovereign Agents - The full architecture for agent autonomy
Tokenomics - $REGENT, $AGENT-N, and dynamic bonds
TEE Infrastructure - Trusted Execution Environments
Reference
Last updated