---
url: 'https://docs.flimra.ai/guides/ai-assistant.md'
description: >-
  Connect Claude Code, Codex or Cursor to Flimra, have it build a project from a
  brief, keep every paid call in your hands, and do the same from the in-app
  chat.
---

# Work with an AI assistant

Priya produces explainer videos and lives in Claude Code. A client has sent a one-page brief for a 30-second spot: three scenes, two characters, a warm illustrated look. She wants the project set up, the characters designed and a first board drawn before her call with the director, without clicking through it herself. So she connects Claude Code to Flimra and asks it to do the job, step by step, while she watches Flimra fill up and says yes to anything that costs money.

The same works with Claude Desktop, Codex, Cursor and any other assistant that speaks MCP, and, without any setup, with the chat built into Flimra.

## Before you start

* Flimra is running on the same Mac as the assistant. The connection is local to this Mac: web-only assistants that need a public address (custom connectors on claude.ai, the ChatGPT chat) cannot reach it.
* You are signed in with a plan and credits. Generation and planning are paid in your credits, whichever assistant asks for them.
* Decide how spending should be confirmed (step 2 below) before you hand over a big job.

## Step by step

### 1. Connect the assistant, once

1. In Flimra, open **Account → Connections** (⌘,) and find the card **Claude and other assistants**. It says *Server on* when the MCP server is running.
2. Click **Add** on the row for **Claude Desktop**, **Claude Code** or **Codex**. Claude Desktop asks to install Flimra's extension; Claude Code and Codex are registered for your user. Each row then says Flimra is added.
3. For Cursor or another assistant, point it at the address shown on the card (Streamable HTTP) with the token from the file named on [Drive Flimra over MCP](/agents/mcp#cursor-and-other-assistants).
4. Start a new session in the assistant. In Claude Code, `/mcp` lists *flimra*.

The connection survives restarts and updates; you do this once per Mac.

### 2. Choose how paid calls are confirmed

A call from an assistant shows no card in Flimra. What happens with a paid call depends on one switch: **Account → Plan & credits → Spending → Ask before every paid run**. It holds for your workspace on this Mac.

* **On (recommended for assistants).** A paid call does not run. Flimra answers with the price, the most it can cost (an estimate for planning work), and what it is. A well-behaved assistant tells you; when you agree, it calls again with that same price, and only then does the job run. If the job changed in between and the price is different, it asks again.
* **Off.** Paid calls run at once at the price the server sets, and the result says what they cost. The only gate left is your assistant's own permission prompt before it calls a tool, so do not set it to allow every Flimra tool without asking.

Either way, you are never charged more than the price quoted, a failed job costs nothing, and a call your balance cannot cover is refused before anything starts. Calls that change your Resolve or Premiere project run at once over MCP, whatever the switch says, so make sure your assistant asks you before it sends anything to your edit.

### 3. Hand it the brief

Give the assistant the file and the job in one message, and ask for a plan before any spending:

> Start a new Flimra project called *Spring spot* from ~/Briefs/spring-spot.pdf. Read it, tell me the scenes and characters you see, and wait for my go before you generate anything.

Behind the scenes the assistant calls `new_project` (or `glance_at` to look at the file first), and then `status` and `list_story` to see where things stand. Everything it does appears in Flimra's chat panel as a tool line marked *· MCP*, so you can follow along in the app.

### 4. Let it build, a step at a time

Then the work, in the order Flimra itself would do it:

1. **The look.** "Set the visual style to warm gouache illustration, soft paper texture." (`set_film_properties`)
2. **The cast.** "Make a bin for each character with the Character properties and draw a character sheet of each, two takes on Nano Banana Pro." It reads Flimra's own skill for the job (`get_skill`), makes bins (`new_bin`, `add_property_pack`), writes the prompts (`write_prompt`), and draws (`draw_takes`). With the switch on, you see the price in the assistant and say yes.
3. **Check the result.** "Look at both sheets and tell me if the faces match the brief." `look_at` hands the assistant the pictures themselves.
4. **The board.** "Board the brief on a new timeline, stills only." Planning work comes back with an estimate first.
5. **Waiting.** Generation takes minutes. The assistant waits with `wait_for_activity`. If your assistant gives up sooner, raise its tool timeout (in Claude Code, `MCP_TOOL_TIMEOUT`).

### 5. Review in Flimra

Switch to Flimra any time: the bins, gens and their versions are already there. Pick a different version with ☆, rewrite a prompt by hand, or move things around; the assistant sees your changes the next time it asks for `status` or the library.

## Good prompts for an assistant

* **Ask for the plan, then the spend.** "Tell me what you will make and roughly what it costs before you start" keeps you in control even with the switch off.
* **Name things by their ids** when you can: *gen012*, *gen012.v03*, *bin004*, *tl001*. Ids never change; names can.
* **Say the model and the count** ("two takes on Seedance 2.5 Flash at 480p") so it does not choose an expensive one for a draft.
* **Have it look.** "Look at the result before you move on" catches a wrong face or a stray logo early.
* **Point it at the skills.** For a 3D blocking or a prompt it writes itself, tell it to read Flimra's skill first ("read the blocking-shot skill"). Flimra reminds it too.
* **Give pictures as paths or library ids.** An assistant over MCP does not see files you dropped into Flimra's own chat.

## What it can and cannot do

It can do everything you can click: the same tools, under the same names, as Flimra's chat ([Chat and MCP tools](/reference/chat-tools)). It cannot accept the terms of service for you, cannot pay at checkout (it can open the page; you pay in your browser), and cannot reach Flimra from another computer. Tool calls from an assistant are not billed by themselves; only the generation and planning tools they run are, as their price says.

## The same job in Flimra's own chat

The chat in Flimra's left column (⌘L) does all of this with no setup. Paste the brief's path or drop the file on the chat and type the same requests. The differences:

* **Every paid step shows a card** with its price and **Confirm**, whatever the **Ask before every paid run** switch says. **Allow in this chat** lets the rest of the conversation spend up to a total you pick without cards.
* **Planning work shows an estimate first**, and changes to your NLE wait for a card.
* **Stop** (or **Esc**) ends its turn at once.
* The chat's own steps are billed in credits by what its model uses.

See [The chat](/agents/chat).

## If something goes wrong

* **The assistant cannot see Flimra's tools.** Open Flimra and start a new session in the assistant; in Claude Code, reconnect *flimra* in `/mcp`.
* **"Not allowed" (403).** The token is missing or wrong: click **Add** again, or copy the token again from its file.
* **"Flimra is not running on this Mac, or its MCP server is not on port …"** Open Flimra, or make the port the same in both places. The port is set on the **Claude and other assistants** card in Account → Connections.
* **The card says the port is taken.** Another program holds it; choose another port and click **Add** again.
* **A call says it needs confirmation.** That is the switch at work: tell the assistant yes (or no). It must call again with the same price.
* **A paid call is refused for credits.** Buy more in Account → Plan & credits, then ask again.
* **The assistant times out while a video is made.** The job keeps running in Flimra's activity panel; ask the assistant to wait for it again.

## From the chat

Over MCP and in the in-app chat alike: `status`, `glance_at`, `new_project`, `list_story`, `list_library`, `set_film_properties`, `new_bin`, `add_property_pack`, `get_skill`, `write_prompt`, `new_gen`, `run_gen`, `run_gens`, `draw_takes`, `look_at`, `list_activity`, `wait_for_activity`, `pick_version` and `set_ask_before_spending`. Connecting an assistant from the chat: `add_to_claude_code`, `add_to_codex`, `install_claude_extension`, `set_mcp_server`.

## Related

* [Drive Flimra over MCP](/agents/mcp)
* [The chat](/agents/chat)
* [Chat and MCP tools](/reference/chat-tools)
* [Account, plan and credits](/projects/account)
* [Plan a camera move in 3D](/guides/camera-move)
