Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,37 @@
This file records user-visible changes to the BoxCompute CLI. GitHub Releases
use the same notes and bind them to the exact source commit.

## [0.14.0] - 2026-11-23

Orca (orca.dev) can run each workspace on its own BoxCompute VM.

### CLI users

- New `bxc orca create|suspend|resume|destroy|keep-open`: the lifecycle steps
of the BoxCompute plugin's Orca VM recipe. Orca runs them in your
repository. `create` starts a Large VM (`--size` or `BOXCOMPUTE_ORCA_SIZE`
picks another), installs Orca's server build after checking it against its
release checksums, clones the repository's remote and starts
`orca-ide serve` on the VM's loopback, reached through a BoxCompute preview.
Claude Code and Codex install in the background from their vendors'
installers. `keep-open`, which the plugin runs every 20 minutes while Orca
is open, keeps each awake workspace's link and VM up; it needs BoxCompute
0.272.0.
- A running VM bills your credit by the minute. After Orca quits, its VMs
stop as idle within about half an hour and keep their files.
- Update with `bxc update` or `npm install --global @boxcompute/cli@latest`.
The Orca plugin pins this version through `npx`.

### Security

- A private GitHub repository is cloned with `GH_TOKEN`, `GITHUB_TOKEN` or
`gh auth token`. The token reaches the VM as a file, never in a command's
arguments or environment (which the VM's logs keep), and is deleted after
the clone or fetch. Orca's pairing code is read back as a file and deleted,
never printed by a command on the VM.
- Each workspace's VM and preview IDs are kept in `orca/` beside the CLI's
credential, mode 0600; no credential is stored there.

## [0.13.0] - 2026-11-16

The retired gVisor options are gone, and the CLI's own guide says where it
Expand Down
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,28 @@ exact `--revoke` command; the server-side lease still expires naturally.
Run `bxc` or `bxc --help` for the complete command reference. The previous
`bcompute` executable remains available as a compatibility alias.

## Run Orca workspaces on BoxCompute VMs (`bxc orca`)

The [BoxCompute plugin for Orca](https://github.com/boxcompute/orca-plugin)
adds **BoxCompute VM** under Orca's **Run on**: each workspace gets its own VM,
with Orca's server, a clone of the repository's remote, and Claude Code and
Codex. Sign in once with `bxc login` (or `npx @boxcompute/cli login`); Orca
then runs these steps itself:

| Step | What it does |
| --- | --- |
| `bxc orca create [--size SIZE]` | Starts a VM (Large by default), installs Orca's server (checksum-checked), clones the remote, starts `orca-ide serve` on loopback and prints Orca's pairing through a preview link |
| `bxc orca suspend` | Stops the VM; its files stay |
| `bxc orca resume` | Starts it again and prints a fresh pairing |
| `bxc orca destroy` | Deletes the VM |
| `bxc orca keep-open` | Keeps each awake workspace's link open another hour; the plugin runs it every 20 minutes while Orca is open |

A private GitHub repository is cloned with `GH_TOKEN`, `GITHUB_TOKEN` or
`gh auth token`; the token is copied to the VM as a file and deleted after the
clone or fetch. `BOXCOMPUTE_ORCA_SIZE` overrides the size and
`BOXCOMPUTE_ORCA_WORKSPACE` picks the BoxCompute workspace. A running VM bills
by the minute; after Orca quits, its VMs stop as idle and keep their files.

## Run chats on your own machine (`bxc runner`)

`bxc runner` lets the BoxCompute agent work on a computer you control. It
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@boxcompute/cli",
"version": "0.13.0",
"version": "0.14.0",
"description": "Connect local AI agents to BoxCompute sandboxes",
"keywords": [
"boxcompute",
Expand Down
75 changes: 75 additions & 0 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import {
import { openServices, type ServiceMapping } from "./services.js";
import { runProxy } from "./proxy.js";
import { runSsh } from "./ssh.js";
import { OrcaUsageError, runLocal, runOrca } from "./orca.js";
import { cooperativeConnectionApi } from "./cooperative-connection.js";
import { resumeSandbox } from "./resume.js";
import { stopSandbox } from "./stop.js";
Expand Down Expand Up @@ -100,6 +101,7 @@ Commands:
costs Compute cost per API key and per sandbox
audit Page the account's API audit log
runner Run BoxCompute chats in Docker on this machine
orca Run Orca (orca.dev) workspaces on BoxCompute VMs
skill [alias: skills] Manage coding-harness skills
detect Detect compatible coding harnesses
list [alias: ls] List detected or installed harnesses
Expand Down Expand Up @@ -397,6 +399,51 @@ Supported harnesses:
goose, pi, windsurf, and the shared agents directory
`;

const orcaHelp = `Run Orca (orca.dev) workspaces on BoxCompute VMs

Usage: bxc orca <step> [--size SIZE] [--json]

These are the lifecycle steps of the BoxCompute plugin's Orca VM recipe.
Orca runs them in your repository; you normally never run them by hand.

Steps:

create [--size SIZE] Create a VM (small, large, xl or xxl; default
large), clone this repository's remote, start
Orca's server and print Orca's pairing
suspend Stop the workspace's VM; its files are kept
resume Start it again and print a fresh pairing
destroy Delete the workspace's VM
keep-open Keep every awake Orca VM's link open another
hour (the plugin runs it every 20 minutes)

Environment:

BOXCOMPUTE_ORCA_SIZE Overrides --size: small, large, xl or xxl
(xl and xxl come with Starter)
BOXCOMPUTE_ORCA_WORKSPACE BoxCompute workspace ID (default: your first)
GH_TOKEN, GITHUB_TOKEN Clones a private GitHub repository; without
them, \`gh auth token\` is tried. Used for the
clone and fetch only, then removed from the VM

A running VM bills your BoxCompute credit by the minute. While Orca is open,
its awake workspaces' VMs keep running; after Orca quits they stop as idle
within about half an hour, keeping their files.
`;

async function readAll(stream: Readable): Promise<string> {
if ((stream as { isTTY?: boolean }).isTTY) return "";
const chunks: Buffer[] = [];
let length = 0;
for await (const chunk of stream) {
const buffer = Buffer.isBuffer(chunk) ? chunk : Buffer.from(String(chunk));
length += buffer.length;
if (length > 1_048_576) throw new Error("Orca's lifecycle payload is larger than 1 MiB");
chunks.push(buffer);
}
return Buffer.concat(chunks).toString("utf8");
}

type Io = { stdin?: Readable; stdout: Writable; stderr: Writable };
type DeviceAuthorization = {
deviceCode: string;
Expand Down Expand Up @@ -428,6 +475,7 @@ export type CliDependencies = {
proxy?: typeof runProxy;
ssh?: typeof runSsh;
runner?: typeof runRunner;
runLocal?: typeof runLocal;
/** null simulates a runtime without a global WebSocket (Node.js 20). */
webSocket?: typeof WebSocket | null;
};
Expand Down Expand Up @@ -1192,6 +1240,32 @@ export async function runCli(argv: string[], supplied: CliDependencies = {}): Pr
}
}

if (command === "orca") {
const action = args.shift();
if (!action) {
write(io.stdout, orcaHelp);
return 0;
}
const connection = await load(env);
try {
return await runOrca(action, args, {
client: createClient(connection, fetchImpl),
connection,
fetch: fetchImpl,
env,
stdout: io.stdout,
stderr: io.stderr,
readStdin: () => readAll(io.stdin ?? process.stdin),
sleep,
now,
run: supplied.runLocal ?? runLocal,
}, json);
} catch (error) {
if (error instanceof OrcaUsageError) throw new UsageError(error.message);
throw error;
}
}

if (command === "sandbox" && !args.length) {
write(io.stdout, sandboxHelp);
return 0;
Expand Down Expand Up @@ -1493,6 +1567,7 @@ function helpFor(command?: string): string {
if (command === "costs") return costsHelp;
if (command === "audit") return auditHelp;
if (command === "runner") return runnerHelp;
if (command === "orca") return orcaHelp;
return rootHelp;
}

Expand Down
Loading