OpenComputer

    Forget sandboxes.

    An agent is a TypeScript function. Deploy it in seconds and it's live, ready to serve your users. Your keys never enter the runtime.

    agent.ts
    import { useModel, useTool, useMcpServer } from "@opencomputer/agent";
    import { openCleanupPullRequest } from "./tools/github.js";
    
    export default function Agent() {
      useModel("anthropic/claude-sonnet-4.6");
      useMcpServer(unleashMcp);           // read flag state
      useTool(openCleanupPullRequest);    // one PR per stale flag
      return "Find stale flags in code, open a PR to remove each.";
    }

    A real agent: it finds stale feature flags still referenced in code and opens a cleanup PR for each.

    Get started

    1. 01Install the CLI

    2. 02Sign in

    3. 03Paste into your coding agent

    Let your coding agent do all three

    Copy the prompt for

    Either way, your project shows up in the dashboard after its first deploy.

    How it works

    Deploy your agent as a function, get a computer for it.

    1. 01

      Write an agent as a TypeScript function. Deploy it. We run the loop, the sessions, the streaming, the versions.

      $ opencomputer deploy
      Deployed flag-cleaner@production
    2. 02

      Every session runs on a real Linux machine: shell, filesystem, packages, network.

      shell
      bash · sh
      filesystem
      read-write
      packages
      apt · npm · pip
      network
      full egress
    3. 03

      Your tools and MCP servers run on that machine - clone a repo, run ffmpeg, drive a browser, install anything.

      • git clone acme/app done
      • ffmpeg -i demo.mp4 running
      • chromium --headless running
    4. 04

      Sessions are durable: they stream, can be steered mid-run, hibernate when idle, resume where they left off.

      09:14 streaminghibernated13:02 resumed
    5. 05

      No model keys in your runtime. Bring your own or use ours. Models are a string, change it per request.

      model: "anthropic/claude-sonnet-4.6"
      ANTHROPIC_API_KEY not present

    Managed

    Batteries included.

    Keys it uses but never sees

    Each secret is bound to one origin and injected after the request leaves the machine. The agent can open a PR; it can't read the token, and can't send it anywhere else.

    tools/github.ts
    export const githubPat = defineConnection({
      origin: https://api.github.com",     // only ever here
      headers: { Authorization: bearer(useSecret("GITHUB_PAT")) },
    });
    egress
    POST /repos/acme/app/pulls  (open cleanup PR)
    Authorization: Bearer ••••••••

    Deploy it, then leave it running

    Give it a schedule and it runs itself. Sessions, streaming, MCP, and Slack are handled.

    schedules/weekday-hygiene.ts
    export default defineSchedule({
      cron: "0 9 * * 1-5",        // weekdays, 9am
      dispatch: { payload: { dryRun: true } },
    });
    terminal
    $ opencomputer deploy
    ✓ live · runs weekdays, opens PRs, never sees the token

    Pricing

    Everything is pay-as-you-go. Plans prepay it.

    One set of rates for everyone: model calls passed through at API prices, machine time billed per second. A plan is prepaid usage credit with a multiplier — and you can bring your own model subscription.

    PAYG
    Usage

    The rates, paid directly

    • $10 free credit to start
    • Model calls at API rates, machine time per second
    • Scale to zero when idle
    • No monthly commitment
    Start
    ProPopular
    $20/mo

    10× prepaid credit

    • Your $20 becomes 10× the usage credit
    • Credit covers both meters: model calls and machine time
    • Bring your Codex subscription — model calls cost nothing, all of it goes to machine time
    • Run out and you're simply on PAYG rates
    Get Pro
    Max
    $200/mo

    10× prepaid credit, at scale

    • Your $200 becomes 10× the usage credit
    • Enough to keep 10+ default machines running around the clock
    • Same rule: bring your own subscription and it all goes to machine time
    • Run out and you're simply on PAYG rates
    Get Max
    Enterprise
    Custom

    On your terms

    • Your own cloud or VPC, self-hosted connections
    • Volume pricing and higher limits
    • SSO, audit log, priority support
    Talk to us

    There is one meter set. Credits draw down at exactly the PAYG rates, and when they run out you keep running at those same rates.

    The ratesSo what exactly does pay-as-you-go meter?Token passthrough, machine rates, automatic bursting, and what a real session costs.
    Meter 01

    Tokens = your agent's model calls

    Every turn of your agent's loop is a model call, and tokens are how it's metered — passed straight through at API rates, no markup. Bring your own key, or a Codex subscription, and this meter reads zero: you pay only for machine time.

    passed through at API rates · $0 with your own key or subscription
    Meter 02

    Machine time = the minutes your sessions run

    Every session runs on its own Linux machine, billed only while it runs. Agent sessions default to 2 GB / 1 vCPU and burst automatically to 4 GB / 2 vCPU ($0.00630/min) or 8 GB / 4 vCPU ($0.01260/min) when they need it. A session that runs ten minutes a day costs about $1 a month.

    default machine 2 GB / 1 vCPU · $0.00315/min · billed to the second