# PythonAnywhere free tier in 2026: FastAPI, always-on tasks and what runs 24/7

Gregale · Updated 2026-12-04

PythonAnywhere’s free plan runs one Flask or Django app that expires after a month. FastAPI hosting is in beta, and always-on tasks need the $10 plan.

**PythonAnywhere’s free Beginner plan runs one Flask or Django web app at
your-username.pythonanywhere.com, and it keeps running between visits: its
code stays loaded from one request to the next. But the app expires after a
month, it gets one web worker, and it can reach only allowlisted sites. FastAPI runs only on
PythonAnywhere’s ASGI hosting, which is in beta, is set up from the command
line, and has no settled price. A process that must run all the time, such as
a polling bot or a queue worker, needs an always-on task, and those come only
with the $10 Developer plan.**

_Gregale publishes this page. PythonAnywhere’s limits come from its own
[pricing page](https://www.pythonanywhere.com/pricing/), its help pages on
[free accounts](https://help.pythonanywhere.com/pages/FreeAccountsFeatures/),
[ASGI sites](https://help.pythonanywhere.com/pages/ASGICommandLine/),
[Flask-SocketIO](https://help.pythonanywhere.com/pages/FlaskSocketIO/),
[always-on tasks](https://help.pythonanywhere.com/pages/AlwaysOnTasks/),
[scheduled tasks](https://help.pythonanywhere.com/pages/ScheduledTasks/),
[async work](https://help.pythonanywhere.com/pages/AsyncInWebApps/) and
[how web apps run](https://help.pythonanywhere.com/pages/GlobalStateAndWebApps/),
and its
[December 2025 post](https://blog.pythonanywhere.com/221/) on the free plan,
all checked on December 4, 2026. Gregale’s come from its
[plans page](https://gregale.dev/docs/plans.md), and its numbers from a test we ran that day._

## What the free plan includes

| PythonAnywhere                 | Beginner (free)                                   | Developer ($10 a month)                     |
| ------------------------------ | ------------------------------------------------- | ------------------------------------------- |
| Web apps                       | 1, at your-username.pythonanywhere.com            | 1, on a custom domain or the same subdomain |
| Web workers                    | 1                                                 | 3                                           |
| Expiry                         | The web app expires after 1 month                 | No expiry listed                            |
| Internet access from your code | Allowlisted sites only, over HTTP(S)              | Unrestricted                                |
| CPU-seconds a day              | 100, for consoles and tasks; web apps don’t count | 5,000                                       |
| Consoles                       | 2                                                 | Unlimited                                   |
| Scheduled tasks                | None on accounts created since January 15, 2026   | 20, hourly or daily                         |
| Always-on tasks                | None                                              | 1                                           |
| MySQL                          | None on accounts created since January 15, 2026   | Yes                                         |
| Disk                           | 512 MB                                            | 5 GB                                        |

The free plan got smaller in January 2026. PythonAnywhere moved scheduled
tasks and MySQL to the Developer plan for new accounts, cut the expiry of
unused web apps from 3 months to 1, and replaced direct support with its
forums. The cheapest paid plan went from $5 to $10 a month. Accounts created
before January 15, 2026 (January 8 on the EU system) kept one daily
scheduled task and MySQL.

## Does PythonAnywhere support FastAPI?

Only on its ASGI hosting, which PythonAnywhere labels beta and experimental.
Its regular web apps are WSGI, which fits Flask, Django and Bottle but not
an async framework. For FastAPI, FastHTML or async Django you install the `pa`
command-line tool in a PythonAnywhere console and create the site with
`pa website create`, giving it a uvicorn command that listens on a Unix
socket. PythonAnywhere lists the catches:

- No static file mappings.
- The site doesn’t appear on the Web page of your account; there is only a
  limited web UI, on request.
- The command-line syntax and the API may change.
- Pricing isn’t settled. PythonAnywhere says it is “99.9% certain that there
  will be a way to host them in a free plan”, so it doesn’t promise that.

WebSockets are in the same position: PythonAnywhere documents them only for
Flask-SocketIO, on the same beta hosting.

## Does it run 24/7?

**A web app, yes.** PythonAnywhere loads a web app’s code when the app
starts or reloads, and it stays loaded between requests, so the first visitor
after a quiet night doesn’t wait for it to start. On the free plan the app
has one worker, which handles one request at a time, so requests queue, and
PythonAnywhere restarts any worker that takes longer than 5 minutes to
answer. The app expires after a month.

**A background process, only on a paid plan.** A bot that polls, a queue
worker or a script that loops forever needs an always-on task, which
restarts the process if it crashes. Free accounts don’t get them. A script in
a free console runs for a while, but PythonAnywhere restarts its servers for
maintenance from time to time, and the console resets. Even on a
paid plan, an always-on task that uses up the day’s CPU-seconds is stopped
and restarted at a lower priority.

So a Telegram or Discord bot can run free on PythonAnywhere only as a web app
that receives webhooks; see
[free Telegram bot hosting 24/7](https://gregale.dev/articles/free-telegram-bot-hosting-24-7) and
[free Discord bot hosting 24/7](https://gregale.dev/articles/free-discord-bot-hosting-24-7).

## Where Gregale fits

Gregale runs FastAPI the same way it runs Flask or Django: as an ordinary
Python app in its own microVM, deployed from source with `gregale deploy`. The
Free plan gives you 1 app with 256 MB and 20 GB-RAM-hours a month, and
requests can take up to 30 seconds. Gregale’s plans page sets no expiry on
it, and the app can call any public site on the internet. An app parks after
1 minute idle and holds no memory while parked, so the 20 GB-RAM-hours go to
the time it actually runs.

On December 4, 2026 we deployed a two-route FastAPI app, a `main.py` and a
`requirements.txt` with `fastapi` and `uvicorn[standard]`, with
`gregale deploy`. Gregale detected FastAPI and started it with
`uvicorn main:app --host 0.0.0.0 --port $PORT`, with no start command from us.
It ran on a 512 MB instance, and we parked it before each of 6 requests:

- **Inside Gregale:** the snapshot restored in 62 to 86 ms, and the first
  byte of the response left 184 to 210 ms after the request reached Gregale,
  by the app’s wake timeline.
- **From a laptop in Istanbul:** a parked app answered in 0.65 to 0.70
  seconds end to end, against 0.47 to 0.53 seconds once it was running. About
  a third of a second of each was opening the connection and TLS to the app
  in Quebec.

Our [cold start times by language](https://gregale.dev/articles/cold-start-times-by-language)
page compares the same restore with a cold boot of FastAPI and other
runtimes.

Gregale Free has no scheduled tasks and no process that runs all the time,
which PythonAnywhere’s Developer plan has, and its requests stop at 30
seconds, where every PythonAnywhere web app gets 5 minutes. Gregale’s Hobby
plan costs $10 a month for 5 apps with 512 MB each, with crons, WebSockets, a
managed Postgres database, workers that run all month, and requests up to 1
minute. Pro allows 5 minutes.

## What we verified

PythonAnywhere’s pricing page, help pages and blog post on December 4, 2026.
We didn’t create a PythonAnywhere account for this page, so we haven’t tested
whether a free account can create an ASGI site today. Gregale’s plans are from
its plans page that day, and the FastAPI numbers from our own test, after which
we deleted the test app.

## Questions

### Does PythonAnywhere support FastAPI?

Only on its ASGI hosting, which is in beta: you create the site with the pa command-line tool and a uvicorn command, it has no static file mappings, and PythonAnywhere hasn’t settled its price. Regular PythonAnywhere web apps are WSGI, for Flask, Django and Bottle.

### Is PythonAnywhere’s free tier 24/7?

The free web app stays loaded between requests, with one worker, but it expires after a month. A process that must run all the time, such as a polling bot or a queue worker, needs an always-on task, and those are only on paid plans.

### Does PythonAnywhere support WebSockets?

PythonAnywhere documents WebSockets only for Flask-SocketIO, on the same beta hosting as its ASGI sites.

### Can I run scheduled tasks on PythonAnywhere for free?

Not on an account created since January 15, 2026 (January 8 on the EU system). Older free accounts keep one daily task that can run for up to two hours. The $10 Developer plan has 20 hourly or daily tasks.

### What is a free alternative to PythonAnywhere for FastAPI?

Gregale’s Free plan runs a FastAPI app deployed from source, with 256 MB, 20 GB-RAM-hours a month and requests up to 30 seconds, and its plans page sets no expiry. The app parks when idle; in our test a parked FastAPI app sent its first byte 184 to 210 ms after a request reached it. Render Free also runs FastAPI, but it spins down after 15 minutes idle and takes about a minute to wake.

Canonical URL: https://gregale.dev/articles/pythonanywhere-free-tier-fastapi-always-on

