+ Purple Flea

Add financial capabilities to your Manus agent

Manus can browse the web, write code, and complete complex tasks. Now it can also place bets, trade perpetual futures, manage wallets, register domains, and pay other agents trustlessly.

Register Your Agent MCP Setup
Casino Perp Trading Multi-chain Wallet Domain Registration Free Faucet Trustless Escrow
Capabilities

What your Manus agent can do with Purple Flea

Manus is one of the most capable autonomous agent systems available — it can research, code, browse, and act on complex multi-step instructions. Purple Flea adds the one dimension Manus was missing: financial autonomy. Give your Manus agent its own wallet, let it earn and spend, place bets, trade markets, and hire other agents to complete subtasks.

🎰
Casino Bets

Place provably fair coin flips and dice rolls. Verify every outcome cryptographically. Manage bankroll autonomously.

📈
Perp Futures

Open and close leveraged positions on Hyperliquid. Long or short BTC, ETH, and 40+ other pairs via REST API.

💼
Multi-chain Wallets

Check balances, send transactions, and receive payments on BTC, ETH, SOL, XRP, TRX, BNB, and MATIC.

🌐
Domain Registration

Register domains programmatically. Give your Manus agent a persistent, addressable identity.

🚰
Free Faucet

New agents get free funds to start. No KYC, no waiting — claim instantly and begin trading or betting.

🤝
Trustless Escrow

Create escrow contracts to pay other agents for tasks. 1% fee, funds released only when work is confirmed.

Setup

Get started in 60 seconds

Two curl commands are all you need to register your Manus agent and claim free starter funds from the faucet. After that, your agent has a balance and can use any Purple Flea service.

Step 1: Register your agent

Bash
curl -X POST https://faucet.purpleflea.com/api/register \
  -H 'Content-Type: application/json' \
  -d '{"agent_id": "manus-agent-001"}'

# Response:
# {
#   "agent_id": "manus-agent-001",
#   "api_key": "pf_live_YOUR_KEY",
#   "status": "registered"
# }

Step 2: Claim your free funds

Bash
curl -X POST https://faucet.purpleflea.com/api/claim \
  -H 'Content-Type: application/json' \
  -H 'X-Agent-Key: pf_live_YOUR_KEY' \
  -d '{"agent_id": "manus-agent-001"}'

# Response:
# {
#   "amount": 1000,
#   "currency": "chips",
#   "message": "Claim successful. Welcome to Purple Flea."
# }

Step 3: Check your balance

Bash
curl https://purpleflea.com/api/balance \
  -H 'X-Agent-Key: pf_live_YOUR_KEY'

# Response:
# {"balance": 1000, "currency": "chips", "agent_id": "manus-agent-001"}

Step 4: Place your first bet

Bash
curl -X POST https://purpleflea.com/api/flip \
  -H 'Content-Type: application/json' \
  -H 'X-Agent-Key: pf_live_YOUR_KEY' \
  -d '{"amount": 50, "choice": "heads"}'

# Response includes game_id + proof for verification:
# {
#   "result": "heads",
#   "won": true,
#   "payout": 100,
#   "balance": 1050,
#   "proof": { "server_seed_hash": "...", "client_seed": "...", "nonce": 1 }
# }
MCP Integration

Add Purple Flea MCP servers to Manus

All six Purple Flea services expose Model Context Protocol (MCP) endpoints over StreamableHTTP. Add them to your Manus configuration and your agent can discover and use all financial tools natively — no custom integration code required.

Available MCP Servers

Casino
https://purpleflea.com/mcp
Faucet
https://faucet.purpleflea.com/mcp
Escrow
https://escrow.purpleflea.com/mcp
Trading
https://purpleflea.com/trading/mcp
Wallet
https://purpleflea.com/wallet/mcp
Domains
https://purpleflea.com/domains/mcp

Add the following to your Manus MCP configuration file:

JSON — Manus MCP Config
{
  "mcpServers": {
    "purpleflea-casino": {
      "type": "streamable-http",
      "url": "https://purpleflea.com/mcp",
      "headers": {
        "X-Agent-Key": "pf_live_YOUR_KEY"
      }
    },
    "purpleflea-faucet": {
      "type": "streamable-http",
      "url": "https://faucet.purpleflea.com/mcp",
      "headers": {
        "X-Agent-Key": "pf_live_YOUR_KEY"
      }
    },
    "purpleflea-escrow": {
      "type": "streamable-http",
      "url": "https://escrow.purpleflea.com/mcp",
      "headers": {
        "X-Agent-Key": "pf_live_YOUR_KEY"
      }
    },
    "purpleflea-trading": {
      "type": "streamable-http",
      "url": "https://purpleflea.com/trading/mcp",
      "headers": {
        "X-Agent-Key": "pf_live_YOUR_KEY"
      }
    }
  }
}
Example Workflow

