> ## Documentation index
> Fetch the complete documentation index at: https://docs.manyfold.ai/zh/llms.txt
> Use this file to discover all available pages before exploring further.

# mf daemon

> Local daemon for Manyfold agents (claude-code / codex / gemini-cli)

Source: https://docs.manyfold.ai/zh/docs/cli/reference/daemon/

**用法:** `mf daemon [command]`

**Option**

| Option | 用途 |
| --- | --- |
| `-h, --help` | display help for command |

**Subcommand**

| 命令 | 用途 |
| --- | --- |
| [`mf daemon register`](#mf-daemon-register) | Register this machine as a Manyfold local daemon |
| [`mf daemon start`](#mf-daemon-start) | Start the Manyfold daemon (installs init unit so it auto-starts on login) |
| [`mf daemon status`](#mf-daemon-status) | Show local daemon status |
| [`mf daemon stop`](#mf-daemon-stop) | Stop the Manyfold daemon and remove its autostart unit |
| [`mf daemon logs`](#mf-daemon-logs) | Tail the daemon log |
| [`mf daemon doctor`](#mf-daemon-doctor) | Probe local frameworks and daemon terminal support |

## `mf daemon register`

Register this machine as a Manyfold local daemon

**用法:** `mf daemon register [options]`

**Option**

| Option | 用途 |
| --- | --- |
| `--token <token>` | PAT issued from the web UI ("-" reads stdin; direct values may appear in shell history and process lists) |
| `--name <name>` | human-readable machine name |
| `--workspace-root <path>` | workspace base dir this daemon manages (default: the shared ~/.manyfold/workspaces) |
| `--skills-dir <path>` | skill store dir this daemon manages (default: the shared ~/.manyfold/skills) |
| `-y, --yes` | skip confirmation and start the daemon after registering |
| `-h, --help` | display help for command |

## `mf daemon start`

Start the Manyfold daemon (installs init unit so it auto-starts on login)

**用法:** `mf daemon start [options]`

**Option**

| Option | 用途 |
| --- | --- |
| `--foreground` | run inline without touching the init unit (debug / used by the unit itself) |
| `--system` | install at system scope (boot-time; needs root/sudo; default as root) |
| `--user` | install at user scope (per-login; default as non-root) |
| `-h, --help` | display help for command |

## `mf daemon status`

Show local daemon status

**用法:** `mf daemon status [options]`

**Option**

| Option | 用途 |
| --- | --- |
| `--json` | output the result as JSON |
| `-h, --help` | display help for command |

## `mf daemon stop`

Stop the Manyfold daemon and remove its autostart unit

**用法:** `mf daemon stop [options]`

**Option**

| Option | 用途 |
| --- | --- |
| `--system` | target system scope (boot-time unit; needs root/sudo; default as root) |
| `--user` | target user scope (per-login unit; default as non-root) |
| `-h, --help` | display help for command |

## `mf daemon logs`

Tail the daemon log

**用法:** `mf daemon logs [options]`

**Option**

| Option | 用途 |
| --- | --- |
| `-f, --follow` | follow log output |
| `-n, --lines <count>` | number of lines to show 默认值: `50`. |
| `-h, --help` | display help for command |

## `mf daemon doctor`

Probe local frameworks and daemon terminal support

**用法:** `mf daemon doctor [options]`

**Option**

| Option | 用途 |
| --- | --- |
| `--json` | output the result as JSON |
| `-h, --help` | display help for command |
