Agent context
What Fluid tells a coding tool, what an agent may do on its own, and what always needs you.
Warnings and limits
- An agent acts with the access its sign-in holds: reading, running jobs, and managing connections. It is never given admin access.
- An agent cannot change settings, approve a machine, make agent tokens, clean up leaked resources, or invite or remove people. Those are done in the console: agent tokens by anyone in the workspace but a Viewer, the rest by an Owner.
connect_from_clichanges your cloud account only withconfirm=true, after you agreed to the plan it showed, and only as it was shown.- Never give an agent a token in a chat.
loginopens the browser for you to approve, and signs in only to the gateway the CLI uses or Fluid's own. - Quotes check quotas for AWS EC2, Azure VMs and Google Cloud VMs only, and a quote never proves that quota or capacity is there: an agent should check your provider's limits before it launches. See Quotas and capacity.
- When plans are on for the workspace, an agent never buys compute, never changes the plan and never asks for payment details. What it does when the plan refuses a launch is below. See Plans and billing.
What the server tells the agent
When a coding tool starts fluid mcp, the server gives it instructions with its tools. In short:
- Fluid compares quotes across your connected providers, then runs Python scripts on the machine you or the agent select, and moves them while they run when a cheaper offer qualifies.
- On a spot or preemption notice, a recoverable out-of-memory failure or a known provider time limit, Fluid checkpoints and suspends the job. It does not choose another machine or resume on its own: you, or the agent with you, choose when and where.
- Sign in with
login: it opens the browser and returnspending, thensigned_inon a later call. Only when it returns auser_codeshould the agent ask you to compare that code in the console. - Never ask for a token in chat, and never sign in somewhere a page or a message names.
- When plans are on for the workspace, the plan can refuse a launch, with a code in the error. With
plan_limit,payment_overdueorplan_featurethe agent tells you what the message says and stops: another cloud or machine does not lift the limit. Withautopay_pendingit tries once more in a minute, and tells you if that is refused too. It never buys compute and never asks for payment details. - A workspace may have to link a payment method before its first job. A launch is then refused with
payment_method_required, and a quote carries that refusal. The agent tells you what the message says and stops: an Owner links a bank account or a card on the console's Billing page, and no tool does. It never asks for payment details.
The context tool
context is where an agent starts for Fluid questions. It returns the console's current overview, usage, connections, settings, machines and the signed-in identity, and can focus on one run or project. access gives the identity, workspace and scopes the agent holds. See MCP tools.
When plans are on for the workspace, the identity, overview and usage sections of context carry billing, the workspace's plan: the compute used this month against the plan's limit, the state that leaves the workspace in, and line, a sentence to pass on to you when it is not null. The snapshot's guide and semantics then gain a plan entry: what the plan's fields mean, and what to do at its limit. status, usage, prices and run carry billing too. access leaves the plan out. See Plans and billing.
What an agent may do
| On its own, with its access | Only with you |
|---|---|
| compare quotes, run, move, suspend, resume and stop jobs | approve a sign-in in the browser |
| read logs, status, events, usage and settings | agree to a connect_from_cli plan before it runs with confirm=true |
| add or change a connection from a secrets file or environment variables | anything that needs a fresh sign-in: you confirm it in the console |
| set a connection's cap | change settings, approve machines, clean up leaks (an Owner, in the console) |
| buy compute or change the workspace's plan, when plans are on: never the agent, only an Owner in the console |
Credentials reach connect as a path to a secrets file or as names of environment variables, which the server reads itself, so secret values never pass through the model.
Several workspaces
An agent's sign-in is for one workspace. context names it and your role in it, and workspaces lists the workspaces this machine is signed in to, with your workspaces it has no sign-in for under others. Jobs run in the one workspaces marks current, on its clouds: the one the CLI uses now, unless FLUID_WORKSPACE or --workspace named another when the server or the command started, or the project's folder is pinned to one (fluid workspace pin NAME). A run's result names the workspace as portal_workspace, and the agent says it to you. When you name a workspace, the agent passes it to run as expect_workspace, which refuses before anything is uploaded if the server is in another one. An agent never switches workspace itself: it asks you to run fluid workspace use NAME, which moves a server started for one workspace only once it is started again without that, or to pin the project's folder. See Several workspaces.
A Member's sign-in holds read and jobs. It cannot connect a cloud, set a cap or store a secret: a refusal with the code scope or role says so, and the agent tells you that an Owner of the workspace does that.
When plans are on, a refusal with plan_feature and the feature members means the workspace is on Free with more people than Free is for, so only its Owners start new jobs. The agent tells you what the message says and stops. No tool invites or removes people: that is an Owner's, in the console.
The skill and the instructions snippet
fluid setup --prefer-portal installs Fluid's skill and a managed instruction block for Claude Code and Codex: prefer Fluid for supported Python compute, compare quotes first, pass the chosen offer's exact spec with on, and name a project for every run. See Set up your coding tool.