Skip to content

Get Started

Prompts are code. Treat them like it.

px0 is open-source prompt infrastructure for AI applications. It replaces hardcoded prompt strings with versioned templates, in-process caching, A/B testing, and OpenTelemetry observability - so you can iterate on prompts without touching application code.

  • Versioned prompt templates with a Draft-Review-Publish workflow and immutable published versions
  • Easy templating with variables, conditionals, loops, filters, and macros rendered in a sandbox
  • In-process caching with TTL, push-based invalidation, and background refresh before expiry
  • A/B testing with traffic splitting by percentage
  • OpenTelemetry observability for latency, cache hit rates, and errors
  • Sub-2ms p99 render latency

Visit the GitHub Repository to run px0 locally, explore examples, and deploy it in production. In just a few minutes, you can start versioning, testing, caching, and observing prompts without changing application code.

Treat prompts like code. Ship them with confidence.