Skip to main content

How to Start Apache Airflow® on Your Computer with airflow standalone

· 7 min read
Jagdish Kumawat
Founder @ Dewiride

Apache Airflow® runs as several programs that work together: a web server for the UI, a scheduler, a process that reads your Dag files, and more. airflow standalone starts all of them with one command and sets up a local database and an admin user on the way, which makes it the quickest way to try Airflow on your own computer. This guide starts it, opens the UI and stops it again, on Airflow 3.4.0.

Syntax​

Syntax
airflow standalone
PartWhat it means
airflow standaloneStarts every Airflow component in this terminal and shows their output, each line prefixed with the component's name. It takes no options
AIRFLOW_HOMENot part of the command, but read by it: the folder where Airflow keeps its settings, database and logs

Airflow's Quick Start describes it as the command that starts every component, and the command itself warns that it is "for development purposes only".

Prerequisites​

  • Apache Airflow® installed in a virtual environment, and that environment activated. Check with airflow version.

Step 1: Choose Where Airflow Keeps Its Files​

In your project folder, with the virtual environment active:

Terminal
export AIRFLOW_HOME="$PWD"
mkdir -p dags

AIRFLOW_HOME tells Airflow to use this folder instead of creating ~/airflow; How to Set AIRFLOW_HOME for Apache Airflow® explains it. dags is where Airflow looks for your Dag files. Create it before the first start: Airflow doesn't create it, and without it the Dag processor starts with a warning and finds no files (Fixed: Bundle 'dags-folder' path does not exist).

Step 2: Start Airflow​

Terminal
airflow standalone
Output (excerpt)
standalone | Starting Airflow Standalone
standalone | Checking for new Dag files every 5 seconds (set [dag_processor] refresh_interval to change this)
Simple auth manager | Password for user 'admin': ********
standalone | Checking database is initialized
...
standalone | Database ready
...
scheduler | 2026-12-01T03:26:30.012155Z [info ] Starting log server on http://[::]:8793 [airflow.utils.serve_logs.core] loc=core.py:50
...
api-server | 2026-12-01T03:26:31.484161Z [info ] Uvicorn running on http://127.0.0.1:8085 (Press CTRL+C to quit) [uvicorn.error] loc=server.py:234
...
standalone | Airflow is ready
standalone | Airflow Standalone is for development purposes only. Do not use this in production!

The terminal running airflow standalone: Starting Airflow Standalone, the generated admin password (hidden here), Database ready, the API server running on http://127.0.0.1:8085, and Airflow is ready.

Airflow was ready about 11 seconds after the command started. On this first start it also created the database and an admin user with a generated password, printed near the top (I replaced it with stars). How to Find the Admin Password for Apache Airflow® standalone shows where else to find it.

Each line starts with the component that printed it:

PrefixWhat that component does
api-serverServes the web UI and the REST API
schedulerDecides which tasks should run and when, and hands them to the executor, which runs them
dag-processorReads the files in dags and stores each Dag in the database
triggererRuns tasks that wait for something without holding a worker
standaloneThe command itself, starting and watching the others

The address on the Uvicorn running on line is where the UI is. Mine is http://127.0.0.1:8085 because I changed the host and port first (How to Change the Port and Host of the Apache Airflow® API Server). With the defaults it says http://0.0.0.0:8080, and you open http://localhost:8080.

Leave this terminal running. Airflow stops when you close it.

Step 3: Sign In to the UI​

Open the address in your browser and sign in as admin with the password from the output. The first page is Welcome:

The Apache Airflow® Welcome page: Stats showing 0 failed, 0 running and 0 active Dags, and the Health section with MetaDatabase, Scheduler, Triggerer and Dag Processor all marked healthy in green.

The Health row is the quickest check that everything started: the metadata database, the scheduler, the triggerer and the Dag processor are all green.

Step 4: Look at the Dags​

Click Dags in the menu on the left:

The Dags page listing example Dags that ship with Apache Airflow®, such as Params Trigger UI and Params UI tutorial, each paused, with 56 Dags counted at that moment.

These are the example Dags that ship with Airflow. The Dag processor was still reading them when I took the screenshot: 56 were listed, and a minute later all 119 were in. They're useful to look around, and How to Turn Off the Example Dags in Apache Airflow® removes them when you want only your own.

Step 5: Stop Airflow​

Go back to the terminal and press Ctrl+C:

Output
^Cstandalone | Shutting down components
standalone | Complete

The terminal after Ctrl+C: standalone Shutting down components, then standalone Complete and the prompt.

Complete means every component has stopped, and the prompt is back.

What It Left in Your Folder​

Terminal
ls -1
Output
airflow.cfg
airflow.db
dags
logs
simple_auth_manager_passwords.json.generated
File or folderWhat it is
airflow.cfgEvery setting, with comments. It also holds generated secrets
airflow.dbThe metadata database (SQLite): Dags, runs and users
logsTask and component logs
simple_auth_manager_passwords.json.generatedThe admin password
dagsYour Dag files (you created it in Step 1)

The next start reuses all of them, so the password and your Dags stay the same.

The Warnings in the Output​

The full output has a few warnings that look worse than they are:

WarningWhere it comes from
FileType is deprecatedEvery airflow command prints it on Python 3.14. It doesn't affect anything
ASGI app factory detectedThe log servers on ports 8793 and 8794 print it as they start. It doesn't affect anything
The HMAC key is 24 bytes long…Appears when you sign in; Fixed: The HMAC key is 24 bytes long removes it

Common Mistakes​

MistakeWhat happensDo this instead
Running it without AIRFLOW_HOMEAirflow creates ~/airflow and keeps everything thereExport AIRFLOW_HOME first, in every new terminal
Closing the terminal to stop AirflowIt works, but skips the clean shutdownPress Ctrl+C and wait for Complete
Using it in productionEvery component runs in one terminal, with a SQLite databaseUse it only on your own computer

Troubleshooting​

SymptomLikely causeFix
The UI asks for a password you don't haveIt was generated on the first startRead simple_auth_manager_passwords.json.generated

FAQ​

Is airflow standalone for production?​

No. The command says so itself: "Airflow Standalone is for development purposes only." Production setups run each component separately with a database server such as PostgreSQL.

How much memory does it use?​

In my runs, all its processes together used about 1.5 GB.

Do I need Docker?​

No. airflow standalone runs straight from the virtual environment.

Conclusion​

airflow standalone started the API server, scheduler, Dag processor and triggerer in one terminal, created the database and an admin user, and printed Airflow is ready after about 11 seconds. The UI's Health row showed all four parts healthy, and Ctrl+C stopped them with Complete.

Additional Resources​

Apache®, Apache Airflow and Airflow® are either registered trademarks or trademarks of The Apache Software Foundation in the United States and/or other countries. No endorsement by The Apache Software Foundation is implied by the use of these marks.