Skip to main content

Virtual filesystem service for AI agents with LangChain integration

Project description

AI Filesystem

A virtual filesystem API for AI agents. Users can easily provide their agents with siloed filesystems to use as long term memory, scratchpads, or general purpose storage.

How It Works

  1. API Server: FastAPI backend that stores files in PostgreSQL
  2. User Isolation: Each user can only see/modify their own files (enforced by database)
  3. Multiple Filesystems: A user can have multiple filesystems and provide their agents with access to different, or the same filesystems.

[Beta] Quick Start

Creating an account on the Filesystem

  1. Navigate here and sign up for an account on the Filesystem.
  2. Create an API key and save it someplace secure!

Giving your agent access to the Filesystem

  1. Set your API key as an environment variable for your agent: AGENT_FS_API_KEY=<api_key>
  2. Specify the URL for the filesystem. If you're using our hosted solution, it is AGENT_FS_URL=agent-file-system-production.up.railway.app
  3. Instantiate the filesystem client, and give your agent access to the tools
from ai_filesystem import FilesystemClient

client = FilesystemClient(
  filesystem="nicks-agent-filesystem"
)
filesystem_tools = client.create_tools()  # list files, read file, create new file, and edit file
agent.bind_tools(filesystem_tools)
  1. In your agent's system prompt, make sure to specify how you want the agent to use the filesystem. Common use cases include as long-term memory, to store learnings and mistakes, or to save work products.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_filesystem-0.1.4.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_filesystem-0.1.4-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file ai_filesystem-0.1.4.tar.gz.

File metadata

  • Download URL: ai_filesystem-0.1.4.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for ai_filesystem-0.1.4.tar.gz
Algorithm Hash digest
SHA256 623e75f4f41255f3668eedba24aff76f3732f5252b57769d76ac3d844e3ac5ba
MD5 f7fb47ad959aa20bc35535a2f5834f79
BLAKE2b-256 ee3c1659fe6791008bae01b1f6cca0dbbc1b34fbacb5bc355d78bb7ae52cfd0d

See more details on using hashes here.

File details

Details for the file ai_filesystem-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: ai_filesystem-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for ai_filesystem-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a0efaa0dd17de24e2f4c386da3b0f88de425d42b23784098b4def40514a3b721
MD5 f58b1eeddd54d23478591a671ff60519
BLAKE2b-256 e3ec7f39dd434f0d51e7d1d56461e926b58a2b080aced16d78ffc8247200b868

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page