AI agent starter kit for Cloudflare
Top 42.1% on sourcepulse
This starter kit provides a foundation for building AI-powered chat agents on Cloudflare's Agent platform. It targets developers looking to create interactive chat experiences with features like real-time streaming, tool integration, and advanced task scheduling, benefiting from Cloudflare's edge network for low latency.
How It Works
The project leverages Cloudflare Workers for serverless execution and the AI SDK for interacting with AI models. It employs a flexible tool system, allowing tools to either execute automatically or require human confirmation via an executions
object. Task scheduling is integrated using cron patterns, delays, or specific dates, managed within the tool definitions.
Quick Start & Requirements
npm install
.dev.vars
file with OPENAI_API_KEY=your_openai_api_key
.npm start
npm run deploy
Highlighted Details
Maintenance & Community
The project is maintained by Cloudflare. Further community engagement details are not explicitly provided in the README.
Licensing & Compatibility
Limitations & Caveats
The provided example uses OpenAI's models; switching to other providers requires modifying server.ts
and potentially wrangler.jsonc
to include AI bindings. The UI is React-based, requiring familiarity with React for customization.
2 weeks ago
1 day