Skip to main content
Complete reference for the agentfs command-line tool.
For the latest reference, see MANUAL.md in the repository.

Installation

Commands

agentfs init

Initialize a new agent filesystem.
Arguments:
  • ID - Agent identifier (default: agent-{timestamp})
Options: Example:

agentfs run

Execute a program in a sandboxed environment.
Options: Examples:

agentfs mount

Mount an agent filesystem or list mounts.
Without arguments, lists all mounted filesystems. Options: Examples:
Unmounting:
  • Linux: fusermount -u <MOUNT_POINT>
  • macOS: umount <MOUNT_POINT>

agentfs serve mcp

Start an MCP (Model Context Protocol) server.
Options: Available Tools: Examples:

agentfs serve nfs

Start an NFS server.
Options: Example:
Mounting:

agentfs sync

Synchronize with a remote Turso database.
Subcommands: Example:

agentfs fs

Filesystem operations on agent databases.

agentfs fs ls

List files. Output: f <name> for files, d <name> for directories.

agentfs fs cat

Display file contents.

agentfs fs write

Write content to a file. Examples:

agentfs diff

Show filesystem changes in overlay mode.

agentfs timeline

Display agent action timeline.
Options: Examples:

agentfs completions

Manage shell completions.
Supported: bash, zsh, fish, powershell

Environment Variables

Variables set inside the sandbox:

Files

See Also

Installation

Installation instructions

Sandbox Guide

Running agents in sandboxes