Is there a free code sandbox API for agents?

Yes. As of 2026-09-29, 3 free code sandbox offers we track are available, each dated when last verified against the provider's page.

OfferProviderStatusWhat it offersExpiryVerifiedSourceCaveats
E2B Hobby tierE2BavailableOne-time $100 usage credits, up to 20 concurrent agent code sandboxes, 1-hour max session, no cardno stated expiry2026-09-16sourcecredits are one-time, not monthly
GitHub Codespaces included hoursGitHubavailable120 units of Codespaces compute time and 15 GB-month storage per month on GitHub Free personal accounts (180 units / 20 GB-month on Pro), resetting each billing cycleno stated expiry2026-09-16sourcecore-hours: a 2-core machine burns 2/hour, so 120 core-hours = 60 real hours on the smallest machine. IMPORTANT UNIT CLARIFICATION 2026-09-16 — THE HOURS ARE NOT WALL-CLOCK HOURS. The docs table reads "120 hrs", but a s…
Modal Starter planModalavailable$30/month free compute credits (recurring), 3 workspace seats included, 100 containers and 10 GPU concurrencyno stated expiry2026-09-16sourceacademic program up to $10K credits by application. Re-read first-party 2026-09-16 and holds, including the recurring monthly framing: "Get started with $30 / month free compute" on the Starter plan.

Free LLM APIs, no card · Free AI APIs an agent can sign up for · Machine-readable: ai-deals.json