Fluiddocs
Reference

CLI reference

Every fluid command with its options and examples, generated from the CLI's own command tree.

Warnings and limits

  • Fluid is open to anyone with a verified email address.
  • Some commands are for a gateway you run yourself and are refused by https://api.fluid.sh: changing settings (fluid settings KEY VALUE, an Owner does it in the console's Settings) and fluid audit --fix (an Owner cleans up leaks from the console's Machines page). See Settings.
  • fluid interrupt is for testing a job of your own: it sends a real provider interruption.
  • The project directory fluid run uploads leaves out files over 100 MB and is refused over 500 MB: see Limits.

fluid help and fluid help COMMAND print this reference in your terminal, without signing in or connecting anything. Add --json to a command for output a script or coding tool can read.

Notes

  • JOB means a run ID, unique ID prefix or run name.
  • Run quotes machines first. Choose a returned spec and use --on SPEC to launch; --plan always previews.
  • Before launching, check effective quotas for the account, region and requested Spot/GPU compute.
  • Budgets and connection caps are optional. Set --budget or --cap only when you want a limit.
  • Add --json for scripts and coding tools. Help itself needs no sign-in or connection.
  • A sign-in is for one workspace. fluid workspace lists the ones this machine holds; --workspace NAME uses another for one command.
  • Guides, the full CLI reference and answers to common questions: https://fluid.sh/docs

Commands

