adapt is the command-line client for Adapt Platform.
It manages sandboxes, runs commands, transfers files, and calls connected tools.
On macOS or Linux, run:
curl -fsSL https://platform.adapt.com/install.sh | shThe installer verifies the SHA-256 checksum and puts adapt in ~/.local/bin.
Add ~/.local/bin to your PATH.
Restart your shell.
To update the CLI, run the same install command.
To change the install directory, set ADAPT_INSTALL_DIR on the sh command.
Start the login process:
adapt auth login
The CLI shows a code and opens an approval page in your browser.
- Sign in to Adapt Platform in the browser.
- Make sure that the browser code matches the CLI code.
- Approve access.
- If the CLI asks for an organization, select one.
Show your account and selected organization:
adapt whoami
If the machine has no browser, use adapt auth login --no-browser.
Open the displayed link on another machine.
A profile stores an API URL, credentials, and a selected organization.
The default profile is default.
Sign in to another profile with --profile:
adapt --profile staging auth login --api-url https://platform.adaptstaging.com
To use a profile for every command in your shell, set ADAPT_PROFILE:
export ADAPT_PROFILE=staging
adapt whoamiThe --profile option overrides ADAPT_PROFILE.
List saved profiles with adapt profiles.
For more information, see the CLI reference.
Open a shell:
adapt sandbox sh
Or run a command:
adapt sandbox sh --image ubuntu:24.04 -- uname -a
The CLI creates a sandbox and waits for it to run. It deletes the sandbox and its disk when the shell or command ends.
Cloud sandboxes expire after one hour by default.
Use --ttl SECONDS to change this time.
Use --no-expiry to disable automatic expiry.
Local sandboxes run on these systems:
- Apple Silicon Macs.
- x86-64 Linux with KVM.
On first use, the CLI downloads and verifies the required local runtime. Local commands do not need a Platform login.
Run a command in a temporary local sandbox:
adapt sandbox sh --local --image ubuntu:24.04 -- uname -m
Open a shell in a temporary local sandbox:
adapt sandbox sh --local
The CLI starts the local runtime automatically. It deletes the temporary sandbox when the shell or command ends.
Create a local sandbox for later commands:
adapt --local sandbox create --image ubuntu:24.04 --wait
This sandbox stays available until you stop or delete it.
Local sandboxes do not expire automatically.
In the following commands, replace SANDBOX_ID with the ID from the response:
adapt --local sandbox list
adapt --local exec SANDBOX_ID -- uname -m
adapt --local sandbox delete SANDBOX_IDCommands use Adapt Platform by default.
Use --cloud to select Adapt Platform explicitly.
To download the local runtime before use, run adapt runtime install.
To show the required version and installation path, run adapt runtime status.
To use a custom runtime, set ADAPT_LOCAL_RUNTIME=/path/to/runtime/bin.
You can also select this directory with --runtime-dir.
See local sandbox options and limitations.
Create a sandbox that stays available after each command:
adapt sandbox create --image ubuntu:24.04 --cpu 2 --memory 2048 --wait
In the examples below, replace SANDBOX_ID with the ID from the response.
Run a command in the sandbox:
adapt exec SANDBOX_ID -- uname -aOpen an interactive shell:
adapt exec SANDBOX_ID -it -- /bin/shPress Ctrl-] to disconnect from this shell. The remote execution continues after you disconnect.
List all sandboxes:
adapt sandbox list --all
Delete the sandbox when you no longer need it:
adapt sandbox delete SANDBOX_ID
Cloud resource commands accept a full ID or a unique ID prefix. Local sandbox commands require full IDs.
Upload a file to a sandbox:
adapt files put SANDBOX_ID ./input.txt /tmp/input.txt
Download a file from a sandbox:
adapt files get SANDBOX_ID /tmp/output.txt ./output.txt
Find tools on your connected Model Context Protocol (MCP) services:
adapt connections search "files"In the following commands, replace CONNECTION_ID and TOOL_NAME with values from the search results.
Show the tool's input schema:
adapt connections describe CONNECTION_ID TOOL_NAME
Put the required arguments in arguments.json.
Then call the tool:
adapt connections call CONNECTION_ID TOOL_NAME --arguments @arguments.json
Install the Adapt skill for Codex, Claude Code, Pi, and OpenCode:
adapt skill install
To install the skill for one agent, add the agent name. For example:
adapt skill install codex
Show the skill text:
adapt skill show
Show the commands and their options:
adapt --help adapt sandbox --help adapt sandbox create --help
To install from this repository, use a current stable Rust toolchain:
cargo install --path . --lockedRun the development checks:
cargo fmt --all -- --check cargo clippy --locked --all-targets -- -D warnings cargo test --locked cargo build --locked --release python3 -m unittest discover -s scripts -p '*_test.py'