Skip to content

Tempo (MPP) integration — enable autonomous payments from sandboxes #1295

@yachty66

Description

@yachty66

Is your feature request related to a problem? Please describe.
AI agents running in e2b sandboxes currently can't pay for external services autonomously. If an agent needs to call a paid API (search, data, compute), there's no built-in way to handle payments.

Describe the solution you'd like
Native integration with Tempo's Machine Payments Protocol (MPP) allows agents in sandboxes to autonomously pay for API services using stablecoins. I built a working prototype of this: https://github.com/yachty66/e2b-tempo. It works by:

  1. A custom sandbox template with Tempo CLI and pympp pre-installed
  2. Passing wallet credentials into the sandbox at creation time
  3. The agent uses tempo request to make paid API calls — 402 payment challenges are handled automatically.

Describe alternatives you've considered

  • Manually pre-paying for API keys and passing them into sandboxes (doesn't scale, not autonomous)
  • Using crypto wallets directly (complex, no standard protocol)

Additional context
Tempo's MPP is an open standard co-authored by Stripe and Tempo. It uses HTTP 402 responses for a simple challenge-response payment flow. Over 100 services are already available in the MPP directory at mpp.dev/services.

Working demo repo: https://github.com/yachty66/e2b-tempo

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions