lehuo Agents Docs

CLI command reference

One-page overview of every top-level lehuo Agents CLI command. For full usage, run `lehuo <command> --help`.

The lehuo Agents CLI mirrors almost everything the Web UI can do (create issues, assign agents, start the daemon, and more). This page lists every top-level command with a one-line description. For the full set of flags and examples, run lehuo <command> --help.

Getting authenticated

Run this the first time you use the CLI to obtain a personal access token (PAT):

lehuo login

Your browser opens automatically. After you approve in the web app, the CLI saves the PAT (prefixed with mul_) to ~/.lehuo/config.json. Every subsequent command authenticates with that PAT.

For CI or headless environments, skip the browser flow: create a PAT in the web app under Settings → Personal Access Tokens, then run lehuo login --token <mul_...> to supply it directly.

For the difference between token types, see Authentication and tokens.

Auth and setup

CommandPurpose
lehuo loginLog in and save a PAT
lehuo auth statusShow current login status, user, and workspace
lehuo auth logoutClear the local PAT
lehuo setup cloudOne-shot setup for lehuo Agents Cloud (login + install daemon)
lehuo setup self-hostOne-shot setup for a self-hosted backend

Workspaces and members

CommandPurpose
lehuo workspace listList every workspace you can access
lehuo workspace get <slug>Show details for one workspace
lehuo workspace member listList members of the current workspace
lehuo workspace update <id> --name "..." [--description "..."] [--context "..."] [--issue-prefix "..."]Update workspace metadata (admin/owner). Long fields accept --description-stdin / --context-stdin.

Issues and projects

list commands (lehuo issue list, autopilot list, project list, etc.) print short, copy-paste-ready IDs by default — issue keys like MUL-123 for issues, short UUID prefixes for the rest. The <id> argument on the follow-up commands below accepts either the short ID or the full UUID, so the typical flow is lehuo issue list → copy the key → lehuo issue get MUL-123. Pass --full-id to a list command when you need the canonical UUID.

CommandPurpose
lehuo issue listList issues (prints copy-paste-ready issue keys)
lehuo issue get <id>Show a single issue (accepts an issue key or a UUID)
lehuo issue create --title "..."Create a new issue
lehuo issue update <id> ...Update an issue (status, priority, assignee, etc.)
lehuo issue assign <id> --agent <slug>Assign to an agent (triggers a task immediately)
lehuo issue status <id> --set <status>Shortcut to change status
lehuo issue search <query>Keyword search
lehuo issue runs <id>Show agent runs on an issue
lehuo issue rerun <id>Re-enqueue a fresh task for the issue's current agent assignee
lehuo issue comment <id> ...Nested: view / post comments
lehuo issue subscriber <id> ...Nested: subscribe / unsubscribe
lehuo project list/get/create/update/delete/statusProject CRUD

Agents and skills

CommandPurpose
lehuo agent listList the workspace's agents
lehuo agent get <slug>Show an agent's configuration
lehuo agent create ...Create an agent
lehuo agent update <slug> ...Update an agent
lehuo agent archive <slug>Archive
lehuo agent restore <slug>Restore an archived agent
lehuo agent tasks <slug>Show an agent's task history
lehuo agent skills ...Nested: attach / detach skills
lehuo skill list/get/create/update/deleteSkill CRUD
lehuo skill import ...Import a skill from GitHub, ClawHub, or the local machine
lehuo skill files ...Nested: manage a skill's files

Squads

CommandPurpose
lehuo squad listList squads in the workspace
lehuo squad get <id>Show a single squad
lehuo squad create --name "..." --leader <agent>Create a squad (owner / admin)
lehuo squad update <id> ...Update name, description, instructions, leader, or avatar
lehuo squad delete <id>Archive (soft-delete) — transfers assigned issues to the leader
lehuo squad member list/add/remove <squad-id>Manage squad members
lehuo squad activity <issue-id> <action|no_action|failed> --reason "..."Used by squad leader agents to record an evaluation per turn

See Squads for the full model.

Autopilots

CommandPurpose
lehuo autopilot listList every autopilot in the workspace
lehuo autopilot get <id>Show a single autopilot
lehuo autopilot create ...Create an autopilot
lehuo autopilot update <id> ...Update
lehuo autopilot delete <id>Delete
lehuo autopilot runs <id>Show run history
lehuo autopilot trigger <id>Trigger a run manually

Daemon and runtimes

CommandPurpose
lehuo daemon startStart the daemon (background by default; add --foreground to run in the foreground)
lehuo daemon stopStop the daemon
lehuo daemon restartRestart the daemon
lehuo daemon statusCheck whether the daemon is online and its concurrency
lehuo daemon logsView daemon logs
lehuo runtime listList runtimes in the current workspace
lehuo runtime usageShow resource usage
lehuo runtime activityRecent activity log
lehuo runtime update <id> ...Update a runtime's configuration

Miscellaneous

CommandPurpose
lehuo repo checkout <url>Clone a repo locally for agents to use
lehuo configView or edit local CLI configuration
lehuo versionPrint the CLI version
lehuo updateUpgrade the CLI to the latest release
lehuo attachment download <id>Download an attachment from an issue or comment

Getting full flags

Every command supports --help:

lehuo issue create --help
lehuo agent update --help

v2 will ship a dedicated detailed reference page for each command.

Next steps