Skip to main content
Use the Python or TypeScript package when your agent runner should create, open, save, and close SmolFS workspaces from code. Install and check the command line tool first so the local storage backend is ready.

Install

uv add smolfs

Local workspace example

quickstart_smolfs.py
from pathlib import Path
from smolfs import SmolFS, doctor

report = doctor()
print("SmolFS home:", report["home"])

fs = SmolFS.from_env()
volume = fs.ensure_volume("demo", dev=True)
mount = fs.mount(volume.name, "./workspace")
workspace = Path(mount.mountpoint)

try:
    (workspace / "hello.txt").write_text("hello from SmolFS\n")
    fs.flush(volume.name)
    print((workspace / "hello.txt").read_text().strip())
finally:
    fs.unmount(volume.name)
Run it:
python3 quickstart_smolfs.py
Both examples print the SmolFS home path and then:
hello from SmolFS

Current surface

CapabilityPythonTypeScript
Check local setupdoctor()doctor()
Create a client from the environmentSmolFS.from_env()SmolFS.fromEnv()
Create a new volumeinit(...)init(...)
Create or reuse a volumeensure_volume(...)ensureVolume(...)
Open a workspace foldermount(...)mount(...)
Save recent writesflush(...)flush(...)
Close a workspace folderunmount(...)unmount(...)
Inspect volumesstatus(...)status(...)
The SDKs are intentionally thin in this early release. Prefer the lifecycle shown above and expect details to move as SmolFS settles.
Last modified on June 24, 2026