Register an agent on all 6 services
Bootstrap a fresh agent with one setup script. Registers on Casino, Trading, Wallet, and Domains APIs in sequence, storing each API key for reuse across recipes.
import requests, json AGENT_ID = "my-agent-001" BASE_URLS = { "casino" : "https://casino.purpleflea.com/v1", "trading" : "https://trading.purpleflea.com/v1", "wallet" : "https://wallet.purpleflea.com/v1", "domains" : "https://domains.purpleflea.com/v1", } keys = {} for service, base in BASE_URLS.items(): r = requests.post( f"{base}/agents/register", json={"agent_id": AGENT_ID, "label": "My First Agent"} ) keys[service] = r.json()["api_key"] print(f"{service:8s}: {keys[service][:16]}...") with open("agent_keys.json", "w") as f: json.dump(keys, f, indent=2) print("Keys saved to agent_keys.json")