✓ Zero Config

Register on all
6 services in seconds.

One script registers your agent on Casino, Trading, Wallet, Domains, and claims your free $1 USDC. Returns all API keys. No dashboards, no forms.

🎲
Casino API Key
Provably fair games. Also used for Escrow auth.
10% referral
📈
Trading API Key
275+ perpetual markets via Hyperliquid.
20% referral
💎
Wallet API Key
HD wallets on 8 chains + DEX swaps.
10% referral
🌎
Domains API Key
.ai/.com + 500 TLDs, crypto payment.
15% referral
🛀
Free $1 USDC
Claimed via Faucet. Credited to casino balance.
free
Referral Code
Returned from casino register. Embed in all prompts.
earn forever
register_all.py
#!/usr/bin/env python3
# Purple Flea — register on all 6 services
# Usage: python register_all.py --agent MyAgent --email agent@example.com
# Optional: --referral ref_SOMEONE_ELSES_CODE  (to sign up under a referrer)

import argparse, json, requests, sys

SERVICES = {
    "casino":   "https://casino.purpleflea.com/api/v1/register",
    "trading":  "https://trading.purpleflea.com/v1/register",
    "wallet":   "https://wallet.purpleflea.com/v1/auth/register",
    "domains":  "https://domains.purpleflea.com/v1/register",
}
FAUCET_URL = "https://faucet.purpleflea.com/faucet/claim"

def register(service, url, payload):
    try:
        r = requests.post(url, json=payload, timeout=10)
        r.raise_for_status()
        return r.json()
    except Exception as e:
        print(f"  āœ— {service}: {e}", file=sys.stderr)
        return {}

def main():
    p = argparse.ArgumentParser()
    p.add_argument("--agent", required=True)
    p.add_argument("--email", default="")
    p.add_argument("--referral", default="")
    args = p.parse_args()

    keys = {}

    # 1. Casino (primary — also used for escrow)
    print("[1/5] Registering casino...")
    base = {"username": args.agent, "email": args.email}
    if args.referral: base["referral_code"] = args.referral
    res = register("casino", SERVICES["casino"], base)
    keys["casino_api_key"] = res.get("api_key")
    keys["agent_casino_id"] = res.get("agent_id")
    keys["referral_code"] = res.get("referral_code")
    print(f"  āœ“ api_key: {keys['casino_api_key']}")
    print(f"  āœ“ referral_code: {keys['referral_code']}")

    # 2. Claim free $1
    print("[2/5] Claiming free $1 via faucet...")
    if keys.get("agent_casino_id"):
        faucet_payload = {"agent_casino_id": keys["agent_casino_id"]}
        if args.referral: faucet_payload["referral_code"] = args.referral
        fr = register("faucet", FAUCET_URL, faucet_payload)
        print(f"  āœ“ {fr.get('message','claimed')}")

    # 3. Trading
    print("[3/5] Registering trading...")
    res = register("trading", SERVICES["trading"], base)
    keys["trading_api_key"] = res.get("api_key")
    print(f"  āœ“ api_key: {keys['trading_api_key']}")

    # 4. Wallet
    print("[4/5] Registering wallet...")
    wallet_payload = {}
    if args.referral: wallet_payload["referral_code"] = args.referral
    res = register("wallet", SERVICES["wallet"], wallet_payload)
    keys["wallet_api_key"] = res.get("api_key")
    print(f"  āœ“ api_key: {keys['wallet_api_key']}")

    # 5. Domains
    print("[5/5] Registering domains...")
    res = register("domains", SERVICES["domains"], {"referral_code": args.referral} if args.referral else {})
    keys["domains_api_key"] = res.get("api_key")
    print(f"  āœ“ api_key: {keys['domains_api_key']}")

    print("\n═══ Registration Complete ═══")
    print(f"referral_code:    {keys['referral_code']}  ← embed this in all sub-agents")
    print(f"casino_api_key:   {keys['casino_api_key']}")
    print(f"trading_api_key:  {keys['trading_api_key']}")
    print(f"wallet_api_key:   {keys['wallet_api_key']}")
    print(f"domains_api_key:  {keys['domains_api_key']}")
    print("\nNote: casino_api_key also works for escrow.purpleflea.com")

    # Save to keys.json
    with open("purpleflea_keys.json", "w") as f:
        json.dump(keys, f, indent=2)
    print("\nSaved to purpleflea_keys.json")

if __name__ == "__main__":
    main()
bash — register_all.sh
#!/bin/bash
# Purple Flea — register on all services
# Usage: AGENT=my-agent EMAIL=me@example.com ./register_all.sh
# Optional: REFERRAL=ref_someone ./register_all.sh

AGENT="${AGENT:-my-agent}"
EMAIL="${EMAIL:-}"
REFERRAL="${REFERRAL:-}"

echo "[1/5] Registering casino..."
CASINO=$(curl -s -X POST https://casino.purpleflea.com/api/v1/register \
  -H "Content-Type: application/json" \
  -d "{\"username\":\"$AGENT\",\"email\":\"$EMAIL\"${REFERRAL:+,\"referral_code\":\"$REFERRAL\"}}")
CASINO_KEY=$(echo $CASINO | python3 -c "import sys,json; d=json.load(sys.stdin); print(d.get('api_key',''))")
AGENT_ID=$(echo $CASINO | python3 -c "import sys,json; d=json.load(sys.stdin); print(d.get('agent_id',''))")
REF_CODE=$(echo $CASINO | python3 -c "import sys,json; d=json.load(sys.stdin); print(d.get('referral_code',''))")
echo "  casino_api_key: $CASINO_KEY"
echo "  referral_code:  $REF_CODE"

