# Core runtime (required)
bun add @regent/core @regent/types
# HTTP extension (required for web servers)
bun add @regent/http
# Hono (lightweight, edge-compatible)
bun add @regent/hono hono
# TanStack Start (full-stack React)
bun add @regent/tanstack @tanstack/start
# Express (traditional Node.js)
bun add @regent/express express
# Payments (x402 protocol)
bun add @regent/x402
# On-chain identity (ERC-8004)
bun add @regent/erc8004
# Agent-to-Agent communication
bun add @regent/a2a
# Wallet management
bun add @regent/wallet
# Agent Payments Protocol
bun add @regent/ap2
# Scheduler for recurring tasks
bun add @regent/scheduler
# Payment analytics
bun add @regent/analytics
# For x402 payments
bun add x402 x402-fetch
# For erc8004 and wallet operations
bun add viem
# For schema validation (likely already installed)
bun add zod
# Agent metadata
AGENT_NAME="My Agent"
AGENT_DESCRIPTION="Description of what the agent does"
# LLM provider (if using axllm template)
OPENAI_API_KEY=sk-...
# Or for other providers:
# ANTHROPIC_API_KEY=...
# Payments (optional)
#
# If you use @regent/cli scaffolding, you’ll typically set:
PAYMENTS_FACILITATOR_URL=https://facilitator.regent.cx
PAYMENTS_NETWORK=base-sepolia
PAYMENTS_RECEIVABLE_ADDRESS=0x...
#
# If you use @regent/x402 paymentsFromEnv(), it reads:
# FACILITATOR_URL, NETWORK, PAYMENTS_RECEIVABLE_ADDRESS
# Wallet (optional)
AGENT_WALLET_TYPE=local
AGENT_WALLET_PRIVATE_KEY=0x...
AGENT_WALLET_CHAIN_ID=84532
# ERC-8004 Identity (optional)
RPC_URL=https://sepolia.base.org
PINATA_JWT=... # For IPFS metadata storage