Clone the repository and enter its directory:
git clone https://github.com/GatewayJ/agentdrive.git
cd agentdriveUse Rust stable (minimum declared version 1.90), a C compiler for bundled SQLite, and GNU Make. Build jobs use Make's jobserver.
make -j "$(getconf _NPROCESSORS_ONLN)" build
make -j "$(getconf _NPROCESSORS_ONLN)" verify| Platform | Native filesystem requirements | Build |
|---|---|---|
| Linux | GeeseFS, FUSE 3 utilities, /dev/fuse, permission to mount |
Default features |
| macOS | GeeseFS and macFUSE | make -j "$(sysctl -n hw.ncpu)" build |
| Windows | MSVC, WinFsp 2.1 including its Developer feature | PowerShell: make -j $env:NUMBER_OF_PROCESSORS build |
On Linux and macOS, install GeeseFS with make install-geesefs and add $HOME/.local/bin to the daemon's PATH. Set BINDIR to choose another installation directory. The installer verifies the upstream binary's SHA-256 digest. Install the platform FUSE driver before mounting. On macOS, approve the macFUSE system software in System Settings and restart if macOS requests it. Windows loads WinFsp from its registered installation path and uses a local NTFS volume for state.
AGENTDRIVE_DIRECTORY="$HOME/.local/share/agentdrive"
./target/debug/agentdrived init --directory "$AGENTDRIVE_DIRECTORY"
./target/debug/agentdrived serve --config "$AGENTDRIVE_DIRECTORY/agentdrive.json"In another terminal:
./target/debug/agentdrive tools
./target/debug/agentdrive call workspace_create --request-id create-demo --json '{"name":"demo"}'
./target/debug/agentdrive call workspace_listinit creates configuration and directories for state, mounts and file exchange. It refuses initialization over an existing configuration. Dashboard and MCP connect directly without a token. The daemon defaults to 127.0.0.1:7421; its MCP endpoint is /mcp. Run one daemon per state directory.
To connect an MCP client through stdio, configure the executable as agentdrive, arguments as ["mcp"]. AGENTDRIVE_ENDPOINT selects another daemon endpoint. The stdio process forwards requests to the running daemon.
Use agentdrive tools as the source for JSON input schemas. Command tools accept { "request_id": "stable-id", "request": { ... } } over MCP. The CLI's --request-id option builds that envelope. Query tools and operation_cancel receive their arguments directly. --json - reads JSON from standard input. The CLI exits with 0 for successful tool responses, 2 for a tool error, and 1 for transport or input errors; command-line parsing errors also use 2. See CLI usage for executable examples and MCP parameters and capabilities for the complete tool reference.
Open the dashboard with ./target/debug/agentdrive dashboard --open. Its default landing page is the Archive. Before adopting an existing project directory, configure its parent under directory_roots and mount_roots; see directory conversion.