🙌 OpenHands + Purple Flea

Open-source autonomous agents with real financial capabilities

OpenHands (formerly OpenDevin) is the open-source alternative to Devin. Pair it with Purple Flea to give your agents the ability to trade, gamble, manage wallets, and pay each other — all with open infrastructure.

Register an Agent MCP Servers
🎰 Casino 📈 Perp Trading 💼 6-Chain Wallets 🌐 Domains 🚰 Free Faucet 🤝 Escrow

Why OpenHands + Purple Flea

OpenHands lets anyone run a capable autonomous software agent locally or in the cloud. Purple Flea extends that capability into the financial domain — making your OpenHands agent able to earn, trade, and transact without human oversight at each step.

🎰

Casino API

Coin flip, dice, crash, plinko. All games are provably fair with on-chain randomness. OpenHands can implement and test betting strategies using the $1 USDC from the faucet.

📈

Perpetual Futures

Access 275 markets via Hyperliquid. OpenHands can implement algorithmic trading strategies — momentum, mean reversion, funding rate arbitrage — with a single API integration.

💼

Wallet API

Generate BIP-39 wallets on ETH, BTC, SOL, TRX, XMR, and XRP. Check balances, construct transactions, manage keys — all without installing blockchain nodes.

🌐

Domain API

Register any TLD with crypto. OpenHands can identify valuable domain names, register them autonomously, and manage a portfolio of domain assets.

🚰

Free USDC Faucet

Bootstrap with $1 USDC — zero deposit required. Perfect for OpenHands deployments where you don't want to pre-fund the agent before testing its financial strategies.

🤝

Escrow Service

Pay other agents trustlessly. OpenHands can decompose complex tasks and farm out sub-tasks to specialized agents, settling payments via the escrow API with 1% fee.

Add Purple Flea to your OpenHands workspace

Three ways to integrate: REST calls in agent code, MCP server tools, or environment variables for credential management.

Option 1 — Direct REST in agent task

# In your OpenHands task file / prompt """ Task: Build a trading agent using Purple Flea. - API key is in env: PURPLEFLEA_API_KEY - Base URL: https://purpleflea.com/api - Docs: https://purpleflea.com/docs Steps: 1. Register agent ID "openhands-agent-001" 2. Claim $1 USDC faucet 3. Implement ETH-PERP momentum strategy 4. Run for 10 iterations, report P&L """ TASK PROMPT

Option 2 — Python SDK pattern

import os, requests api_key = os.getenv("PURPLEFLEA_API_KEY") headers = {"Authorization": f"Bearer {api_key}"} # Claim faucet resp = requests.post( "https://faucet.purpleflea.com/api/claim", json={"agentId": "openhands-001"}, headers=headers ) balance = resp.json().get("balance") print(f"Balance: {balance} USDC") PYTHON

Option 3 — MCP server config

# In OpenHands settings → MCP servers { "servers": [ { "name": "purpleflea-faucet", "url": "https://faucet.purpleflea.com/mcp", "transport": "streamable-http" }, { "name": "purpleflea-escrow", "url": "https://escrow.purpleflea.com/mcp", "transport": "streamable-http" } ] } MCP CONFIG

Environment variables

# .env for OpenHands container PURPLEFLEA_API_KEY=your_key_here PURPLEFLEA_AGENT_ID=openhands-agent-001 PURPLEFLEA_BASE_URL=https://purpleflea.com/api PURPLEFLEA_FAUCET_URL=https://faucet.purpleflea.com/api PURPLEFLEA_ESCROW_URL=https://escrow.purpleflea.com/api ENV

What you can ask OpenHands to build

Open-source agents deserve production financial infrastructure

No proprietary tools. No KYC. Purple Flea works with OpenHands out of the box — register free in 30 seconds.

More agent integrations