Skip to main content

Configuration

PODFLARE_HOSTD_URL
string
default:"https://api.podflare.ai"
Base URL of the hostd HTTP API. In hosted mode this is set to the cloud endpoint; during local dev it’s the Hetzner box you tunneled to.

Run Python with persistent state

Each sandbox owns a long-lived Python process. Variables, imports, and any in-memory state survive across run_code calls.
This is the reason you chose Podflare. Set up expensive state once, then fork N ways. Each child inherits the parent’s Python REPL + filesystem — subsequent divergence is copy-on-write isolated.

Next

Concepts: fork

How CoW branching + REPL inheritance actually works

API Reference

The full HTTP surface