Skip to content
AddHunt
Slack apps

Sandcaster

Open-source TypeScript runtime for sandboxed AI agents

Open source

  • Open source
  • Licence: MIT

In short

Sandcaster is an open-source TypeScript runtime for running AI agents in isolated sandboxes, with streaming, multi-agent orchestration and ready interfaces for CLI, API, SDK and Slack. It is for developers who want agent infrastructure that sits between raw LLM SDKs and heavier frameworks.

What you get

  • Fresh isolated sandbox per run
  • Adapters for E2B, Docker, Vercel and Cloudflare
  • Streaming over Server-Sent Events
  • Speculative branching of agent state
  • Supervisor and sub-agent orchestration
  • CLI, TUI, HTTP API and Slack interfaces

The details

Sandcaster handles the infrastructure around an AI agent so developers can concentrate on the agent's logic. It is written in TypeScript and positions itself between bare model SDKs and larger agent frameworks.

Isolation and execution

Agents get a fresh sandbox for each run, which lets untrusted AI-generated code execute in isolation. Adapters are included for E2B, Docker, Vercel and Cloudflare.

Orchestration

  • Streaming over Server-Sent Events for tokens, tool calls and state changes
  • Speculative branching, which forks an agent's state to try several tool paths at once and merges the most successful result back
  • Supervisor agents that hand work to specialised sub-agents over type-checked channels
  • Multi-turn orchestration

Interfaces and configuration

The core idea is to separate logic from interface: the same agent can run as a script, as a long-lived API or as an interactive terminal app. Sandcaster ships hooks for a CLI, a TUI, HTTP APIs and a Slack bot. Environments, model selection and telemetry are set globally in a sandcaster.json file. A CLI scaffolds new workspaces from templates such as general assistant, research briefs, support triage and API extraction, and a dev command starts the TUI.

The current release is v0.1.0, which added the streaming API, and the project is open source under the MIT license.

Alternatives to Sandcaster

All alternatives

Questions

Which sandbox providers are supported?

Adapters are built in for E2B, Docker, Vercel and Cloudflare, with a fresh sandbox for each run.

Can a Sandcaster agent run in Slack?

Yes. Besides CLI, TUI and HTTP API interfaces, it includes a native Slack bot integration.

How is an agent configured?

Environments, model selection and telemetry settings live in a sandcaster.json file.

More like this