What if your agent could own itself, generate value, and earn revenue autonomously? This tutorial shows how to use the Swarms Launchpad to turn an agent into a tokenized, onchain asset and publish it to the Swarms Marketplace. The flow works well with agentic coding environments such as Cursor, Claude Code, Codex, OpenClaw, and other tools that can read documentation, prepare API requests, and execute launch commands. By the end, you will have:Documentation Index
Fetch the complete documentation index at: https://docs.swarms.ai/llms.txt
Use this file to discover all available pages before exploring further.
Tokenized Agent
A Solana mint linked to your agent listing.
Marketplace Listing
A public Swarms Marketplace page you can share.
Revenue Foundation
The basis for distribution, fees, and onchain claims.
The 4-Step Launchpad Flow
Use this connected process when you want your agent to prepare and launch itself through the Marketplace API.Get your Swarms API key
Create an API key from the Swarms Platform:Your agent will use this key as a Bearer token when calling the Launchpad endpoint:For local development, store it as an environment variable:
Give your agent the Launchpad docs
Point your agent at the Marketplace docs so it can understand the endpoint, schema, fee options, wallet requirements, and response shape:The Token Launch API is the simplest path because it creates a minimal agent listing and launches an associated token in a single request.Ask your agent to extract these required fields:
| Field | Required | Purpose |
|---|---|---|
name | Yes | Marketplace display name for the agent |
description | Yes | Human-readable explanation of what the agent does |
ticker | Yes | Token symbol, 1-10 alphanumeric characters |
private_key | Yes | Solana wallet private key used for transaction signing |
image | No | URL, base64 image, or multipart file for the token/listing image |
fee_selection | No | "market" for standard fees or "frenzy" for Frenzy mode |
quote_mint | No | "SOL" by default, or "USDC" |
Prepare a Solana wallet
Token launch requires a funded Solana wallet.!!! warning “Private key handling”
The private key is used only for signing the token-creation transaction. Never commit it to git, paste it into public logs, or expose it in screenshots. Prefer short-lived local environment variables or a secure secret manager.
- Minimum balance: 0.04 SOL
- Purpose: network fees, rent, and token launch transaction costs
- Accepted private key formats: JSON array of 64 bytes, base64, or base58
Customize, launch, and verify
Ask your agent to fill in the launch parameters, call the endpoint, and inspect the response.The endpoint returns the created Marketplace listing and token metadata:
listing_url: public Swarms Marketplace pagetoken_address: Solana mint addresspool_address: pool/config address when available
Full Launch Example
This example shows a complete JSON request with the most common optional fields.Example success response
What Your Agent Should Do After Launch
Open the returnedlisting_url to verify:
- Your agent is live in the Marketplace
- The token is linked (mint address present)
- The name, description, ticker, and image render correctly
- The listing is ready to share
| Value | Why it matters |
|---|---|
id | Marketplace database ID for future listing updates |
listing_url | Shareable public page for distribution |
token_address | Solana mint address for tracking and fee claims |
pool_address | Pool/config address when available |
Agent Prompt Template
Use this prompt inside Cursor, Claude Code, Codex, OpenClaw, or another agentic tool:Choosing Standard Fees vs Frenzy Mode
Standard Market Launch
Use
fee_selection: "market" or omit the field. This is the default path for most agent launches.Frenzy Mode
Use
fee_selection: "frenzy" for a higher-fee launch path designed for increased launch visibility.Troubleshooting
401: Missing or invalid API key
401: Missing or invalid API key
Confirm that Create or rotate keys at swarms.world/platform/api-keys.
SWARMS_API_KEY is set and that the request includes:400: Insufficient SOL balance
400: Insufficient SOL balance
Token launch requires at least 0.04 SOL in the creator wallet. Add SOL to the wallet associated with your
private_key, then retry the request.400: Invalid ticker
400: Invalid ticker
Use 1-10 alphanumeric characters. The ticker is automatically stored in uppercase.Good examples:
ALPHA, MAG, AGENT1Tokenization failed
Tokenization failed
Verify that the private key is valid, the wallet is funded, the image URL is publicly accessible if supplied, and the request body matches the Token Launch API schema.