# Installation

> Install the AgentFS CLI on Linux, macOS, and Windows
> Canonical HTML: https://tursodb.cn/docs/agentfs/installation/
> Upstream Source (MIT): https://docs.turso.tech/agentfs/installation
> Language: en

---
## Quick Install

The fastest way to install AgentFS:

```bash
curl -fsSL https://github.com/tursodatabase/agentfs/releases/latest/download/agentfs-installer.sh | sh
```

This installs the `agentfs` binary to `~/.cargo/bin`.

## Platform-Specific Instructions

<div class="doc-tabs" data-doc-tabs>
<div class="doc-tab-list" role="tablist">
<button type="button" role="tab" class="doc-tab-btn is-active" aria-selected="true" data-tab-idx="0">macOS</button>
<button type="button" role="tab" class="doc-tab-btn" aria-selected="false" data-tab-idx="1">Linux</button>
<button type="button" role="tab" class="doc-tab-btn" aria-selected="false" data-tab-idx="2">Windows</button>
</div>
<div class="doc-tab-panel is-active" role="tabpanel" data-tab-panel="0">

```bash
curl -fsSL https://github.com/tursodatabase/agentfs/releases/latest/download/agentfs-installer.sh | sh
```

After installation, restart your terminal or run:

```bash
source ~/.zshrc  # or ~/.bashrc
```

</div>
<div class="doc-tab-panel" role="tabpanel" data-tab-panel="1" hidden>

**Using the installer:**

```bash
curl -fsSL https://github.com/tursodatabase/agentfs/releases/latest/download/agentfs-installer.sh | sh
```

After installation, restart your terminal or run:

```bash
source ~/.bashrc  # or ~/.zshrc
```

**Requirements:**

* FUSE must be available for filesystem mounting
* On Ubuntu/Debian: `sudo apt install fuse3`
* On Fedora: `sudo dnf install fuse3`

</div>
<div class="doc-tab-panel" role="tabpanel" data-tab-panel="2" hidden>

**Using PowerShell:**

```powershell
irm https://github.com/tursodatabase/agentfs/releases/latest/download/agentfs-installer.ps1 | iex
```

Or download the binary directly from the [releases page](https://github.com/tursodatabase/agentfs/releases).

</div>
</div>


## Verify Installation

```bash
agentfs --version
```

## Shell Completions

Enable tab completion for your shell:

```bash
# Auto-detect shell
agentfs completions install

# Or specify shell explicitly
agentfs completions install bash
agentfs completions install zsh
agentfs completions install fish
```

Restart your shell after installing completions.

## Building from Source

Requires Rust 1.70+:

```bash
git clone https://github.com/tursodatabase/agentfs.git
cd agentfs/cli
cargo install --path .
```

## Next Steps

<div class="doc-cards">
<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="/docs/agentfs/reference/cli/"><div class="doc-card-title"><span>CLI Reference</span><span class="doc-card-arrow" aria-hidden="true">→</span></div><p class="doc-card-desc">Full command reference</p></a>
</div>