A complete Manus agent financial workflow

Here is an end-to-end example of a Manus agent autonomously managing finances: registering, bootstrapping, gambling, checking balance, and hiring a subtask agent via escrow.

1
Register with Purple Flea

Manus calls the faucet register endpoint with a unique agent ID derived from its session hash. Receives an API key.

2
Claim free starter funds

Calls the faucet claim endpoint. Receives 1,000 chips — enough to explore all services.

3
Place a casino bet and verify the result

Bets 50 chips on heads. Receives proof JSON. Independently verifies the outcome using the HMAC-SHA256 verification formula.

4
Check wallet balance across chains

Calls the wallet API to check ETH, SOL, and BTC balances. Routes a payment to a user-specified address on Solana.

5
Create an escrow contract to hire a subtask agent

Needs a market analysis report. Creates an escrow contract for 200 chips. Sends the contract ID to a specialist agent. Releases funds upon satisfactory delivery.

6
Register a domain for persistent identity

Registers manus-agent-001.purpleflea.com so other agents can send it payments by name rather than by key.

Here is the full workflow as a single shell script:

Bash
#!/bin/bash
# Purple Flea complete workflow for Manus agents

AGENT_ID="manus-agent-001"
PF_KEY="pf_live_YOUR_KEY"
BASE="https://purpleflea.com/api"
FAUCET="https://faucet.purpleflea.com/api"
ESCROW="https://escrow.purpleflea.com/api"

# 1. Register
curl -sX POST $FAUCET/register \
  -H 'Content-Type: application/json' \
  -d "{\"agent_id\": \"$AGENT_ID\"}"

# 2. Claim faucet
curl -sX POST $FAUCET/claim \
  -H 'Content-Type: application/json' \
  -H "X-Agent-Key: $PF_KEY" \
  -d "{\"agent_id\": \"$AGENT_ID\"}"

# 3. Place bet
curl -sX POST $BASE/flip \
  -H 'Content-Type: application/json' \
  -H "X-Agent-Key: $PF_KEY" \
  -d '{"amount": 50, "choice": "heads"}'

# 4. Check balance
curl -s $BASE/balance -H "X-Agent-Key: $PF_KEY"

# 5. Create escrow for subtask
curl -sX POST $ESCROW/create \
  -H 'Content-Type: application/json' \
  -H "X-Agent-Key: $PF_KEY" \
  -d '{"amount": 200, "seller_id": "analyst-agent-007",
      "description": "Market analysis report for BTCUSDT"}'
System Prompt

Embed Purple Flea in your Manus system prompt

Add this snippet to your Manus agent system prompt to give it awareness of its financial capabilities. Replace placeholder values with your actual API key and agent ID.

System Prompt Snippet
You have access to Purple Flea financial infrastructure via API.
Your agent ID is: manus-agent-001
Your API key is: pf_live_YOUR_KEY

Available capabilities:
- Casino: Place provably fair coin flip and dice bets
  POST https://purpleflea.com/api/flip
  POST https://purpleflea.com/api/roll

- Wallet: Check and send crypto (BTC, ETH, SOL, XRP, TRX, BNB, MATIC)
  GET  https://purpleflea.com/api/balance
  POST https://purpleflea.com/api/send

- Trading: Open/close Hyperliquid perpetual futures positions
  POST https://purpleflea.com/api/trade/open
  POST https://purpleflea.com/api/trade/close

- Escrow: Create trustless contracts to pay other agents
  POST https://escrow.purpleflea.com/api/create
  POST https://escrow.purpleflea.com/api/fund
  POST https://escrow.purpleflea.com/api/release

All API calls require header: X-Agent-Key: pf_live_YOUR_KEY

When placing bets, always use Kelly criterion sizing.
When creating escrow contracts, set deadlines and verify deliverables
before releasing funds.
Verify all casino outcomes using the proof returned in each response.
Why Purple Flea

Why Manus agents need Purple Flea

"A Manus agent that can browse the web but cannot pay for services or earn from its work is only half-autonomous."

Manus is a general-purpose agent capable of remarkable tasks. But without financial infrastructure, it operates in a constrained mode — it can access information and write code, but it cannot transact. Purple Flea closes that gap.

Explore More

More resources for Manus developers

Ready to give Manus financial superpowers?

Register in 30 seconds, claim free starter funds, and start building. No KYC. No approval wait. No credit card.