Skip to content

NextClaw CLI: Capability Map and Complete Command Reference

The nextclaw CLI is a first-class way to operate NextClaw. When a product capability can be expressed clearly as a structured operation, NextClaw aims to make it available from the command line so users, developers, scripts, CI jobs, and other Agents can work with the same underlying capabilities.

This does not mean moving every interface into a terminal. Visual, drag-and-drop, and direct-manipulation work can remain GUI-first. The CLI is most useful for runtime management, queries and diagnostics, repeatable operations, automation, and system integration.

Use this page to:

  • see what NextClaw can currently do, grouped by capability area; and
  • look up the complete CLI surface by command path.

The registered command tree is the source of truth for this page. Adding, removing, or renaming a CLI command requires updating both language versions, and repository tests verify that this reference covers the real command surface.

How to use this reference

This page lists every executable command path and its primary purpose. To inspect the complete arguments, defaults, and options for one command, run:

bash
nextclaw <command> --help

Use nextclaw --version to inspect the installed version. Many query and management commands support --json; check the command help before integrating it into a script, CI job, or Agent. For first-time setup, start with Quickstart. For the small set of commands used most often, see Core Commands.

Capability map

AreaWhat you can do
Setup and accountInitialize a workspace, sign in, inspect the account, and set a username
Runtime, status, and logsStart and stop the local service and UI, update, diagnose, inspect logs, and view model usage
Host managementInstall or remove autostart services on Linux, macOS, and Windows
Remote accessEnable, disable, diagnose, and debug remote connections
Agents and task executionChat in a terminal, run Headless tasks, and manage Agents and Runtimes
Projects and sessionsCreate projects, inspect project progress, and organize session bindings
Automation and learning loopManage scheduled jobs and learning-loop policy
Configuration and secretsRead and write configuration, audit secrets, and apply secret references
MCP and messaging channelsManage MCP servers and messaging-channel connections
Skills and MarketplaceInspect, install, publish, update, and discover Skills
NextClaw AppsCheck, develop, package, publish, install, call, and manage App data

Setup and account

CommandPurpose
nextclaw onboardInitialize NextClaw configuration and a workspace
nextclaw initInitialize a workspace; use --force to overwrite template files
nextclaw loginSign in to NextClaw Platform and save local credentials
nextclaw account statusInspect account status and Marketplace publishing readiness
nextclaw account set-usernameSet the username used for personal Marketplace publishing

Runtime, status, and logs

CommandPurpose
nextclaw gatewayStart the Gateway in the foreground, optionally with the UI
nextclaw uiStart the Gateway and UI
nextclaw startStart the Gateway and UI in the background
nextclaw restartRestart the background service
nextclaw serveRun the Gateway and UI in the foreground for debugging
nextclaw stopStop the background service
nextclaw statusInspect processes, health, configuration summary, and endpoints
nextclaw doctorRun diagnostics and optionally repair safe stale state
nextclaw logs pathShow local log-file paths
nextclaw logs tailShow recent service or crash logs
nextclaw logs queryQuery structured logs by time, level, domain, event, or correlation ID
nextclaw usageInspect recent model usage, history, and cache statistics
nextclaw updateCheck, download, or apply a NextClaw Runtime update

Host management and autostart

CommandPurpose
nextclaw service install-systemdInstall a Linux user-level or system-level systemd service
nextclaw service uninstall-systemdRemove a NextClaw-managed systemd service
nextclaw service install-launch-agentInstall the macOS LaunchAgent
nextclaw service uninstall-launch-agentRemove the macOS LaunchAgent
nextclaw service install-taskInstall the Windows Scheduled Task
nextclaw service uninstall-taskRemove the Windows Scheduled Task
nextclaw service autostart statusInspect the host autostart owner and state
nextclaw service autostart doctorDiagnose host autostart configuration

Remote access

CommandPurpose
nextclaw remote enableEnable service-managed remote access
nextclaw remote disableDisable remote access
nextclaw remote statusInspect remote-access and connection state
nextclaw remote doctorRun remote-access diagnostics
nextclaw remote connectRegister the device and keep it connected in foreground debug mode

Agents and task execution

CommandPurpose
nextclaw agentChat in the terminal or send one message with -m
nextclaw execRun one Headless task with text, JSON, or JSONL output; see nextclaw exec
nextclaw agents listList configured Agents
nextclaw agents runtimesList and optionally probe available Agent Runtimes
nextclaw agents runtime configInspect or change configuration for one Runtime
nextclaw agents newCreate an Agent with a name, avatar, home directory, and Runtime
nextclaw agents updateUpdate an existing Agent
nextclaw agents removeRemove an Agent

Projects and sessions

