Skip to main content

Local agents

Run coding agents like Claude Code, Codex, Gemini, or OpenCode from Dart while the work happens on your machine

A local agent lets Dart send work to an AI coding tool running on your own computer, handy when you want to assign work from Dart while keeping the coding session close to your local repository, credentials, and environment. For example, you can assign a task to your local Claude Code or Codex instance.

local agent sample

Before you start

Install and log in to the Dart CLI (pip install dart-tools, then dart login), and make sure the local coding tool you want is installed. Dart currently supports Claude Code, Codex, Gemini, and OpenCode.

Create and connect

  1. Open Agents, then create or open a custom agent.

  2. Choose Local and pick the tool that should run the work.

  3. Copy the dart agent-connect <agent_id> command and run it in a terminal on the machine where the agent should work.

  4. When connected, Dart shows the agent as Connected. Keep the process running to accept work.

You can also run the connection in the background (--background), list connections (dart agent-connections), and disconnect (dart agent-disconnect <agent_id>).

Send work to it

Once connected, assign a task to the local agent, mention it in a comment, or chat with it. Dart routes the work to the connected terminal session and the response appears back where it started.

Did this answer your question?