skip to content
donmai
donmai is in 0.x preview. APIs may change between minor releases. See the changelog.
docs · donmai documentation · rev 2026-07-18github.com/RenseiAI/donmai

Install

Install the donmai CLI on macOS, Linux, or build from source.

The donmai CLI ships as a single Go binary named donmai. It handles every operator task: running the local daemon, dispatching agents, querying Linear, and inspecting fleet health.

npm plugin channel status

The @donmai/* npm plugin channel is deprecated; no further packages will be published to the scope. Plugin tools (Linear and code intelligence) ship inside the donmai binary. The legacy @renseiai/agentfactory-* packages are deprecated; migrate to the binary's native subcommands.

Add the tap and install:

brew tap RenseiAI/homebrew-tap
brew install donmai

Verify the installation:

donmai --version

Set up the daemon (macOS)

The daemon registers as a launchd service with the label dev.donmai.daemon. Install it once and it survives reboots automatically:

# Register and start the daemon service
donmai daemon install

# Confirm it is running
donmai daemon status

# Stop the daemon
donmai daemon stop

# Pause / resume without stopping
donmai daemon pause
donmai daemon resume

The daemon reads its configuration from ~/.donmai/daemon.yaml. Run donmai daemon setup for an interactive first-time configuration wizard, or edit the file directly. See the configuration reference.

go install (requires Go 1.25 or later)

go install github.com/RenseiAI/donmai/cmd/donmai@latest

The binary is installed to $(go env GOPATH)/bin/donmai. Add that directory to your $PATH if it is not already present.

Pre-built release binaries

Binaries for macOS (arm64, amd64) and Linux (arm64, amd64) are attached to every GitHub release:

Example for macOS arm64, pinned to the current release. Replace 0.40.0 with the version you want to install (GoReleaser includes the version in the archive name; CI checks this pinned version against the latest GitHub release so the example cannot go stale):

curl -fsSL https://github.com/RenseiAI/donmai/releases/download/v0.40.0/donmai_0.40.0_darwin_arm64.tar.gz \
  | tar -xz -C /usr/local/bin donmai

See the releases page for all assets.

Build from source

git clone https://github.com/RenseiAI/donmai
cd donmai
make build        # produces bin/donmai

Move the binary onto your $PATH:

mv bin/donmai /usr/local/bin/

Full build instructions, including cross-compilation targets and release flags, are in the source repository.

Next steps

doc docs/getting-started/installrev 2026-07-18 · built 2026-07-18T15:34Z