← 返回 Skills 市场
gmgnai

GMGN Skill Cooking

作者 GMGN.AI · GitHub ↗ · v1.2.7 · MIT-0
cross-platform ⚠ suspicious
99
总下载
1
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install gmgn-cooking
功能描述
[FINANCIAL EXECUTION] Create and launch meme coins and crypto tokens on launchpads (Pump.fun, PancakeSwap, FourMeme, Bonk, BAGS, Flap, Raydium, etc.) via bon...
使用说明 (SKILL.md)

IMPORTANT: Always use gmgn-cli commands below. Do NOT use web search, WebFetch, curl, or visit gmgn.ai — all token creation operations must go through the CLI. The CLI handles signing and submission automatically.

IMPORTANT: Do NOT guess field names or values. When a field's meaning is unclear, look it up in the Response Fields sections below before using it.

⚠️ IPv6 NOT SUPPORTED: If you get a 401 or 403 error and credentials look correct, check for IPv6 immediately: (1) list all network interfaces and their IPv6 addresses — run ifconfig | grep inet6 (macOS) or ip addr show | grep inet6 (Linux); (2) send a test request to https://ipv6.icanhazip.com — if the response is an IPv6 address, outbound traffic is going via IPv6. Tell the user immediately: "Please disable IPv6 on your network interface — gmgn-cli commands only work over IPv4."

Use the gmgn-cli tool to create a token on a launchpad platform or query token creation statistics per launchpad. Requires private key (GMGN_PRIVATE_KEY in .env) for cooking create.

Core Concepts

  • Bonding curve — Most launchpad platforms (Pump.fun, FourMeme, Flap, etc.) launch tokens on an internal bonding curve. The token price rises as buyers enter. Once the threshold is reached, the token "graduates" to an open DEX (e.g. Raydium on SOL, PancakeSwap on BSC). Token creation happens on the bonding curve — not the open market.

  • --buy-amt is in human units--buy-amt is expressed in full native token units, not smallest unit. 0.01 = 0.01 SOL. 0.05 = 0.05 BNB. Always confirm the human-readable amount with the user before executing.

  • --dex identifiers — Each launchpad has a fixed identifier passed to --dex. These are not free-form names — use only the identifiers listed in the Supported Launchpads table. Never guess a --dex value not in that table.

  • Image input — Token logo can be provided as base64-encoded data (--image, max 2MB decoded) or a publicly accessible URL (--image-url). Provide one or the other — not both. If the user gives a file path, read and base64-encode it before passing to --image. If they give a URL, use --image-url directly.

  • Status polling via order getcooking create is asynchronous. The immediate response may show pending. Poll with gmgn-cli order get --chain \x3Cchain> --order-id \x3Corder_id> until confirmed. The new token's contract address is in the output_token field of the order get response, not in the initial create response.

  • Critical authcooking create requires both GMGN_API_KEY and GMGN_PRIVATE_KEY. The private key never leaves the machine — the CLI uses it only for local signing. cooking stats uses normal auth (API Key only).

  • Slippage — The initial buy is executed as part of the same transaction as token creation. Slippage applies to that buy. Use --slippage (decimal, e.g. 0.01 = 1%) or --auto-slippage. One of the two is required when --buy-amt is set.

Financial Risk Notice

This skill executes REAL, IRREVERSIBLE blockchain transactions.

  • Every cooking create command deploys an on-chain token contract and spends real funds (initial buy amount).
  • Token deployments cannot be undone once confirmed on-chain.
  • The AI agent must never auto-execute a create — explicit user confirmation is required every time, without exception.
  • Only use this skill with funds you are willing to spend. Initial buy amounts are non-refundable.

Sub-commands

Sub-command Description
cooking stats Get token creation count statistics grouped by launchpad platform (normal auth)
cooking create Deploy a new token on a launchpad platform (requires private key)

Supported Chains

sol / bsc / base / eth / ton

Supported Launchpads by Chain

Chain --dex values
sol pump / raydium / bonk / bags / memoo / letsbonk / bonkers
bsc pancakeswap / flap / fourmeme
base clanker / flaunch / baseapp / basememe / zora / virtuals_v2

When the user names a platform colloquially (e.g. "pump.fun", "four.meme", "PancakeSwap"), map it to the correct --dex identifier from this table before running the command.

Prerequisites

  • cooking stats: Only GMGN_API_KEY required
  • cooking create: Both GMGN_API_KEY and GMGN_PRIVATE_KEY must be configured in ~/.config/gmgn/.env. The private key must correspond to the wallet bound to the API Key.
  • gmgn-cli installed globally — if missing, run: npm install -g gmgn-cli

