Install
- Shell script (Recommended)
- Manual download
- Go install
/usr/local/bin.Authentication
Sign up at console.declaw.ai, copy your API key from the dashboard, and run:~/.declaw/config.json. You can also pass it directly:
Configuration
The CLI resolves credentials in this order (highest priority first):| Priority | Source |
|---|---|
| 1 | --api-key and --domain flags |
| 2 | DECLAW_API_KEY, DECLAW_DOMAIN, and DECLAW_API_URL environment variables |
| 3 | ~/.declaw/config.json (written by declaw auth login) |
DECLAW_CONFIG_DIR
environment variable.
Config file format
api_key is required. The other fields are optional overrides —
api_url sets a full base URL (useful for on-prem deployments),
default_template and default_timeout override the defaults for
sandbox create.
Global flags
These flags are available on every command:| Flag | Description |
|---|---|
--api-key | API key (overrides env var and config file) |
--domain | API domain (overrides env var and config file) |
--json | Output as JSON (for scripting) |
Commands
declaw mcp
Wrap any stdio-based MCP server in a sandboxed microVM. Key flags
include --network-allow for outbound host allowlisting and --env
for credential forwarding. See the MCP Sandboxing page for
full documentation.
declaw sandbox
Create, inspect, and manage sandboxes.
declaw sb
declaw template
Build and manage sandbox templates.
declaw tpl
declaw template build
Build a custom template when the built-in mcp-server, python,
node, or base templates don’t have the dependencies you need:
declaw volume
Create and manage persistent volumes that can be attached to sandboxes.
declaw vol
declaw account
View account information and manage API keys.
declaw auth
Manage authentication credentials.
declaw version
Print CLI version, git commit, and build date.
Next steps
- MCP Sandboxing — sandbox any MCP server with
declaw mcp - Quickstart — five-minute tutorial using the SDKs
- Installation — install the Python, TypeScript, or Go SDK