Documentation Index
Fetch the complete documentation index at: https://docs.standardagentbuilder.com/llms.txt
Use this file to discover all available pages before exploring further.
Installation Guide
Standard Agents is a Vite plugin that runs as a standalone application or mounts at a subpath of an existing Vite application. It can run locally for development and must be deployed to Cloudflare Workers for production.Quick Start (Recommended)
The easiest way to get started is using our CLI to create a new project:- Create a new Vite project using
create vite - Normalize the scaffolded Vite, TypeScript, Cloudflare Vite plugin, Wrangler version, and compatibility date to the set tested with Standard Agents
- Install the required dependencies (
@cloudflare/vite-plugin,@standardagents/builder,wrangler) - Configure your
vite.config.tswith the necessary plugins - Create
wrangler.jsoncwith Durable Object bindings - Set up the worker entry point and Durable Object classes
- Create the
agents/directory structure with documentation
Adding to an Existing Project
If you already have a Vite project and want to add Standard Agents:scaffold command intelligently modifies your existing project:
- Adds
cloudflare()andagentbuilder()plugins to yourvite.config.ts - Creates or updates
wrangler.jsoncwith required bindings - Sets up the worker entry point with the Standard Agents router
- Creates the
agents/directory structure
Use
--force flag to overwrite existing configuration if needed.Manual Installation
If you prefer to set things up manually, follow these steps:Step 1: Install Dependencies
AgentBuilder’s UI is pre-compiled, so there is no need to use a front end framework. However if you plan to use the Vite application to host more than just AgentBuilder, you can also install those frameworks.
Step 2: Configure the Vite Plugins
Open yourvite.config.ts file and add the following plugins:
Step 3: Configure Cloudflare Bindings
Create awrangler.jsonc file in the root of your project:
Step 4: Create the Durable Objects
Create anagents directory in the root of your project with two files:
Step 5: Worker Entry Point
Create aworker directory with an index.ts file:
Step 6: TypeScript Configuration
Add the following to yourtsconfig.json to enable type checking:
worker-configuration.d.ts file. AgentBuilder types are generated when running the dev command.
Step 7: Start Development
The development server will automatically generate types for your agents, prompts, tools, and API routes, and spin up “miniflare” which is a local simulation of the Cloudflare Worker environment.
Project Structure
After installation, your project will have this structure:Next Steps
Architecture
Learn how Standard Agents works
API Reference
Explore the complete API