CommandPurpose
nextclaw projects listList registered projects, including projects without sessions
nextclaw projects templatesList built-in project templates
nextclaw projects createCreate and register a project
nextclaw projects observeRead a registered project's observation snapshot
nextclaw projects work listList work items by project ID
nextclaw projects work getShow work-item details
nextclaw projects work createCreate a persistent work item
nextclaw projects work updateUpdate fields, state, or attention
nextclaw projects work deleteSoft-delete a work item
nextclaw projects work restoreRestore a deleted work item
nextclaw projects work activityShow immutable work-item activity
nextclaw projects work artifact linkLink an artifact file inside the project
nextclaw projects work artifact unlinkRemove an artifact link
nextclaw projects work state listList custom project work states
nextclaw projects work state createCreate a work state
nextclaw projects work state updateUpdate or reorder a work state
nextclaw projects work state deleteDelete a state and optionally migrate existing items
nextclaw sessions renameRename a session
nextclaw sessions set-projectBind a session to an existing project directory
nextclaw sessions clear-projectClear a session's explicit project binding
nextclaw sessions deletePermanently delete a session; requires --confirm <session-id>

Every projects work command requires --project <project-id> and runs through the local NextClaw service.

Automation and learning loop

CommandPurpose
nextclaw cron listList scheduled jobs
nextclaw cron addAdd a job using an interval, cron expression, or one-time date
nextclaw cron removeRemove a scheduled job
nextclaw cron enableEnable a scheduled job
nextclaw cron disableDisable a scheduled job
nextclaw cron runRun a selected job immediately
nextclaw learning-loop statusInspect learning-loop settings
nextclaw learning-loop enableEnable the learning loop
nextclaw learning-loop disableDisable the learning loop
nextclaw learning-loop thresholdSet the tool-call threshold for a learning review

Configuration and secrets

CommandPurpose
nextclaw config getRead a configuration value by dot path
nextclaw config setWrite a configuration value by dot path
nextclaw config unsetRemove a configuration value
nextclaw secrets auditAudit secret-reference resolution
nextclaw secrets configureConfigure an env, file, or exec secret provider
nextclaw secrets applyApply secret references and provider configuration in bulk or one at a time
nextclaw secrets reloadTell the running service to reload secrets

MCP and messaging channels

CommandPurpose
nextclaw mcp listList configured MCP servers
nextclaw mcp addAdd a stdio, HTTP, or SSE MCP server
nextclaw mcp removeRemove an MCP server
nextclaw mcp enableEnable an MCP server
nextclaw mcp disableDisable an MCP server
nextclaw mcp doctorCheck MCP connectivity and tool discovery
nextclaw channels addAdd or update messaging-channel configuration
nextclaw channels listList configured channels
nextclaw channels statusInspect channel state
nextclaw channels loginLink a supported channel account by QR code

Skills and Marketplace

| --------------------------------------- | -------------------------------------------- | | nextclaw skills installed | List Skills installed in the current runtime | | nextclaw skills info | Inspect an installed Skill | | nextclaw skills install | Install a Skill from NextClaw Marketplace | | nextclaw skills publish | Create or publish a Marketplace Skill | | nextclaw skills update | Update a published Marketplace Skill | | nextclaw marketplace skills search | Search Marketplace Skills | | nextclaw marketplace skills info | Inspect a Marketplace Skill | | nextclaw marketplace skills recommend | List recommended Skills | | nextclaw marketplace skills install | Install a Marketplace Skill | | nextclaw marketplace skills update | Update a locally installed Marketplace Skill |

NextClaw Apps

