Skip to content

Conductor commands ​

bakers conductor is the node agent: it registers this machine's conductor for a project checkout, claims tickets and runs agents on them, using the checkout's existing configuration. bakers oven is a hidden alias of it.

This page is the command reference. What a cycle does and how to run several conductors is in Conductors; the config file is in Project configuration.

Synopsis ​

bakers [--conductor <name>] conductor [--log-level <level>] [--log-sink <sink>] <subcommand>

Every subcommand except ls works on the conductor of the checkout you stand in, found by walking up from the working directory to a .bakers/ directory that holds a project config. start, once and clean need a signed-in connection and stop with a pointer to bakers auth login when there is none.

Global flags ​

FlagWhereEffect
--conductor <name>before conductorSelect a project config by file stem: conductor is project.config.js, anything else project.<name>.config.js. Environment: $BAKERS_CONDUCTOR; the flag wins.
--log-level <level>after conductordebug, info (default), warn or error. Environment: BAKERS_LOG_LEVEL. debug shows per-poll ticks, claims and idle cycles.
--log-sink <sink>after conductorstdout, file or both. Default both on a terminal, file otherwise. file and both write .bakers/log.txt in the checkout. A detached start always logs to the file. Environment: BAKERS_CONDUCTOR_LOG.

With no --conductor, the default is project.config.js; if that file is absent and exactly one config exists it is used, and with several you must choose or the command lists the stems and stops.

sh
bakers conductor --log-level debug start --foreground
bakers conductor --log-level debug once
BAKERS_LOG_LEVEL=debug bakers conductor once

Subcommands ​

SubcommandOptionsWhat it does
start--foreground, --no-update-check, --force, --adopt <uuid>, --new, --dry-runStart the conductor loop
oncenoneRun one conductor cycle, then exit
checknonePrint the server, executor and worktree, each as the package a use descriptor named (the addon id for one found in addons) with where it came from (slot, addons, machine, connection, default), then check that every enabled agent can start its sandbox
statusnoneOne line for this checkout's conductor
lsnoneOne line per conductor the control plane holds for you
stop--nowStop the conductor: graceful by default, hard kill with --now
cleannoneTear down herdr worktrees of finished tickets that were never cleaned up
tools[name], --data <json|@file>, --schemaList or call the conductor's addon tools from inside a run

start ​

By default start launches the loop as a detached background process: it has its own session and no terminal, so closing the starting shell does not end it, and its output goes to .bakers/log.txt in the checkout. start then waits until the control plane shows a fresh heartbeat from the new process. It ends with exactly one of three outcomes: started (naming the pid and host), already running (the live pid and the age of its heartbeat) or failed (the reason and the log file, with a non-zero exit status). The detached process does not survive a logout that ends all user processes or a reboot; for that, run bakers conductor start --foreground under a service manager such as systemd or Docker.

  • --foreground runs the loop in this process instead. It refuses to start while a verified live conductor already serves the checkout. Every foreground start, and every CI or non-TTY start, prints an update notice only and never prompts. It restarts itself in place when a loaded config or addon build changes; see Restart on change.
  • --dry-run loads what a start would load (the config with its project, the executor, the worktree and the agents) and exits before registering: 0 when everything loads, 1 with the error on stderr. The self-restart uses it to check a changed config.
  • --no-update-check skips the lookup, cache, prompt and notice; the version banner still prints.
  • When the control plane does not know this conductor's id yet but this machine, project and variant already have a conductor under another id (for example from before the upgrade), start asks once in a terminal whether to take it over, or which one when there are several; it keeps its tickets and runs. Without a terminal it stops and names --adopt <uuid> (take it over) and --new (register another conductor); the two cannot be combined.
  • --force turns "already running" into a restart: a verified SIGTERM, a grace period, then SIGKILL, then the normal start. It fails rather than starting a second conductor when the running one cannot be verified or stopped.

An interactive plain start (TTY stdin and stdout, empty CI, no --foreground) offers to install a newer release and migrate configuration before any lifecycle work. After the install and migration the start continues on the new release. The procedure, decline window and failure behaviour are in Update bakers.build.

A start on a machine where an enabled agent cannot start its sandbox prints warning: sandbox unavailable: <agent>: <cause> — <fix> and still starts; the loop then claims nothing until the cause is fixed (see check).

