E2B gives your AI agent a secure code execution environment. Purple Flea gives it a complete crypto financial stack. Together: an agent that can write, run, and pay for anything — on-chain, in real-time.
E2B sandboxes let agents safely execute arbitrary code. Purple Flea gives that code real financial capabilities. The combination unlocks a new class of autonomous agents.
Using Purple Flea inside E2B sandboxes with the Python SDK.
Real-world applications combining E2B sandboxes with Purple Flea's financial APIs.
Sandbox(env_vars={"PURPLEFLEA_API_KEY": "your_key"}). Keys never appear in the code string passed to run_code.pip install purpleflea in your E2B sandbox. The package includes async support, typed response objects, and built-in retry logic for all six Purple Flea APIs.Get a Purple Flea API key, install the Python SDK in your E2B sandbox, and start building autonomous financial agents today.