freshcrate
Home > AI Agents > agent-fs

agent-fs

A persistent, searchable filesystem for AI agents.

Description

A persistent, searchable filesystem for AI agents.

README

GitHub StarsMIT LicensePRs WelcomeDiscord A persistent, searchable filesystem for AI agents.
Built by
desplega.sh — by builders, for builders.


Agent FS gives AI agents a structured filesystem with built-in semantic search, versioning, and identity management. It runs as a CLI and an HTTP server with integrated MCP support — so any AI coding assistant can use it as a long-term memory and file store.

agent-fs was built to power the shared filesystem in agent-swarm — a multi-agent coordination framework. While it was designed for swarm agents to share files, search content, and collaborate, it works as a standalone filesystem for any AI agent.

Key Features

  • Semantic search — Index and search files using vector embeddings (OpenAI, Google GenAI, or local llama.cpp)
  • Structured storage — SQLite-backed file operations with metadata and versioning
  • S3-compatible sync — Sync agent workspaces to any S3-compatible object store
  • Identity management — Persistent agent identity files that evolve over time
  • MCP integration — Expose filesystem operations as MCP tools for Claude Code, Codex, and other assistants
  • HTTP API — RESTful server powered by Hono for programmatic access
  • CLI — Single binary (agent-fs) for local use and scripting

Quick Start

Install

Requires Bun >= 1.2.0.

bun add -g @desplega.ai/agent-fs

Or build from source:

git clone https://github.com/desplega-ai/agent-fs.git
cd agent-fs
bun install
bun run build

Usage

# Show available commands
agent-fs --help

Architecture

Agent FS is a Bun monorepo with four packages:

Package Description
@desplega.ai/agent-fs-core Core library — storage engine, semantic search, identity, S3 sync
@desplega.ai/agent-fs CLI binary (agent-fs)
@desplega.ai/agent-fs-mcp MCP stdio proxy + tool registration for the HTTP server
@desplega.ai/agent-fs-server HTTP server — RESTful API powered by Hono

Documentation

Development

bun install          # Install dependencies
bun run typecheck    # Type checking
bun run test         # Run tests
bun run build        # Bundle CLI for npm

See CONTRIBUTING.md for the full development guide.

Releasing

  1. Update version in root package.json
  2. Commit the version bump
  3. Run ./scripts/release.sh

This creates a git tag and pushes it, triggering the release workflow which publishes to npm and creates a GitHub Release.

Deploy to Fly.io

Deploy a persistent agent-fs instance to Fly.io with Tigris S3 storage:

git clone https://github.com/desplega-ai/agent-fs && cd agent-fs
bun run scripts/fly-deploy.ts

See DEPLOYMENT.md for Docker, BYOK storage, and manual setup options.

Live Viewer

live.agent-fs.dev — A stateless browser UI (local storage only) for inspecting any agent-fs deployment. Point it at your server URL to browse files and search content — nothing is stored server-side.

Contributing

We welcome contributions! Whether it's bug reports, feature requests, docs improvements, or code — all are welcome.

  1. Fork the repo
  2. Create a branch (git checkout -b my-feature)
  3. Make your changes
  4. Open a PR

Join our Discord if you have questions or want to discuss ideas.

License

MIT — 2025-2026 desplega.ai

Release History

VersionChangesUrgencyDate
v0.4.0 ## Install ```bash # bun bun add -g @desplega.ai/agent-fs@${VERSION#v} # npm npm install -g @desplega.ai/agent-fs@${VERSION#v} # pnpm pnpm add -g @desplega.ai/agent-fs@${VERSION#v} ``` ## Update ```bash bun update -g @desplega.ai/agent-fs ``` ## What's Changed * seo: add sitemap.xml and robots.txt for agent-fs.dev by @desplega-bot in https://github.com/desplega-ai/agent-fs/pull/6 **Full Changelog**: https://github.com/desplega-ai/agent-fs/compare/v0.3.1...v0.4.0Medium3/26/2026
v0.3.1 ## Install ```bash # bun bun add -g @desplega.ai/agent-fs@${VERSION#v} # npm npm install -g @desplega.ai/agent-fs@${VERSION#v} # pnpm pnpm add -g @desplega.ai/agent-fs@${VERSION#v} ``` ## Update ```bash bun update -g @desplega.ai/agent-fs ``` ## What's Changed * Trim unnecessary files from published package by @desplega-bot in https://github.com/desplega-ai/agent-fs/pull/4 **Full Changelog**: https://github.com/desplega-ai/agent-fs/compare/v0.3.0...v0.3.1Low3/18/2026
v0.3.0 ## Install ```bash # bun bun add -g @desplega.ai/agent-fs@${VERSION#v} # npm npm install -g @desplega.ai/agent-fs@${VERSION#v} # pnpm pnpm add -g @desplega.ai/agent-fs@${VERSION#v} ``` ## Update ```bash bun update -g @desplega.ai/agent-fs ``` **Full Changelog**: https://github.com/desplega-ai/agent-fs/compare/v0.2.1...v0.3.0Low3/17/2026
v0.2.1 ## Install ```bash # bun bun add -g @desplega.ai/agent-fs@${VERSION#v} # npm npm install -g @desplega.ai/agent-fs@${VERSION#v} # pnpm pnpm add -g @desplega.ai/agent-fs@${VERSION#v} ``` ## Update ```bash bun update -g @desplega.ai/agent-fs ``` **Full Changelog**: https://github.com/desplega-ai/agent-fs/compare/v0.2.0...v0.2.1Low3/17/2026
v0.2.0 ## Install ```bash # bun bun add -g @desplega.ai/agent-fs@${VERSION#v} # npm npm install -g @desplega.ai/agent-fs@${VERSION#v} # pnpm pnpm add -g @desplega.ai/agent-fs@${VERSION#v} ``` ## Update ```bash bun update -g @desplega.ai/agent-fs ``` **Full Changelog**: https://github.com/desplega-ai/agent-fs/compare/v0.1.5...v0.2.0Low3/16/2026
v0.1.5**Full Changelog**: https://github.com/desplega-ai/agent-fs/compare/v0.1.4...v0.1.5Low3/16/2026
v0.1.4**Full Changelog**: https://github.com/desplega-ai/agent-fs/compare/v0.1.3...v0.1.4Low3/16/2026
v0.1.3**Full Changelog**: https://github.com/desplega-ai/agent-fs/compare/v0.1.2...v0.1.3Low3/16/2026
v0.1.0**Full Changelog**: https://github.com/desplega-ai/agent-fs/commits/v0.1.0Low3/15/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

adk-jsAn open-source, code-first Typescript toolkit for building, evaluating, and deploying sophisticated AI agents with flexibility and control.devtools-v1.0.0
dbgOne CLI. Every debugger. Give your AI agent eyes into runtime state instead of guessing from source code.0.0.0
ai-task-managerTask management for AI coding assistantsv1.36.0
AutoRedact🛡️ Redact sensitive information from images securely in your browser with AutoRedact, featuring automatic detection and local processing for privacy.main@2026-04-21
20xSelf-improving Agent orchestrator for all knowledge workv0.0.68