Glossary

Virtual file system

A layer that presents different kinds of storage through one interface of files and folders, so programs can use them without knowing where the data lives.

A virtual file system (VFS) is an abstraction layer that gives programs a single interface of files, folders and paths over storage that may be very different underneath. The data could sit on a local disk, a network share, an object store, a database or in memory, and the program opens, reads and writes files the same way in each case. The term covers both the layer inside an operating system and file systems that applications build on top of other storage.

How a virtual file system works

A VFS defines a common set of operations, such as open, read, write, list and rename, and each storage backend implements them. In Linux, the kernel’s VFS layer sits between system calls and concrete file systems like ext4, XFS or NFS, using shared structures for files, directory entries and inodes. FUSE (Filesystem in Userspace) extends this so an ordinary program can implement a file system, which is how tools mount cloud storage such as an S3 bucket as if it were a local folder.

Application-level virtual file systems do the same job inside a program. A test suite might use an in-memory file system, and a data library might accept one path syntax for local files and cloud buckets. Underneath, files become rows, objects or blocks, and the VFS keeps track of file metadata such as names, sizes, timestamps and parent folders.

Virtual file system vs object storage vs database

Aspect

Virtual file system

Object storage

Database

Organisation

Folders and paths

Flat buckets of keys

Tables, rows or documents

Typical operations

Open, read, write, move, list

Put, get and delete by key

Queries and transactions

Renaming or moving

Usually a metadata change

Copy to a new key, then delete

Update a field

Strengths

Familiar to people and tools

Scale and cost for large files

Structured queries

A VFS often sits on top of the other two. Object storage or blob storage holds file contents, a database holds the folder tree and metadata, and the VFS presents both as one file system.

Why AI agents use virtual file systems

Files are an interface models handle well. An AI agent can list a folder, read a file, write a summary and move things around with a handful of tools, exposed through function calling or an MCP server, and the same operations work across very different data. That makes a VFS a natural base for an agent file system: a persistent place where the agent keeps its agent artifacts, works through a task in an agent scratchpad and picks up in the next session where it left off.

An agent’s file system has needs a plain VFS does not cover. It usually has to be isolated per user or customer for tenant isolation, searchable by meaning as well as by path through file indexing, and recoverable when the agent makes a mistake, which is where a filesystem snapshot and soft delete come in. An agent workspace brings those pieces together. Best file system for AI agents compares the main options, and Exabase vs AgentFS looks at one alternative in detail.

Virtual file systems in Exabase

Exabase Bases are isolated cloud filesystems created on demand through the API. Each Base has its own storage, folders, tags, memory and search index, and data in one Base is invisible to every other Base. Inside a Base, every item is a resource with a kind such as folder, document, image or bookmark, and every resource except a top-level folder has a parentId. Top-level folders are called resource roots: the built-in Inbox, spaces you create, and folders created automatically for connected integrations. The Exabase filesystem guide and the resource roots endpoint cover the structure.

Resources are indexed when they are created, so an agent can find a file through Deep Search by describing it, as well as by listing folders with the resource filter endpoint. Files, notes, bookmarks, audio and video share one tree, organised with the folders endpoint and tags. Exabase is used through its REST API and TypeScript SDK rather than mounted as a local drive, so the agent’s file tools call the API. Why we built Bases as filesystems explains the design, and the multi-tenant SaaS use case shows one Base per customer.

FAQs

What is the purpose of a virtual file system?

It lets programs use one file interface over many kinds of storage. Code that reads and writes files keeps working whether the data is on a local disk, a network share or a cloud service.

What is the difference between a file system and a virtual file system?

A file system stores data on a device in a specific format, such as ext4 or NTFS. A virtual file system is the layer above that presents one or more storage systems through a common interface.

Is FUSE a virtual file system?

FUSE is a framework for building file systems in user space that plug into the operating system’s VFS. Many virtual file systems for cloud storage are built with it.

Why do AI agents need a file system?

Agents need somewhere to keep work between steps and sessions. A file system gives them familiar operations for saving outputs, reading context and organising material, which suits the tools models already handle well.

Is an Exabase Base a virtual file system?

A Base works like a virtual file system for agents, with folders and resources over managed cloud storage, plus memory, search and snapshots that a plain VFS lacks. It is reached through the API and SDK.

Can a virtual file system be multi-tenant?

Yes, if each tenant gets its own isolated tree. In Exabase that unit is a Base, and every call is scoped to it with the X-Exabase-Base-Id header; multi-tenancy covers the wider pattern.

Related pages: Agent file system, Agent workspace, Object storage, Blob storage, File indexing, Copy-on-write, Filesystem snapshot, Bases, Best file system for AI agents, Why we built Bases as filesystems.

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.