Best for
- Developers looking to build scalable AI agents in TypeScript
- Applications needing persistent memory and context isolation
- Users wanting to integrate MCP servers into agent workflows
Daydreams is an innovative agent framework offering composable contexts and MCP integration, but it is deprecated with focus shifting to commercial applications.
Daydreams is a TypeScript agent framework for building commerce agents. It introduces a composable context architecture, allowing isolated workspaces to be combined for complex behaviors. The framework supports persistent memory, native MCP integration, type-safe actions, and an extension system. Daydreams also offers Dreams Router, a universal AI gateway with x402 pay-per-use USDC micropayments. Note: The repository has deprecated its agent framework part; core focus is now on Agentic Commerce, with recommendations to use lucid-agents and the Pi agent framework.
Install core packages via npm: npm install @daydreamsai/core @ai-sdk/openai zod. Then follow the documentation to create agents.