Butler Agent CLI
Install the headless runtime without the app and manage it from the command line.
On this page
Butler Agent CLI is a command-line tool that installs and runs the Butler runtime without the desktop app. Install it with the install script or the standalone Agent archive. Its commands start and stop the service, check the installation, manage models and settings, and run the MCP server.
Supported platforms
- Apple silicon Mac (
darwin-arm64), Windows x64 and Linux x64 and arm64 (glibc) are supported. - Intel Macs and musl-based Linux such as Alpine do not run it.
- You need a release that publishes the native Agent archive (
butler-agent-<version>-<platform>.tar.gz, or.zipon Windows).
Install
To use Butler without the app, for example on a server or a remote computer, run the one-line install script. Butler is in preview, so download the script from a preview release and pass the same version with --version. Replace <version> with the newest preview on GitHub Releases, such as 0.1.0-preview.14.
curl -fsSL https://github.com/Hexpy-Games/butler/releases/download/v<version>/install.sh | sh -s -- --version <version>In PowerShell on Windows x64. Replace <version> with the newest preview, such as 0.1.0-preview.14.
$env:BUTLER_VERSION='<version>'; irm https://github.com/Hexpy-Games/butler/releases/download/v<version>/install.ps1 | iexcurl -fsSL https://github.com/Hexpy-Games/butler/releases/download/v<version>/install.sh | sh -s -- --version <version>The install script works in this order.
- It checks the operating system and CPU, then downloads the archive and
butler-<version>-SHA256SUMSfor the latest release (or the version you specify). - It verifies the checksum, then extracts the archive into a new version folder. The existing installation does not change until verification finishes.
- It points the
currentlink to the new version and creates the~/.local/bin/butlerexecutable. - It checks the installation with
butler doctor --check installation, then starts Butler.
It is safe to run the same command again. A version that is already installed is not extracted again, and the data folder is not touched. If Butler is already running, apply the new version with butler restart.
Add options after sh -s --.
curl -fsSL https://github.com/Hexpy-Games/butler/releases/download/v<version>/install.sh | sh -s -- --version <version> --no-start| Option | Description |
|---|---|
--version X.Y.Z |
Installs this version instead of the latest release. You can also set it with the BUTLER_VERSION environment variable. |
--no-start |
Installs Butler without starting it. |
--modify-path |
Adds ~/.local/bin to your shell configuration file when it is not in PATH. Without this option, the script only shows the line to add. |
Change the install folder with BUTLER_AGENT_HOME and the location of the butler executable with BUTLER_BIN_DIR. Both values must be absolute paths. The script does not run as root (set BUTLER_ALLOW_ROOT=1 to allow it), and it stops if ~/.local/bin/butler is a file other than Butler’s executable. An older, pre-native executable is moved to butler.previous.
Install locations
| Item | macOS | Windows | Linux |
|---|---|---|---|
| Install folder | ~/Applications/ButlerAgent |
%LOCALAPPDATA%\Butler\agent |
~/.local/share/butler/agent |
butler command |
~/.local/bin/butler |
%LOCALAPPDATA%\Butler\bin\butler.exe |
~/.local/bin/butler |
Inside the install folder, each version gets a <version>-<8-character hash> folder. current points to the version in use and previous to the one before it. Only the 3 most recent old versions are kept (the version in use, the previous version and the running version are always kept), and butler update or butler install removes the rest. Data is stored in the data folder (default ~/.butler), outside the install folder. The desktop app and the CLI use the same install layout.
Manual install
If you cannot use the install script, extract the archive yourself. The archive is an install package that you extract into a new folder for each version.
Use a darwin-arm64 archive and the Bash steps below.
On Windows, use the install script above. It downloads butler-agent-<version>-windows-x64.zip.
Use a linux-x64 or linux-arm64 archive and the Bash steps below.
- On GitHub Releases, find a version that has the native Agent archive.
- Save the script below to a file (for example,
install-butler-agent.sh) and changeVERSION,RELEASEandPLATFORM. - Run it with
bash install-butler-agent.sh. It downloads the archive andbutler-<release>-SHA256SUMS, verifies the checksum, then extracts the archive into a new version folder. - The installation is complete when the final
versionanddoctorcommands finish without errors.
set -euo pipefail
VERSION=<version> # The exact release version, including the preview suffix, such as 0.1.0-preview.14.
RELEASE="$VERSION" # The release tag without v.
PLATFORM=darwin-arm64 # One of darwin-arm64, linux-x64 or linux-arm64.
ARCHIVE="butler-agent-${VERSION}-${PLATFORM}.tar.gz"
RELEASE_URL="https://github.com/Hexpy-Games/butler/releases/download/v${RELEASE}"
DOWNLOAD_DIR="$HOME/Downloads/butler-agent-${VERSION}"
INSTALL_ROOT="$HOME/.local/opt/butler-agent"
INSTALL_DIR="$INSTALL_ROOT/$VERSION"
export BUTLER_DATA="${BUTLER_DATA:-$HOME/.butler}"
mkdir -p "$DOWNLOAD_DIR" "$INSTALL_ROOT" "$BUTLER_DATA"
cd "$DOWNLOAD_DIR"
curl -fL --retry 3 -o "$ARCHIVE" "$RELEASE_URL/$ARCHIVE"
SUMS="butler-${RELEASE}-SHA256SUMS"
curl -fL --retry 3 -o "$SUMS" "$RELEASE_URL/$SUMS"
EXPECTED_SHA256="$(awk -v name="$ARCHIVE" '$2 == name { print $1 }' "$SUMS")"
test "${#EXPECTED_SHA256}" -eq 64
printf '%s %s\n' "$EXPECTED_SHA256" "$ARCHIVE" | shasum -a 256 -c -
if [ -e "$INSTALL_DIR" ]; then
printf 'Installation already exists; choose a new version directory: %s\n' "$INSTALL_DIR" >&2
exit 1
fi
mkdir "$INSTALL_DIR"
tar -xzf "$ARCHIVE" -C "$INSTALL_DIR"
"$INSTALL_DIR/butler" --data "$BUTLER_DATA" version --json
"$INSTALL_DIR/butler" --data "$BUTLER_DATA" doctor --check installation --jsonThe archive contains these files.
butler-agent: The executable.butler: A link tobutler-agent. The commands on this page usebutler.resources/: The resources needed to run.native-agent-manifest.json: The install manifest, with the version and SHA-256 information.
After a manual install, add the install folder to PATH so you can run butler without the full path. Put the line in your shell configuration file (such as ~/.zshrc) to apply it in new terminals too.
export PATH="$HOME/.local/opt/butler-agent/X.Y.Z:$PATH"
butler versionCommands
Run butler --help or butler help schedule for help in Korean and English. butler --version or -V shows the release version and build ID without a service or a data folder.
| Command | Purpose |
|---|---|
install --from ARCHIVE|URL |
Installs a downloaded archive. For a first install, use the install script above. |
start, stop, restart |
Starts, stops or restarts the service. |
remote status, remote enable, remote disable, remote pair, remote devices, remote hosts add|remove HOST |
Manage remote access |
status, open, doctor [--check NAME], doctor --collect-logs |
Check status, open the browser, check the installation |
update --check, update --apply --yes |
Check for and install updates |
rollback, uninstall --yes |
Restore the previous version, uninstall |
startup enable|disable|status |
Manage start at login |
auth login|logout|status |
Manage model account connections |
model list|status|set MODEL |
View and choose models |
logs [--service NAME] [--lines N] [--follow] |
Service logs |
schedule list|show|create|update|run|delete |
Manage schedules |
mcp list|add|enable|disable|delete|test |
Manage MCP server connections |
skills list, skills import PATH |
List and import skills |
config get KEY, config set KEY VALUE |
Read and change settings |
folder show, folder set PATH |
Show and select the project folder |
--version, -V |
Shows the release version and build ID. |
help, version |
Help, version |
Schedules run while the service is running. For the options of schedule create and update, see butler help schedule. schedule list --status STATUS filters by status, and --include-deleted also shows deleted schedules.
butler startup enable
butler auth login
butler model list
butler model set openai/gpt-6-luna
butler schedule list
butler mcp add --id docs --transport http --url https://example.com/mcp
butler skills import ./skill.zip
butler config set system.defaultModel openai/gpt-6-lunaManage personalization and memory in the app. The CLI has no maintenance commands that edit the conversation, personalization or memory databases directly.
Headless / WSL / server
In a terminal on the computer that runs the service, turn on remote access, then pair a device. Remote access is off by default.
butler start
butler remote enable
butler remote pairOn another computer, open http://HOST:PORT and enter the 8-digit code that remote pair shows. HOST is the address that reaches the server or WSL, and PORT is the port of the LAN URL that remote enable prints. A code works once, within 60 seconds, and is printed only in the local terminal. Keep the code private and do not save it in logs.
butler remote status --json
butler remote devices # List paired devices
butler remote devices --revoke DEVICE_ID # Revoke one device
butler remote devices --revoke-all # Revoke every device
butler remote hosts add 192.0.2.10
butler remote hosts remove 192.0.2.10
butler remote disableIf WSL port forwarding or a proxy presents a different host, add that name or IP to allowedHosts. For example, if you forward through the Windows host IP, run butler remote hosts add WINDOWS_IP. Set up port forwarding and the firewall separately. If the service is off, the commands tell you to run butler start and do not start it for you.
remote status shows whether remote access is on, the bind addresses, LAN URLs, bind errors for each address and allowed hosts. It does not show a code. remote pair runs until a device pairs or you press Ctrl-C, and issues a new code when the code expires. A device revoked with remote devices has to pair again. remote code --rotate and remote code --json no longer work. For the pairing steps, see Remote access.
Currently butler config get app.port cannot read the App port. The setting is config.port in gateways/app.json in the data folder, and a change applies after a restart. Stop the running service before you edit the configuration file.
user.responseLanguage sets the reply language (ko or en) separately from the interface language. update.previews controls preview updates (true or false), defaulting to false. The app and CLI share it when they use the same data folder. Check the preference with status.
butler config get user.responseLanguage
butler config set user.responseLanguage ko
butler config set update.previews true
butler statusBackground browser runs when the App is not attached. It uses the installed App’s Electron, then Chrome for Testing if the App is absent or cannot start. config.headlessBrowser in gateways/app.json controls only the Chrome fallback (default true). BUTLER_BROWSER_HEADLESS=on|off overrides it; restart the agent after changes.
Data and updates
Data is stored in BUTLER_DATA (default ~/.butler). To use another folder, add --data PATH. The install folder and the data folder cannot overlap.
butler update --check
butler update --apply --yes
butler rollback --yesAn update installs the new version in a separate folder and restarts the running service. rollback returns to the previous version. uninstall --keep-data --yes removes only the installation, and --purge-data also deletes the data.
Project folder
butler folder show
butler folder set /srv/projectsSelect the folder Butler works in, separately from --data / BUTLER_DATA. Explicit selection grants the same consent as the App folder picker. The folder must exist, be a readable directory, and be outside DATA and protected home/system folders. Symlinks are resolved. A running gateway applies it to the next turn; a stopped service saves the same App database preference. Existing spaces keep their selected folders. --data PATH and --json are supported.