Restart on change ​

A running conductor restarts itself when a file it loaded changes: project.config.js (or its variant), ~/.bakers/machine.config.js, ~/.bakers/.bakers.env, and the build directory of each configured addon (pnpm build counts). After 2 quiet seconds it checks the config with bakers conductor start --dry-run. A .bakers.env change alone skips the check, or waits for a pending upgrade. A file changed during start-up or restart counts, unless copied with an older time stamp; an addon build does not.

  • the check passes: the log shows config check passed; restarting conductor. The loop stops claiming, drains its queue and stops its tools as on SIGTERM, writes no offline, and replaces itself in place: same pid and log. Running agent sessions keep going and are adopted again.
  • the check fails: the log shows config check failed; keeping the running conductor with the error, and the next change checks again.

Set restart_on_change: false in project.config.js to switch it off. It needs Node 22.15 or later (process.execve); on an older Node the conductor logs one warning and does not watch. Rebuilding addons from source is not part of it.

Restart after an upgrade ​

A running conductor rereads the installed CLI version on every poll. When two polls in a row read the same new version, it runs bakers config upgrade --scope all --yes with the new release, then the config check, then restarts in place as above. The log shows CLI version changed <old> → <new>, then config check passed; restarting conductor.

A failed step is logged as config upgrade failed or config check failed with the error and the recovery commands (config upgrade --scope all --yes, then oven start --force); the conductor stays on the old release until a newer one appears or .bakers.env is written. With restart_on_change: false, or on Node older than 22.15, it only logs the restart command.

check ​

check prints one line per enabled agent: <agent>: sandbox ok, or sandbox unavailable: <agent>: <cause> — <fix> (see https://bakers.build/security/execution#sandbox-prerequisites). It exits 1 when one agent cannot start its sandbox and needs no sign-in. While that is so, every cycle logs claims withheld: sandbox unavailable: … and claims nothing. Prerequisites per platform: Sandbox prerequisites.

once and clean ​

once registers the conductor, runs a single claim-and-run cycle and exits, which is the tool for diagnosing a conductor that seems idle. clean recovers worktrees that a live cycle missed, for example when the conductor was down at done, restarted, or the ticket was reassigned.

stop ​

stop sends SIGTERM to the pid recorded on the control plane once verified as this host and user's conductor (Linux and macOS only); the exiting conductor writes its own offline status. --now sends SIGKILL; a killed process writes nothing, so the status follows at lease expiry. A conductor on another machine cannot be stopped. Another record naming the same checkout is reported and left untouched.

status and ls ​

Both print tab-separated columns, status only for this checkout's conductor and ls for every conductor you own, on any machine:

<label>	<liveness>	<project>	<workspace_root>	<conductor_id>

Liveness is derived, and uses the same three words as the cockpit and the control plane: online (heartbeating within its lease), stale (registered as online, but the heartbeat is older than 600 seconds or the lease has lapsed, which is what a crash looks like) and offline (shut down cleanly). For a conductor on this host whose recorded process no longer exists, the listing reports offline. With no conductors, the output is no conductors on the control plane. The bakers conductor ls --help text says "on this machine"; the listing is not limited to it.

tools ​

tools is the shell route to the conductor's addon tools for agents that load no MCP server for them; inside a run, bakers tools takes the same route. It needs no project config or connection: it reads BAKERS_CONDUCTOR_URL and BAKERS_CONDUCTOR_TOKEN from the run environment.

  • bakers conductor tools lists name<TAB>description.
  • bakers conductor tools <name> --schema prints the tool's input schema.
  • bakers conductor tools <name> --data '<json>' (or --data @<file>) calls it for the run's worktree and prints its result.
ExitMeaning
0success
1the tool reported an error
3run token rejected
4no conductor tools in this shell, unknown tool or invalid --data; nothing called
5HTTP or protocol error

Environment ​

VariableEffect
BAKERS_CONDUCTORDefault for --conductor
BAKERS_CONDUCTOR_CONFIGExplicit project config path; wins over discovery
BAKERS_LOG_LEVELDefault for --log-level
BAKERS_CONDUCTOR_LOGDefault for --log-sink

Scoped setup is done by bakers config and bakers init; conductor init no longer exists.