Skip to content
GitHub Get Started
General

Quickstart

  1. 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)
    Terminal window
    npm install rivetkit @rivet-dev/agent-os-common @rivet-dev/agent-os-pi
  2. Create the Server & Client

    server.ts
    import { agentOs } from "rivetkit/agent-os";
    import { setup } from "rivetkit";
    import common from "@rivet-dev/agent-os-common";
    import pi from "@rivet-dev/agent-os-pi";
    const vm = agentOs({
    options: { software: [common, pi] },
    });
    export const registry = setup({ use: { vm } });
    registry.start();
  3. Run

    Start the server:

    Terminal window
    npx tsx server.ts

    Then in a separate terminal, run the client:

    Terminal window
    npx tsx client.ts
  4. 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

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.