GroupCommandWhat it does
Get startedfluid setupconnect Fluid to installed Claude Code and Codex and sign in through the browser
Get startedfluid loginsign in: the browser approves this machine and the CLI gets a token of its own, never shown (or store a token made elsewhere, with --token-file PATH)
Get startedfluid logoutsign this machine out: end each of its sign-ins on the server, then clear them from this machine
Get startedfluid workspacethe workspaces this machine is signed in to, one sign-in each
Get startedfluid connectconnect a provider (alone: list them, and in your own terminal open the console's Connections page; --detect: the cloud CLIs signed in here; --from-cli: connect one with its CLI's login)
Choose and runfluid pricescompare compute quotes before choosing a machine
Choose and runfluid runcompare quotes, then run on a selected machine
Watch your workfluid psjobs and machines
Watch your workfluid statusone job's cost, saving, progress, moves, recent events and result; without a job, the overview
Watch your workfluid logsa job's output
Watch your workfluid eventsa job's history, oldest first: moves, failures and changes; without a job, the workspace's
Watch your workfluid explainevery policy decision about a job, and why
Watch your workfluid dashboardopen the console in your browser, from your own terminal (elsewhere it prints the console's address); its Connect page while nothing but this machine is connected
Move, pause and collectfluid movemove a running job to another machine
Move, pause and collectfluid suspendsave a run's state and release its allocation
Move, pause and collectfluid resumeresume a suspended job when you choose, using --on for an exact destination
Move, pause and collectfluid stopend a run and release its allocation
Move, pause and collectfluid pulldownload a job's workspace after it ended
Move, pause and collectfluid auditeverything Fluid runs, everywhere, and what leaked or was left behind
Your machinesfluid machineslist your enrolled machines
Your machinesfluid machineenroll or operate your own machine
Connections and secretsfluid secretssecrets jobs can receive (--secret NAME)
Connections and secretsfluid disconnectremove a named cloud connection
Connections and secretsfluid capchange a connection's spend cap and nothing else
Settings and coding toolsfluid settingsthe workspace defaults: policies, fast path, encryption, baseline
Settings and coding toolsfluid updateinstall the newest Fluid CLI from your gateway (its install command)
Settings and coding toolsfluid mcpan MCP server over stdio, for Claude Code and Codex
Settings and coding toolsfluid helpusage guide and examples for Fluid or one command
Explore and testfluid interruptfor testing: a real spot interruption or preemption of a job's machine
Morefluid rmdelete ended jobs from your history (they leave every listing; costs still count them)
Morefluid ratesFluid compute's rate card: each chip, its memory sizes, the rate of each, and which are not available yet
Morefluid balanceFluid compute: the workspace's balance and its usage

fluid setup

connect Fluid to installed Claude Code and Codex and sign in through the browser

usage: fluid setup [-h] [--json] [--client {claude,codex}] [--root DIR] [--skip-login]
                    [--no-browser] [--device] [--reauth] [--prefer-portal | --no-prefer-portal]
                    [URL]
ArgumentRequiredWhat it is
URLnothe gateway (default: the current HTTPS gateway or Fluid)
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
--clientone of claude, codexconnect only this coding tool (repeatable; default: both installed tools)
--rootDIRa project directory tools may upload (repeatable; default: the current safe directory)
--skip-loginregister tools now; sign in on first use
--no-browsershow the sign-in page without opening a browser
--deviceuse device-code approval when a new sign-in is needed
--reauthstart a fresh sign-in instead of reusing the current one
--prefer-portalexplicitly prefer Fluid for supported Python compute in your user instructions and install its skill
--no-prefer-portalremove only Fluid's managed compute preference and unchanged managed skill

Examples:

fluid setup
fluid setup --prefer-portal

Notes:

  • Setup reuses a valid sign-in and connects installed Claude Code and Codex.
  • --prefer-portal is an optional choice to install Fluid-first compute guidance.

fluid login

sign in: the browser approves this machine and the CLI gets a token of its own, never shown (or store a token made elsewhere, with --token-file PATH)

usage: fluid login [-h] [--json] [--no-browser] [--device] [--reauth]
                    [--token T | --token-file PATH]
                    [URL]
ArgumentRequiredWhat it is
URLnothe gateway (default: the current one when it is HTTPS, else https://api.fluid.sh)
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
--no-browserprint the console's approval page instead of opening it (open it on any device)
--deviceuse device-code approval when a new sign-in is needed
--reauthstart a fresh sign-in instead of reusing the current one
--tokenTunsafe on shared hosts: prefer piping the token on stdin (with --token-file -), or use --token-file PATH; kept for older scripts
--token-filePATHread the token from this file (- reads stdin)

Examples:

fluid login

Notes:

  • Browser sign-in returns to the terminal automatically; --device or --no-browser uses a code backup.
  • Compare codes only for the device backup. No token needs to be pasted.
  • One approval signs this machine in to every workspace you are in, each with a sign-in of its own; the one chosen on the approval page becomes the one in use. Sign-ins this machine holds already stay: fluid workspace lists them. A sign-in whose workspace this machine has not learned yet, such as one an earlier version of Fluid made, is asked first and stays too; only a sign-in Fluid no longer answers for is replaced. A token from --token-file is filed under its own workspace the same way.

fluid logout

sign this machine out: end each of its sign-ins on the server, then clear them from this machine

usage: fluid logout [-h] [--json]
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else

Examples:

fluid logout

Notes:

  • Ends every sign-in this machine holds on the server, then clears them here. Jobs keep running, and other machines stay signed in. fluid workspace rm NAME signs out of one workspace alone.
  • A server that cannot be told is said plainly: revoke the sign-in in the console under Settings, Agents. A gateway you run yourself lists it under Settings, Access.
  • A gateway's token kept on this machine stays, and is named.

fluid workspace

the workspaces this machine is signed in to, one sign-in each

usage: fluid workspace [-h] [--json] ACTION ...
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else

Subcommands: fluid workspace use, fluid workspace pin, fluid workspace unpin, fluid workspace add, fluid workspace rm.

Examples:

fluid workspace
fluid workspace use acme
fluid workspace pin acme
fluid workspace add
fluid ps -w acme

Notes:

  • A sign-in is for one workspace: this machine keeps one for each workspace it is signed in to, and one of them is in use. Jobs, quotes and connections are that workspace's.
  • A command's workspace, in this order: --workspace NAME (or -w), then FLUID_WORKSPACE, then the pin of this folder or the nearest folder above it, then workspace: NAME in the project's portal.yaml, then the one in use. NAME is an id, a name or a unique start of a name, case ignored. A workspace this machine is not signed in to is refused, never passed over.
  • workspace: NAME in portal.yaml is committed with the project, so everyone who runs it runs in the same workspace. A pin is this machine's alone.
  • In a script or CI, set PORTAL_REQUIRE_WORKSPACE=1: a command then refuses to run on the one in use alone, and must be told its workspace.
  • use switches this machine's one in use, for every terminal, once Fluid says that sign-in still works. pin keeps this folder and the ones under it in one workspace on this machine; unpin removes it. add signs in, with one approval in the browser, to the workspaces of yours this machine has no sign-in for: add NAME makes that one the one in use, and --keep leaves the one in use as it is. rm ends that sign-in on the server, then forgets it.
  • fluid workspace says which workspace commands here use, and why. While more than one sign-in is stored, each command says first which workspace it is for; with one, a launch, resume, move and connect still say it.

fluid workspace use

make a stored sign-in the one in use, for every terminal of this machine: no browser is asked. A folder's pin and FLUID_WORKSPACE still come first

usage: fluid workspace use [-h] [--json] NAME
ArgumentRequiredWhat it is
NAMEyesthe workspace's id, its name, or a unique start of its name
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else

Examples:

fluid workspace use acme

fluid workspace pin

make this folder, and the folders under it, use a workspace on this machine: before the one in use, after --workspace and FLUID_WORKSPACE. Kept on this machine, nothing is written to the folder

usage: fluid workspace pin [-h] [--json] NAME
ArgumentRequiredWhat it is
NAMEyesthe workspace's id, its name, or a unique start of its name
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else

Examples:

fluid workspace pin "Acme Research"
fluid workspace pin ws_4f8a84dc3c6bc96a

fluid workspace unpin

remove the pin that applies in this folder: its own, or the nearest folder's above it

usage: fluid workspace unpin [-h] [--json]
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else

Examples:

fluid workspace unpin

fluid workspace add

sign this machine in to one more workspace: the browser's approval page asks which

usage: fluid workspace add [-h] [--json] [--keep] [--no-browser] [--device] [NAME]
ArgumentRequiredWhat it is
NAMEnothe workspace to add, chosen on the page: the command says so, and fails (exit 1) when the page's approval named another
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
--keepgo on using the workspace in use: the new sign-in is stored beside it
--no-browserprint the console's approval page instead of opening it (open it on any device)
--deviceuse device-code approval

Examples:

fluid workspace add
fluid workspace add "Acme Research"
fluid workspace add --keep

fluid workspace rm

sign this machine out of one workspace: end that sign-in on the server, then forget it

usage: fluid workspace rm [-h] [--json] NAME
ArgumentRequiredWhat it is
NAMEyesthe workspace's id, its name, or a unique start of its name
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else

Examples:

fluid workspace rm acme

fluid connect

connect a provider (alone: list them, and in your own terminal open the console's Connections page; --detect: the cloud CLIs signed in here; --from-cli: connect one with its CLI's login)

usage: fluid connect [-h] [--json] [--file SECRETS_ENV] [--method METHOD] [--cap USD] [--ssh]
                      [--detect] [--from-cli] [--keys] [--secret] [--profile P] [--subscription S]
                      [--project P] [--federated] [--network N] [--rank-network VPC]
                      [--subnetwork S] [--private-network | --no-private-network] [--region R]
                      [--location L] [--yes] [--plan PLAN_ID] [-w NAME]
                      [provider]
ArgumentRequiredWhat it is
providernoaws, azure, gcp, lambda, modal or a named connection
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
--fileSECRETS_ENVimport KEY=value lines (AWS_ACCESS_KEY_ID, MODAL_TOKEN_ID, PORTAL_SECRET_NAME, ...), or a native service account JSON file with gcp
--methodhow to connect (asked when the provider has several)
--capUSDspend cap for the provider (with --file and no provider, for each one the file connects)
--sshwith --detect, include concrete SSH config aliases
--detectthe cloud CLIs installed and signed in on this machine, and which Fluid can connect (it only reads)
--from-cliwith aws, azure, gcp, modal or lambda: connect with that CLI's login, in your own account, after listing every step and asking. AWS gets a role the gateway assumes, Azure a federated credential and Google Cloud a workload identity provider that trusts this workspace's identity, with no key (nothing stored a thief could use; a gateway that cannot offer that makes a Google Cloud key); Modal and Lambda a token, sealed on the gateway
--keyswith aws or gcp --from-cli: make a dedicated IAM user and access key (AWS) or a service account key (Google Cloud), sealed on the gateway, instead of the keyless method (the role, the trust of this workspace's identity). A Google Cloud connection that was keyless keeps its pool, provider and binding, and a note says how to remove them
--secretwith azure --from-cli: make a client secret (sealed on the gateway) instead of the federated credential
--profilePwith aws --from-cli: the AWS CLI profile whose login is used
--subscriptionSwith azure --from-cli: the subscription, by name or id
--projectPwith gcp --from-cli: the project ID (default: gcloud's current project)
--federatedwith gcp --from-cli: require the keyless connection, which is the default where the gateway offers it (the project trusts this workspace's identity, and no service account key is made); where it cannot be made, stop and say why instead of making a key
--networkNwith gcp --from-cli: reuse this existing network (name or resource path)
--rank-networkVPCwith gcp --from-cli: select a separate existing VPC in this dedicated project and grant the permissions needed for multi-node GPU jobs
--subnetworkSwith gcp --from-cli: existing subnetwork resource path in --region
--private-network, --no-private-networkwith gcp --from-cli: omit external IPs; the existing network must provide NAT or another outbound path
--regionRthe method's region or location field (AWS keys: region; Azure: location), refused for a method without one; with aws or gcp --from-cli, the connection's region (GCP default us-central1)
--locationLwith azure --from-cli: where the resource group soma goes (default eastus)
--yeswith --from-cli: go ahead without asking (the steps are still printed first)
--planPLAN_IDwith --from-cli: go ahead only with the plan of that id (the plan_id an earlier --json printed); other steps are printed, and nothing is created
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid connect --detect
fluid connect aws --from-cli
fluid connect gcp --from-cli --federated
fluid connect --json

Notes:

  • --detect only reads local cloud CLI sign-ins. --from-cli shows steps and asks before creating access.
  • On Google Cloud --from-cli connects keyless by default: the project trusts this workspace's identity, and no service account key is made. --federated requires that; --keys makes a key instead.
  • A connected account does not establish usable quota. Check account, region, family and Spot/GPU limits.
  • Leave --cap unset unless you want a connection spending limit.

fluid prices

compare compute quotes before choosing a machine

usage: fluid prices [-h] [--json] [--gpu L4|24G|any] [--gpus N] [--nodes N] [--cpus N] [--mem GB]
                     [--spot | --no-spot] [--providers NAMES] [--regions NAMES] [-w NAME]
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
--gpuL4|24G|anya GPU model, a memory per GPU, or any GPU
--gpusNGPUs per machine
--nodesNmachines running the job together (default 1). For several machines, choose on-demand EC2 GPUs or a GCE shape with eight GPUs: a2-highgpu-8g (A100 40 GB), a2-ultragpu-8g (A100 80 GB), or g2-standard-96 (L4). To preview A2 Ultra Flex-start, use --plan with a region- and zone-pinned --on spec ending in :provisioning=flex_start. A live move keeps the job's node count
--cpusNat least N vCPUs
--memGBat least this much memory
--spot, --no-spotspot only, or never spot (default: spot when offered)
--providersNAMESonly these providers, e.g. aws,modal
--regionsNAMESonly these regions, e.g. us-east-1,us-west-2 (without it EC2 quotes cover every region where the account's quota admits the machine)
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid prices --gpu T4
fluid prices --cpus 4 --mem 8 --no-spot

fluid run

compare quotes, then run on a selected machine

usage: fluid run [options] (SCRIPT [ARGS...] | --example)
ArgumentRequiredWhat it is
SCRIPTnoa Python file in this directory (the directory is uploaded with it); left out with --example
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
--examplerun Fluid's example job in place of SCRIPT: a short script that comes with Fluid, says what GPU it is on, counts for under a minute and ends. It needs no file of yours, and nothing from this directory is uploaded. Every other option works as with a script
--gpuL4|24G|anya GPU model, a memory per GPU, or any GPU
--gpusNGPUs per machine
--nodesNmachines running the job together (default 1). For several machines, choose on-demand EC2 GPUs or a GCE shape with eight GPUs: a2-highgpu-8g (A100 40 GB), a2-ultragpu-8g (A100 80 GB), or g2-standard-96 (L4). To preview A2 Ultra Flex-start, use --plan with a region- and zone-pinned --on spec ending in :provisioning=flex_start. A live move keeps the job's node count
--cpusNat least N vCPUs
--memGBat least this much memory
--spot, --no-spotspot only, or never spot (default: spot when offered)
--providersNAMESonly these providers, e.g. aws,modal
--regionsNAMESonly these regions, e.g. us-east-1,us-west-2 (without it EC2 quotes cover every region where the account's quota admits the machine)
--onSPEClaunch on the exact spec selected from the returned quotes
--gpu-fallbackone of none, same_provider, anywhen the GPU asked for is not scheduled within Fluid's bounded wait (5 min on Modal): run on the same provider's cheapest other GPU (same_provider) or any connected provider's (any); none, the default, ends the job with the choices instead
--ranksNstart N processes of the script that train together, as torchrun does. N is the total and must divide evenly across --nodes. With --gpu each rank has a GPU of its own on its machine. 1 starts one process with torchrun's variables set, for a script written for torchrun; without --ranks the script runs as a plain process. When plans are on for the workspace, more than one rank needs the Team plan; a refusal with plan_feature says so
--budgetUSDA budget suspends the run when it is spent: its machine is released and the program stops until someone resumes it. Leave it unset unless a spending limit is wanted.
--namea name to refer to the job by
--projectNAMErequired to launch, optional for quotes: fluid ps and the console group jobs and their cost estimates and comparisons by it
--envK=Van environment variable for the script
--secretNAMEa stored secret, as an environment variable
-d, --detachwith --on, return once the job is queued
--planonly show quotes, including when --on selects a machine
--no-returndo not move back to spot when that pays
--rightsizeone of on_move, active, offsize CPU and memory from use: at the next move (default), also by moving, or never
--no-cheapernever move by itself to a cheaper offer
--no-evacuateno automatic checkpoint and suspension on a spot or preemption notice (the spot policy off)
--checkpoint-everyMINwith --ranks: minutes between the checkpoints the job takes while it runs, 1 at the least (default: set from what one costs, never under 10). A rank that runs out of memory or is killed, or a lost machine, leaves the job suspended on the last one
--no-checkpointwith --ranks: take no checkpoints while the job runs; a rank or machine failure then ends the job with its work lost
--policyKEY=VALUEa policy for this job over portal.yaml, e.g. cheaper=off, rightsize=off, idle.after_min=60
--chipCHIPrun on Fluid compute, on this chip from the rate card (fluid rates), e.g. A100: Fluid places the job, there is no quote, and it is paid from the workspace's balance (fluid balance). Takes --vram, --gpus (several GPUs of the chip on one machine, each paid at the chip's rate), --project, --name, --env, --secret and -d, and none of the options that choose a machine
--vramGBwith --chip: the chip's memory in GB, e.g. 80 (default: the cheapest size the chip comes in)
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid run --example --gpu T4
fluid run train.py --gpu T4
fluid run train.py --gpu T4 --on modal:gpu=T4 -d --project training
fluid run train.py --cpus 4 --mem 8
fluid run train.py --gpu T4 --on modal:gpu=T4 -d -- --epochs 10

Notes:

  • No script at hand? --example runs Fluid's example job in place of SCRIPT: it says what GPU it is on, counts for under a minute and ends. It needs no file of yours, and nothing from this directory is uploaded.
  • Without --on, compare quotes without uploading the project or starting a job.
  • Select a returned offer's exact spec with --on SPEC. --plan keeps even a selected offer in preview.
  • Launching requires --project NAME (1 to 100 characters). Quotes may omit it; budgets stay optional.
  • Run it from the project's directory, which is what gets uploaded: the home directory and any directory above it are refused.
  • An exact --on pins the run to that destination; moves and resumes keep their own choices.
  • A selected launch uploads the project directory; -d returns after the job is queued.
  • A launch prints the address of the job's page in the console, where the gateway names its console; --json carries it as console_url.
  • Put script arguments after --. Ctrl-C detaches from streaming output; it does not stop the cloud run.
  • --gpu accepts a model such as T4, memory such as 24G, or any. --spot requires Spot; --no-spot excludes it.
  • Keep secrets out of --env: use fluid secrets set NAME, then --secret NAME.
  • A --budget is optional and suspends a run when spent. Check effective quota before launching.

fluid ps

jobs and machines

usage: fluid ps [-h] [--json] [-a] [-w NAME]
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
-a, --allevery job, not only active and recent ones
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid ps
fluid ps --all

fluid status

one job's cost, saving, progress, moves, recent events and result; without a job, the overview

usage: fluid status [-h] [--json] [-w NAME] [job]
ArgumentRequiredWhat it is
jobnoa job id, a unique start of one, or a job name
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid status JOB
fluid status JOB --json

Notes:

  • Once a job has ended, status prints the result its script said, where it printed one. A script says its result by printing one line last: ::result:: and a JSON object, such as ::result:: {"accuracy": 0.914}. --json carries it as job.result.

fluid logs

a job's output

usage: fluid logs [-h] [--json] [-f] [-n N] [-w NAME] job
ArgumentRequiredWhat it is
jobyesa job id, a unique start of one, or a job name
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
-f, --followkeep printing until the job ends
-n, --tailNonly the last N lines
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid logs JOB --tail 50
fluid logs JOB --follow

fluid events

a job's history, oldest first: moves, failures and changes; without a job, the workspace's

usage: fluid events [-h] [--json] [--since ID] [--limit N] [-w NAME] [job]
ArgumentRequiredWhat it is
jobnoa job id, a unique start of one, or a job name
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
--sinceIDonly events after this one: --json's next
--limitNat most N events, from 1 to 500 (default: all of them, or with --json the first 100)
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid events JOB
fluid events JOB --json --since 40

fluid explain

every policy decision about a job, and why

usage: fluid explain [-h] [--json] [-w NAME] job
ArgumentRequiredWhat it is
jobyes
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid explain JOB

fluid dashboard

open the console in your browser, from your own terminal (elsewhere it prints the console's address); its Connect page while nothing but this machine is connected

usage: fluid dashboard [-h] [--json] [--link] [-w NAME]
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
--linkprint (with --json, return) the console's address instead of opening a browser: you sign in there as usual, and the address holds no credential
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid dashboard

Notes:

  • Run this in your own terminal: it opens the console in your browser, and you sign in there.

fluid move

move a running job to another machine

usage: fluid move [-h] [--json] [--to SPEC] [--gpu-fallback MODE] [--gpu L4|24G|any] [--gpus N]
                   [--nodes N] [--cpus N] [--mem GB] [--providers NAMES] [--regions NAMES]
                   [--plan] [--no-wait] [--wait] [-w NAME]
                   job
ArgumentRequiredWhat it is
jobyes
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
--toSPECexactly here, e.g. modal:gpu=L4
--gpu-fallbackone of none, same_provider, anywith --to: when that GPU is not scheduled within Fluid's bounded wait, move to the same provider's cheapest other GPU (same_provider) or any connected provider's (any) instead; none, the default, leaves the job where it runs
--gpuL4|24G|anya GPU model, a memory per GPU, or any GPU
--gpusNGPUs per machine
--nodesNmachines running the job together (default 1). For several machines, choose on-demand EC2 GPUs or a GCE shape with eight GPUs: a2-highgpu-8g (A100 40 GB), a2-ultragpu-8g (A100 80 GB), or g2-standard-96 (L4). To preview A2 Ultra Flex-start, use --plan with a region- and zone-pinned --on spec ending in :provisioning=flex_start. A live move keeps the job's node count
--cpusNat least N vCPUs
--memGBat least this much memory
--providersNAMESonly these providers, e.g. aws,modal
--regionsNAMESonly these regions, e.g. us-east-1,us-west-2 (without it EC2 quotes cover every region where the account's quota admits the machine)
--planonly show where it would go and at what price
--no-waitreturn once the move is accepted instead of waiting up to 15 s for its outcome
--waitwith --json, wait up to 15 s for the outcome (without --json that is the default)
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid move JOB --gpu L4 --plan
fluid move JOB --gpu L4

Notes:

  • --plan previews the destination; without it, move pauses and transfers the running program.
  • Use either --to SPEC or hardware requirements, not both.
  • move waits up to 15 s and prints the outcome: where it landed, or why it did not. With --no-wait it returns once the move is accepted; fluid events JOB says when it lands or why it did not; fluid status JOB where it runs.
  • --json returns once the move is accepted (outcome accepted) unless --wait is given, which follows the move as above (outcome landed, aborted with its reason, parked or pending).
  • A job whose program has already exited is not moved: the request is refused with the job's end.

fluid suspend

save a run's state and release its allocation

usage: fluid suspend [-h] [--json] [--last-checkpoint] [-w NAME] job
ArgumentRequiredWhat it is
jobyes
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
--last-checkpointa job of several ranks: suspend it on its last checkpoint now, without pausing it (for ranks that hang); the work since that checkpoint runs again after a resume
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid suspend JOB

Notes:

  • Suspend saves the run's state and releases its allocation. Resume continues it later.

fluid resume

resume a suspended job when you choose, using --on for an exact destination

usage: fluid resume [-h] [--json] [--on SPEC] [--budget USD] [--gpu L4|24G|any] [--gpus N]
                     [--nodes N] [--cpus N] [--mem GB] [--providers NAMES] [--regions NAMES]
                     [-w NAME]
                     job
ArgumentRequiredWhat it is
jobyes
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
--onSPECexactly here instead of the best offer
--budgetUSDa new budget for the job in place of its old one (what it spent so far counts against it): the way on when a stop set from the old budget suspended it
--gpuL4|24G|anya GPU model, a memory per GPU, or any GPU
--gpusNGPUs per machine
--nodesNmachines running the job together (default 1). For several machines, choose on-demand EC2 GPUs or a GCE shape with eight GPUs: a2-highgpu-8g (A100 40 GB), a2-ultragpu-8g (A100 80 GB), or g2-standard-96 (L4). To preview A2 Ultra Flex-start, use --plan with a region- and zone-pinned --on spec ending in :provisioning=flex_start. A live move keeps the job's node count
--cpusNat least N vCPUs
--memGBat least this much memory
--providersNAMESonly these providers, e.g. aws,modal
--regionsNAMESonly these regions, e.g. us-east-1,us-west-2 (without it EC2 quotes cover every region where the account's quota admits the machine)
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid resume JOB --gpu T4
fluid resume JOB --on modal:gpu=T4
fluid resume JOB --budget 3

Notes:

  • Resume only when you want a suspended run to use compute again.
  • Use either --on SPEC or hardware requirements, not both.
  • A run its budget suspended goes on with a larger one: --budget USD replaces the old budget, and what the run spent so far counts against it.

fluid stop

end a run and release its allocation

usage: fluid stop [-h] [--json] [-w NAME] job
ArgumentRequiredWhat it is
jobyes
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid stop JOB

Notes:

  • Stop ends the run and releases its allocation. An enrolled personal computer is not powered off.

fluid pull

download a job's workspace after it ended

usage: fluid pull [-h] [--json] [-w NAME] job [dir]
ArgumentRequiredWhat it is
jobyes
dirnowhere to unpack the job's output (default: its job ID). A multi-node job has a separate subdirectory for each machine: node-0, node-1 and so on
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid pull JOB ./results

fluid audit

everything Fluid runs, everywhere, and what leaked or was left behind

usage: fluid audit [-h] [--json] [--fix] [--untracked] [-w NAME]
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
--fixrefused by https://api.fluid.sh (an Owner cleans up leaks in the console); on a gateway you run yourself, terminate its leaked resources, then audit again
--untrackedwith --fix, ALSO terminate Fluid-tagged machines that no gateway of yours tracks. CAREFUL: when several Fluid deployments share an account, those can be another deployment's running jobs
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid audit
fluid audit --json

Notes:

  • It only checks resources, and exits 1 when something leaked, was left behind or could not be checked: with --json, "leaks", "untracked", "unlistable" and "left_behind" must be empty.
  • "left_behind" lists what a machine's end left in your cloud account that Fluid made and does not delete (on Azure, a VM's disk that nothing proves Fluid's own). It bills until you remove it, with the command shown, in that connection's own account.
  • Machines of another Fluid deployment in the same cloud account are listed apart, under "another deployment's" (with --json, "other_controllers", and "owner": "other" on each): they are not this workspace's, so not its leaks and not its to end.
  • --fix is refused by https://api.fluid.sh: an Owner cleans up leaks in the console (Machines, Audit, Clean up leaks).
  • On a gateway you run yourself --fix terminates leaks; --untracked may affect another deployment's resources and needs explicit review.

fluid machines

list your enrolled machines

usage: fluid machines [-h] [--json] [-w NAME]
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid machines

fluid machine

enroll or operate your own machine

usage: fluid machine [-h] [--json] {command,add,rm,join,run,status,uninstall} ...
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else

Subcommands: fluid machine command, fluid machine add, fluid machine rm, fluid machine join, fluid machine run, fluid machine status, fluid machine uninstall.

Examples:

fluid machine command --name workstation
fluid machine status

Notes:

  • Run the returned installation command on your computer, then approve it in Fluid with the link it prints (its pairing code is filled in).
  • Use --on machine.NAME to target an approved machine. Releasing a run never powers that computer off.

fluid machine command

Create a short-lived enrollment command for your own computer.

usage: fluid machine command [-h] [--json] [--name NAME] [-w NAME]
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
--name
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid machine command --name workstation

fluid machine add

Install a machine daemon through a reviewed SSH host.

usage: fluid machine add [-h] [--json] [--name NAME] [--yes] [-w NAME] host
ArgumentRequiredWhat it is
hostyes
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
--name
--yes
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid machine add gpu-host --name workstation

fluid machine rm

Remove an enrolled machine.

usage: fluid machine rm [-h] [--json] [-w NAME] id
ArgumentRequiredWhat it is
idyes
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid machine rm MACHINE_ID

fluid machine join

Enroll this computer using an installation code read from a file or stdin.

usage: fluid machine join [-h] [--json] [--name NAME] [--system] --code-file CODE_FILE
                           [--no-service] [--insecure-http] [--ssh-host-key SSH_HOST_KEY]
                           url
ArgumentRequiredWhat it is
urlyes
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
--name
--system
--code-file
--no-service
--insecure-http
--ssh-host-key

Examples:

fluid machine join https://api.fluid.sh --code-file -

fluid machine run

Run this computer's Fluid daemon.

usage: fluid machine run [-h] [--json] [--system]
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
--system

Examples:

fluid machine run

fluid machine status

Show this computer's Fluid daemon status.

usage: fluid machine status [-h] [--json] [--system]
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
--system

Examples:

fluid machine status

fluid machine uninstall

Uninstall this computer's Fluid daemon.

usage: fluid machine uninstall [-h] [--json] [--system]
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
--system

Examples:

fluid machine uninstall

fluid secrets

secrets jobs can receive (--secret NAME)

usage: fluid secrets [-h] [--json] [-w NAME] ACTION ...
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Subcommands: fluid secrets set, fluid secrets rm.

Examples:

fluid secrets
fluid secrets set HF_TOKEN
fluid run train.py --secret HF_TOKEN -d

Notes:

  • Values are read privately from the terminal or stdin. Pass stored secrets to runs by name.

fluid secrets set

store a secret from the terminal, stdin or a named environment variable

usage: fluid secrets set [-h] [--json] [--from-env ENV] [-w NAME] name
ArgumentRequiredWhat it is
nameyes
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
--from-envENVread the value from this local environment variable without printing it
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid secrets set HF_TOKEN
fluid secrets set HF_TOKEN --from-env HF_TOKEN

fluid secrets rm

remove a secret

usage: fluid secrets rm [-h] [--json] [-w NAME] name
ArgumentRequiredWhat it is
nameyes
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid secrets rm HF_TOKEN

fluid disconnect

remove a named cloud connection

usage: fluid disconnect [-h] [--json] [-w NAME] provider
ArgumentRequiredWhat it is
provideryes
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid disconnect modal

fluid cap

change a connection's spend cap and nothing else

usage: fluid cap [-h] [--json] [-w NAME] provider USD
ArgumentRequiredWhat it is
provideryes
USDyesthe cap in dollars, 0 or more
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid cap aws 50

fluid settings

the workspace defaults: policies, fast path, encryption, baseline

usage: fluid settings [-h] [--json] [-w NAME] [KEY] [VALUE]
ArgumentRequiredWhat it is
KEYnoone setting, e.g. spot.on or return.min_saving_pct
VALUEnoits new value (null clears it)
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid settings
fluid settings spot.on

fluid update

install the newest Fluid CLI from your gateway (its install command)

usage: fluid update [-h] [--json] [--check | --force]
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
--checkonly say whether an update is available
--forceinstall the served build even when it is this one

Examples:

fluid update
fluid update --check

Notes:

  • It runs your gateway's install command: your sign-in and coding tool setup stay, and Fluid's skill is refreshed for the tools you chose to prefer Fluid in. Restart those tools afterwards.
  • Other commands check once a day and say when an update is available; FLUID_NO_UPDATE_CHECK=1 turns that off.

fluid mcp

an MCP server over stdio, for Claude Code and Codex

usage: fluid mcp [-h] [--json] [--root DIR] [-w NAME]
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
--rootDIRa directory run may also upload projects from, beside the one the server starts in (repeatable)
-w, --workspaceNAMEhold every tool of this server to this workspace's stored sign-in for its whole life, whichever is in use: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins)

Examples:

fluid mcp --root /path/to/project

Notes:

  • fluid setup registers this server with installed coding tools; they normally start it for you.

fluid help

usage guide and examples for Fluid or one command

usage: fluid help [-h] [--json] [COMMAND ...]
ArgumentRequiredWhat it is
COMMANDnoa command or nested command, e.g. run or machine command
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else

Examples:

fluid help run
fluid help machine command

fluid interrupt

for testing: a real spot interruption or preemption of a job's machine

usage: fluid interrupt [-h] [--json] [--after TIME] [-w NAME] job
ArgumentRequiredWhat it is
jobyes
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
--afterTIMEEC2 interruption notice, e.g. 2m (default: 2m); a Fargate stop begins at once
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid interrupt JOB --after 2m

Notes:

  • Testing only: this sends a real provider interruption to a job's machine.

fluid rm

delete ended jobs from your history (they leave every listing; costs still count them)

usage: fluid rm [-h] [--json] [--ended] [--project NAME] [--before TIME] [--yes] [-w NAME]
                 [JOB ...]
ArgumentRequiredWhat it is
JOBnothe jobs to delete, by id, name or id prefix
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
--endedevery ended job (with --project or --before to narrow it)
--projectNAMEwith --ended: only this project's jobs
--beforeTIMEwith --ended: only jobs created before this (an ISO date or time, UTC)
--yesdelete what the plan lists without asking
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid rm JOB
fluid rm --ended --project old-sweeps
fluid rm --ended --before 2026-10-01 --yes

Notes:

  • Only ended runs can be deleted: they leave every listing, and their costs and savings still count.
  • It shows what would go first, naming runs that could still be continued from kept checkpoints, and asks; --yes deletes what it shows without asking.

fluid rates

Fluid compute's rate card: each chip, its memory sizes, the rate of each, and which are not available yet

usage: fluid rates [-h] [--json] [-w NAME]
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid rates --help

fluid balance

Fluid compute: the workspace's balance and its usage

usage: fluid balance [-h] [--json] [-w NAME]
OptionValueWhat it does
--jsonmachine output: one JSON document per line, nothing else
-w, --workspaceNAMEthe workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use)

Examples:

fluid balance --help

On this page