lucid-agents
Lucid Agents Commerce SDK. Bootstrap AI agents in 60 seconds that can pay, sell, and participate in agentic commerce supply chains. Our protocol agnostic SDK provides CLI-generated templates and drop-in adapters for Hono, Express, Next.js, and TanStack, giving you instant access to crypto/fiat payment rails (AP2, A2A, x402, ERC8004).
claude mcp add --transport stdio daydreamsai-lucid-agents npx -y @lucid-agents/cli \ --env GITHUB_ACTIONS="0"
How to use
Lucid Agents is a TypeScript-first framework designed to help you build, deploy, and monetize autonomous AI agents. It provides a rich toolkit for defining typed entrypoints, managing on-chain identities, handling payments, and enabling agent-to-agent marketplaces. The framework emphasizes protocol-agnostic runtimes with a modular extension system, so you can compose only the capabilities you need (payments, identity, A2A, wallets, analytics, etc.). Use the included CLI to scaffold new agents, then run and expose their entrypoints via adapters like Hono or Express. Real-time streaming of agent responses through Server-Sent Events (SSE) makes long-running interactions feel responsive, which is ideal for LLM outputs and interactive workflows. The system also supports multi-network payments (EVM and Solana) and robust policy controls for spending and receivables, enabling marketplaces and monetized services built around AI agents.
How to install
Prerequisites:
- Node.js 20.x+ or Bun (recommended) or a compatible runtime
- Optional: Bun installed if you prefer bunx for CLI usage
- Access to an LLM API key (OpenAI, Anthropic, etc.)
Installation steps:
-
Install Bun (recommended) or ensure Node.js is available
- Bun: https://bun.sh/docs/install
- Node.js: https://nodejs.org/
-
Install the Lucid Agents CLI globally (via npm or bunx).
-
Using npm (recommended for wide compatibility): npm i -g @lucid-agents/cli
-
Using Bun (via npx-like invocation): bunx @lucid-agents/cli
-
-
Create a new agent project (example): bunx @lucid-agents/cli my-agent
or with inline configuration options
bunx @lucid-agents/cli my-agent
--adapter=hono
--template=axllm
--AGENT_NAME="My AI Agent"
--AGENT_DESCRIPTION="AI-powered assistant"
--OPENAI_API_KEY=your_api_key_here
--PAYMENTS_RECEIVABLE_ADDRESS=0xYourAddress
--NETWORK=ethereum
--DEFAULT_PRICE=1000 -
Install dependencies and run your agent: cd my-agent bun run dev
Your agent will be served at http://localhost:3000 (or the port configured by the framework). You can test the manifest, entrypoints, and invocations as shown in the Quick Start section of the README.
Additional notes
Tips and common considerations:
- Environment variables: OpenAI API keys (OPENAI_API_KEY), PAYMENT_RECEIVABLE_ADDRESS for receiving funds, and NETWORK selection (ethereum, base, sepolia, etc.).
- The framework emphasizes protocol-agnostic runtimes; enable only the extensions you need (payments, identity, a2a, etc.) to keep your runtime lean.
- For payments, configure policies (per-payment limits, time windows, allow/block lists) to enforce budgeting across entrypoints.
- SSE streaming is ideal for long-running or streaming outputs; ensure your client handles events accordingly.
- When testing locally, you can inspect agent manifests at .well-known/agent.json and list/invoke entrypoints via the provided HTTP adapters.
- If you encounter port conflicts, adjust the server port in your adapter configuration or environment as needed.
Related MCP Servers
apify
The Apify MCP server enables your AI agents to extract data from social media, search engines, maps, e-commerce sites, or any other website using thousands of ready-made scrapers, crawlers, and automation tools available on the Apify Store.
aser
Aser is a lightweight, self-assembling AI Agent frame.
a2a-x402
The A2A x402 Extension brings cryptocurrency payments to the Agent-to-Agent (A2A) protocol, enabling agents to monetize their services through on-chain payments. This extension revives the spirit of HTTP 402 "Payment Required" for the decentralized agent ecosystem.
pinion-os
Client SDK, Claude plugin and skill framework for the Pinion protocol. x402 micropayments on Base.
c2sagent
C2S Agent is an lightweight AI Agent construction platform that provides configurable online Agents and MCP services, You can configure any HTTP request interface as an MCP tool. C2S Agent 是一个轻量级的AI Agent构建平台,提供在线可配置的Agent,MCP,您可以一个HTTP请求的接口配置成为一个MCP工具,Agent之间可以进行自交流。并提供了单端口多A2A服务,MCP服务的解决方案
langchain_data_agent
NL2SQL - Ask questions in plain English, get SQL queries and results. Powered by LangGraph.