Skip to main content
Sprites 2 is in public beta. This page applies only to Sprites 2. For Sprites 1, see the Quickstart.
This guide walks you through creating a Sprite, running a command in it, opening a shell, serving a web page and cleaning up. Every step shows both ways to control Sprites 2: SSH and the HTTP API.

Before you begin

You need:
  • A Sprites 2 organization, created with Try the beta. See Get access.
  • An SSH client, for the SSH examples.
  • A token for your Sprites 2 organization, for the HTTP API examples. Create one in the Fly.io dashboard at fly.io/dashboard/ORG/sprites.
The examples use my-org as the organization slug. Replace it with your Sprites 2 organization’s slug.

Two ways to control Sprites

SSH. Send commands to your organization’s control plane at my-org@sprites.dev. There’s nothing to install:
The first time you connect with a new SSH key, the command prints a code and a URL. Open the URL in your browser, log in if asked, and enter the code. After that, the key works for that organization without asking again. There are two SSH addresses: HTTP API. For apps and scripts, use the JSON API. Set these variables once, and the examples on this page use them:
The full API is described in OpenAPI at https://api.sprites.dev/openapi.json?version=beta-2026-12-01.
Without ?version=beta-2026-12-01, https://api.sprites.dev/openapi.json describes the Sprites 1 API.

Create and use a Sprite

1

Create a Sprite

The command returns once the Sprite is running. It starts from the Sprites base image: Ubuntu with a sprite user, sudo and common tools.
2

Run a command

3

Open a shell

Connect straight to the Sprite. default is the name of the cluster the Sprite was created in.
SCP and SFTP work at the same address:
4

Put a web page online

In the Sprite’s shell, register a service on port 8080. A service named http is the Sprite’s main web server:
The Sprite’s URL is https://dev-ORGCODE.sprites.app/. Run sprite get dev to see the exact URL. The http service also answers at its own service URL, https://http--dev--default--my-org.sprites.app/. The URL is private, so only your organization can open it: a browser signed in to Fly.io, or a request with your token.To make it public:
This opens both URLs.Every other service you register gets its own URL in the form https://SERVICE--SPRITE--CLUSTER--ORG.sprites.app/, and you make each one public separately.
5

Check its status

The response shows the Sprite’s status, URL and configuration. When nothing has used it for a while, the Sprite goes to sleep, and the next request or command wakes it.
6

Delete it

Deleting a Sprite is permanent. Take a checkpoint before anything risky.

Check responses for errors

Commands that change a Sprite, such as create, start, stop, exec, checkpoint and fork, stream their results as one JSON object per line. They return HTTP 200 even when they fail, so an error can arrive inside the stream:
Read to the last line and check for "type":"error". When an error includes a request_id, include it when you report a problem. Errors that happen before the stream starts use normal HTTP status codes, such as 401 for a bad or expired token, 404 for an unknown Sprite and 429 when you’re rate limited.
When you pipe SSH control plane output into jq, use ssh -T. Forcing a terminal with ssh -t can garble the output.

Next steps

  • Read the Sprites 2 overview for limits and what’s not in the beta yet.
  • Try the Sprites 2 feature guides for forking, private networking, egress policies, scoped tokens and more.
  • Run ssh docs@sprites.dev for the complete Sprites 2 reference. You don’t need an account.