agents-starter  by cloudflare

AI agent starter kit for Cloudflare

created 5 months ago
871 stars

Top 42.1% on sourcepulse

GitHubView on GitHub
Project Summary

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

Highlighted Details

  • Interactive chat interface with real-time streaming responses.
  • Built-in tool system supporting human-in-the-loop confirmation.
  • Advanced task scheduling (one-time, delayed, recurring via cron).
  • Customizable UI (React) with dark/light theme support.
  • Easily swappable AI model providers (e.g., OpenAI, Workers AI).

Maintenance & Community

The project is maintained by Cloudflare. Further community engagement details are not explicitly provided in the README.

Licensing & Compatibility

  • License: MIT
  • Compatibility: The MIT license permits commercial use and linking with closed-source projects.

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.

Health Check
Last commit

2 weeks ago

Responsiveness

1 day

Pull Requests (30d)
2
Issues (30d)
3
Star History
163 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.