# Reflex — The full-stack Python framework

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

```bash
pip install reflex
```

- Start building: [build.reflex.dev](https://build.reflex.dev/)
- Docs: [reflex.dev/docs/getting-started/introduction](https://reflex.dev/docs/getting-started/introduction/)
- GitHub: [github.com/reflex-dev/reflex](https://github.com/reflex-dev/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.
- **Built on a battle-tested stack.** 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.
- **The entire React ecosystem, in Python.** 60+ built-in components. 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.
- **No page reloads. No callback mess.** Reflex uses reactive state management. Your app updates instantly without re-rendering the entire page. The page-reload and nested-callback problems from other Python frameworks don'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. MCP integration means Claude Code, Cursor, and other AI tools produce higher-quality apps with fewer tokens and fewer errors. 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.

## Deploy anywhere

Reflex Cloud, your own cloud, or on-prem. Your app is standard Python — it runs wherever you need it. Supported: Reflex Cloud, AWS, Azure, GCP, Databricks, on-prem.

- Quickstart: [reflex.dev/docs/hosting/deploy-quick-start](https://reflex.dev/docs/hosting/deploy-quick-start/)

## Open source. Apache 2.0

View the source code, contribute, or self-host.

- GitHub: [github.com/reflex-dev/reflex](https://github.com/reflex-dev/reflex)
- Discord: community of tens of thousands of Python developers
- 23,000+ GitHub stars, 1,000,000+ apps built with Reflex, used inside Fortune 500 companies.

## Quote

> "Reflex definitely saved us from needing to hire a frontend engineer and sped us up by 4x relative to learning React."
> — Misha van Beek, Co-founder, Bayesline

## Learn more

- [Component library](https://reflex.dev/docs/library/)
- [State management](https://reflex.dev/docs/state/overview/)
- [Database](https://reflex.dev/docs/database/overview/)
- [How Reflex works](https://reflex.dev/docs/advanced-onboarding/how-reflex-works/)
- [API reference](https://reflex.dev/docs/api-reference/)
- [Full LLM-ready docs index](https://reflex.dev/llms.txt)

## Related products

- [AI Builder](/ai-builder.md) — generate Reflex apps with AI
- [Hosting](/hosting.md) — `reflex deploy`
- [Enterprise](/enterprise.md) — on-prem, governance, support
- [Pricing](/pricing.md)