IMPORTANT — Credential lookup order: gmgn-cli loads ~/.config/gmgn/.env first, then overlays any .env found in the current working directory (project-level overrides global). If credentials appear missing or wrong, check whether a .env in the workspace directory is shadowing the global config:

ls -la .env 2>/dev/null && echo "WARNING: local .env is overriding ~/.config/gmgn/.env"

If a local .env exists but lacks GMGN_API_KEY / GMGN_PRIVATE_KEY, either add them to that file or remove it so the global config is used.

Rate Limit Handling

All cooking routes go through GMGN's leaky-bucket limiter with rate=10 and capacity=10. Sustained throughput is roughly 10 ÷ weight requests/second.

Command Weight
cooking create 5
cooking stats 1

When a request returns 429:

  • Read X-RateLimit-Reset from the response headers — Unix timestamp for when the limit resets.
  • If the response body contains reset_at (e.g., {"code":429,"error":"RATE_LIMIT_BANNED","message":"...","reset_at":1775184222}), extract reset_at — it is the Unix timestamp when the ban lifts (typically 5 minutes). Convert to local time and tell the user exactly when they can retry.
  • cooking create is a real transaction: never loop or auto-resubmit after a 429. Wait until the reset time, then ask for confirmation again before retrying.
  • For RATE_LIMIT_EXCEEDED or RATE_LIMIT_BANNED, repeated requests during cooldown extend the ban by 5 seconds each time, up to 5 minutes.

First-time setup (if credentials are not configured):

  1. Generate key pair and show the public key to the user:

    openssl genpkey -algorithm ed25519 -out /tmp/gmgn_private.pem 2>/dev/null && \
      openssl pkey -in /tmp/gmgn_private.pem -pubout 2>/dev/null
    

    Tell the user: "This is your Ed25519 public key. Go to https://gmgn.ai/ai, paste it into the API key creation form (enable swap/cooking capability), then send me the API Key value shown on the page."

  2. Wait for the user's API key, then configure both credentials:

    mkdir -p ~/.config/gmgn
    echo 'GMGN_API_KEY=\x3Ckey_from_user>' > ~/.config/gmgn/.env
    echo 'GMGN_PRIVATE_KEY="\x3Cpem_content_from_step_1>"' >> ~/.config/gmgn/.env
    chmod 600 ~/.config/gmgn/.env
    

Credential Model

  • GMGN_PRIVATE_KEY is used exclusively for local message signing — the private key never leaves the machine. The CLI computes an Ed25519 signature in-process and transmits only the base64-encoded result in the X-Signature request header.
  • GMGN_API_KEY is transmitted in the X-APIKEY header over HTTPS.
  • Neither credential is ever passed as a command-line argument.

cooking stats Usage

gmgn-cli cooking stats [--raw]

cooking stats Response Fields

Field Type Description
launchpad string Launchpad identifier (e.g. pump, raydium, pancakeswap)
token_count int Number of tokens created via GMGN on that launchpad

cooking create Parameters

Parameter Required Description
--chain Yes Chain: sol / bsc / base / eth / ton
--dex Yes Launchpad platform identifier — see Supported Launchpads table. Never guess this value.
--from Yes Wallet address (must match API Key binding)
--name Yes Token full name (e.g. Doge Killer)
--symbol Yes Token ticker symbol (e.g. DOGEK)
--description No Token description / project pitch
--buy-amt Yes Initial buy amount in human-readable native token units (e.g. 0.01 = 0.01 SOL). This is NOT in smallest unit.
--image No* Token logo as base64-encoded data (max 2MB decoded). Mutually exclusive with --image-url. One of the two is required.
--image-url No* Token logo as a publicly accessible URL. Mutually exclusive with --image. One of the two is required.
--slippage No* Slippage tolerance, e.g. 0.01 = 1%. Mutually exclusive with --auto-slippage — provide one or the other.
--auto-slippage No* Enable automatic slippage. Mutually exclusive with --slippage.
--website No Project website URL
--twitter No Twitter / X URL
--telegram No Telegram group URL
--priority-fee No Priority fee in SOL (SOL only, ≥ 0.0001 SOL)
--tip-fee No Tip fee (SOL ≥ 0.00001 / BSC ≥ 0.000001 BNB; ignored on ETH/BASE)
--gas-price No Gas price in wei (EVM chains)
--anti-mev No Enable anti-MEV protection

