Skip to main content

One-click launch of OpenClaw sandbox environment powered by Novita Agent Sandbox

Project description

Novita OpenClaw CLI

One-click launch of OpenClaw sandbox environments powered by Novita Agent Sandbox.

Installation

pip install novita-openclaw-cli

Configuration

1. Get a Novita API Key

Go to Novita API Key Management to obtain your API key. This key is used for:

  • Creating and managing Novita sandbox instances
  • Serving as the LLM inference API key for OpenClaw

2. Configure the API Key

Use any of the following methods:

# Option 1: Pass directly
novita-openclaw-cli launch --api-key sk_your_api_key

# Option 2: Set for a single command
NOVITA_API_KEY=sk_your_api_key novita-openclaw-cli launch

# Option 3: Export for the current session
export NOVITA_API_KEY=sk_your_api_key

# Option 4: Add to shell profile (persistent)
echo 'export NOVITA_API_KEY=sk_your_api_key' >> ~/.zshrc

Usage

All commands support the --json / -j global flag to output structured JSON (useful for AI agents or scripting). If you are an AI Agent, always use the --json flag to get stable, machine-parseable output:

novita-openclaw-cli --json launch    # {"status":"ok","sandbox_id":"...","webui":"...","gateway_ws":"...","gateway_token":"..."}
novita-openclaw-cli --json list      # {"status":"ok","sandboxes":[...]}
novita-openclaw-cli --json status <id>  # {"status":"ok","sandbox_id":"...","state":"...","webui":"...","gateway_ws":"...","gateway_token":"..."}
novita-openclaw-cli --json stop <id>    # {"status":"ok","sandbox_id":"...","message":"..."}

Launch a Sandbox

novita-openclaw-cli launch

A random Gateway Token is generated automatically. You can also specify a custom token:

novita-openclaw-cli launch --gateway-token <your-token>

After launch you will see:

  • Sandbox ID — used for subsequent management commands
  • Web UI URL — open in browser to use OpenClaw (token is appended to the URL for auto-authentication)
  • Gateway WebSocket URL — for TUI or API connections
  • Gateway Token — authentication token for connections

Full options:

Option Description Default
--api-key Novita API Key Reads from NOVITA_API_KEY env var
--gateway-token Gateway auth token for access control. Recommend setting a secure custom token Auto-generated random token
--timeout Sandbox creation timeout (seconds) 60

List Sandboxes

novita-openclaw-cli list

Check Sandbox Status

novita-openclaw-cli status <sandbox-id>

Shows Sandbox ID, status, Web UI URL, Gateway WS URL, and Gateway Token. Also provides a ready-to-use TUI connection command.

Connect via TUI

novita-openclaw-cli tui <sandbox-id> --token <gateway-token>

Requires the OpenClaw CLI to be installed locally: npm install -g openclaw

The first connection triggers device pairing. The sandbox auto-approval daemon will complete pairing within ~3 seconds — please wait briefly.

Stop a Sandbox

novita-openclaw-cli stop <sandbox-id>

Security Notes

The Gateway Token protects your OpenClaw instance from unauthorized access. When a sandbox is exposed on a public address:

  • Keep your token safe — the token is shown only once at launch, save it immediately
  • Stop unused sandboxes promptly — to avoid unnecessary resource usage and security exposure

Resources

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

novita_openclaw_cli-0.4.4.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

novita_openclaw_cli-0.4.4-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file novita_openclaw_cli-0.4.4.tar.gz.

File metadata

  • Download URL: novita_openclaw_cli-0.4.4.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for novita_openclaw_cli-0.4.4.tar.gz
Algorithm Hash digest
SHA256 6212c4e1eb729cbd7453923a61d5aa88b2550d43bd358f5bc1eb0b93f63ddd76
MD5 ed93e8802217fed632dde9cde85d77c9
BLAKE2b-256 7cb4be4c1c38bfcf47e9b2a774c059d5393fd14dbd4634e9d2fabd4c237d891a

See more details on using hashes here.

File details

Details for the file novita_openclaw_cli-0.4.4-py3-none-any.whl.

File metadata

File hashes

Hashes for novita_openclaw_cli-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7416f178c9b52ed6c29a932f68507fb881e8468186dcc2e6c0efaf0bbdcd93a8
MD5 57e04c24070263d15498268a36eabf01
BLAKE2b-256 18c57a3ddb70e99c226351d0cd7da4d1eb7b4407f03bd4d5ff78d6361b93e11f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page