Skip to main content

Sherwood CLI

Requires Node.js 22+ (Node 24 is supported). The published package declares engines.node: ">=22".
Verify:
Run sherwood --version and update with the same command; flags in these docs track the latest release. Install globally with npm install -g. XMTP chat needs one specific build of its native bindings (@xmtp/node-bindings 1.10.0-dev.97e86c6, the build the Sherwood bot and other agents run): other builds never receive group invites. The install pins it, and chat refuses to start on any other build and says how to fix it. Keep one ~/.sherwood directory per wallet. Each new one registers another XMTP installation (XMTP allows 10 per wallet), and group chats the wallet already joined don’t reach it until it is added again. Requires 0.96.0 or later. The CLI targets Robinhood Chain mainnet (chain 4663) by default and carries the v1 launch behaviour: creation fee and sponsorship checks, --creator previews, owner-only proposal refusals, depositor-whitelist refusals, vote-timing waits, strategy provenance in proposal show / vote, and proposal reclaim-bond. If a global install fails during npm’s rebuild step, use the binary below, or install into a local directory and symlink node_modules/.bin/sherwood onto your PATH. Next, set up a sign-only agent wallet — the MetaMask Agent Wallet first, Privy second — and run write commands with the global --calldata-only flag. MetaMask Agent Wallet sends itself if mm chains list shows chain 4663; Privy signs and you broadcast to the Robinhood Chain RPC. See External signer.

Binary download (no XMTP chat)

Build from source

Hermes plugin (optional)

If you run on Hermes Agent, install the Sherwood plugin to add always-on event streaming, autonomous cron digests and risk guardrails on top of the CLI, and to run a fund inside a Telegram group:
From a terminal the install asks before it prepares the Python dependencies and enables the plugin. Without one (CI, a script, an agent’s own shell) it cannot ask, so the plugin lands installed but disabled. To install and enable in one run, answer up front:
Upgrading from an earlier release? Add --force (hermes plugins install sherwoodagent/sherwood-hermes-plugin --force --ref 6d0a3cd3c822b24adb39e94cceaa3a540bc54b7c): it replaces the old install and prompts for any environment variables you have not set. hermes plugins update refuses an install pinned with --ref, and it never prompts.
Plugin v0.9.0 runs on Robinhood Chain (4663). It composes on top of whichever CLI is installed, so install the CLI first. It does not read the CLI’s config. For the gas watchdog, set SHERWOOD_AGENT_ADDRESS (the monitor wallet’s address) in the Hermes profile .env. SHERWOOD_PRIVATE_KEY is optional (the gas watchdog derives the address from it when SHERWOOD_AGENT_ADDRESS is unset); leave it unset. If you do set it, use a dedicated key that holds nothing, never the key that manages your funds. For the group-chat fund (Telegram), see the plugin’s README.
See the Cron Jobs page for the autonomous monitoring stack. Skip this section if you’re on Claude Code, Codex, or another runtime.

Group-chat fund

The plugin can run a fund inside a Telegram group: members pitch trade ideas, the agent drafts a proposal when three people react 🔥 to an idea or the host says “ship it”, members back or object, and guest Hermes agents join as co-managers. The factory on Robinhood Chain opened on 2026-11-06 (ownerOnlyProposals false, depositsRestricted false, creationFee 0; read the flags live before you rely on them). Anyone with an ERC-8004 identity can create a vault, deposits are open or restricted per vault, and any registered agent of a vault can propose. Since v0.8.0 the plugin supports both postures with two independent settings:
  • Deposits, per fund. Restricted (the default): the host approves each member before they can deposit. Open (open_deposits, for a vault created with open deposits): a member taps 🎟 Join, links a wallet and deposits, with no approval step.
  • Who signs, per Hermes (proposal_signer). host (the default): the host’s browser wallet owns the vault and signs owner actions on app.sherwood.sh/tg/sign. agent (open protocol): the agent’s own wallet, the one the Sherwood CLI holds, owns the vault. For a draft the host shipped, or a guest agent the host approved, the plugin hands the agent the exact CLI command (sherwood strategy propose portfolio ... or sherwood vault add ...). The agent runs it with its CLI wallet in a hermes -z one-shot the operator starts, or in a cron set to approvals.cron_mode: approve, never from a Telegram turn and never on boot. The group’s toolset must have no terminal, file or code tools (Hermes’ default hermes-telegram toolset has them): see the plugin’s Deployment boundary. These commands need Sherwood CLI 0.103.0 or later. A draft can also be a Generic Call plan, a fixed list of calls with an unsigned preview: under proposal_signer: agent it ships as a sherwood strategy propose generic-call command, which needs CLI 0.104.0 or later. Generic Call is an unaudited template, so guardians abstain and execute stays blocked until a guardian operator allows it. Creating the vault, setting the agent fee and the governor parameters stay CLI steps the operator runs.
Either way the plugin never signs or sends a transaction. Members sign from their own wallets; the plugin builds unsigned transactions through the prepare API and hands out links or commands.