Installation Guide
Standard Agents is a Vite plugin that owns the full application surface at/. It can run locally for development and is deployed to Cloudflare Workers for production by the Standard Agents platform.
Quick Start (Recommended)
The easiest way to get started is using our CLI to create a new project:- Open Standard Agents in your browser for login, billing, and project creation
- Create and seed a platform-owned Artifact repository with the Standard Agents project template
- Clone that repository back to the directory where you ran the command
- Write local-only project credentials to
.dev.vars - Configure Git credentials for future pushes to the platform repository
- Install dependencies with the detected package manager, start the local dev server, and open it in your browser
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 or updates
@standardagents/builderinpackage.json - Adds the
builder()plugin to yourvite.config.ts - Lets
builder()generate the Cloudflare Worker entry, assets config, Durable Object bindings, compatibility flags, and migrations at build time - 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 Plugin
Open yourvite.config.ts file and add the builder() plugin:
builder() injects and configures the Cloudflare Vite plugin automatically. Do not add cloudflare() beside it. It also generates the Worker entry and Cloudflare binding configuration, so new Standard Agents projects do not need wrangler.jsonc, a checked-in Worker entry, or Durable Object subclass files.
Step 3: Create Your Agent Directories
Create the following directories for your agent configuration:Step 4: TypeScript Configuration
Add the following to yourtsconfig.json to enable type checking:
dev command.
Step 5: 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