fbx v0.1.0 — macOS & Linux

Run it in a sandbox

The fbx command-line client for Firebox.

One command to install, one to configure, one to run. Your code executes inside its own Firecracker microVM — then the sandbox is destroyed. Nothing touches your machine.

Install

Single static binary, no dependencies. Pick your platform:

$ curl -sL https://getfirebox.dev/downloads/fbx-darwin-arm64 -o /tmp/fbx && \
    sudo mv /tmp/fbx /usr/local/bin/fbx && sudo chmod +x /usr/local/bin/fbx
$ curl -sL https://getfirebox.dev/downloads/fbx-darwin-amd64 -o /tmp/fbx && \
    sudo mv /tmp/fbx /usr/local/bin/fbx && sudo chmod +x /usr/local/bin/fbx
$ curl -sL https://getfirebox.dev/downloads/fbx-linux-amd64 -o /tmp/fbx && \
    sudo mv /tmp/fbx /usr/local/bin/fbx && sudo chmod +x /usr/local/bin/fbx
$ curl -sL https://getfirebox.dev/downloads/fbx-linux-arm64 -o /tmp/fbx && \
    sudo mv /tmp/fbx /usr/local/bin/fbx && sudo chmod +x /usr/local/bin/fbx
PS> Invoke-WebRequest -Uri https://getfirebox.dev/downloads/fbx-windows-amd64.exe -OutFile fbx.exe
PS> Invoke-WebRequest -Uri https://getfirebox.dev/downloads/fbx-windows-arm64.exe -OutFile fbx.exe

Prefer a manual download? macOS · Apple Silicon · macOS · Intel · Linux · x86_64 · Linux · ARM64 · Windows · x86_64 · Windows · ARM64

Quickstart

Install, configure, run — under a minute.

1

Install

Download the fbx binary for your platform and put it on your PATH.

2

Configure

fbx config set-key <your-api-key> — grab a key from the Firebox dashboard (Keys tab). Or set FBX_API_KEY as an environment variable instead.

3

Run code

fbx run script.py — creates a sandbox, uploads your file, executes it with the right interpreter, prints the output, and always deletes the sandbox.

# copy-paste this — no setup beyond your API key
$ echo 'print("hello from the sandbox")' > hello-fbx.py
$ fbx run hello-fbx.py
Sandbox sb_4dee82408148 on g6-baremetal-01 — provisioned in 6ms (warm pool hit)
$ python3 hello-fbx.py
────────────────────────────────────────
hello from the sandbox
────────────────────────────────────────
Exit code 0 in 212ms — total 891ms wall clock.
Sandbox sb_4dee82408148 destroyed.

Command reference

Everything fbx can do. Run fbx --help or fbx <command> --help for full details.

CommandWhat it does
fbx run <file>Create a sandbox, upload the file, run it (.py → python3, .js → node, .sh → bash), print output, delete the sandbox. Exit code is the remote command’s.
fbx exec <id> -- <cmd>Run a command inside an existing sandbox.
fbx sandbox createCreate a sandbox. --template python picks the image.
fbx sandbox listList your sandboxes.
fbx sandbox get <id>Show sandbox details.
fbx sandbox delete <id>Delete a sandbox.
fbx template listList available templates.
fbx config getShow config (API key masked).

Built for scripting

Stdout is clean (sandbox output only); metadata goes to stderr — so fbx is pipe-friendly.

# capture just the program output
$ result=$(fbx run calc.py 2>/dev/null)

# long-lived sandbox for iterative work
$ sb=$(fbx sandbox create --template python | awk '/^id:/{print $2}')
$ fbx exec $sb -- pip install requests
$ fbx exec $sb -- python3 -c "import requests; print('ok')"
$ fbx sandbox delete $sb

VS Code extension

Select code, right-click, run it in a Firebox sandbox. Output appears in a panel with the provision time.

# download and install
$ curl -sL https://getfirebox.dev/downloads/vscode-firebox-0.2.1.vsix -o /tmp/firebox.vsix
$ code --install-extension /tmp/firebox.vsix

# then set your API key in VS Code settings (firebox.apiKey),
# select code, right-click → "Run in Firebox Sandbox"

Or download the .vsix directly.