# CLI Reference Complete command reference for the `nemoclaw` CLI. Every subcommand, flag, and option is documented here. ## Command Tree ```text nemoclaw ├── status ├── logs [name] ├── forward │ ├── start │ ├── stop │ └── list ├── policy │ ├── set │ ├── get │ └── list ├── gateway │ ├── start │ ├── stop │ ├── destroy │ ├── info │ ├── tunnel │ └── select [name] ├── sandbox │ ├── create │ ├── get [name] │ ├── list │ ├── delete │ ├── connect [name] │ ├── upload [name] │ ├── download [name] │ └── ssh-config ├── provider │ ├── create │ ├── get │ ├── list │ ├── update │ └── delete ├── inference │ ├── create │ ├── update │ ├── delete │ └── list ├── term └── completions ``` ## Top-Level Commands Commands available directly under `nemoclaw` for common operations. | Command | Description | |---|---| | `nemoclaw status` | Show the health and status of the active gateway. | | `nemoclaw logs [name]` | View sandbox logs. Use `--tail` for streaming, `--source` and `--level` to filter. When name is omitted, uses the last-used sandbox. | | `nemoclaw forward start ` | Forward a sandbox port to the host. Add `-d` for background mode. | | `nemoclaw forward stop ` | Stop an active port forward. | | `nemoclaw forward list` | List all active port forwards. | | `nemoclaw policy set ` | Apply or update a policy on a running sandbox. Pass `--policy `. | | `nemoclaw policy get ` | Show the active policy for a sandbox. Add `--full` for the complete policy with metadata. | | `nemoclaw policy list ` | List all policy versions applied to a sandbox, with status. | ## Gateway Commands Manage the OpenShell runtime cluster. | Command | Description | |---|---| | `nemoclaw gateway start` | Deploy a new cluster. Add `--remote user@host` for remote deployment. | | `nemoclaw gateway stop` | Stop the active cluster, preserving state. | | `nemoclaw gateway destroy` | Permanently remove the cluster and all its data. | | `nemoclaw gateway info` | Show detailed information about the cluster. | | `nemoclaw gateway tunnel` | Set up a kubectl tunnel to a remote cluster. | | `nemoclaw gateway select ` | Set the active cluster. All subsequent commands target this cluster. | | `nemoclaw gateway select` | List all registered clusters (when called without a name). | ## Sandbox Commands Create and manage isolated agent execution environments. | Command | Description | |---|---| | `nemoclaw sandbox create` | Create a new sandbox. See flag reference below. | | `nemoclaw sandbox get [name]` | Show detailed information about a sandbox. When name is omitted, uses the last-used sandbox. | | `nemoclaw sandbox list` | List all sandboxes in the active cluster. | | `nemoclaw sandbox delete ` | Delete one or more sandboxes by name. | | `nemoclaw sandbox connect [name]` | Open an interactive SSH session into a running sandbox. When name is omitted, reconnects to the last-used sandbox. | | `nemoclaw sandbox upload [name]` | Upload files from the host into a sandbox. When name is omitted, uses the last-used sandbox. | | `nemoclaw sandbox download [name]` | Download files from a sandbox to the host. When name is omitted, uses the last-used sandbox. | | `nemoclaw sandbox ssh-config ` | Print SSH config for a sandbox. Append to `~/.ssh/config` for VS Code Remote-SSH. | ### Sandbox Create Flags | Flag | Description | |---|---| | `--name` | Assign a human-readable name to the sandbox. Auto-generated if omitted. | | `--provider` | Attach a credential provider. Repeatable for multiple providers. | | `--policy` | Path to a policy YAML file to apply at creation time. | | `--upload` | Upload local files into the sandbox before running. | | `--keep` | Keep the sandbox alive after the trailing command exits. | | `--forward` | Forward a local port into the sandbox at startup. | | `--from` | Build from a community sandbox name, local Dockerfile directory, or container image reference. | | `-- ` | The command to run inside the sandbox. Everything after `--` is passed as the agent command. | ## Provider Commands Manage credential providers that inject secrets into sandboxes. | Command | Description | |---|---| | `nemoclaw provider create` | Create a new credential provider. See flag reference below. | | `nemoclaw provider get ` | Show details of a provider. | | `nemoclaw provider list` | List all providers in the active cluster. | | `nemoclaw provider update ` | Update a provider's credentials or configuration. | | `nemoclaw provider delete ` | Delete a provider. | ### Provider Create Flags | Flag | Description | |---|---| | `--name` | Name for the provider. | | `--type` | Provider type: `claude`, `codex`, `opencode`, `github`, `gitlab`, `nvidia`, `generic`, `outlook`. | | `--from-existing` | Discover credentials from your current shell environment variables. | | `--credential` | Set a credential explicitly. Format: `KEY=VALUE` or bare `KEY` to read from env. Repeatable. | | `--config` | Set a configuration value. Format: `KEY=VALUE`. Repeatable. | ## Inference Commands Manage inference routes that intercept and reroute LLM API calls from userland code. | Command | Description | |---|---| | `nemoclaw inference create` | Create a new inference route. See flag reference below. | | `nemoclaw inference update ` | Update an existing route's configuration. | | `nemoclaw inference delete ` | Delete an inference route. | | `nemoclaw inference list` | List all inference routes in the active cluster. | ### Inference Create Flags | Flag | Description | |---|---| | `--routing-hint` | Short label that identifies this route (for example, `local`, `nvidia`, `staging`). Referenced by `allowed_routes` in sandbox policies. | | `--base-url` | Base URL of the inference backend (for example, `https://vllm.internal:8000`). | | `--model-id` | Model identifier to send to the backend (for example, `meta/llama-3.1-8b`). | | `--api-key` | API key for authenticating with the backend. | | `--protocol` | API protocol: `openai` or `anthropic`. Defaults to `openai`. | | `--disabled` | Create the route in a disabled state. | ## OpenShell Terminal `nemoclaw term` launches the OpenShell Terminal, a dashboard that shows sandbox status, live logs, and policy decisions in a single view. Navigate with `j`/`k`, press `f` to follow live output, `s` to filter by source, and `q` to quit. Refer to {doc}`/sandboxes/create-and-manage` for more on monitoring sandboxes and reading log entries. ## Sandbox Name Fallback Commands that accept an optional `[name]` argument, such as `get`, `connect`, `upload`, `download`, and `logs`, fall back to the last-used sandbox when the name is omitted. The CLI records the sandbox name each time you create or connect to a sandbox. When falling back, the CLI prints a hint showing which sandbox was selected. If no sandbox has been used yet and no name is provided, the command exits with an error prompting you to specify a name. ## Environment Variables | Variable | Description | |---|---| | `NEMOCLAW_CLUSTER` | Name of the cluster to operate on. Overrides the active cluster set by `nemoclaw gateway select`. | | `NEMOCLAW_SANDBOX_POLICY` | Default path to a policy YAML file. When set, `nemoclaw sandbox create` uses this policy if no `--policy` flag is provided. | ## Shell Completions Generate shell completion scripts for tab completion: ```console $ nemoclaw completions bash $ nemoclaw completions zsh $ nemoclaw completions fish ``` Pipe the output to your shell's config file: ```console $ nemoclaw completions zsh >> ~/.zshrc $ source ~/.zshrc ``` ## Self-Teaching Every command and subcommand includes built-in help. Use `--help` at any level to see available subcommands, flags, and usage examples: ```console $ nemoclaw --help $ nemoclaw sandbox --help $ nemoclaw sandbox create --help $ nemoclaw gateway --help ```