← Back to Registry
Google Drive
File System
Mount a Google Drive folder as a filesystem for reading and writing documents and files.
Configuration
Built into the SDK — no separate install. Enable it with plugin: { id: "google_drive" }
in your VM config.
import { agentOS, setup } from "@rivet-dev/agentos";
import pi from "@agentos-software/pi";
const vm = agentOS({
software: [pi],
mounts: [
{
path: "/home/agentos/drive",
plugin: {
id: "google_drive",
config: {
credentials: {
clientEmail: process.env.GOOGLE_DRIVE_CLIENT_EMAIL!,
privateKey: process.env.GOOGLE_DRIVE_PRIVATE_KEY!,
},
folderId: process.env.GOOGLE_DRIVE_FOLDER_ID!,
},
},
},
],
});
export const registry = setup({ use: { vm } });