Skip to Content
CLI reference

CLI reference

Use agent-farm help to see the commands supported by your installed version. Add a command name for its flags and examples:

agent-farm help run

Setup and discovery

CommandPurpose
agent-farm initCheck prerequisites, install defaults, and walk through setup.
agent-farm init --fullDisplay the setup content together.
agent-farmOpen the interactive profile picker and configuration flow.
agent-farm profiles listList profiles with resolved agents, harnesses, and models.
agent-farm doctorCheck prerequisites, configuration, profiles, workspaces, and skills.
agent-farm help [COMMAND]Show the command reference.

Launch a profile

agent-farm run NAME [options]
FlagValueBehavior
--directoryRepository pathWork in this directory; defaults to the current directory.
--workspaceWorkspace nameAdd the workspace’s project connections.
--messageQuoted textSupply an initial task.
--execBooleanExecute headlessly.
--buildBooleanGenerate a bundle and print its path.
--explainBooleanPrint the resolved launch command as JSON.
--config-rootLibrary pathUse a configuration library; defaults to ~/.config/agent-farm.

--build and --explain are preparation modes. Use the plain command to launch a session.

agent-farm run planner --directory ~/repos/my-app agent-farm run implementer --workspace my-project --message "Fix the failing tests" agent-farm run planner --workspace my-project --explain

Headless execution

agent-farm run implementer --exec \ --message "Fix the failing tests"

The native harness runs the task. Review launch permissions before automation.

Inspect a setup

agent-farm inspect NAME --workspace WORKSPACE

The JSON result includes the resolved graph, model settings, skills, children, configured endpoints, and source paths. Use the native MCP view to verify a live connection.

Manage global skills

agent-farm set global PROFILE --harness claude agent-farm status global --harness claude agent-farm unset global PROFILE --harness claude

These commands manage top-level skill links. Use codex to target Codex instead. See Skills.

Manage a global workspace

agent-farm set global --workspace my-project --harness codex agent-farm status global agent-farm unset global --workspace my-project --harness codex

See Workspaces for ownership and session behavior.

Authenticate a remote connection

agent-farm mcp login CONNECTION --workspace WORKSPACE --harness claude

Use the matching connection name from your workspace. Authenticate separately for each harness you use.

Manage plugins

agent-farm plugin install agent-farm plugin validate /path/to/config agent-farm plugin install /path/to/config

Source: Command definitions . Consult your installed CLI’s help when versions differ.

Last updated on