Claude Agent SDK
Made Simple.

Stop building session persistence, message storage, and streaming infrastructure from scratch. ASH gives you production-ready agent infrastructure in minutes—so you can focus on your agent's actual capabilities.

$npm install @ash-cloud/ash-ui
SessionsPersistenceStreamingSandbox PoolPlayground
The Problem

Claude Agent SDK is bare-bones.

The SDK handles the AI—but production agents need infrastructure. Without ASH, you're building all of this yourself:

Session Management

~200 lines

Build your own session lifecycle, state tracking, and cleanup logic

Message Persistence

~300 lines

Design schemas, write storage adapters, handle serialization

Sandbox Pooling

~400 lines

Manage sandbox lifecycle, cache by session, handle idle cleanup and health checks

REST Endpoints

~400 lines

Create routes for sessions, threads, messages with validation

Resume & Fork

~250 lines

Track session history, implement forking logic, restore state

Multi-Provider Support

~600 lines

Integrate Vercel, E2B, Modal, Cloudflare—each with different APIs

That's roughly 2,150+ lines of infrastructure code before you write your first agent feature.

Or use ASH and skip all of it
What You Get

Skip the boilerplate.

The Claude Agent SDK is powerful but bare-bones. ASH adds the production infrastructure every agent needs—so you don't build it yourself.

Session Persistence

Built-in storage for sessions, threads, and messages. PostgreSQL, SQLite, or in-memory—swap adapters without code changes.

Zero ConfigProduction ReadyType Safe
example.ts
// Session Persistence
const harness = new AgentHarness({
  agent: myAgent,
  storage: new PostgresStorage()
});

const server = createHarnessServer(harness);
// That's it - session persistence included

Session Persistence

Built-in storage for sessions, threads, and messages. PostgreSQL, SQLite, or in-memory—swap adapters without code changes.

Real-time Streaming

SSE streaming with 10+ event types out of the box. Text deltas, tool calls, sandbox logs—all handled for you.

REST API Server

Full Hono server with OpenAPI docs in one function call. Sessions, threads, messages—production-ready endpoints instantly.

Session Resume & Fork

Resume conversations from any point. Fork sessions for experimentation. All state automatically preserved and restored.

Sandbox Pool & Caching

Smart sandbox pooling with session-based caching. Reuse sandboxes across messages, auto-cleanup on idle, and 7+ provider options including Vercel, E2B, and Modal.

Queue Processing

Built-in message queue with retry logic and exponential backoff. Handle long-running agents without building your own job system.

Playground UI

Drop-in React component for testing agents. Chat interface, session browser, tool visualization—no frontend work required.

ASH UI Components

Full React component library for building agent interfaces. MessageList, ToolCallCard, StatusIndicator—all the building blocks you need, fully themed.

Embeddable Widget

Intercom-style chat widget. One script tag to add AI to any website. Floating or inline modes, full customization, and command API.

3 Lines of Code

From Zero to Running Agent

Create an agent, start the server, and you're live. Session management, message persistence, and streaming API—all included. No database schemas to design, no API routes to write.

npm installnew AgentHarness()createHarnessServer()
2000+

Lines You Don't Write

7+

Sandbox Providers

3

Storage Adapters

1

Function to Start

Code or Configure

Build programmatically with the SDK, or configure agents visually in the Cloud dashboard.

Write it in code

Full TypeScript SDK

agent.ts
import { AgentHarness, PostgresStorage } from '@conviction-labs/ash-ai';

const harness = new AgentHarness({
  agent: myAgent,
  storage: new PostgresStorage(connectionString)
});

// Send a message
const response = await harness.send(
  sessionId,
  "Analyze this data"
);

Configure in Cloud

Visual dashboard

Support Agent
Active
ModelClaude Sonnet
Tools5 enabled
System PromptYou are a helpful support agent...

Ship faster with ASH UI

Pre-built React components for agent interfaces, or an embeddable widget for any website.

ASH UI Components

React component library

searchDatabasedone
{ results: 42, query: 'users...' }
MessageListToolCallCardStreamingTextThemeProvider

Embeddable Widget

Intercom-style chat

AI Assistant
Hi! How can I help?
What's my order status?
Type a message...

One script tag • Full customization • Command API

How It Works

ASH wraps the Agent SDK.

Your agent logic stays clean. ASH handles sessions, persistence, and APIs underneath.

Your AgentYou write this
System Prompt
Tools & Skills
ASH InfrastructureWe handle this
Sessions
Storage
Streaming
REST API
Queue
Playground
Claude Agent SDK
Conversations
Tool Calls
Reasoning
1

Focus on Agent Logic

Define your system prompt and tools. ASH wraps the Claude SDK and handles everything else.

2

Production-Ready Instantly

One function gives you REST API, streaming, persistence, and a test UI. No infrastructure code.

3

Swap Storage Anytime

Start with in-memory for development, switch to PostgreSQL for production. Same code, different adapter.

Real-time streaming events

10+ event types streamed via SSE—no custom parsing required.

Live Streamsession_abc123
1session_start{ sessionId: "abc123" }
2text_delta"Analyzing your request..."
3tool_call{ name: "searchDatabase", args: {...} }
4tool_result{ results: [...], count: 42 }
5text_delta"Found 42 matching records..."
6message_complete{ tokens: 156, duration: 2.3s }
text_deltatool_calltool_resulterrorsession_end+5 more
All events typed with TypeScript

Works With

Claude Agent SDK
PostgreSQL
Vercel Sandbox
E2B
Hono
TypeScript
Pricing

Simple, transparent pricing.

The open-source package is free forever. Add cloud when you need managed databases, team collaboration, and zero-config deployment.

Open Source

Full toolkit, self-hosted

$0/forever
  • Session & message persistence
  • REST API with SSE streaming
  • PostgreSQL + SQLite adapters
  • Playground UI component
  • Community support
Get Started
Popular

Cloud

Managed infrastructure

$49/month

7-day free trial

  • 7-day free trial
  • Everything in Open Source
  • Managed database per org
  • Team collaboration & API keys
  • Cloud dashboard & analytics
  • Zero-config deployment
  • Priority support
Start 7-Day Free Trial