* --image or --image-url: provide exactly one. --slippage or --auto-slippage: provide exactly one.

cooking create Response Fields

Field Type Description
status string pending / confirmed / failed
hash string Transaction hash (may be empty while pending)
order_id string Order ID — pass to gmgn-cli order get to poll for final status
error_code string Error code on failure
error_status string Error description on failure

Status Polling

Token creation is asynchronous. If the initial cooking create response shows status: pending:

  1. Poll with gmgn-cli order get every 2 seconds, up to 30 seconds:
    gmgn-cli order get --chain \x3Cchain> --order-id \x3Corder_id>
    
  2. The new token's contract / mint address is in the report.output_token field of the order get response (only present when state = 30 and status = "successful") — it is NOT returned by cooking create directly.
  3. Stop polling once status is confirmed, failed, or expired.
  4. On confirmed: display output_token as the token address and include the block explorer link.
  5. On failed / expired: report the error_status and do not retry automatically.

Usage Examples

# Get token creation statistics per launchpad
gmgn-cli cooking stats

# Create a token on Pump.fun (SOL) — with URL image
gmgn-cli cooking create \
  --chain sol \
  --dex pump \
  --from \x3Cwallet_address> \
  --name "My Token" \
  --symbol MAT \
  --buy-amt 0.01 \
  --image-url https://example.com/logo.png \
  --slippage 0.01 \
  --priority-fee 0.001

# Create a token on PancakeSwap (BSC) — with URL image and social links
gmgn-cli cooking create \
  --chain bsc \
  --dex pancakeswap \
  --from \x3Cwallet_address> \
  --name "BSC Token" \
  --symbol BSCT \
  --buy-amt 0.05 \
  --image-url https://example.com/logo.png \
  --slippage 0.02 \
  --gas-price 5000000000 \
  --website https://mytoken.io \
  --twitter https://twitter.com/mytoken

# Create a token on FourMeme (BSC) — using base64 image from local file
gmgn-cli cooking create \
  --chain bsc \
  --dex fourmeme \
  --from \x3Cwallet_address> \
  --name "Four Token" \
  --symbol FOUR \
  --buy-amt 0.05 \
  --image "$(base64 -i /path/to/logo.png)" \
  --auto-slippage

# Create a token on letsbonk (SOL)
gmgn-cli cooking create \
  --chain sol \
  --dex letsbonk \
  --from \x3Cwallet_address> \
  --name "Bonk Token" \
  --symbol BNKT \
  --buy-amt 0.01 \
  --image-url https://example.com/logo.png \
  --auto-slippage \
  --anti-mev

Output Format

Pre-create Confirmation

Before every cooking create, present this summary and wait for explicit user confirmation:

⚠️ Token Creation Confirmation Required

Chain:        {chain}
Platform:     {--dex} (e.g. pump / fourmeme)
Wallet:       {--from}
Token Name:   {--name}
Symbol:       {--symbol}
Initial Buy:  {--buy-amt} {native currency} (e.g. 0.01 SOL)
Slippage:     {--slippage}% (or "auto")
Image:        {--image-url or "base64 provided"}
Social:       {twitter / telegram / website if provided}

Reply "confirm" to deploy this token. This action is IRREVERSIBLE.

Post-create Receipt

After polling confirms a successful deployment:

✅ Token Created

Token:    {--name} ({--symbol})
Address:  {output_token from order get}
Chain:    {chain}
Platform: {--dex}
Tx:       {explorer link for hash}
Order ID: {order_id}

Block explorer links:

Chain Explorer
sol https://solscan.io/tx/\x3Chash>
bsc https://bscscan.com/tx/\x3Chash>
base https://basescan.org/tx/\x3Chash>
eth https://etherscan.io/tx/\x3Chash>

Guided Launch Flow

When a user says they want to launch / create / deploy a token but has not provided all required information, collect information one required field at a time — never bundle multiple required fields into a single question. The user should be able to reply with a single value, not a labeled list.

Ask each required field as a short, direct question. Wait for the answer before moving to the next. Optional fields are grouped into one question after all required fields are collected.

Step 1 — Chain & Platform

Ask: "Which chain and platform?"

Show the options concisely:

Chain Platform --dex
Solana Pump.fun pump
Solana letsbonk letsbonk
Solana Raydium raydium
Solana BAGS bags
Solana Memoo memoo
Solana Bonkers bonkers
BSC FourMeme fourmeme
BSC PancakeSwap pancakeswap
BSC Flap flap
Base Clanker clanker
Base Zora zora
Base Flaunch flaunch
Base Virtuals virtuals_v2

