cli

CLI tool for scaffolding agent projects with templates and framework adapters.

Installation

# Create a new agent project
bunx @regent/cli my-agent

# Or install globally
bun add -g @regent/cli
regent my-agent

Quick Start

# Interactive wizard
bunx @regent/cli my-agent

# With specific template
bunx @regent/cli my-agent --template=identity

# Non-interactive
bunx @regent/cli my-agent --template=blank --non-interactive

Command Options

Option
Description

--template, -t

Select template

--adapter, -a

Select framework adapter

--install, -i

Run bun install after scaffolding

--no-install

Skip dependency installation

--wizard=no

Skip interactive wizard

--non-interactive

Non-interactive mode

--network

Set payment network

--KEY=value

Pass template arguments

Adapters

hono

Lightweight HTTP agent using Hono framework.

express

Node.js-compatible agent using Express.js.

tanstack-ui

Full-stack agent with TanStack Start and React UI.

Features:

  • TanStack Router (file-based routing)

  • TanStack Query (data fetching)

  • Tailwind CSS styling

  • Wallet integration (Reown AppKit)

  • Pre-built dashboard UI

tanstack-headless

API-only agent using TanStack Start.

next

Full-stack agent using Next.js App Router.

Templates

blank

Minimal agent with basic configuration.

axllm

Agent with LLM integration (@ax-llm/ax).

axllm-flow

Agent with multi-step LLM workflows.

identity

Agent with ERC-8004 on-chain identity.

Features:

  • On-chain identity registration

  • Trust metadata configuration

  • ERC-8004 registry integration

trading-data-agent

Merchant agent providing trading data.

trading-recommendation-agent

Shopper agent consuming trading data.

Network Selection

Non-Interactive Mode

Pass template arguments directly:

Generated Project Structure

Environment Variables

Common Variables

Identity Template

AxLLM Templates

Project Scripts

Examples

Create Hono Agent with Identity

Create Express Agent with LLM

Create Next.js Dashboard Agent

CI/CD Pipeline

TEE Deployment

The Regent CLI includes TEE deployment capabilities built on EigenX for sovereign agent deployment.

Deploy to TEE

What TEE Deployment Does

  1. Builds Docker image - Packages your regent-sdk agent

  2. Deploys to Confidential VM - Intel TDX / AMD SEV via dstack/Phala

  3. Provisions deterministic wallet - TEE-only mnemonic derivation

  4. Deploys on-chain contracts:

    • AGENT-N token (per-agent ERC-20)

    • Agent Treasury (x402 payments land here)

    • Bond & Staking vaults

  5. Registers identity - ERC-8004 with endpoints, wallet, and capabilities

TEE Options

Option
Description

--tee

Enable TEE deployment

--image

Docker image to deploy

--chain

Target blockchain

--with-token

Deploy AGENT-N token

--key-path

Custom key derivation path

TEE Environment Variables

Full TEE Deployment Example

See TEE Infrastructure for architecture details and TEE Deployment Example for complete walkthrough.

Last updated