AutoFlow agent server (autoflow-agent)
Lets an AI agent on your computer — Claude Code, Codex, Antigravity, Cursor, Claude Desktop or any other MCP client — drive the AutoFlow Chrome extensions:
- Queue Manager: add queues of prompts (with reference images and Flow characters), change settings, run, pause, stop, retry, and read the results.
- Studio: build workflows from a plan, open templates and saved workflows, edit nodes, run, retry, stop, and read every node's result.
The agent asks; the extension does the work with the same code as its own buttons. So an agent's run is checked against your plan's limits, charged the same way, and shows up in the panel as it happens.
How it fits together
Claude Code / Codex / Antigravity your browser
─────────────────────────────── ───────────────────────────────
agent ──stdio (MCP)──► autoflow-agent ◄──ws://127.0.0.1:8124── Queue Manager
◄───────────────────── Studio
The server listens on 127.0.0.1 only. The extensions connect to it; it accepts only AutoFlow's own extensions (by the Origin a browser sets and a web page cannot change), so no website can use it. Several agent sessions can run at once: the first holds the port and the others relay through it.
1. Switch it on in the extension
Agent control is off until you turn it on, in each extension:
- Queue Manager and Studio: the Agent switch at the top of the panel (the same setting as Settings → AI agents → Let AI agents control AutoFlow). Pressing Agent shows what it does and a Watch how video.
The line under the switch says Waiting for the agent server until step 2 is done, then Connected.
2. Add the server to your agent
Claude Code
claude mcp add autoflow -s user -- npx -y autoflow-agent
Codex (CLI or IDE extension)
codex mcp add autoflow -- npx -y autoflow-agent
or in ~/.codex/config.toml:
[mcp_servers.autoflow]
command = "npx"
args = ["-y", "autoflow-agent"]
Antigravity: Agent panel → ⋯ → MCP Servers → Manage MCP Servers → View raw config, and add:
{
"mcpServers": {
"autoflow": { "command": "npx", "args": ["-y", "autoflow-agent"] }
}
}
Cursor / Claude Desktop: the same mcpServers entry, in .cursor/mcp.json or claude_desktop_config.json.
On Windows, if the agent cannot start npx, use "command": "cmd", "args": ["/c", "npx", "-y", "autoflow-agent"].
Then ask your agent something like "Check AutoFlow is connected, then queue these five prompts in portrait on Veo 3.1 Fast and run them."
3. The AutoFlow skill (optional, recommended)
The server already tells every agent the rules when it connects, and the autoflow_guide tool returns the full guide: what costs credits, making videos from a script, settings, characters, clips that continue each other, what to do when Flow refuses a prompt, and Studio plans.
For Claude Code, Codex and Antigravity, install it as a skill too, so the agent loads it whenever AutoFlow comes up:
npx -y autoflow-agent install-skill
It writes autoflow/SKILL.md into the skill folder of each of those agents found on the computer (~/.claude/skills, ~/.codex/skills, ~/.agents/skills, ~/.gemini/antigravity/skills). --all installs for every one of them, --dir <folder> into a folder you name; an existing skill called autoflow that is not this one is left alone unless you add --force. Run it again after an update. Restart the agent afterwards.
Tools