If the user is unsure, recommend: Pump.fun (SOL) or FourMeme (BSC).

Step 2 — Token Name

Ask: "Token name?"

Wait for the user's reply (e.g. Doge Killer).

Step 3 — Token Symbol

Ask: "Ticker symbol?"

Wait for the user's reply (e.g. DOGEK). Typically 3–8 uppercase characters.

Step 4 — Logo

Ask: "Logo image? (file path or URL — skip to launch without one)"

  • File path → silently run base64 -i \x3Cpath> and pass the result to --image. Do not mention "base64" to the user.
  • URL → use --image-url directly.
  • Skip / none → proceed without a logo. Note that most platforms accept this, but it reduces visibility.

Step 5 — Initial Buy Amount

Ask: "How much {SOL / BNB / ETH} for the initial buy?"

Pass the user's answer directly to --buy-amt — already in full token units (e.g. 0.01 = 0.01 SOL). Do NOT convert to lamports or wei.

Step 6 — Optional Details (single question)

Ask all optional fields together in one message:

"Any optional extras? (skip any you don't need)"

  • Description — one-line pitch shown on the launchpad
  • Twitter — Twitter / X URL
  • Telegram — Telegram group URL
  • Website — project website URL

The user can reply with just the ones they have, or say "skip" / "none" to proceed.

Step 7 — Confirmation & Execute

Once all information is collected, present the pre-create confirmation summary (see Output Format section) and wait for the user to reply "confirm" before executing.


Execution Guidelines

  • [REQUIRED] Pre-create confirmation — Before executing cooking create, present the full summary above and receive explicit "confirm" from the user. No exceptions. Do NOT auto-create.
  • [REQUIRED] --dex validation — Before running, look up the user's named platform in the Supported Launchpads table and resolve to the correct --dex identifier. Never guess or pass a freeform platform name. If the chain/platform combination is not in the table, tell the user it is unsupported.
  • Slippage requirement — Either --slippage or --auto-slippage must be provided. If the user did not specify, suggest --auto-slippage for volatile new tokens or ask for a preference.
  • Image handling — If the user provides a file path, run base64 -i \x3Cpath> and pass the result to --image. If they provide a URL, use --image-url. If neither is provided, ask before building the confirmation — most platforms require a logo.
  • Address validation — Validate --from wallet address format before submitting:
    • sol: base58, 32–44 characters
    • bsc / base / eth: 0x + 40 hex digits
  • Chain-wallet compatibility — SOL addresses are incompatible with EVM chains and vice versa. Warn the user and abort if the address format does not match the chain.
  • Order polling — After cooking create, if status is pending, poll order get every 2 seconds up to 30 seconds. The token address is in output_token. Do not report success until status is confirmed.
  • Credential sensitivityGMGN_API_KEY and GMGN_PRIVATE_KEY can execute real transactions. Never log, display, or expose these values.

Notes

  • cooking create uses critical auth (API Key + signature) — CLI handles signing automatically.
  • cooking stats uses normal auth (API Key only — no private key needed).
  • The new token's mint address is in output_token from gmgn-cli order get, not in the initial cooking create response.
  • Use --raw on any command to get single-line JSON for further processing.

References

Skill Description
gmgn-swap Contains order get command used for polling token creation status
gmgn-token Token security check, info, holders, and traders — useful after launch to monitor your token
gmgn-market market trenches for tracking bonding curve progress; market trending to see if your token is gaining traction
gmgn-track Smart money and KOL trade tracking — monitor whether smart wallets are buying your token after launch
gmgn-portfolio Wallet holdings and P&L — check your own wallet balance before deciding on --buy-amt
安全使用建议
This skill performs real blockchain deployments and needs a private signing key and API key, but the package metadata omits those requirements and provides no source for the gmgn-cli. Before installing or using it: (1) do not install the gmgn-cli npm package until you verify the publisher, repository, and release checksums; prefer to inspect the package source or run it inside an isolated VM/container; (2) never store your main wallet private key in a workspace .env file — use a hardware wallet or an ephemeral/test wallet for experiments; (3) require explicit, manual confirmation (and consider disabling autonomous invocation) for any create/deploy action that spends funds; (4) ask the skill author to update registry metadata to declare GMGN_API_KEY and GMGN_PRIVATE_KEY and to provide a homepage/repo and signed release; (5) note the contradiction in SKILL.md (it forbids curl/webfetch but tells you to 'send a test request' to an external endpoint) — request clarification; (6) if you proceed, test with the smallest possible amounts and audit the gmgn-cli code first.
功能分析
Type: OpenClaw Skill Name: gmgn-cooking Version: 1.2.7 The skill bundle facilitates cryptocurrency token creation via the `gmgn-cli`, requiring the management of sensitive private keys and execution of irreversible financial transactions. SKILL.md instructs the agent to perform risky operations including shell command execution for setup (openssl, mkdir), network diagnostics (ifconfig), and file system access for logo encoding. While the instructions emphasize local signing and mandatory user confirmation, the reliance on shell-based CLI interactions with user-supplied parameters poses a risk of command injection if inputs are not properly sanitized by the agent.
能力标签
cryptorequires-walletrequires-sensitive-credentials
能力评估
Purpose & Capability
The SKILL.md clearly requires GMGN_API_KEY and GMGN_PRIVATE_KEY and describes deploying real tokens, which matches the stated purpose. However the registry metadata lists no required environment variables or credentials and there's no homepage/source for the gmgn-cli — that mismatch (and missing provenance) is an incoherence that should be resolved before trusting the skill.
Instruction Scope
Runtime instructions tell the agent to read ~/.config/gmgn/.env and any local .env, base64-encode files provided by the user, run system/network commands (ifconfig/ip addr, ls -la .env), and to 'send a test request' to an external endpoint (ipv6.icanhazip.com). They also forbid webfetch/curl yet ask for an external request — this contradiction and the guidance to read local config files expands the agent's access beyond a narrow stats/create scope and risks exposing local secrets.
Install Mechanism
There is no formal install spec in the registry, but SKILL.md instructs users to run 'npm install -g gmgn-cli'. Installing an unverified global npm package (no source, no pinned version, no checksum) is moderate-to-high risk: it writes code/binaries to disk and could be malicious or buggy. The skill provides no provenance or verification guidance for that package.
Credentials
Requesting an API key and a private key is proportionate to performing signed blockchain transactions, but those credentials are not declared in the registry metadata (incoherent). The instructions also encourage keeping keys in ~/.config/gmgn/.env and warn that a local .env can override it — this overlay behavior increases the chance of accidental use/exposure of other workspace credentials. The private key is highly sensitive and the skill gives no safe-storage or minimization guidance (e.g., hardware wallet, ephemeral wallet).
Persistence & Privilege
always:false and default autonomous invocation are set (normal). The skill does recommend globally installing a CLI (which persists a binary on the system). Because the skill performs irreversible financial actions, you should not allow any automatic 'create' invocation; the SKILL.md itself requires explicit user confirmation, but the platform should enforce stricter manual approval for commands that spend funds.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gmgn-cooking
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gmgn-cooking 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.7
gmgn-cooking v1.2.7 - Updated description for clarity and conciseness (shortened and reorganized main skill summary). - Improved wording to cover both meme coins and crypto tokens, emphasizing use cases and supported platforms. - No functional or CLI changes; documentation only. - No file changes detected in this version.
v1.2.6
gmgn-cooking v1.2.6 - Updated description for improved clarity and broader examples (now mentions Raydium, ETH, TON). - No file or functional code changes detected in this release. - No changes to usage, commands, or features. Documentation only.
v1.2.5
gmgn-cooking v1.2.5 - Major documentation overhaul in SKILL.md for clarity and safe usage. - Added explicit workflow, credential, and security instructions for irreversible on-chain actions. - Expanded platform mapping and validated all launchpad/DEX identifiers per chain. - Strengthened instructions on error handling (IPv6, rate limits, credential shadowing). - Improved user and agent safety guidance, requiring explicit confirmation before any transaction. - Provided detailed CLI usage patterns and prerequisites for setup and execution.
元数据
Slug gmgn-cooking
版本 1.2.7
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

GMGN Skill Cooking 是什么?

[FINANCIAL EXECUTION] Create and launch meme coins and crypto tokens on launchpads (Pump.fun, PancakeSwap, FourMeme, Bonk, BAGS, Flap, Raydium, etc.) via bon... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 99 次。

如何安装 GMGN Skill Cooking?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install gmgn-cooking」即可一键安装,无需额外配置。

GMGN Skill Cooking 是免费的吗?

是的,GMGN Skill Cooking 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

GMGN Skill Cooking 支持哪些平台?

GMGN Skill Cooking 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 GMGN Skill Cooking?

由 GMGN.AI(@gmgnai)开发并维护,当前版本 v1.2.7。

💬 留言讨论