Skip to main content
The Swarms Marketplace is a platform for discovering and sharing production-ready prompts, agent configurations, and tools. Load prompts in a single line of code or publish your own creations to the community.

What is the Swarms Marketplace?

The Swarms Marketplace provides:
  • One-Line Prompt Loading: Load prompts instantly using a UUID
  • Community Sharing: Discover prompts created by other developers
  • Monetization: Publish paid prompts and earn from your expertise
  • Version Control: Track and manage prompt versions
  • Rich Metadata: Comprehensive descriptions, use cases, and tags
  • Direct Integration: Seamless integration with Swarms agents

Quick Start

Loading a Marketplace Prompt

Load a prompt from the marketplace in one line:
When you provide a marketplace_prompt_id, the agent automatically fetches the prompt from the marketplace and sets it as the system prompt.

Fetching Prompts Programmatically

Fetch by Prompt ID

Fetch a prompt using its unique UUID:

Fetch by Prompt Name

Fetch a prompt using its name:

Get Full Response

Retrieve the complete prompt data:

Publishing to the Marketplace

Publishing a Prompt

Share your prompts with the community:

Publishing from an Agent

Automatically publish an agent’s configuration:
Make sure to set the SWARMS_API_KEY environment variable before publishing. Get your API key at swarms.world/platform/api-keys

API Configuration

Setting Up Your API Key

API Key Validation

Advanced Usage

Custom Timeout Configuration

Error Handling

Publishing Paid Prompts

Monetize your expertise with paid prompts:

Real-World Examples

Example 1: Quantitative Trading Agent

Load a sophisticated trading agent from the marketplace:

Example 2: Medical AI Assistant

Example 3: Publishing a Research Agent

Marketplace Categories

Organize your prompts by category:
  • research - Research and analysis
  • content - Content creation and writing
  • coding - Software development and programming
  • finance - Financial analysis and trading
  • healthcare - Medical and health applications
  • marketing - Marketing and advertising
  • education - Educational and training
  • legal - Legal analysis and documentation
  • customer-service - Customer support
  • data-science - Data analysis and ML

Best Practices

Clear Descriptions

Write comprehensive descriptions explaining what your prompt does

Detailed Use Cases

Provide specific use cases with clear titles and descriptions

Relevant Tags

Use descriptive tags to make your prompt discoverable

Test Thoroughly

Test prompts extensively before publishing to ensure quality

Troubleshooting

API Key Issues

Prompt Not Found

Authentication Errors

API Reference

fetch_prompts_from_marketplace

Parameters:
  • prompt_id: UUID of the prompt to fetch
  • name: Name of the prompt (alternative to prompt_id)
  • timeout: Request timeout in seconds
  • return_params_on: If True, returns (name, description, prompt) tuple; if False, returns full dict

add_prompt_to_marketplace

Parameters:
  • name: Unique name for the prompt
  • prompt: The prompt content/template
  • description: Description of what the prompt does
  • use_cases: List of dicts with ‘title’ and ‘description’ keys
  • tags: Comma-separated tags
  • is_free: Whether the prompt is free or paid
  • price_usd: Price in USD (for paid prompts)
  • category: Category for organization
  • timeout: Request timeout in seconds

Next Steps

Browse Marketplace

Explore available prompts on the marketplace

Get API Key

Get your API key to publish prompts

Model Providers

Configure LLM providers for your agents

Tools

Add custom tools to enhance agents