agents-sdk

Build and orchestrate persistent AI agents on Cloudflare Workers.

792|138|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/AltimateAI/altimate-code --skill agents-sdk-altimateai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agents-sdk
Source: https://github.com/AltimateAI/altimate-code/tree/main/packages/opencode/test/fixture/skills/agents-sdk
Command: npx skills add https://github.com/AltimateAI/altimate-code --skill agents-sdk-altimateai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Enable developers to build and deploy persistent AI agents on Cloudflare Workers, with state management, durable workflows, real-time communication, and scalable agent orchestration.

Core Features & Use Cases

  • Persistent state management with the Agent class and SQLite-backed storage.
  • Callable RPC over WebSocket for client interactions.
  • Scheduling, durable workflows via AgentWorkflow.
  • MCP integration, email handling, and streaming capabilities.
  • React hooks for client apps and frontend integration.

Quick Start

Create a new Agent by extending Agent, implement at least one @callable method, and deploy it behind a Worker fetch handler.

Frequently Asked Questions about agents-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build persistent AI agents on Cloudflare Workers?

You can build persistent AI agents on Cloudflare Workers by extending the Agent class, implementing @callable methods for RPC, and deploying it behind a Worker fetch handler. It provides state management and durable workflows.

Can I use WebSocket for real-time communication in serverless AI agents?

Yes, you can build real-time web apps using callable RPC over WebSocket. The Agent class supports WebSocket connections for client interactions, enabling real-time communication and state synchronization.

What is the best way to manage state for serverless AI agents?

The best way to manage state for serverless AI agents is using the Agent class with SQLite-backed storage. This enables persistent state management and durable workflows via AgentWorkflow on Cloudflare Workers.

Does this approach support MCP integration and React hooks for client apps?

Yes, you can integrate MCP and use React hooks for frontend integration. The skill supports MCP integration, email handling, and streaming capabilities, along with React hooks for client apps.

How do I schedule durable workflows for AI agents in a serverless environment?

You can schedule durable workflows for AI agents using AgentWorkflow. It allows you to orchestrate persistent state management and durable workflows on Cloudflare Workers with scheduling capabilities.

What is needed to deploy an AI agent on Cloudflare Workers?

To create an AI agent, extend the Agent class, implement at least one @callable method, and deploy it behind a Worker fetch handler. This enables persistent state management and real-time communication.