About Lucid Agents (formerly Daydreams)
The Daydreams documentation site now presents Lucid Agents, a TypeScript runtime for machine commerce. Lucid turns a typed TypeScript function into a paid API that other software agents can discover, pay for and call, using the x402 payment protocol as the default payment rail. A developer defines one capability with an input schema, an output schema, a handler and a price, and Lucid handles validation, payment admission, policy, fulfilment, settlement, idempotency, tasks, discovery and durable state around it.
It is aimed at developers building services for agents to buy, and agents that need to buy services safely. The seller path advertises a typed capability at a fixed price and receives x402 payments. The buyer path calls paid services from a server side wallet with recipient limits, budgets, rate limits and safe paid retries. Adapters let Lucid run inside Hono, Express, Next.js or TanStack Start with one route and authorization contract, and installed extensions can produce invoke and stream routes, Agent Card discovery, a human storefront, asynchronous tasks and payment analytics. A versioned skill can be installed so a coding agent can work with a Lucid project.
No pricing is published for the runtime; it is distributed as npm packages, and costs come from the wallet, facilitator and network a developer chooses.
The documentation is candid about scope. Lucid currently supports only fixed price x402 v2 exact payments, does not replace wallets or facilitators, and does not generate MCP tools. Pages are labelled Stable, Next, experimental or deprecated, and the quickstart runs payments on the Base Sepolia testnet before any real funds move.