Open Source & Self-Hosted

Orchestrate AI agents
on your infrastructure

Run Claude Code, Codex, and Gemini CLI in managed cloud workspaces. See every tool call, approve permissions, review diffs — all from your browser. Your VMs, your keys, your code.

workspace — api-service
Claude Code just now

I'll refactor the authentication middleware to use JWT validation. Let me read the current implementation first.

Read src/middleware/auth.ts
Edit src/middleware/auth.ts +42 -18
Run npm test ?
Allow Deny
Supports
Claude Code
+
OpenAI Codex
+
Gemini CLI
MIT Licensed Self-Hosted BYOC

AI agent infrastructure
that you control

Purpose-built for running AI coding agents on your own cloud. Multi-agent, multi-workspace, fully observable.

Multi-Agent Support

Run Claude Code, OpenAI Codex, or Google Gemini CLI. Switch between agents per workspace. Bring your own API keys, stored encrypted.

Structured Visibility

The Agent Client Protocol streams tool calls, file diffs, permission requests, and thinking blocks to your browser. Not raw terminal output — structured, readable context.

Bring Your Own Cloud

Your code runs on your VMs. Hetzner tokens encrypted per-user, never stored as platform secrets. You control costs, regions, and data residency.

Project-Centric Workflows

Organize workspaces by project. Persistent chat sessions, activity feeds, and cross-workspace monitoring — all tied to your GitHub repos.

Node Consolidation

Run multiple isolated workspaces on a single VM. Each gets its own devcontainer, agent sessions, and lifecycle — sharing infrastructure costs.

Open Source & Self-Hostable

MIT licensed. Self-host the control plane on Cloudflare's free tier. No vendor lock-in to any cloud provider or AI model.


From zero to coding in minutes

Three steps to a fully configured cloud environment with Claude Code ready to go.

01

Connect Your Cloud

Add your Hetzner API token in the Settings page. Your credentials are encrypted per-user — SAM never stores provider keys as platform secrets.

Bring Your Own Cloud means you control costs, regions, and data residency.

02

Create a Workspace

Pick a GitHub repo (public or private via GitHub App), choose a VM size, and click Create. SAM provisions a node, builds the devcontainer, and starts Claude Code.

DevContainer support means your existing configs just work.

03

Start Building

Open the browser terminal, interact with Claude Code, and build. Sessions persist across reconnects. Stop, restart, or delete when you're done.

Multiple workspaces can share a single node to cut costs.


Building the full
agent orchestration platform

SAM today runs AI agents in managed workspaces. The roadmap: a complete platform for orchestrating, monitoring, and managing agent work across your infrastructure.

Project-First Architecture

Building Now

Organize everything by project. Persistent chat sessions survive workspace stops. Activity feeds track what every agent did, across all workspaces.

Cross-Workspace Monitoring

Building Now

See all active agent sessions from your dashboard. Jump directly into any conversation. Monitor progress across your entire fleet of workspaces.

Multi-Cloud Providers

Planned

Hetzner today. DigitalOcean, Vultr, Scaleway, AWS, and GCP next. Bring whichever cloud you already use — or mix and match.

CLI for Power Users

Planned

Create workspaces, manage agents, and monitor sessions from your terminal. Script your agent workflows. Integrate with your existing toolchains.

Teams & Collaboration

Planned

Shared projects, usage visibility, and team-scoped infrastructure. Run a fleet of agents across your engineering team on shared nodes.

Task Orchestration

Planned

Define tasks, assign them to agents, and track completion across workspaces. The missing layer between your backlog and autonomous agent execution.


How SAM stacks up

More agent capabilities, full infrastructure ownership, and significantly lower costs. The trade-off: you host it yourself.

SAM
Codespaces
AI Agent Support Claude, Codex, Gemini Manual setup
Agent Visibility Structured (ACP) Terminal only
Infrastructure Your cloud (BYOC) Managed
Hourly Cost ~$0.07-0.15 $0.18-0.36
Node Consolidation Multiple workspaces per VM 1:1 mapping
Control Plane Free (Cloudflare) Included
Open Source MIT licensed Proprietary
Private Repos GitHub App Native GitHub
Setup Effort Self-hosted Zero config

Built in the open, shipped fast

Four phases shipped. Three more on the way — from project-first architecture to full agent orchestration.

Core Platform

Complete

Workspace management, GitHub OAuth, encrypted credential storage, Hetzner VM provisioning

Browser Terminal & Agent Chat

Complete

xterm.js WebSocket terminal, Go VM agent, JWT auth, structured agent chat UI via ACP

Multi-Agent Protocol

Complete

Claude Code, Codex, and Gemini CLI support. Tool call cards, permission dialogs, file diffs, thinking blocks

Multi-Workspace Nodes

Complete

Multiple isolated workspaces per VM, tab persistence, session ring buffer replay, node consolidation

Project-First Architecture

In Progress

Projects as primary organizational unit, persistent chat sessions, Durable Object storage, activity feeds

Multi-Cloud & CLI

Planned

DigitalOcean, Vultr, Scaleway, and more. CLI for workspace management and agent scripting

Teams & Orchestration

Planned

Team workspaces, task assignment to agents, usage visibility, SSO, and collaborative agent workflows


Ready to run agents on your own infrastructure?

Self-host the control plane on Cloudflare's free tier. Bring your own Hetzner token. Your agents, your cloud, your code.