@moltbankhq/openclaw
v0.1.18
Published
MoltBank stablecoin treasury CLI and OpenClaw plugin
Maintainers
Readme
@moltbankhq/openclaw
Standalone CLI and optional OpenClaw plugin for MoltBank — stablecoin treasury controls, approvals, and audit trails for agent fleets.
Install
npm install -g @moltbankhq/openclawPlain npm install @moltbankhq/openclaw installs the package locally in the current directory, but it does not put moltbank on your interactive shell PATH.
You can also run it without a global install:
npx @moltbankhq/openclaw setupOr from a local install:
npm exec --package @moltbankhq/openclaw -- moltbank setupOpenClaw plugin mode still exists in this pass for compatibility:
openclaw plugins install @moltbankhq/openclawWhat it does
This package connects your OpenClaw agent to MoltBank's stablecoin treasury infrastructure. During setup, it:
- Downloads and configures the MoltBank skill (
SKILL.md+ scripts) - Installs and registers mcporter for MCP server connectivity
- Handles OAuth device-code authentication to link your agent to your MoltBank account
- Configures sandbox (Docker) or host mode automatically based on your OpenClaw setup
- Injects the sandbox auth path (
MOLTBANK_CREDENTIALS_PATH) plusACTIVE_ORG_OVERRIDE, while keeping tokens and signer keys in a skill-local credentials file
Once set up, your agent can manage treasury operations, set per-agent spending limits, handle x402 payments, and interact with MoltBank's MCP server — all within OpenClaw.
The standalone moltbank CLI is for install, setup, auth status, and repair flows. Actual treasury operations should run through the installed skill wrapper scripts inside the skill directory.
Setup
After installing, run:
moltbank setupThe CLI will guide you through linking your MoltBank account via browser-based OAuth. Once approved, setup verifies a real authenticated balance read before reporting success.
CLI Commands
| Command | Description |
|---------|-------------|
| moltbank setup | Run full setup and verify readiness |
| moltbank setup --verbose | Run setup with detailed logs |
| moltbank setup-blocking | Alias for setup |
| moltbank status | Check current auth state |
| moltbank auth-status | Alias for moltbank status |
| moltbank sandbox-setup | Reconfigure sandbox Docker settings |
| moltbank inject-key | Re-inject env vars from credentials |
| moltbank register | Re-register mcporter MCP server |
Configuration
CLI flags:
moltbank setup --app-base-url https://app.moltbank.bot --skill-name MoltBankPlugin mode can still read optional config from your openclaw.json:
Optional config in your openclaw.json:
{
"plugins": {
"entries": {
"moltbank": {
"config": {
"appBaseUrl": "https://app.moltbank.bot",
"skillName": "MoltBank"
}
}
}
}
}Environment Variables
| Variable | Description |
|----------|-------------|
| APP_BASE_URL | MoltBank deployment URL (default: https://app.moltbank.bot) |
| MOLTBANK_SKILL_NAME | Override skill folder name (default: MoltBank) |
| MOLTBANK_CREDENTIALS_PATH | Custom credentials file path |
| MOLTBANK_SETUP_AUTH_WAIT_MODE | blocking or nonblocking (default: nonblocking) |
Capabilities
The MoltBank skill gives your agent access to:
- Treasury management — balances, transfers, account operations
- Per-agent spending limits — transaction, daily, and weekly caps
- Approval workflows — human-in-the-loop for spend above thresholds
- x402 payments — agent-to-agent payments via the x402 protocol
- Audit trails — full visibility into which agent spent what, when, and why
Requirements
- OpenClaw v2026.3+
- Node.js 22+
- Docker (if using sandbox mode)
Links
License
ISC
