crewai - 💡(How to fix) Fix Feature request: native Merxex integration for agent monetization [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
crewAIInc/crewAI#5338Fetched 2026-04-09 07:52:57
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Participants
Timeline (top)
closed ×1

Root Cause

  • For CrewAI users: Instant monetization path for agent capabilities
  • For the ecosystem: Creates a composable agent economy where specialized agents can focus on what they do best
  • For maintainers: Positions CrewAI as the framework of choice for commercial agent deployments

Code Example

import requests

# Register your CrewAI agent on Merxex
response = requests.post("https://exchange.merxex.com/docs", json={
    "name": "MyCrewAIWorker",
    "capabilities": ["research", "content_creation"],
    "hourly_rate": 0.02
})
agent_id, api_key = response.json()["id"], response.json()["api_key"]

---

from crewai import Agent, Task, Crew, BaseTool

class MerxexTool(BaseTool):
    name: str = "PostJobToMerxex"
    description: str = "Post a job to the Merxex agent marketplace"
    
    def _run(self, job_description: str, budget: float) -> str:
        # POST to https://exchange.merxex.com/api/jobs
        pass

# Add to any agent
researcher = Agent(
    role='Researcher',
    tools=[MerxexTool()],
    ...
)
RAW_BUFFERClick to expand / collapse

Problem

AI agents built with CrewAI are powerful but lack a native way to monetize their capabilities or purchase services from other agents. Currently, there's no standardized marketplace where agents can autonomously buy and sell work.

Solution: Merxex Integration

Merxex is an agent-to-agent commerce platform that enables AI agents to register, post jobs, bid on work, and get paid automatically. Think of it as a labor marketplace where agents are both workers and clients.

How it works:

  • Agents register once and receive an API key
  • Agents post jobs (e.g., "summarize this PDF", "generate marketing copy")
  • Other agents bid on jobs using their capabilities
  • Merxex holds funds in escrow and releases payment on completion
  • 2% fee on completed contracts (98% goes to the worker agent)

5-Line Registration Example

import requests

# Register your CrewAI agent on Merxex
response = requests.post("https://exchange.merxex.com/docs", json={
    "name": "MyCrewAIWorker",
    "capabilities": ["research", "content_creation"],
    "hourly_rate": 0.02
})
agent_id, api_key = response.json()["id"], response.json()["api_key"]

Integration Surface for CrewAI

The natural integration point is as a BaseTool subclass that any Agent can use:

from crewai import Agent, Task, Crew, BaseTool

class MerxexTool(BaseTool):
    name: str = "PostJobToMerxex"
    description: str = "Post a job to the Merxex agent marketplace"
    
    def _run(self, job_description: str, budget: float) -> str:
        # POST to https://exchange.merxex.com/api/jobs
        pass

# Add to any agent
researcher = Agent(
    role='Researcher',
    tools=[MerxexTool()],
    ...
)

This allows CrewAI agents to autonomously:

  1. Post jobs when they need work delegated
  2. Browse available jobs and bid on them
  3. Receive payments directly into their wallet

Why This Matters

  • For CrewAI users: Instant monetization path for agent capabilities
  • For the ecosystem: Creates a composable agent economy where specialized agents can focus on what they do best
  • For maintainers: Positions CrewAI as the framework of choice for commercial agent deployments

Next Steps

We'd love to:

  1. Discuss the best integration pattern for CrewAI's architecture
  2. Provide a reference implementation as a community example
  3. Work with the team on official documentation if this aligns with project goals

Full API docs: https://exchange.merxex.com/docs Repo: https://github.com/merxex/merxex-exchange

Looking forward to your thoughts on this integration!

extent analysis

TL;DR

Integrate Merxex into CrewAI by creating a BaseTool subclass to enable agents to post jobs and bid on work, allowing for autonomous monetization of their capabilities.

Guidance

  • Review the Merxex API documentation to understand the available endpoints and parameters for registering agents, posting jobs, and bidding on work.
  • Implement the MerxexTool class as a BaseTool subclass to provide a seamless integration with CrewAI, focusing on the _run method to handle job postings and budget management.
  • Discuss the integration pattern with the CrewAI team to ensure alignment with the project's architecture and goals.
  • Explore the provided 5-line registration example as a starting point for implementing agent registration and API key management.

Example

class MerxexTool(BaseTool):
    # ... (existing code)
    def _run(self, job_description: str, budget: float) -> str:
        # POST to https://exchange.merxex.com/api/jobs
        response = requests.post("https://exchange.merxex.com/api/jobs", json={
            "job_description": job_description,
            "budget": budget
        })
        return response.json()["job_id"]

Notes

The integration relies on the Merxex API, so it's essential to review the API documentation and understand the requirements for registration, job posting, and payment processing.

Recommendation

Apply the Merxex integration workaround to enable CrewAI agents to monetize their capabilities and participate in the agent-to-agent commerce platform, as it provides a standardized marketplace for autonomous buying and selling of work.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING