Connect any database. Ask in plain English.

Try free
← Blog

PythonAnywhere Alternatives: 9 Places to Run Python Scripts, Schedules and Web Apps, Free Tiers Compared (2026)

PythonAnywhere's free account now gets 100 CPU-seconds a day, one web app that stops after a month unless renewed, internet access limited to an allowlist, and no scheduled tasks for accounts made since 15 January 2026. Nine alternatives grouped by job, each free tier from the provider's own page, plus a scheduled-job script we ran and the GitHub Actions workflow that runs it daily.

Fastero Dev TeamFastero Dev Team2026-12-01Last updated: 2026-12-02

PythonAnywhere is still the quickest way to put a small Flask site online from a browser, but its free account shrank in January 2026. On 1 December 2026 we read its pricing and help pages and those of nine alternatives, checked 22 common API hosts against its free-account allowlist, and wrote a small scheduled job, run on Windows, with the GitHub Actions workflow that runs it daily.

The short answer: PythonAnywhere's free Beginner account still exists: one web app at yourname.pythonanywhere.com, two consoles, 100 CPU-seconds a day and 512 MiB of disk, with outbound internet limited to an allowlist of sites. Free accounts made since 15 January 2026 get no scheduled tasks and no MySQL, and free web apps stop after a month unless you renew them. For a script on a schedule, use GitHub Actions (free in public repositories, cron every 5 minutes at most) or Google Cloud Run jobs. For a web app, Render or Railway, which sleep when idle. For a public Streamlit app, Community Cloud. Checked 1 December 2026.

Fastero

Connect your database. Ask questions. Get dashboards.

Postgres, BigQuery, Snowflake, and 10+ sources — live-connected, AI-powered, no dashboard builder learning curve.

Try free →

Is PythonAnywhere free? What each plan gives in 2026

From PythonAnywhere's pricing page and help pages, as of 1 December 2026:

Beginner ($0) Developer ($10 a month) Custom ($10 to $500 a month)
Web apps 1, with 1 web worker; stops after 1 month unless renewed 1, with 3 web workers, custom domain allowed Up to 20
CPU-seconds a day 100 5,000 Up to 100,000
Consoles Up to 2 Unlimited Unlimited
Scheduled tasks None for accounts made since 15 January 2026 20, hourly or daily 20, hourly or daily
Always-on tasks None 1 You choose
Internet from your code Allowlisted sites, HTTP(S) only Unrestricted Unrestricted
Disk 512 MiB 5 GB You choose
MySQL Only accounts made before 15 January 2026 Included Included

The change came from a December 2025 announcement: "For new users, scheduled tasks and MySQL database access will now be in the Developer tier. Unused web apps will expire after 1 month, rather than 3 months." The cut-off was 15 January 2026 on the US system and 8 January on the EU one. Older free accounts keep one daily task that can run for up to two hours. On paid plans, "Each task can run for up to 12 hours."

What 100 CPU-seconds means. CPU-seconds count code run in consoles and scheduled tasks, not your web app, and "Your code only uses up CPU seconds while it's actually busy": waiting for a web request costs nothing. Use them up and nothing stops: "your processes will still run in the tarpit", at a lower priority than everyone else's.

The monthly expiry. PythonAnywhere's help page lists "1 web app with 1 web worker and 1 month expiry" for free accounts. It emails a warning first, and nothing is deleted: an expired app stops running, and "You just need to login and click a button to re-enable them". A site you want to keep needs that click every month.

Streamlit and notebooks. Jupyter notebooks are listed on paid plans only, and PythonAnywhere's Streamlit guide is blunt: "The size of a virtualenv with Streamlit and its dependencies is too large for a free account".

The free-account allowlist, checked

Free accounts reach the internet through a proxy, and "they can only access sites that are on that list". The pricing page describes free access as "Specific sites via HTTP(S) only". We saved the published list on 1 December 2026 and checked 22 hosts that scheduled scripts often call, with a short Python script (domain entries such as .github.com cover subdomains; others cover one host):

6714 allowlist entries (435 domain-wide, 6279 single hosts)
 
allowed  api.github.com                         .github.com
allowed  pypi.org                               pypi.org
allowed  api.openai.com                         api.openai.com
allowed  api.anthropic.com                      api.anthropic.com
allowed  sheets.googleapis.com                  .googleapis.com
allowed  hooks.slack.com                        hooks.slack.com
allowed  api.telegram.org                       api.telegram.org
allowed  myproject.supabase.co                  .supabase.co
[12 more allowed rows trimmed]
BLOCKED  ep-example.us-east-2.aws.neon.tech
BLOCKED  api.example-company.com
 
20 of 22 hosts reachable from a free account

Well-known APIs are mostly there. What isn't: a Neon database host, and your own company's API (the last row stands in for it), which won't be on anyone's list unless you ask PythonAnywhere to add it. And because access is HTTP(S) only, a database driver talking to a Postgres or MySQL server elsewhere on its own port is outside what the free proxy offers.

PythonAnywhere alternatives at a glance

A comparison table of ten places to run Python, by job and free tier: PythonAnywhere gives 100 CPU-seconds a day and no schedules for new free accounts; GitHub Actions and Google Cloud Run jobs run scheduled scripts on their free tiers; Render and Railway host web apps that sleep when idle but charge for cron; Fly.io gives $1 for 7 days or $5 a month with a card and schedules hourly to monthly; Hugging Face Spaces and Streamlit Community Cloud host apps without schedules; Replit has no free plan for new sign-ups; Fastero schedules Python with 6 hours a day of compute on its free plan

Free tiers from each provider's own pages, read 1 December 2026.

For scripts on a schedule: GitHub Actions and Google Cloud Run jobs

GitHub Actions

If your code is in a GitHub repository, a workflow with a schedule trigger is the closest free replacement for PythonAnywhere's scheduled tasks. Standard runners are free in public repositories; private ones draw on $12 a month of included compute on GitHub Free, about 2,000 minutes of a standard Linux runner at $0.006 a minute. A daily job that takes a minute uses about 30 of them.

Four things from GitHub's docs to know before you rely on it:

  • "The shortest interval you can run scheduled workflows is once every 5 minutes."
  • Runs can start late, and under heavy load some are dropped: "The schedule event can be delayed during periods of high loads of GitHub Actions workflow runs." The start of each hour is busiest, so pick an odd minute.
  • "In a public repository, scheduled workflows are automatically disabled when no repository activity has occurred in 60 days."
  • Schedules default to UTC, but "You can optionally specify a timezone using an IANA timezone string for timezone-aware scheduling." A job can run for up to 6 hours.

A scheduled job you can copy

This script checks that some pages answer, appends each result to checks.csv, and exits with status 1 if anything failed, so whichever scheduler runs it marks the run as failed. It uses only the standard library, so there's nothing to install:

import csv, os, sys, time, urllib.error, urllib.request
from datetime import datetime, timezone
from pathlib import Path
 
DEFAULT_URLS = "https://www.python.org/,https://pypi.org/simple/"
URLS = [u.strip() for u in (os.environ.get("CHECK_URLS") or DEFAULT_URLS).split(",")]
LOG = Path(__file__).with_name("checks.csv")  # next to the script, whatever the working directory
 
 
def check(url):
    start = time.perf_counter()
    try:
        req = urllib.request.Request(url, headers={"User-Agent": "site-check/1.0"})
        with urllib.request.urlopen(req, timeout=10) as resp:
            status = resp.status
    except urllib.error.HTTPError as e:
        status = e.code
    except (urllib.error.URLError, TimeoutError) as e:
        status = f"error: {getattr(e, 'reason', e)}"
    return status, round((time.perf_counter() - start) * 1000)
 
 
