Skip to main content
General

Quickstart

Set up an agentOS actor, create a session, and run your first coding agent.

agentOS is in preview and the API is subject to change. If you run into issues, please report them on GitHub or join our Discord.

Install

  • rivetkit — Actor framework with built-in persistence and orchestration
  • @rivet-dev/agent-os-common — Standard VM software (curl, grep, git, and more)
  • @rivet-dev/agent-os-piPi coding agent (Claude Code, Amp, and OpenCode coming soon)
npm install rivetkit @rivet-dev/agent-os-common @rivet-dev/agent-os-pi

Create the Server & Client

Run

Start the server:

npx tsx server.ts

Then in a separate terminal, run the client:

npx tsx client.ts

Customize

Now that you have a working agent, customize it to fit your needs:

  • Software — Install software packages inside the VM
  • Tools — Expose your JavaScript functions to agents as CLI commands
  • Filesystem — Read, write, and manage files inside the VM
  • Registry — Browse more agents, tools, and filesystems

agentOS Core

The quickstart above uses rivetkit/agent-os, which includes statefulness, multiplayer, and orchestration out of the box. If you only need direct VM control without those features, you can use the core package (@rivet-dev/agent-os-core) standalone.

See agentOS core documentation for reference.