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

# LiteFS - Distributed SQLite

> Replicate SQLite across nodes with LiteFS, a distributed file system, on Fly.io or with Docker. Find the getting started guides and the no-support warning.

> [!NOTE]
>
> **Important:** LiteFS is outside our [scope of support](https://docs.fly.io/about/support.md#scope-of-support). We are not able to provide support or guidance for it. Use with caution.

> [!WARNING]
>
> **Don't use LiteFS with autostop/autostart on Fly Machines.**
>
> The Fly Proxy can stop and restart Machines without knowing which Machine holds the LiteFS lease or has the latest data. This can allow a Machine with stale data to acquire the lease, causing LiteFS to discard newer changes and LTX files. The result can be a database rollback and permanent data loss.

LiteFS is a distributed file system that transparently replicates SQLite
databases. You can run your application like it's running against a local
on-disk SQLite database but behind the scenes the database is replicated to all
the nodes in your cluster. With LiteFS, you can run your database right next to your
application on the edge. You can run LiteFS anywhere!

## Project status

LiteFS is stable and running in production environments. The project is still
pre-1.0 so APIs may change and features could be removed. Please remember that
all software has bugs so we recommend you set up [regular off-site backups](https://docs.fly.io/litefs/backup.md)
in case of malfunction or disk corruption.

## Exploring our guides

You can get up and running quickly with one of our guides:

* [Speedrun: Adding LiteFS to your app](https://docs.fly.io/litefs/speedrun.md) the fastest way to get started with LiteFS on Fly.io.

* [Getting Started on Fly.io](https://docs.fly.io/litefs/getting-started-fly.md) helps you add LiteFS to an existing application and deploy to Fly.io. This guide
  provides more details and explanation than the Speedrun.

* [Getting Started with Docker](https://docs.fly.io/litefs/getting-started-docker.md) helps you add LiteFS to an existing application that you want to run outside of Fly.io.

* [How LiteFS Works](https://docs.fly.io/litefs/how-it-works.md) explains the concepts behind LiteFS.
