The Agent Commerce Framework

Build. Deploy. Monetize.

TypeScript framework for AI agents with x402 payments, A2A interoperability, and ERC-8004 identity.

5min

to first agent

11

packages

4

adapters

x402

Monetize Instantly

HTTP-native payments. Accept USDC on Base or Solana with automatic paywalls.

A2A

Agent Interoperability

Discovery and communication protocol. Agents buy and sell services from each other.

ERC-8004

Verifiable Identity

On-chain identity and reputation. Domain binding and verifiable trust signals.

Developer Experience

Ship a Paid Agent in Minutes

Define your API with Zod schemas. Add pricing. Deploy. That's it.

  • Automatic input/output validation
  • Full TypeScript inference
  • JSON Schema generation
agent.ts18 lines
import { createAgent } from '@lucid-agents/core'
import { http } from '@lucid-agents/http'
import { payments } from '@lucid-agents/payments'
import { z } from 'zod'

const agent = createAgent({ name: 'my-agent' })
  .use(http())
  .use(payments({ address: '0x...' }))

agent.entrypoint({
  name: 'analyze',
  input: z.object({ text: z.string() }),
  output: z.object({ sentiment: z.string(), score: z.number() }),
  price: { amount: '0.01', currency: 'USDC' },
  handler: async ({ input }) => {
    // Your AI logic here
    return { sentiment: 'positive', score: 0.92 }
  }
})

Skills

Copy the Skill in One Command

Install the `lucid-agent-creator` skill directly into your local `.claude/skills` folder.

skills install
mkdir -p .claude/skills/lucid-agent-creator && \
curl -fsSL https://raw.githubusercontent.com/daydreamsai/skills-market/main/plugins/lucid-agent-creator/skills/SKILL.md \
  -o .claude/skills/lucid-agent-creator/SKILL.md
Skills Documentation

Autonomous Agents

Agents That Build Applications

Use AI + skills to generate, configure, and ship new Lucid-powered applications end-to-end.

  • Generate handlers and schemas from natural language prompts
  • Create and host production agents via `create_lucid_agent`
  • Iterate by updating prompts instead of hand-writing boilerplate

AI Router

OpenAI-Compatible x402 Routing

Route inference through x402 with permit sessions, async settlement, and streaming responses.

  • ERC-2612 permits in `PAYMENT-SIGNATURE`
  • Session tracking via `X-Upto-Session`
  • OpenCode plugin auto-signs and injects headers
opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["@lucid-agents/opencode-x402-plugin"],
  "provider": {
    "x402": {
      "npm": "@ai-sdk/anthropic",
      "name": "x402 Router",
      "options": { "baseURL": "https://ai.xgate.run/v1" }
    }
  }
}

Features

Built for Production

Type-Safe APIs

Zod schemas for inputs and outputs. Automatic validation and full TypeScript inference.

x402 Payments

HTTP-native payment protocol. Automatic 402 responses, USDC on Base/Ethereum/Solana.

A2A Protocol

Agent Cards for discovery. Direct invocation, streaming, and task orchestration.

ERC-8004 Identity

On-chain agent identity. Domain verification and verifiable trust signals.

Multi-Runtime

Same code runs on Hono, Express, TanStack Start, or Next.js.

Real-Time Streaming

Native SSE support. LLM token streaming and task subscriptions.

Use Cases

What You Can Build

Paid AI Services

Commerce

Monetize LLM-powered capabilities with per-request pricing. Text analysis, code generation, data processing.

Agent Marketplaces

Discovery

Platforms where agents discover and purchase services from each other. Agent-to-agent commerce.

Autonomous Trading

Finance

Data providers sell market feeds. Advisors buy data and sell recommendations.

Verifiable AI Services

Trust

Establish trust through on-chain identity. Professional services with reputation tracking.

Frameworks

HonoExpressTanStackNext.js

Chains

BaseEthereumSolana

Start Building the Agent Economy

Open source. Open standards. No lock-in.

MIT Licensed · GitHub