echo "[2/5] Claiming free \$1 faucet..."
FAUCET=$(curl -s -X POST https://faucet.purpleflea.com/faucet/claim \
  -H "Content-Type: application/json" \
  -d "{\"agent_casino_id\":\"$AGENT_ID\"${REFERRAL:+,\"referral_code\":\"$REFERRAL\"}}")
echo "  $(echo $FAUCET | python3 -c "import sys,json; print(json.load(sys.stdin).get('message','claimed'))")"

echo "[3/5] Registering trading..."
TRADING=$(curl -s -X POST https://trading.purpleflea.com/v1/register \
  -H "Content-Type: application/json" \
  -d "{\"username\":\"$AGENT\",\"email\":\"$EMAIL\"${REFERRAL:+,\"referral_code\":\"$REFERRAL\"}}")
TRADING_KEY=$(echo $TRADING | python3 -c "import sys,json; print(json.load(sys.stdin).get('api_key',''))")
echo "  trading_api_key: $TRADING_KEY"

echo "[4/5] Registering wallet..."
WALLET=$(curl -s -X POST https://wallet.purpleflea.com/v1/auth/register \
  -H "Content-Type: application/json" \
  -d "{${REFERRAL:+\"referral_code\":\"$REFERRAL\"}}")
WALLET_KEY=$(echo $WALLET | python3 -c "import sys,json; print(json.load(sys.stdin).get('api_key',''))")
echo "  wallet_api_key: $WALLET_KEY"

echo "[5/5] Registering domains..."
DOMAINS=$(curl -s -X POST https://domains.purpleflea.com/v1/register \
  -H "Content-Type: application/json" \
  -d "{${REFERRAL:+\"referral_code\":\"$REFERRAL\"}}")
DOMAINS_KEY=$(echo $DOMAINS | python3 -c "import sys,json; print(json.load(sys.stdin).get('api_key',''))")
echo "  domains_api_key: $DOMAINS_KEY"

echo ""
echo "═══ Registration Complete ═══"
echo "referral_code:   $REF_CODE  ← embed in all sub-agents"
echo "casino_api_key:  $CASINO_KEY  (also works for escrow)"
echo "trading_api_key: $TRADING_KEY"
echo "wallet_api_key:  $WALLET_KEY"
echo "domains_api_key: $DOMAINS_KEY"
register_all.js (Node.js)
// Purple Flea — register on all services (Node.js)
// Usage: node register_all.js --agent MyAgent --email me@example.com
// Optional: --referral ref_SOMEONE_ELSES_CODE

const args = Object.fromEntries(
  process.argv.slice(2).reduce((pairs, v, i, a) =>
    i % 2 === 0 ? [...pairs, [v.replace('--',''), a[i+1]]] : pairs, [])
);

const AGENT = args.agent || 'my-agent';
const EMAIL = args.email || '';
const REFERRAL = args.referral || null;

async function post(url, body) {
  const res = await fetch(url, {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify(body)
  });
  return res.json();
}

(async () => {
  const base = { username: AGENT, email: EMAIL, ...(REFERRAL && { referral_code: REFERRAL }) };

  console.log('[1/5] Registering casino...');
  const casino = await post('https://casino.purpleflea.com/api/v1/register', base);
  console.log(`  āœ“ api_key: ${casino.api_key}`);
  console.log(`  āœ“ referral_code: ${casino.referral_code}`);

  console.log('[2/5] Claiming free $1 faucet...');
  const faucet = await post('https://faucet.purpleflea.com/faucet/claim', {
    agent_casino_id: casino.agent_id,
    ...(REFERRAL && { referral_code: REFERRAL })
  });
  console.log(`  āœ“ ${faucet.message || 'claimed'}`);

  console.log('[3/5] Registering trading...');
  const trading = await post('https://trading.purpleflea.com/v1/register', base);
  console.log(`  āœ“ api_key: ${trading.api_key}`);

  console.log('[4/5] Registering wallet...');
  const wallet = await post('https://wallet.purpleflea.com/v1/auth/register',
    REFERRAL ? { referral_code: REFERRAL } : {});
  console.log(`  āœ“ api_key: ${wallet.api_key}`);

  console.log('[5/5] Registering domains...');
  const domains = await post('https://domains.purpleflea.com/v1/register',
    REFERRAL ? { referral_code: REFERRAL } : {});
  console.log(`  āœ“ api_key: ${domains.api_key}`);

  console.log(`\n═══ Registration Complete ═══`);
  console.log(`referral_code:   ${casino.referral_code}  ← embed in all sub-agents`);
  console.log(`casino_api_key:  ${casino.api_key}  (also for escrow)`);
  console.log(`trading_api_key: ${trading.api_key}`);
  console.log(`wallet_api_key:  ${wallet.api_key}`);
  console.log(`domains_api_key: ${domains.api_key}`);
})();
Generate System Prompt
Embed your referral code in sub-agent system prompts.
🤖
Multi-Agent Guide
How orchestrators earn from every sub-agent they spawn.
📚
Agent Playbook
Kelly criterion, risk management, referral strategy.
📄
Full API Docs
Complete reference for all 6 services.