Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Fly.io 4 min read How-to mediumAdept

Run Paperclip AI on a Sprite

Paperclip, an open-source orchestration platform for running teams of AI agents, can be hosted on a Fly.io Sprite with a single `npx paperclipai onboard -y` install using embedded PostgreSQL on port 3100. To make it remotely reachable, switch the config to `authenticated` mode bound to 0.0.0.0, add the Sprite hostname to Paperclip's allowlist, and register it as a Sprite service, which also fixes the "hostname is not allowed" error. Sprites add checkpoint/restore for rolling back agent state, pause/resume billing when idle, hardware isolation, and a network policy file that blocks agent egress to unapproved domains via DNS REFUSED responses.

Assumes: Linux command linenpm/npx

Related posts

  • Run OpenClaw (Formerly Moltbot and Clawdbot) in a Sprite

    Fly.io mediumAdept

    OpenClaw, the open-source AI assistant formerly called Clawdbot and Moltbot, can run inside a Fly.io Sprite, a hardware-isolated, stateful Linux sandbox, so the agent can have broad permissions without a dedicated Mac Mini. The walkthrough installs the Sprites CLI and OpenClaw, notes that the systemd and health-check errors during onboarding are expected, and registers the OpenClaw Gateway as a Sprite service on port 18789. That service lets the Sprite sleep when idle and wake on HTTP requests. Remaining steps cover making the URL public, approving device pairing, checkpointing the configuration for restore, and optionally having OpenClaw write its own Sprite management skill.

  • Agent Swarms on Sprites

    Fly.io mediumAdept

    Running each coding agent in a swarm on its own Sprite (a Fly.io sandboxed machine) avoids the shared-filesystem, conflicting-dependency and blast-radius problems of co-located agents. An orchestrator Sprite running Claude Code creates worker Sprites via the API and hands them tasks. Workers can checkpoint and restore their whole environment in about three seconds, which makes speculative parallel attempts practical. Per-agent DNS-level network policies restrict egress, results can flow back over HTTP endpoints, a shared Postgres Sprite or orchestrator file reads, and idle Sprites pause and persist.

  • How to Run Untrusted Code Safely

    Fly.io mediumAdept

    Containers share the host kernel, so truly untrusted code such as AI-generated scripts or user submissions needs hardware isolation, allowlist-based network egress control enforced from outside the sandbox, rollback and multiple runtimes. Fly.io's Sprites meet these requirements. A code runner is set up with a deny-all network policy applied through the external API, which code inside cannot change even as root, and specific domains can be selectively allowed. Broken environments are recovered by destroying the Sprite or restoring a checkpoint in about a second.

  • Building Agents that Don't Break Themselves

    Fly.io mediumAdept

    Separate where an agent lives from where it executes code: keep the agent loop on a durable host and send every shell command to a disposable Sprite sandbox. SpriteDoc, an internal multi-user troubleshooting agent built on Pi, creates one Sprite per session on first filesystem use and tears it down when idle. It injects each user's flyctl token only for the duration of a single command, so no credential ever rests in the sandbox. Kyle's Hermes Agent backend instead keeps one persistent Sprite per task and skips dangerous-command approval prompts because the sandbox is the security boundary. Copy-on-write checkpoints let an agent that deletes its own work and toolchain be restored in about nine seconds.

  • Slack Bots on Sprites: OAuth is Easy Now

    Fly.io mediumAdept

    Fly.io Sprites remove the usual hassle of hosting a Slack bot's OAuth flow by giving each bot a public URL, a persistent filesystem for storing tokens, and automatic hibernation and wake. The walkthrough creates a Sprite, installs Bolt and Express, and registers the Node server with `sprite-env services create --http-port 8080` so incoming requests wake the Sprite in under a second. It then makes the URL public, sets the Slack credentials as environment variables, and runs the install flow. Checkpoints snapshot the whole environment so a broken bot can be rolled back, and you pay only while it is handling requests.

The quest for software engineering knowledge.

Look:
Layout: