Guide

How to Launch a Meme Coin on Solana or BSC Without Writing Smart Contracts?

AI

AI Skills Team

7/16/2026 10 min

The Problem: Launching a Meme Coin Is Surprisingly Complex

You have an idea for a meme coin. Maybe it's a dog-themed token for your community, a joke token for a Discord server, or a test deployment to understand how bonding curves work. You know platforms like Pump.fun, FourMeme, and Bonk exist, but when you sit down to actually create and launch a token, the process feels opaque.

Here's what typically happens:

  • You need to write or deploy a smart contract. Even "simple" ERC-20 or SPL token deployments require understanding Solidity or Rust, managing deployment scripts, and paying gas fees for contract creation.
  • You need to handle liquidity manually. After creating the token, you have to set up a liquidity pool on a DEX, decide on initial pricing, and fund the pool with your own capital.
  • You need to manage multiple tools. Wallet management, RPC endpoints, block explorers, and DEX interfaces all live in different places.
  • You risk making irreversible mistakes. A wrong parameter in a smart contract or a misconfigured liquidity pool can lock funds or create a token that doesn't function as intended.

For someone who just wants to "cook" a token — deploy it on a launchpad with a bonding curve, let the market discover the price, and see if it graduates to an open DEX — the traditional path is full of friction.

What a Good Solution Should Do

A practical tool for this use case should:

  1. Abstract away smart contract deployment. You shouldn't need to write or audit Solidity/Rust code to create a standard meme token.
  2. Integrate directly with launchpad platforms. Pump.fun, FourMeme, Bonk, BAGS, Flap, Klik, Clanker — each has its own API and bonding curve mechanics. A good tool should handle these integrations.
  3. Support multiple chains. Meme coins launch on Solana, BSC, and Base. The tool should work across these ecosystems.
  4. Handle the initial buy as part of the deployment. On bonding curve launchpads, the creator typically buys an initial amount of the token. This should be a single step, not a separate transaction.
  5. Provide clear feedback on transaction status. Token creation on-chain is asynchronous. You need to know when the deployment is confirmed and what the resulting contract address is.
  6. Require explicit confirmation for financial operations. Since this involves real money and irreversible transactions, the tool should never auto-execute without user approval.

Introducing gmgn-cooking: A CLI Skill for Token Launchpad Operations

The gmgn-cooking skill is a command-line interface (CLI) tool designed to create and launch meme coins and crypto tokens on bonding curve launchpad platforms. It wraps the GMGN API into a set of CLI commands that handle token deployment, initial purchases, and launchpad statistics queries.

This skill is built for AI agent builders who want to give their agents the ability to interact with token launchpads — either to deploy tokens on behalf of users or to query creation statistics across platforms.

What It Actually Does

The skill provides two core operations:

  1. cooking create — Deploys a new token on a specified launchpad platform. This is a signed operation that requires both an API key and a private key. It executes a real, on-chain transaction that creates the token contract and performs an initial buy on the bonding curve.

  2. cooking stats — Queries token creation count statistics grouped by launchpad platform. This is a read-only operation that only requires an API key.

Both operations are accessed through the gmgn-cli command-line tool.


How It Works: The Bonding Curve Model

Before evaluating whether this skill fits your workflow, it's worth understanding the underlying mechanics.

Most launchpad platforms supported by this skill use a bonding curve model:

  • When you create a token, it's deployed on an internal bonding curve — not directly on an open DEX.
  • The token price starts low and increases as buyers enter. The bonding curve mathematically determines the price based on supply.
  • Once the token reaches a certain market cap threshold, it "graduates" to an open DEX (e.g., Raydium on Solana, PancakeSwap on BSC).
  • The initial buy amount you specify during creation is your position on the bonding curve. This is real capital spent at the time of deployment.

This model means:

  • You don't need to set up a liquidity pool manually.
  • The market determines whether your token gains traction.
  • The initial buy is part of the same transaction as the token creation — it's not a separate step.

Supported Platforms and Chains

The skill supports a specific set of launchpad platforms, each identified by a fixed --dex identifier:

Chain Supported Launchpads (--dex values)
Solana (sol) pump (Pump.fun), bonk (Bonk), bags (BAGS)
BSC (bsc) fourmeme (FourMeme), flap (Flap)
Base (base) klik (Klik), clanker (Clanker)

Each platform has specific rules about which quote tokens it accepts for the initial buy. For example:

  • Pump.fun on Solana can raise in SOL or USDC.
  • FourMeme on BSC can raise in BNB, USD1, or USDT.
  • Klik and Clanker on Base only support WETH as the quote token.

The --buy-amt parameter is always specified in the chain's native token units (SOL, BNB, ETH), even when raising with a quote token like USDC. If you're working with a quote token amount, you'll need to convert it to native units yourself before passing it to the command.


Practical Usage Examples

Querying Launchpad Statistics

To check how many tokens have been created on each launchpad platform:

gmgn-cli cooking stats

This is a read-only operation. It requires only GMGN_API_KEY to be configured.

Creating a Token

A basic token creation command looks like this:

gmgn-cli cooking create \
  --chain sol \
  --dex pump \
  --from <your-wallet-address> \
  --name "My Meme Token" \
  --symbol "MEME" \
  --buy-amt 0.01 \
  --image-url "https://example.com/logo.png" \
  --slippage 30

Key parameters:

  • --chain: The blockchain (sol, bsc, or base).
  • --dex: The launchpad identifier (e.g., pump, fourmeme, bonk).
  • --from: Your wallet address.
  • --name / --symbol: The token's display name and ticker symbol.
  • --buy-amt: Initial buy amount in native token units (e.g., 0.01 = 0.01 SOL).
  • --image or --image-url: Token logo as base64 data or a public URL.
  • --slippage or --auto-slippage: Required when --buy-amt is set. Controls slippage tolerance for the initial buy.

Checking Transaction Status

Token creation is asynchronous. The initial response may show pending. To poll for confirmation:

gmgn-cli order get --chain sol --order-id <order_id>

The confirmed token's contract address appears in the report.output_token field of the response.


Setup and Prerequisites

Before using this skill, you need:

  1. gmgn-cli installed globally. If not installed:

    npm install -g gmgn-cli
    
  2. API credentials configured. Create or edit ~/.config/gmgn/.env with:

    • GMGN_API_KEY — Required for all operations.
    • GMGN_PRIVATE_KEY — Required only for cooking create. This key is used locally for signing; it never leaves your machine.
  3. Verify configuration before running commands:

    gmgn-cli config --check
    

    If the exit code is 0, you're ready. If it's 1, run gmgn-cli config to see what's missing and follow the prompts.

Important: The CLI loads credentials from ~/.config/gmgn/.env first, then overlays any .env file in your current working directory. If credentials seem missing, check whether a local .env is shadowing the global config:

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

Capability Boundaries: What This Skill Does NOT Do

Understanding the limits is as important as understanding the features:

  • It does not write or audit smart contracts. The skill deploys tokens through launchpad APIs, which use standardized contract templates. You cannot customize the token's contract logic.
  • It does not manage post-launch trading. Once a token is created, trading, selling, and liquidity management are outside the scope of this skill.
  • It does not guarantee token success. The bonding curve model means your token's value depends on market interest. Most meme coins do not graduate to open DEXs.
  • It does not support IPv6. If you encounter 401 or 403 errors with correct credentials, check whether your network is routing traffic over IPv6. The CLI only works over IPv4.
  • It does not auto-execute financial transactions. The skill's design requires explicit user confirmation before any cooking create command. An AI agent should never bypass this.

When to Use This Skill

This skill is a reasonable fit if:

  • You're building an AI agent that needs to deploy tokens on behalf of users.
  • You want to query launchpad creation statistics for market research.
  • You're experimenting with bonding curve mechanics and want a fast way to deploy test tokens.
  • You need to support multiple launchpad platforms across Solana, BSC, and Base through a single interface.

When NOT to Use It

  • If you need custom smart contract logic. This skill uses launchpad-provided templates. For custom tokenomics, vesting schedules, or unique contract features, you'll need a different approach.
  • If you're not comfortable with irreversible financial transactions. Every cooking create command spends real funds. There is no undo.
  • If you need high-frequency automated trading. The skill has rate limits (roughly 20 requests/second with weighted costs per command). Sustained high-volume operations will hit 429 errors.
  • If your network only supports IPv6. The CLI requires IPv4 connectivity.

Safety and Risk Considerations

This skill operates at the intersection of AI agents and financial execution. That combination demands extra caution:

  1. Every deployment is irreversible. Once a token creation transaction is confirmed on-chain, it cannot be undone. The initial buy amount is spent.
  2. Private keys are involved. The GMGN_PRIVATE_KEY is used for local signing. Ensure your environment is secure and the key is not exposed.
  3. Rate limits exist for a reason. The GMGN API enforces a leaky-bucket rate limiter. If you hit a 429 error, the response includes a reset_at timestamp. Wait until that time before retrying.
  4. Slippage matters. The initial buy is subject to slippage. Setting --slippage too low may cause the transaction to fail. Setting it too high may result in a worse execution price.
  5. Quote token conversion is your responsibility. When using a quote token like USDC, you must convert the amount to native token units yourself. The CLI does not do this conversion.

Repository Signals

The skill is maintained in the gmgnai/gmgn-skills repository. At the time of writing:

  • Stars: 380
  • Forks: 54
  • License: MIT
  • Security level: Low (as classified in the skill metadata)
  • Topics: ai-agents, api, cli-tool, crypto, gmgn, memecoin, trading

The MIT license means you can inspect, modify, and redistribute the code. The repository includes the CLI tool and skill definitions. Review the source code before integrating it into production workflows, especially given the financial nature of the operations.


Summary

The gmgn-cooking skill provides a CLI-based interface for creating meme coins and crypto tokens on bonding curve launchpad platforms across Solana, BSC, and Base. It abstracts away smart contract deployment and liquidity setup, but it does not eliminate the financial risks inherent in token creation. Every deployment is a real, irreversible transaction.

If you're building an AI agent that needs to interact with token launchpads, this skill is worth inspecting — but treat it as a financial tool, not a toy. Verify your credentials, understand the bonding curve mechanics, and never auto-execute without explicit user confirmation.

延伸閱讀