BlueprintsAI Agent SandboxOverview

AI Agent Sandbox Blueprint

AI Agent Sandbox lets a user create an isolated agent workspace through Tangle.

The blueprint defines the jobs, metadata, contracts, and runtime rules. Operators run the actual sandboxes: Docker containers, Firecracker microVMs, or TEE-backed instances. The hosted app gives users terminals, workflows, files, port proxies, secrets, snapshots, and prompt/task execution.

Source repo: https://github.com/tangle-network/ai-agent-sandbox-blueprint

What happens when a user creates a sandbox

  1. The user chooses a sandbox mode and requests a service instance.
  2. The selected operator approves the request.
  3. The operator starts the runtime and reports provisioning state.
  4. The app authenticates to the operator API with EIP-191 challenge signing and a PASETO session token.
  5. The user works through the hosted app: terminal, files, workflows, prompts, tasks, ports, SSH, secrets, and snapshots.

The on-chain path records lifecycle and workflow commands. The operator API handles live I/O. That split is intentional: terminal output and file lists should not be blockchain jobs.

Modes

ModeBlueprint ID in current metadataService shape
Cloud10A fleet-style sandbox service. Users create and delete sandboxes on demand.
Dedicated instance11One sandbox per service instance. The operator auto-provisions it on startup.
TEE instance12Dedicated instance with TEE attestation and sealed-secret support.

Mode IDs come from the repo metadata. Treat them as network-specific config, not hard-coded truth for every chain.

Jobs

JobModePurpose
SANDBOX_CREATECloudCreate a sandbox container or runtime instance.
SANDBOX_DELETECloudDelete the sandbox and clean up runtime attachments.
WORKFLOW_CREATECloud and instanceRegister a workflow template.
WORKFLOW_TRIGGERCloud and instanceTrigger a workflow against the service instance.
WORKFLOW_CANCELCloud and instanceCancel an active workflow.

The internal workflow tick is scheduler-driven and should not be treated as a public on-chain job.

Read and control surface

The operator API owns the live product state:

API areaExamples
Authchallenge, session, revoke
Sandbox operationslist, exec, prompt, task, stop, resume, snapshot
AccessSSH key provision/revoke, port proxy
Secretsinject and wipe sandbox-scoped secrets
Health/health, /readyz, /metrics
Capabilities/api/capabilities for runtime and harness support

Every data endpoint requires a signed wallet session. Production operators must set SESSION_AUTH_SECRET; otherwise sessions and encrypted secrets re-key on restart.

PageUse it for
Operator RequirementsHost setup, ports, Docker, Firecracker, TEE, state, and secrets.
Runtime and HarnessesRuntime backends, capability discovery, harnesses, and AI keys.
Dapp and IndexerMetadata, iframe policy, indexed state, and live health boundaries.

Sources used

This page is grounded in the repo README.md, docs/runbook.md, TEE-GUIDE.md, metadata/blueprint-metadata.json, sandbox-runtime/src/operator_api.rs, and the sidecar image docs.