首页openclaw插件 › Grinder's Farm — 插件工具

代码插件 安全

Grinder's Farm — 插件工具

v0.3.3

The plugin's code, instructions, and required actions are consistent with a local OpenClaw wrapper around the grinders-farm CLI: it runs the game CLI, writes local state under your home directory, and can start detached worker/image-server processes — nothing in the package appears to be doing unrelated or disproportionate work.

0· 3·0 当前
下载插件包 项目主页
最后更新
2026/4/4
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
The plugin's code, instructions, and required actions are consistent with a local OpenClaw wrapper around the grinders-farm CLI: it runs the game CLI, writes local state under your home directory, and can start detached worker/image-server processes — nothing in the package appears to be doing unrelated or disproportionate work.
安全有层次,运行前请审查代码。

版本

latestv0.3.32026/4/4
● 无害

安装命令 点击复制

官方npx clawhub@latest install openclaw-plugin-grinders-farm
镜像加速npx clawhub@latest install openclaw-plugin-grinders-farm --registry https://cn.clawhub-mirror.com

插件文档

openclaw-plugin-grinders-farm

Languages: English · 中文

OpenClaw plugin for Grinder's Farm: /farm command, grinders_farm tool, local save, and multi-channel push.

Farm preview
Farm preview

English

Before you install this plugin

    • Install Node.js (with npm).
    • Install the game package first — the plugin runs the game CLI under the hood:
npm install -g grinders-farm
    • Ensure OpenClaw is installed and you can run openclaw in a terminal.

Without grinders-farm, slash commands and the tool will fail.

After install, use /farm ... in chat to play, and enable auto-advance with push.

Install the plugin

openclaw plugins install openclaw-plugin-grinders-farm --dangerously-force-unsafe-install

Then restart the OpenClaw Gateway and confirm openclaw plugins inspect grinders-farm shows Status: loaded.

Verify:

openclaw plugins inspect grinders-farm

Recommended flow

    • In each target channel, send once:
/farm farm
    • Start auto-advance:
/farm start
    • Stop:
/farm stop

Notes:

    • start advances one in-game day every 20 minutes
    • Pushes go to all bound channels (channels that sent /farm ... at least once)

Configuration

In OpenClaw plugin config:

    • autoStartWorkerOnGatewayBoot — auto-start worker when Gateway boots
    • imageServerPort — local farm PNG HTTP port
    • gameRoot — manual repo root if auto-detection fails

Minimal example:

{
  "plugins": {
    "entries": {
      "grinders-farm": {
        "enabled": true,
        "source": "openclaw-plugin-grinders-farm",
        "config": {
          "autoStartWorkerOnGatewayBoot": true
        }
      }
    }
  }
}

Troubleshooting

Command not available after install

openclaw plugins inspect grinders-farm

If not loaded, restart Gateway.

Installed plugin but still errors about grinders-farm

Install the CLI: npm install -g grinders-farm, then restart Gateway.

Push missing for a channel

Run /farm farm in that channel once to bind, then /farm start.

Cannot find grinders-farm binary

Set env and restart Gateway:

    • GRINDERS_FARM_ROOT
    • GRINDERS_FARM_CLI_BIN

中文

Grinder's Farm 的 OpenClaw 插件。 安装后你可以直接在聊天里使用 /farm ... 命令游玩,并开启自动推进与多频道推送。

安装本插件之前

    • 本机已装 Node.js(含 npm)。
    • 先装主游戏包(插件会调用其中的 CLI):
npm install -g grinders-farm
    • 已安装 OpenClaw,终端里能执行 openclaw

没有 grinders-farm/farm 和工具调用会失败。

安装插件

openclaw plugins install openclaw-plugin-grinders-farm --dangerously-force-unsafe-install

安装后请重启 OpenClaw Gateway,并用 openclaw plugins inspect grinders-farm 确认 Status: loaded

安装完成后,确认已加载:

openclaw plugins inspect grinders-farm

使用流程(推荐)

    • 在目标频道发送一次:
/farm farm
    • 开始自动推进:
/farm start
    • 停止自动推进:
/farm stop

说明:

    • start 固定每 20 分钟推进一天
    • 会自动推送到所有已绑定频道(先发送过 /farm ... 的频道)

常用配置

你可以在 OpenClaw 的 plugin 配置里设置:

    • autoStartWorkerOnGatewayBoot:Gateway 启动时是否自动启动推进
    • imageServerPort:本地农场图片服务端口
    • gameRoot:当自动定位失败时,手动指定项目根目录

最小配置示例:

{
  "plugins": {
    "entries": {
      "grinders-farm": {
        "enabled": true,
        "source": "openclaw-plugin-grinders-farm",
        "config": {
          "autoStartWorkerOnGatewayBoot": true
        }
      }
    }
  }
}

常见问题

插件已安装但命令不可用

先检查:

openclaw plugins inspect grinders-farm

如果不是 loaded,重启 Gateway 后再试。

插件装了但仍提示找不到 grinders-farm

先执行 npm install -g grinders-farm,再重启 Gateway。

自动推送没有发到某个频道

在该频道先执行一次 /farm farm 完成绑定,再执行 /farm start

找不到 grinders-farm 可执行文件

可设置环境变量:

    • GRINDERS_FARM_ROOT
    • GRINDERS_FARM_CLI_BIN

然后重启 Gateway。

数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务