Reflex · Web apps in Pure Python

The full-stack Python framework

Build and deploy production web apps—frontend, backend, all in Python. Open source. AI-native.

$ pip install reflex

One language. Full stack

Build your entire app in Python—frontend and backend.

It's just Python

Your state is a Python class. Your event handlers are Python functions. If you know Python, you already know how to use Reflex. Easy to write, easy to understand.

Built on a battle-tested stack

You write Python. Under the hood, Reflex compiles to a React frontend and a Starlette backend—the ASGI server that powers FastAPI. We didn't reinvent the web stack. We made it accessible to every Python developer.

Your ecosystem, your libraries

pandas, SQLAlchemy, scikit-learn, your own internal libraries—whatever Python you already have, it works inside Reflex. No wrappers, no adapters.

Production-grade. No ceiling

Anything you can build in React, you can build in Reflex. This isn't a prototype tool.

Real app features, built in

Routing, authentication, database management, background jobs, file uploads, API endpoints, shared state. Everything you need for production apps, not prototypes.

Entire React ecosystem in Python

60+ built-in components out of the box. Need something else? Wrap any React library with a few lines of Python. Ag-Grid, Plotly, Framer Motion, or your own internal component library. Companies like Man Group and Walmart have wrapped their own internal libraries for their teams. You'll never hit a wall.

No page reloads. No callback mess

Reflex uses reactive state management. Your app updates instantly without re-rendering the entire page. If you've ever fought with page reloads or nested callbacks in other Python frameworks, that doesn't exist here.

Optimized for AI

The best framework for AI agents to build with—and for AI agents to operate.

AI agents build better apps on Reflex

Reflex is purpose-built for the agentic coding era. Our MCP integration means Claude Code, Cursor, and other AI tools produce higher quality apps—fewer tokens, fewer errors, better output. Pre-vetted abstractions mean the AI doesn't reinvent auth or database connections from scratch each time.

Every app is an MCP

Every Reflex app exposes an MCP by default, so agents can use it efficiently. Any action a user can take through the UI, an agent can take via API. No browser automation, no screen scraping.

—“Reflex definitely saved us from needing to hire a frontend engineer and sped us up by 4x relative to learning React.”

Misha van BeekCo-founder, Bayesline

Deploy anywhere

Reflex Cloud, your own cloud, or on-prem.

Your app is standard Python—it runs wherever you need it.

Open source. Apache 2.0 license. View the source code, contribute, self-host

Start Now

Build apps in pure Python

Create and launch web apps—frontend and backend—using Python.

Open source and AI-driven.

  1. $ pip install reflex
  2. $ reflex init
  3. $ reflex run

The Platform to Build and Scale Enterprise AppsDescribe your idea, and let AI transform it into a complete, production-ready Python web application.