Installation
Set up Daydreams and configure your development environment.
Get an API key
- Google Gemini ->
GEMINI_API_KEY
- OpenAI ->
OPENAI_API_KEY
- Anthropic ->
ANTHROPIC_API_KEY
- Groq ->
GROQ_API_KEY
- OpenRouter ->
OPENROUTER_API_KEY
- Other providers are supported by ai-sdk.dev
Installation
There are two ways to get started with Daydreams:
The quickest way to get started is using the create-agent command:
Run the create-agent command:
This will:
- Create a new directory for your agent
- Set up package.json with necessary dependencies
- Create an index.ts file with your selected extensions
- Generate a .env.example file with required environment variables
- Install all dependencies
Choose your extensions when prompted (or use flags):
Available extensions:
--cli
: Include CLI extension--twitter
: Include Twitter extension--discord
: Include Discord extension--telegram
: Include Telegram extension--all
: Include all extensions
Configure your environment variables in the generated .env
file and start
building!
Next Steps
Now you can start building your first agent! Check out the concepts section to learn about the core building blocks.