def main():
    now = datetime.now(timezone.utc).isoformat(timespec="seconds")
    new_file = not LOG.exists()
    failed = 0
    with LOG.open("a", newline="") as f:
        writer = csv.writer(f)
        if new_file:
            writer.writerow(["checked_at_utc", "url", "status", "ms"])
        for url in URLS:
            status, ms = check(url)
            ok = status == 200
            failed += not ok
            writer.writerow([now, url, status, ms])
            print(f"{'OK  ' if ok else 'FAIL'} {ms:>5} ms  {url}  {status}")
    print(f"{len(URLS) - failed} of {len(URLS)} up, logged to {LOG.name}")
    return 1 if failed else 0
 
 
if __name__ == "__main__":
    sys.exit(main())

We ran it with Python 3.14 on Windows on 1 December 2026 (the log's times are UTC; the exit code lines are ours), once as it is and once with a host that doesn't exist:

$ python check_sites.py
OK      79 ms  https://www.python.org/  200
OK      33 ms  https://pypi.org/simple/  200
2 of 2 up, logged to checks.csv
exit code: 0
 
$ CHECK_URLS="https://www.python.org/,https://status.example.invalid/" python check_sites.py
OK      82 ms  https://www.python.org/  200
FAIL     3 ms  https://status.example.invalid/  error: [Errno 11001] getaddrinfo failed
1 of 2 up, logged to checks.csv
exit code: 1
 
$ cat checks.csv
checked_at_utc,url,status,ms
2026-11-30T23:37:33+00:00,https://www.python.org/,200,79
2026-11-30T23:37:33+00:00,https://pypi.org/simple/,200,33
2026-11-30T23:37:33+00:00,https://www.python.org/,200,82
2026-11-30T23:37:33+00:00,https://status.example.invalid/,error: [Errno 11001] getaddrinfo failed,3

The log sits next to the script on purpose. PythonAnywhere's task docs warn that a scheduled task's working directory "might be different", which breaks scripts that open files by relative path, and the same is true of cron. On a paid PythonAnywhere account the task command is just the script's full path.

To run it on GitHub, commit check_sites.py and this file as .github/workflows/site-check.yml:

name: site-check
on:
  schedule:
    - cron: "17 7 * * *"        # 07:17 every day, off the busy top of the hour
      timezone: "Europe/London"
  workflow_dispatch:             # adds a "Run workflow" button for manual runs
permissions:
  contents: write                # lets the last step commit checks.csv
concurrency: site-check          # never two runs at once
jobs:
  check:
    runs-on: ubuntu-latest
    timeout-minutes: 10
    steps:
      - uses: actions/checkout@v7
      - uses: actions/setup-python@v7
        with:
          python-version: "3.14"
      - name: Run the check
        run: python check_sites.py
        env:
          CHECK_URLS: ${{ vars.CHECK_URLS }}
      - name: Commit the log
        if: always()             # keep the record of a failed run too
        run: |
          git config user.name "github-actions[bot]"
          git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
          git add checks.csv
          git commit -m "Site check log" || echo "Nothing new to commit"
          git push

We checked that it parses with PyYAML; it hasn't run on GitHub from this post. The URLs come from a repository variable (Settings, then Secrets and variables, then Actions), and with none set the script uses its defaults. Anything secret, such as an API key, belongs in a repository secret instead: ${{ secrets.NAME }}. When the check fails, the run is marked failed in the repository's Actions tab, with the script's output in its log. More on cron syntax and local schedulers is in our Python cron job guide.

Google Cloud Run jobs

Cloud Run jobs run a container to completion, and Cloud Scheduler starts them on a cron schedule in the time zone you pick. Google's free tier for jobs is 240,000 vCPU-seconds and 450,000 GiB-seconds a month, and "Each Google billing account gets 3 jobs per month free" in Cloud Scheduler, then $0.10 per job per 31 days. A job using 1 vCPU and 512 MiB for 5 minutes a day takes about 9,000 vCPU-seconds a month, under 4% of the allowance.

The catch is the account, not the price. Signing up for Google Cloud's trial means "you must provide a credit card or other payment method", and keeping resources after the 90-day, $300 trial means moving to a paid billing account. You also package the script as a container, so it's a step up for jobs that outgrow GitHub's runners.

Connect any database. Ask in plain English.

Start free →

For web apps: Render, Railway and Fly.io

Render, and PythonAnywhere vs Render

Render's free web services run Python web apps, such as Flask or Django, from a Git repository, with 750 free instance hours a month per workspace. "Render spins down a Free web service that goes 15 minutes without receiving any inbound traffic", and waking it "takes about one minute". Two differences from PythonAnywhere matter: free web services have an ephemeral filesystem, so files your app writes are lost when it spins down or redeploys, where PythonAnywhere keeps them; and there's no free scheduling: "There is a minimum monthly charge of $1 per cron job service." In short: PythonAnywhere's docs describe no idle spin-down for the free app, only the monthly renewal, while Render suits an app deployed from Git that can wait a minute to wake. Paid instances start at $7 a month.

Railway

Railway's Free plan is $5 of usage a month with no card, for one project of up to 3 services. "Services on the Free plan run serverless. A service sleeps after 5 to 10 minutes without outbound traffic and wakes on the next request." Railway says $5 covers about 500 MB of RAM around the clock, or 0.25 vCPU, but a real app draws on both at once, so it suits an app that sleeps most of the day. Cron jobs, custom domains and always-on services need the $5 Hobby plan (or the 30-day trial new accounts start with, which has a one-time $5).

Fly.io

On Fly.io's Free plan: "Without a credit card: you get $1 of credit when you create your account. It's a one-time credit, and it expires after 7 days." Add a card and you get $5 of usage every month, enough for the smallest machine ($2.19 a month for 256 MB) running all month. For schedules, "you can tell a Machine to start hourly, daily, weekly, or monthly", but not at a chosen time. Read one line before you add a card: when you use up the $5, the organization "moves to Pay As You Go automatically, so nothing stops", and the whole month is billed at standard rates "from the first cent".

For data apps and notebooks

Streamlit Community Cloud

For a public Streamlit app, Community Cloud is still free: deploy from a GitHub repository you administer, with up to 2.7 GB of memory as Streamlit listed its limits in February 2024. "All apps without traffic for 12 hours go to sleep", and "You are only allowed one private app at a time." It doesn't run scheduled jobs. Deployment steps are in our Streamlit deployment guide, and the sleep in why Streamlit apps keep sleeping.

Hugging Face Spaces

Spaces is no longer a free home for Python apps. "Static Spaces are free for everyone. Gradio and Docker Spaces run on compute and require a paid plan to create", meaning PRO at $9 a month for a personal account. The exception: free personal accounts in good standing can host up to 2 Gradio Spaces on ZeroGPU. Spaces on free hardware sleep when unused, and Streamlit runs only through Docker.

For notebooks on a timetable, see scheduling a Jupyter notebook: PythonAnywhere's notebooks are paid-only, and none of the free hosts above schedule a notebook as it is.

Replit: no longer free to start

Replit's docs now say "As of November 2026, the Starter plan is no longer available to new builders", and offer a 3-day trial of Core, which costs $20 a month. Its Scheduled Deployments take a cron expression and a time zone and alert you when a run fails, at a $2.00 monthly base fee plus $0.60 per million compute units. They "don't serve a web page, so they have no public URL." The rest of Replit's pricing is in our Replit alternatives guide.

Which PythonAnywhere alternative should you use?

  • A script that runs once an hour or once a day: GitHub Actions, if a few minutes' delay is fine.
  • A heavier job, or one inside Google Cloud: Cloud Run jobs with Cloud Scheduler, if you can add a card.
  • A small Flask or Django site: Render free, if a one-minute wake-up is acceptable; PythonAnywhere Developer at $10 a month if it must stay awake.
  • An app plus a database for a side project: Railway's Free plan, or Fly.io with a card.
  • A public Streamlit demo: Streamlit Community Cloud.
  • A small process that never stops, such as a bot: Fly.io with a card; see the 24/7 question below.

Where Fastero fits

When the script is part of a team's work, the hard part is rarely the scheduler: it's where the database password lives, who can read the output, and the notebook and app that grow up next to it. Fastero is an AI and data platform where people and AI agents work together on a team's data, and its Free plan, with no end date and no card, covers those three pieces:

  • Python projects run now or on a cron schedule, with secrets reaching the code as environment variables and a log kept for every run.
  • Streamlit apps behind your team's login, imported from a Git repository by pasting its URL, with st.secrets working as usual. On Free an app sleeps when idle and wakes when someone opens it; always-on apps are a Pro feature.
  • Notebooks too: upload an .ipynb and run it on a cron schedule on the server, with no browser open. The notebook server is 1 CPU and 2 GB as standard (on Pro, bigger machines up to 8 CPUs and 32 GB, charged by the hour).
  • Compute on Free: notebooks and Python 6 hours a day, apps 8. Pro is $20 per editor a month with 750 compute hours per editor, and viewers are free. See pricing.

A Python project in Fastero: main.py reads monthly revenue from a database through a secret named DEMO_DB_URL, and the last run succeeded in 7 seconds and saved two files to outputs

A Python project in Fastero: the code reads its database URL from a secret, and the run's log and output files are kept. Sample data.

Apps open behind your organization's login, so they suit the team's own tools; for a public Flask site, Render or PythonAnywhere is the better fit.

FAQ

Is PythonAnywhere still free?

Yes. The Beginner account costs nothing and gives one web app, two consoles, 100 CPU-seconds a day and 512 MiB of disk. Since January 2026 the free web app stops after a month unless you renew it, and new free accounts get no scheduled tasks or MySQL.

Can I run scheduled tasks on a free PythonAnywhere account?

Only if the account was created before 15 January 2026 (8 January on the EU system); those keep one daily task of up to two hours. Newer accounts need Developer, at $10 a month, for 20 hourly or daily tasks.

Why does my script get a 403 or "Connection refused" on PythonAnywhere?

On a free account, the site you're calling isn't on the allowlist, or your library doesn't use the proxy. Free accounts reach only listed sites, over HTTP(S), through PythonAnywhere's proxy. You can ask for a site to be added, or upgrade for unrestricted access.

What's the best free way to run a Python script 24/7?

Fly.io's Free plan with a card comes closest: its $5 of monthly usage covers the smallest machine, $2.19 a month for 256 MB, running all month. Other free web hosts sleep when idle (Render after 15 minutes, Railway after 5 to 10), and free schedulers run a job and stop.

PythonAnywhere vs Render: which is better for a Flask app?

PythonAnywhere's free app keeps its files and its docs describe no idle spin-down, but it stops monthly until you renew it and can only call allowlisted sites. Render's free web service deploys from Git and can call anything, but sleeps after 15 idle minutes, takes about a minute to wake and loses local files.

How do I run a Python script on a schedule for free?

Put it in a GitHub repository and add a workflow with a schedule trigger, as in the example above. It's free in public repositories and in private ones a one-minute run costs about $0.006 of the $12 monthly allowance. Runs can start a few minutes late.

Sources

Read on 1 December 2026:


Try Fastero free: run your Python scripts and notebooks on a cron schedule, with secrets and run logs, next to the Streamlit apps your team opens. No credit card required.

Ready to try it yourself?

Connect your database, ask questions in plain English, and get live dashboards — in under 2 minutes. No credit card required.

Follow Fastero on LinkedIn for new articles and examples.