Connectors adapt third-party sandbox providers into Flue’sDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/withastro/flue/llms.txt
Use this file to discover all available pages before exploring further.
SandboxFactory interface. They are not npm packages — they are small TypeScript files that your AI coding agent writes into your project.
How connectors work
When you runflue add <name>, the CLI fetches a markdown file containing connector installation instructions and pipes it to your coding agent. The agent reads the instructions and writes a TypeScript adapter file into your project.
The adapter file wraps an already-initialized provider sandbox into Flue’s SandboxFactory interface. You create and own the sandbox lifecycle; the connector just adapts it.
flue add prints a short copyable recipe. When run by an agent (or with --print), it pipes the full markdown instructions for the agent to act on.
Where connector files live
Connectors follow the same source layout convention as the rest of your Flue project:.flue/layout —./.flue/connectors/<name>.ts- Bare layout —
./connectors/<name>.ts
.flue/ exists at your project root, Flue uses the .flue/ location. Otherwise it uses the bare layout. The two never mix.
You own the sandbox lifecycle
Connectors are pure adapters. They never callsandbox.delete(), sandbox.terminate(), or sandbox.kill(). You create the sandbox, you decide when to destroy it. This makes it easy to reuse sandboxes across sessions or manage their lifetime from your orchestration code.
Building a connector for any provider
If a connector doesn’t exist for your provider yet, pass the provider’s docs URL as the starting point:SandboxFactory adapter from scratch.
Available connectors
Daytona
Full Linux containers with persistent filesystem, git, Node.js, and a declarative image builder. Best for coding agents and full dev environments.
E2B
Firecracker microVMs with fast startup and Python/Node.js support. Best for ephemeral code execution agents.
Cloudflare
Native container support inside Cloudflare Workers via
@cloudflare/sandbox. Each session gets its own isolated Linux container.Build your own
Implement
SandboxApi for any provider. Full guide with the complete connector template and the SandboxFactory contract.