> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oleander.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Airflow

> Configure oleander with Apache Airflow

## Overview

The OpenLineage integration is now contributed directly to Airflow. A comprehensive
guide on how to configure and use the OpenLineage integration with Airflow can be found in
[*Using OpenLineage Integration*](https://airflow.apache.org/docs/apache-airflow-providers-openlineage/stable/guides/user.html).

<iframe width="100%" height="315" src="https://www.youtube.com/embed/SZBVgREqets?si=FLDOjOeoIEsjAqSG" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen />

## Getting Started

Clone our [tutorial](https://github.com/OleanderHQ/tutorials) repository and navigate to the `airflow` directory:

```bash theme={null}
git clone https://github.com/OleanderHQ/tutorials.git
```

### Requirements

* [Docker Compose](https://docs.docker.com/compose/install)
* [Astro CLI](https://www.astronomer.io/docs/astro/cli/overview/)

### oleander API Key

Go to [`https://oleander.dev`](https://oleander.dev), then copy your [API key](https://oleander.dev/app/settings/api-key).
In the step below, replace `[OLEANDER-API-KEY]` with your API key in `.env` before running the Airflow DAGs.

### Copy .example.env to create your own .env file

```
cp .example.env .env
```

### Running the Airflow DAGs

First, start the database for our hypothetical food delivery service:

```
docker compose up
```

Then, start Airflow:

```
astro dev start
```

Finally, go to:

* [`http://localhost:8080`](http://localhost:8080) to view your Airflow DAGs.
* [`https://oleander.dev`](https://oleander.dev) to view the OpenLineage events emitted by your Airflow DAGs.
