Skip to main content
By the end of this guide, you will have a local workspace folder that keeps a file after you close and reopen it.

What you need

  • SmolFS installed from Installation.
  • A Linux or macOS machine with local mount support.

Create and reopen a workspace

1

Check SmolFS

smolfs doctor
If the storage backend is missing, run:
smolfs doctor --install
2

Create a local volume

smolfs init demo --dev
A volume is a named workspace. --dev keeps the backing data on this machine, which is the easiest way to try SmolFS.
3

Open the workspace as a folder

smolfs mount demo ./workspace
SmolFS creates ./workspace if it does not already exist.
4

Write and save a file

echo hello > ./workspace/hello.txt
smolfs flush demo
flush asks SmolFS to save important recent writes.
5

Close and reopen the workspace

smolfs unmount demo
smolfs mount demo ./workspace
cat ./workspace/hello.txt
You should see:
hello

Clean up

Unmount the workspace when you are done:
smolfs unmount demo
If you already used the name demo, pick another volume name such as agent-demo-1. Volume names can use letters, numbers, ., _, and -.

Next steps

CLI reference

See the current command list and the most useful flags.

SDK examples

Use the same flow from Python or TypeScript.
Last modified on June 24, 2026