Skip to content
TypeScript · ESM · Alpha

Small framework.
Clear agent boundaries.

XSAF brings models, tools, memory, Hono, and MCP together without hiding lifecycle or security decisions behind a large runtime.

agent.ts
const agent = xsaf
  .agent(config)
  .sandbox(sandbox)
  .tool(search)
  .memory(memory)
  .serve({ transport: "http" });

await agent.start();

Everything essential

A focused runtime with explicit extension points and no mandatory infrastructure.

Fluent agents

Compose models, tools, memory, channels, delegates, and schedules through one small API.

Fetch native

Every agent owns a Hono app and a web-standard fetch handler. XSAF never forces a server runtime.

MCP v2

Serve local tools and consume remote tools through the official MCP and Hono backbone.

Explicit security

Validation, approval, timeouts, retries, and sandbox selection run through one tool pipeline.

Session aware

Serialize work per session while allowing independent sessions to run concurrently.

Offline testing

Deterministic model and channel adapters test complete agents without tokens or network calls.

Build the smallest useful agent.

Start offline, then replace adapters as your system grows.

Read the quickstart

Type to search…

↑↓ navigate↵ selectEsc close