# AgentFS

> A filesystem for AI agents, built on Turso
> Canonical HTML: https://tursodb.cn/docs/agentfs/introduction/
> Upstream Source (MIT): https://docs.turso.tech/agentfs/introduction
> Language: en

---
AgentFS is a filesystem for AI agents. It provides copy-on-write isolation, letting agents safely modify files while keeping your original data untouched.
It is available both as a CLI, that wraps an existing program in a sandboxed session, and an SDK that allows you to build custom agents with a filesystem
abstraction.

## Key Features

* **Copy-on-Write Isolation** — Run agents in sandboxed environments where changes are isolated from your source tree
* **Single File Storage** — Everything stored in one portable SQLite database for easy sharing and snapshotting
* **Built-in Auditing** — Every file operation is recorded and queryable
* **Cloud Sync** — Optionally sync agent state to Turso Cloud

## Quick Start

```bash
# Install
curl -fsSL https://agentfs.ai/install | bash

# Run a shell in an isolated environment
cd /path/to/project
agentfs run bash

# Any changes are isolated - your original files are safe
```

## Next Steps

<div class="doc-cards">
<a class="doc-card" href="/docs/agentfs/installation/"><div class="doc-card-title"><span>Installation</span><span class="doc-card-arrow" aria-hidden="true">→</span></div><p class="doc-card-desc">Install the AgentFS CLI</p></a>
<a class="doc-card" href="/docs/agentfs/guides/sandbox/"><div class="doc-card-title"><span>Agentic Coding</span><span class="doc-card-arrow" aria-hidden="true">→</span></div><p class="doc-card-desc">Run AI coding agents safely</p></a>
<a class="doc-card" href="https://docs.turso.tech/agentfs/sdk" target="_blank" rel="noopener noreferrer"><div class="doc-card-title"><span>AgentFS SDKs</span><span class="doc-card-arrow" aria-hidden="true">↗</span></div><p class="doc-card-desc">Build custom agents with the AgentFS SDKs</p></a>
</div>


<div class="doc-callout doc-callout-warning"><div class="doc-callout-title">WARNING</div><div class="doc-callout-body">

This software is in BETA. It may still contain bugs and unexpected behavior. Use caution with production data and ensure you have backups.

</div></div>
