Skip to main content
@archildata/mastra gives Mastra agents a filesystem over an Archil disk or workspace. The agent reads, writes, searches, and runs commands against your data.

Setup

1

Create a disk and an API key

Create a disk in the Archil console in a region with compute, and create an API key in the same region. Set them in your environment:
2

Install the packages

Disk tools

createDiskTools returns a record of Mastra tools for the disk. Pass it as an agent’s tools:
The agent gets the same tools as the AI SDK integration: read_file, write_file, delete_file, list_files, glob, grep, and run_bash. To span several disks, pass a workspace instead of a disk.