floo_sandbox has App, Image, Sandbox, Secret and Volume under Modal’s names. A program written for Modal’s Sandbox runs on floo after it changes its import and its key.
1. Install the SDK
2. Change the import
modal.App.lookup, modal.Sandbox.create, sb.exec and sb.terminate are the same calls.
In a new program, name it floo, as the rest of these docs do:
3. Change the key
SetFLOO_API_KEY to a floo API key from the dashboard’s Settings, in place of MODAL_TOKEN_ID and MODAL_TOKEN_SECRET.
FLOO_ORG_ID to the organization the program acts in.
What is different
floo runs sandboxes. The rest of Modal’s SDK, such as functions and GPUs, is not infloo_sandbox.
An option of Sandbox.create that floo does not take is refused by name, never ignored, so a program that depends on one fails at that call. Differences from Modal lists them.
On floo, a sandbox’s files need no machine: file calls are answered from its workspace, and a micro-VM attaches only while a command runs. A program that mostly reads and writes files bills for fewer seconds than its sandbox lives. See Which calls need a machine and Pricing.