Install the CLI
ons is the onshore.sh command-line tool. It runs on macOS (Apple silicon and Intel) and on
Linux (x86-64 and arm64). On Windows, use it inside WSL2.
Install
Section titled “Install”curl --proto '=https' --tlsv1.2 -fsSL https://get.onshore.sh/install.sh | shThe script:
- Picks the build for your system and downloads the newest release.
- Checks the release before it installs anything: the archive’s Sigstore bundle must prove it was built and signed by the onshore.sh release workflow, and its SHA-256 checksum must match the signed one. If a check fails, nothing is installed.
- Installs
onsin~/.local/binand tells you if that directory is not on yourPATH. - Installs the agent skill for the coding agents it finds on your machine.
- Runs
ons loginwhen you run it in a terminal. In CI, or when no terminal is attached, it skips the login.
You can change these with environment variables:
| Variable | Effect |
|---|---|
ONS_VERSION |
Install this version, for example ONS_VERSION=<version>. By default the script installs the newest stable release |
ONS_INSTALL_DIR |
Install into this directory instead of ~/.local/bin |
ONS_NO_SKILL=1 |
Do not install the agent skill |
ONS_NO_LOGIN=1 |
Do not run ons login |
curl --proto '=https' --tlsv1.2 -fsSL https://get.onshore.sh/install.sh | ONS_INSTALL_DIR=<directory> sh<directory> is where ons goes, for example /usr/local/bin (it may need sudo).
Run the install command in Terminal. It needs curl, tar and shasum, which macOS has.
Run the install command in your shell. It needs curl, tar and sha256sum (or shasum).
Install WSL with Ubuntu once, in PowerShell:
wsl --install -d UbuntuThen run the install command in the Ubuntu terminal. ons login prints a page to open:
open it in your Windows browser.
Homebrew: coming soon.
Coming from msb
Section titled “Coming from msb”ons replaces msb, the CLI’s former name. msb update cannot move you to ons: it says it is
up to date. Run the install command above, then log in again: ons reads none of msb’s
configuration and no MSB_* variable.
ons loginrm ~/.local/bin/msb- Rename the variables you set:
MSB_API_KEYbecomesONS_API_KEY,MSB_DOMAINbecomesONS_DOMAIN, and so on. onskeeps its login in~/.config/onshore. Once you no longer needmsb, remove~/.config/minisandbox. A Hybrid admin first copies itspools/andtrust/directories to~/.config/onshore.- Keys created by
msb loginkeep working until you revoke them.
Behind a proxy or firewall
Section titled “Behind a proxy or firewall”The install script downloads with curl, which uses your HTTPS_PROXY. Allow these hosts:
| Host | Why |
|---|---|
get.onshore.sh |
The script, the release index, the ons archive and the signature checker |
tuf-repo-cdn.sigstore.dev |
Sigstore’s public trust root, which the signature check needs |
Once installed, ons connects directly to api.onshore.sh, to your miniVMs’ own *.onshore.sh
addresses and, for ons update, to get.onshore.sh: it does not use HTTPS_PROXY yet. ons login opens onshore.sh in your browser.
Verify before running
Section titled “Verify before running”curl | sh runs the script as soon as it is downloaded. The whole script is one function called on
its last line, so a cut download runs nothing. If you would rather read it first, download it, read
it, then run it:
curl --proto '=https' --tlsv1.2 -fsSLO https://get.onshore.sh/install.shless install.shsh install.shinstall.sh is attested like every release. With the GitHub CLI, you can
check that our release workflow signed it before you run it:
curl --proto '=https' --tlsv1.2 -fsSLO https://get.onshore.sh/install.sh.sigstore.jsongh attestation verify install.sh --bundle install.sh.sigstore.json --repo minitap-ai/minisandbox \ --cert-identity https://github.com/minitap-ai/minisandbox/.github/workflows/release-cli.yml@refs/heads/main \ --source-ref refs/heads/main --deny-self-hosted-runnersVerify
Section titled “Verify”ons --versionIt prints ons <version>. Then check that you are logged in:
ons lsIt lists your miniVMs (none yet), or says not logged in with the fix: run ons login.
Log in
Section titled “Log in”ons loginons prints a page and a code. Open the page, type the code and approve. A new API key is saved
in ~/.config/onshore/config.toml, readable only by you.
| Command | When |
|---|---|
ons login |
You, on your own computer, with a browser. |
ons login --paste |
The browser runs on another machine. Paste the address the browser ends on. |
ons login --org <org-id> |
You belong to several organizations. <org-id> is the one the key is for. |
ons login --key |
You have an API key. Paste it at the hidden prompt, or pipe it on stdin. |
ons login --agent |
An AI agent signs in with its own agent identity. The key lasts 1 hour. |
In CI, do not log in. Set ONS_API_KEY instead:
export ONS_API_KEY=<your-api-key><your-api-key> is an API key from the console. Store it in your CI’s secret store, never in a
file of your repository. There is no --api-key flag, on purpose.
Update
Section titled “Update”ons updateons update replaces ons with the newest signed release, and refreshes the agent skill
wherever it was installed. It refuses to install an older version.
| Command | Effect |
|---|---|
ons update --check |
Print the running and the newest version, change nothing. |
ons update --version <version> |
Install this version. <version> is a release number. |
ons update --version <version> --allow-downgrade |
Install an older version. |
ons update --channel stable |
Follow the stable channel from now on. |
Switch from an alpha build
Section titled “Switch from an alpha build”If ons --version shows a suffix, such as 0.2.0-alpha.3, you have an alpha build: it follows
the alpha channel and logs in to the development platform, not to onshore.sh. Running the install
script again replaces the binary but keeps that channel and domain. Move to the stable release and
to the managed service:
ons update --channel stableons login --domain onshore.shThe first command installs the newest stable release and keeps you on that channel. The second signs you in to onshore.sh in your browser and saves it as your domain: keys from the development platform do not work there.
The agent skill
Section titled “The agent skill”The agent skill teaches a coding agent (Claude Code, Codex, OpenCode or any agent that reads
skills) how to use ons: always --json, never a key on the command line, kill what it creates.
Each ons version carries its own skill.
ons skill install --target claude| Target | Where the skill goes |
|---|---|
--target claude |
~/.claude/skills/minisandbox-cli |
--target agents (default) |
~/.agents/skills/minisandbox-cli, read by Codex and OpenCode |
--target codex |
the same place as agents |
--target opencode |
OpenCode’s own skills directory |
--projectinstalls into the current directory instead (./.claude/skills/…), to commit it with your project.--dir <skills-dir>installs into any other skills directory.<skills-dir>is that directory.ons skill showprints the skill.ons skill path --target <target>prints where it goes.
ons skill ls lists the skill of each agent with the ons version that wrote it, and says
current or stale. ons skill update rewrites the stale ones; ons update runs it for you.
Uninstall
Section titled “Uninstall”Remove the binary and your saved login:
rm ~/.local/bin/onsrm -r ~/.config/onshoreUse the directory you installed into if you set ONS_INSTALL_DIR. Then remove the skill for each
target you installed, for example rm -r ~/.claude/skills/minisandbox-cli and
rm -r ~/.agents/skills/minisandbox-cli.
The API key ons login created stays valid until you revoke it: open API keys in the
console and click Revoke on the key named msb login · <host>, where <host> is your
computer’s name.
Troubleshooting
Section titled “Troubleshooting”ons: command not found: add the install directory to yourPATH, for exampleexport PATH="$HOME/.local/bin:$PATH"in your shell profile.not logged in: runons login, or setONS_API_KEY.- A check of the release fails: do not install it. Write to support@onshore.sh.
- Any error: every
onserror names what went wrong and the next step. Add--jsonto get it as{"ok": false, "errors": [{"message": …, "fix": …}]}.