Skip to main content

At a glance

  • Availability: Experimental (how to enable).
  • Auth: API key.
  • Connection: The key from SPRITES_TOKEN is sent as the Bearer prefixed Authorization header.
  • Docs: https://sprites.dev/api

Credentials

Set these per environment. See Connect an integration.

Setup

  1. Create a Sprites account: Sign up at https://sprites.dev by signing in with a Fly.io account (Sprites is made by Fly.io); new accounts can create sprites right away for testing.
  2. Generate an API token: Go to https://sprites.dev/account and generate an API token. Tokens have the format my-org/token-id/secret. (Alternatively, install the sprite CLI and run sprite org auth.)
  3. Set the environment variable: Copy the token into your .env as SPRITES_TOKEN.
  4. Verify access: Run List Sprites to confirm the token works, then create a sprite and execute a command in it.
  • The API is served on https://api.sprites.dev/v1 and authenticates with Authorization: Bearer $SPRITES_TOKEN
  • Sprites are stateful: the filesystem persists across suspends, and sprites wake automatically on use (status moves between cold, warm, and running)
  • Destroying a sprite permanently deletes its persisted state
  • Execute Command uses the HTTP POST exec endpoint for non-interactive commands; interactive TTY sessions, filesystem APIs, checkpoints, and services are WebSocket/SDK-first and not covered by these tools
Provider API reference: https://sprites.dev/api

Tools

Example prompts

  • List my Sprites.dev sandboxes with their status and last activity.
  • Create a new sprite named scratchpad and confirm it is reachable by running uname -a inside it.
  • List my sprites and destroy any that I confirm are no longer needed.