100% parity · targets oci-cli 3.96.3

The OCI CLI,
without the wait.

boci is a drop-in replacement for Oracle's oci CLI, built on Bun. Same commands, same flags, same output, with a start-up measured 10× faster. Swap oci for boci and your scripts keep working.

$ alias oci=boci   # that's the whole migration
$ oci os ns get
One static binary No Python, no venv Parity-tested against the real oci

Benchmarks

Every command pays the start-up tax.
boci barely charges it.

Before oci sends a single request, Python has to start and import the whole CLI package. That costs over 400 ms on every call, and it adds up in scripts. Watch the same start-up step, at real speed:

Start-up: --version, from launch to output

wall time · milliseconds · lower is better
boci
0 ms
oci
0 ms
 
Start-up time
boci
41 ms
oci
413 ms
10× faster
Peak memory at start-up
boci
57 MB
oci
66 MB
14% less memory
Install size
boci
108 MB
oci
575 MB
5.3× smaller, one file

Where oci's time goes today

median of 10 runs · offline rows use a local fake endpoint, so they measure CLI overhead only
Command oci of which start-up boci

Measured on an Intel Core i3-7100 (4 threads), Linux, oci-cli 3.96.3 on Python 3.12, Bun 1.4.5. Peak memory is taken through a tiny C launcher so the parent process doesn't inflate it. Reproduce with bun run bench (add bench:live for real API calls).

Drop-in

Same commands. Same flags. Same bytes.

boci aims for 1:1 parity with the oci CLI: every service, command and flag, the same JSON on stdout, the same error shape on stderr, the same exit codes, and the same ~/.oci/config, oci_cli_rc and OCI_CLI_* behaviour. Anything that can't match yet is listed as a known divergence instead of failing silently.

~ zsh
$ time oci os ns get
{
  "data": "axaxnpcrorw5"
}
oci      0.49s

$ time boci os ns get
{
  "data": "axaxnpcrorw5"
}
boci     0.05s

How it works

Generated from oci itself, verified against oci itself.

Most of the oci CLI is generated from the OCI SDK. boci doesn't rewrite 9,000 commands by hand. It reads them out of the real CLI and runs them all with one small engine.

Extract

An extractor loads the pinned oci CLI and records every service, command, flag, default and HTTP operation as data.

9,372 commands across 175 services

Execute

One generic engine handles config, request signing, pagination, --query and output for every generated command. Hand-written code covers the rest, like multipart uploads.

8,184 generated · 1,188 hand-written

Verify

Parity tests compare boci with the real oci: the request it sends, stdout, stderr and exit code. Responses are recorded once, so the suite runs offline in seconds.

1:1 or it's a recorded divergence

Progress

Built easiest-first, one small step at a time.

The work follows a ladder: tooling first, then offline behaviour, the first signed request, reads, lists, writes, waiters, other auth methods, and finally the hand-written commands. bun run status prints the live numbers.

9,372 of 9,372 commands verified (100%)

17 accepted divergences · 0 unresolved · run bun run status for live numbers
Rung -1 — Foundations (measure before building)
13/13
Rung 0 — Offline behavior
15/15
Rung 1 — First signed request
18/18
Rung 2 — Generated GETs
9/9
Rung 3 — Lists, pagination, --query, tables
5/5
Rung 4 — Request bodies
10/10
Rung 5 — Waiters (--wait-for-state)
3/3
Rung 6 — Other auth methods
4/4
Rung 7 — Custom commands (hardest last)
18/18
Rung 8 — Remaining commands and Engine features
211/211
Rung 9 — Differential fuzzing
34/34

Install

Get boci

boci ships as a single static binary for Linux, macOS, and Windows (x64 and arm64) via mise, Homebrew, Scoop, Nix, or install scripts — or build from source with Bun 1.4.5 or newer.

build from source
$ git clone https://github.com/neves/boci
$ cd boci && bun install
$ bun run build          # → dist/boci
$ bun run status         # parity progress
$ bun test               # offline parity suite
use it as oci
# boci reads your existing ~/.oci/config
$ boci os ns get --profile my-profile

# or make it the default, scripts unchanged
$ alias oci=boci

# optional: fall back to the real oci
$ export BOCI_FALLBACK=oci

FAQ

Questions

Is this an official Oracle project?

No. boci is an independent open-source project and isn't affiliated with or endorsed by Oracle. It talks to the same public OCI APIs the official CLI uses.

Will my scripts break?

That's the point of the parity tests: all 9,372 commands are verified against the reference CLI for stdout, stderr error shape, requests, and exit codes. The 17 known accepted divergences are documented in DIVERGENCES.md. With BOCI_FALLBACK=oci, any unsupported edge case is handed to the real oci.

Why Bun?

Bun compiles TypeScript into one self-contained executable that starts in milliseconds, with fast built-in crypto, HTTP and JSON. boci also skips the OCI SDK and signs requests itself, so there's very little to load.

Why is the binary 108 MB?

Most of it is the Bun runtime embedded in every compiled Bun app. The command data for all 9,372 commands adds only 2.3 MB compressed. It's still one file, under a fifth of the size of the Python install, with nothing else to set up.

Which oci version does boci match?

oci-cli 3.96.3. Moving to a newer oci release regenerates the command data and shows exactly what changed.

Stop waiting on your CLI.

Drop it into your shell and leave the 400 ms Python start-up behind.