Create an Archil disk
Go to the Archil console and create a new disk. Also, create an API key in the same region as your disk. Add the following environment variables to your project:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
🚀 You can now run code directly on your disks with serverless execution!
Context your agent can understand
Create an Archil disk
ARCHIL_API_KEY=<your-api-key>
ARCHIL_REGION=<your-disk-region>
ARCHIL_DISK_ID=<your-disk-id>
Create tools
import { generateText } from "ai";
import * as archil from "disk";
import { createDiskTools } from "@archildata/ai-sdk";
const disk = await archil.getDisk(process.env.ARCHIL_DISK_ID!);
const result = await generateText({
model: "anthropic/claude-sonnet-4.6",
prompt: "Read the quarterly reports and write a summary of the key findings for each one.",
tools: createDiskTools(disk),
});
Was this page helpful?