CommandPurpose
nextclaw app createCreate a standalone App; the default template is Rust/WASI
nextclaw app doctorDiagnose the WASI Guest build environment and print repair commands
nextclaw app buildBuild Rust/WASI Service Components in an App
nextclaw app checkCheck a complete App package, Panel, or Service directory
nextclaw app testRun an App's Action smoke tests in the isolated Runtime
nextclaw app devStart the real Runtime from an App package or Service directory
nextclaw app packPackage a .napp; pure WASI Apps default to a universal artifact
nextclaw app validate-publishValidate an App and its artifacts before Marketplace submission
nextclaw app publishSubmit an App to App Marketplace
nextclaw app callCall a real Action from an App package or Service directory
nextclaw app restartRestart a Service App running in the NextClaw UI
nextclaw app data listList active and retained App data instances
nextclaw app data deletePermanently delete retained App data with an exact App-ID confirmation
nextclaw app marketplace searchSearch Apps in the official App Marketplace
nextclaw app marketplace infoShow a Marketplace App and its derived install command
nextclaw app listList Apps installed in the running NextClaw host
nextclaw app infoShow installed App state and versions
nextclaw app invokeCall an Action on an enabled installed App through the running host
nextclaw app verificationRead redacted runtime verification records from the running host
nextclaw app acceptance contractRead the stable Portable Runtime acceptance contract
nextclaw app acceptance statusRead current Portable Runtime acceptance status and evidence freshness
nextclaw app acceptance exportExport the contract, current runtime identity, and acceptance status as JSON
nextclaw app jobs listList durable Jobs for one installed App instance
nextclaw app jobs inspectInspect one durable App Job
nextclaw app jobs watchReplay retained Job progress and output after an optional sequence cursor
nextclaw app jobs cancelRequest Job cancellation; completion remains pending until runtime confirmation
nextclaw app resident-inbox listInspect durable Resident delivery state; --dead-letters narrows to recoverable failures
nextclaw app resident-inbox replayReplay one dead-letter Resident event through the host-owned inbox
nextclaw app dependencies inspectInspect external capability/resource dependencies, Provider candidates, and bindings
nextclaw app dependencies verifyVerify whether current dependencies are satisfied
nextclaw app dependencies setupEstablish bindings only when a compatible Provider is unique
nextclaw app dependencies bindBind one dependency to an installed trusted Provider
nextclaw app dependencies unbindRemove one dependency binding
nextclaw app secrets inspectShow declared Secret slots and non-sensitive SecretRef bindings
nextclaw app secrets verifyResolve bindings without revealing Secret values
nextclaw app secrets bindBind one declared Secret slot to an env, file, or exec provider
nextclaw app secrets unbindRemove an App SecretRef binding and its active Secret permission
nextclaw app permissions inspectInspect declared directory scopes, grant status, and effective access mode
nextclaw app permissions document grantGrant or replace a runtime-host directory as read-only or read-write
nextclaw app permissions document revokeRevoke a directory scope and stop the previous mount
nextclaw app ai-capabilities inspectInspect declared non-secret model and Agent slots with current bindings
nextclaw app ai-capabilities verifyVerify required model and Agent slot readiness
nextclaw app ai-capabilities bindBind one declared model or Agent slot to a configured target
nextclaw app ai-capabilities unbindRemove one model or Agent slot binding
nextclaw app operationsList durable App lifecycle operations
nextclaw app installInstall a Marketplace App, local directory, or .napp bundle through the running host
nextclaw app enableEnable an installed App
nextclaw app disableDisable an installed App
nextclaw app updateStart a background App update
nextclaw app rollbackRoll back to an installed version
nextclaw app uninstallStart an uninstall; purging data requires exact App-ID confirmation

See Service Apps for the user workflow and Develop a WASM Service App for runtime development commands.

app dev and app call accept a schema v2 App root directly. A package with one Service is selected automatically; use --component <service-id> when a package has multiple Services. Local .napp files can be installed by relative path, for example nextclaw app install ./my-app.napp.

app invoke <app-id> <action-name> --input '<json>' calls an Action on an enabled installed App, rather than a source package. It returns the call ID, trace ID, data version, and verification-record ID. Use app verification [--acceptance <id>] [--app <id>] [--limit <n>] to inspect the corresponding redacted, persisted runtime facts; add --json for machine-readable output.

app acceptance contract|status|export reads the single Portable Runtime acceptance registry used by the product, server, CLI, and release gate. status evaluates evidence against the active product version, runtime version, runner fingerprint, and contract fingerprint; only current-passed means the evidence is current. export always writes the complete machine-readable status document. Use --locale en for English presentation and --app <id> only when inspecting a non-default acceptance App.

For Apps that declare Secret slots, use app secrets inspect <app-id> to see required configuration without revealing values. Bind a declared slot with app secrets bind <app-id> --slot <slot> --source env|file|exec --id <secret-id> [--provider <provider>], then run app secrets verify <app-id>. A required unbound or unresolved slot leaves the App in needs-configuration and blocks enable with a SECRET_* error code. app secrets unbind removes the active Secret permission; retaining App data never retains Secret bindings.

Installing an App never grants its declared directory scopes automatically. Use app permissions inspect <app-id> to inspect them, app permissions document grant <app-id> --scope <scope-id> --path <directory> --mode read|read-write to grant or replace a runtime-host directory, and app permissions document revoke <app-id> --scope <scope-id> to revoke it. The effective mode cannot exceed the App's declaration, and every grant change immediately retires the previous runtime mount.

Automation guidance

  • When a query or management command supports --json, scripts and Agents should prefer the machine-readable output.
  • For non-interactive tasks, use nextclaw exec --format text|json|jsonl and interpret the documented exit codes.
  • Before changing configuration, secrets, host services, or permanently deleting data, inspect the command's --help output and permission boundary.
  • The CLI, UI, and built-in AI tools should call the same product owner. If the same capability behaves differently across entry points, please report it.

Released under the MIT License.