后台运行与自启动
nextclaw start 可以让 NextClaw 跑起来,但它不等于系统级长期托管。
这一页讲什么时候需要后台运行和自启动,以及 NPM 安装版应该怎样显式开启。
什么时候需要它
你进入这些场景时,就应该考虑自启动:
- 每天都使用 NextClaw
- 希望登录后自动可用
- 不想每次重启机器后手动启动
- 已经接入聊天渠道或自动化任务
NPM 安装不会自动注册自启动
bash
npm i -g nextclaw这条命令只安装 CLI。它不会偷偷修改系统启动项。
如果需要自启动,你必须显式安装宿主托管项。
按平台开启
Linux 用户级:
bash
nextclaw service install-systemd --userLinux 系统级:
bash
sudo nextclaw service install-systemd --systemmacOS:
bash
nextclaw service install-launch-agentWindows:
bash
nextclaw service install-task检查状态
bash
nextclaw service autostart status
nextclaw service autostart doctor什么时候不用自启动
如果你只是试用,或者只在本机 UI 偶尔打开,nextclaw start 就够了。