Skip to main content
The Declaw CLI lets you create and manage sandboxes, run commands, transfer files, build templates, manage volumes and vault-backed secrets, and sandbox MCP servers — all from your terminal.

Install

Verify the installation:

Authentication

Sign up at console.declaw.ai, copy your API key from the dashboard, and run:
You’ll be prompted to enter your API key (input is hidden). The CLI validates it against the API and saves it to ~/.declaw/config.json. You can also pass it directly:

Configuration

The CLI resolves credentials in this order (highest priority first): The config file location can be overridden with the DECLAW_CONFIG_DIR environment variable.

Config file format

Only api_key is required. domain and api_url are optional — api_url sets a full base URL (useful for on-prem deployments) instead of deriving it from domain.

Global flags

These flags are available on every command:

Commands

Each command group has its own reference page:

Next steps