Skip to main content
Chucky sits between your application and Claude, providing managed infrastructure for AI agent execution.

System Overview

Chucky Cloud components:

Request Flow

1. Token Creation (Your Server)

Your backend creates a JWT token with user identity and budget limits:

2. SDK Connection (Your App)

Your application connects via WebSocket with the token:

3. Edge Processing (Chucky Cloud)

When a request arrives:
  1. JWT validated - Signature verified with your HMAC secret
  2. Budget checked - User’s remaining budget calculated
  3. Session loaded - Previous context restored if resuming
  4. Sandbox started - Isolated container with your workspace

4. Agent Execution (Sandbox)

Inside the sandbox:
  • Your entire codebase is available
  • Claude can read/write files
  • Claude can run shell commands
  • Tools execute and return results
  • Git commits are tracked

5. Response Streaming

Results stream back through the same WebSocket:
  • Real-time token streaming
  • Tool call notifications
  • Final results with cost breakdown

Tool Execution Locations

Tools can execute in different places depending on your needs:

Browser Tools

Runs in user’s browser
  • DOM manipulation
  • Local storage
  • Alerts/modals
  • Canvas drawing
  • API calls

Sandbox Tools

Runs in Chucky’s cloud
  • File read/write
  • Shell commands
  • Git operations
  • Build/test
  • Database access

Host Tools

Runs on user’s machine (Possession Mode)
  • HostBash
  • HostRead
  • HostWrite
  • HostEdit
  • HostGlob/HostGrep

Browser Tools

Execute in the user’s browser with full DOM access:

Sandbox Tools

Execute in Chucky’s cloud with file/shell access:

Host Tools (Possession Mode)

Execute on the user’s local machine:
Claude reasons in the cloud, but HostBash, HostRead, HostWrite execute locally.

Sandbox Environment

Each session runs in an isolated container:

What’s Available

Security Boundaries

  • Isolated: Each session runs in its own container
  • Ephemeral: Containers destroyed after session ends
  • No inbound: No direct network access to sandbox
  • Resource limited: CPU, memory, and time limits enforced

Git Bundle Workflow

Changes made in the sandbox are packaged as git bundles:

Session States

Sessions progress through defined states:

Budget Enforcement

Budgets are enforced at multiple levels:

Token Level

Edge Enforcement

Before each request:
  1. Calculate user’s usage in current window
  2. Check against budget limits
  3. Reject if exceeded

Real-time Tracking

During execution:
  • Token usage tracked per request
  • Compute time measured
  • Costs calculated and reported

Response


High Availability

Chucky runs on Cloudflare’s edge network:
  • Global distribution: Requests routed to nearest edge
  • Auto-scaling: Handles traffic spikes automatically
  • No cold starts: Workers always warm
  • 99.9% uptime: Enterprise-grade reliability

Next Steps

Quickstart

Deploy your first agent

Tools

Define custom tools

Sessions

Multi-turn conversations

CLI

Command-line interface