website/src/content/docs/agent-os/software.mdx
agentOS starts with no commands installed. The software option lets you declare which packages to include. Each package provides one or more CLI commands.
npm install @rivet-dev/agent-os-core @rivet-dev/agent-os-common
@rivet-dev/agent-os-common is a meta-package that includes coreutils, sed, grep, gawk, findutils, diffutils, tar, and gzip. For a smaller footprint, install individual packages instead.
import { AgentOs } from "@rivet-dev/agent-os-core";
import common from "@rivet-dev/agent-os-common";
const vm = await AgentOs.create({
software: [common],
});
const result = await vm.exec("echo hello | grep hello");
console.log(result.stdout); // "hello\n"
await vm.dispose();
You can mix individual packages and meta-packages:
import { AgentOs } from "@rivet-dev/agent-os-core";
import coreutils from "@rivet-dev/agent-os-coreutils";
import grep from "@rivet-dev/agent-os-grep";
import jq from "@rivet-dev/agent-os-jq";
import ripgrep from "@rivet-dev/agent-os-ripgrep";
const vm = await AgentOs.create({
software: [coreutils, grep, jq, ripgrep],
});
Browse all available software packages on the Registry.
See the agent-os-registry contributing guide for how to add new software packages to the registry.