skills$openclaw/moltmoon-sdk
chillbruhhh5.4k

by chillbruhhh

moltmoon-sdk – OpenClaw Skill

moltmoon-sdk is an OpenClaw Skills integration for coding workflows. Complete OpenClaw-ready operating skill for @moltmoon/sdk. Use when an agent needs to install, configure, and operate the MoltMoon SDK or CLI end-to-end on Base mainnet, including launch dry-runs, metadata/image validation, live token launches, quote checks, buys, sells, troubleshooting, and safe production runbooks.

5.4k stars8.5k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026coding

Skill Snapshot

namemoltmoon-sdk
descriptionComplete OpenClaw-ready operating skill for @moltmoon/sdk. Use when an agent needs to install, configure, and operate the MoltMoon SDK or CLI end-to-end on Base mainnet, including launch dry-runs, metadata/image validation, live token launches, quote checks, buys, sells, troubleshooting, and safe production runbooks. OpenClaw Skills integration.
ownerchillbruhhh
repositorychillbruhhh/moltmoon-agentcrypto-sdk
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @chillbruhhh/moltmoon-agentcrypto-sdk
last updatedFeb 7, 2026

Maintainer

chillbruhhh

chillbruhhh

Maintains moltmoon-sdk in the OpenClaw Skills directory.

View GitHub profile
File Explorer
2 files
.
_meta.json
305 B
SKILL.md
4.0 KB
SKILL.md

name: moltmoon-sdk description: Complete OpenClaw-ready operating skill for @moltmoon/sdk. Use when an agent needs to install, configure, and operate the MoltMoon SDK or CLI end-to-end on Base mainnet, including launch dry-runs, metadata/image validation, live token launches, quote checks, buys, sells, troubleshooting, and safe production runbooks.

MoltMoon SDK Skill (OpenClaw)

Use this skill to operate the MoltMoon SDK/CLI as a complete agent workflow on Base mainnet.

Install

Use one of these paths:

npm install @moltmoon/sdk

or run without install:

npx -y @moltmoon/sdk moltlaunch --help

Runtime Configuration

Set environment variables before any write action:

MOLTMOON_API_URL=https://api.moltmoon.xyz
MOLTMOON_NETWORK=base
MOLTMOON_PRIVATE_KEY=0x...   # 32-byte hex key with 0x prefix

Notes:

  • MOLTMOON_NETWORK supports base only.
  • MOLTMOON_PRIVATE_KEY (or PRIVATE_KEY) is required for launch/buy/sell.

Supported CLI Commands

Global options:

  • --api-url <url>
  • --network base
  • --private-key <0x...>

Commands:

  • launch Launch token (with metadata/image/socials, includes approval + create flow)
  • tokens List tokens
  • buy Approve USDC + buy in one flow
  • sell Approve token + sell in one flow
  • quote-buy Fetch buy quote only
  • quote-sell Fetch sell quote only

Canonical CLI Runbooks

1) Dry-run launch first (no chain tx)

npx -y @moltmoon/sdk mltl launch \
  --name "Agent Token" \
  --symbol "AGT" \
  --description "Agent launch token on MoltMoon" \
  --website "https://example.com" \
  --twitter "https://x.com/example" \
  --discord "https://discord.gg/example" \
  --image "./logo.png" \
  --seed 20 \
  --dry-run \
  --json

2) Live launch

npx -y @moltmoon/sdk mltl launch \
  --name "Agent Token" \
  --symbol "AGT" \
  --description "Agent launch token on MoltMoon" \
  --seed 20 \
  --json

3) Trade flow

npx -y @moltmoon/sdk mltl quote-buy --market 0xMARKET --usdc 1 --json
npx -y @moltmoon/sdk mltl buy --market 0xMARKET --usdc 1 --slippage 500 --json
npx -y @moltmoon/sdk mltl quote-sell --market 0xMARKET --tokens 100 --json
npx -y @moltmoon/sdk mltl sell --market 0xMARKET --token 0xTOKEN --amount 100 --slippage 500 --json

SDK API Surface

Initialize:

import { MoltmoonSDK } from '@moltmoon/sdk';

const sdk = new MoltmoonSDK({
  baseUrl: process.env.MOLTMOON_API_URL || 'https://api.moltmoon.xyz',
  network: 'base',
  privateKey: process.env.MOLTMOON_PRIVATE_KEY as `0x${string}`,
});

Read methods:

  • getTokens()
  • getMarket(marketAddress)
  • getQuoteBuy(marketAddress, usdcIn)
  • getQuoteSell(marketAddress, tokensIn)

Launch methods:

  • prepareLaunchToken(params) -> metadata URI + intents only
  • launchToken(params) -> executes approve + create

Trade methods:

  • buy(marketAddress, usdcIn, slippageBps?)
  • sell(marketAddress, tokensIn, tokenAddress, slippageBps?)

Utility methods:

  • calculateProgress(marketDetails)
  • calculateMarketCap(marketDetails)

Launch Metadata + Image Rules

Enforce these before launch:

  • Image must be PNG or JPEG
  • Max size 500KB (<=100KB recommended)
  • Dimensions must be square, min 512x512, max 2048x2048
  • Social links must be valid URLs
  • Seed for normal launch must be at least 20 USDC

Failure Diagnosis

  • Missing private key
    • Set MOLTMOON_PRIVATE_KEY or pass --private-key.
  • Unsupported network
    • Use base only.
  • transfer amount exceeds allowance
    • Re-run buy/sell/launch flow so approvals execute.
  • transfer amount exceeds balance
    • Fund signer with Base ETH (gas) and USDC/token balance.
  • ERR_NAME_NOT_RESOLVED or fetch errors
    • Check MOLTMOON_API_URL DNS and API uptime.
  • image validation errors
    • Fix file type/size/dimensions to rules above.

Operator Policy

  • Run dry-run before every first live launch for a new token payload.
  • Confirm signer address and chain before write calls.
  • Keep secrets in .env; never commit keys.
  • Record tx hashes after launch/buy/sell for audit trail.
README.md

No README available.

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

Configuration

Set environment variables before any write action: ```env MOLTMOON_API_URL=https://api.moltmoon.xyz MOLTMOON_NETWORK=base MOLTMOON_PRIVATE_KEY=0x... # 32-byte hex key with 0x prefix ``` Notes: - `MOLTMOON_NETWORK` supports `base` only. - `MOLTMOON_PRIVATE_KEY` (or `PRIVATE_KEY`) is required for launch/buy/sell.

FAQ

How do I install moltmoon-sdk?

Run openclaw add @chillbruhhh/moltmoon-agentcrypto-sdk in your terminal. This installs moltmoon-sdk into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/chillbruhhh/moltmoon-agentcrypto-sdk. Review commits and README documentation before installing.