User guide / Getting started /

Desktop app and CLI agents

There are two ways to work with an AI model in FloMotion:

Built-in assistantCLI agent
Where it runsThe chat panel inside the FloMotion pageClaude Code, Codex, Gemini CLI, Cursor or another agent, in a terminal or editor on your computer
ModelModels from several major providers (Anthropic, OpenAI, Google and others), picked in the chat panelThe agent's own model, on your own plan or API key at that provider
How it reaches FloMotionDirectly, nothing to installThrough the FloMotion desktop app and its flomotion command line
What it costs in creditsEach step of the assistant, by model (see the credits page)0.2 credits per server action; the model is not billed by FloMotion
Where the conversation showsThe chat panel and its chat listOnly in the CLI agent

Both use the same tools on the same projects, so the work looks the same either way. A CLI agent is an AI agent outside FloMotion, such as Claude Code, Codex, Gemini CLI or Cursor, that uses FloMotion through the flomotion command line. It can itself run in a terminal, an editor or a desktop app; what makes it a CLI agent is how it reaches FloMotion. The rest of this page is about this second way.

Set up your CLI agent

The FloMotion desktop app is one program: run on its own it opens FloMotion in a window, and run as flomotion with a command it is the command line your CLI agent uses. The agent runs flomotion commands, the window does the work with the account signed in there, and you watch the result as it happens.

The desktop window while a CLI agent runs a circuit simulation it just built. The Nano, servo and supply were created through the command line, not the chat panel.
The desktop window while a CLI agent runs a circuit simulation it just built. The Nano, servo and supply were created through the command line, not the chat panel.
  1. Click Use Claude Code, Codex or Cursor with the same tools and paste the copied prompt into your CLI agent. The prompt points the agent at the desktop app's instructions; the agent installs the app itself with the install script from the releases page and checks it with flomotion status.
  2. On the first command the window opens. Sign in there, or let the agent run flomotion login: it gives you a link to approve in a browser where you are signed in, and you send the agent the code it shows. The agent never sees your password.
  3. From then on the agent uses flomotion agent to see the current state and tools, and flomotion act <tool> '<json>' to run one. flomotion skill prints the instructions again.

Who runs the model, and who pays

The CLI agent runs on its own model, with your own plan or API key at that provider (Anthropic, OpenAI, Google Gemini, Cursor). FloMotion never sees or uses that subscription, its tokens or its key, and there is nothing to link. FloMotion only bills the actions the agent runs on your account: each server action costs 0.2 credits, background jobs cost the same as from the chat, and actions in the window and failed calls are free (see the credits page).

The onboarding prompt

The copied prompt starts "Onboard yourself to FloMotion" and belongs in your CLI agent, in a terminal or editor on your computer. Pasting it into the FloMotion chat panel does nothing useful, because the built-in assistant cannot install anything on your computer.

Work from the CLI agent shows in the project like any other change. Its conversation stays in the CLI agent; it does not appear in the chat panel.

Files from your computer, such as a robot archive, come in through the command line too (flomotion import robot.zip). The article has the full walkthrough.