Skip to content

Getting started

Spark currently requires Node.js >=26 <27. The published product contains the CLI dispatcher, native TUI, daemon, and Cockpit host.

The managed installation is recommended because it supports atomic upgrades and rollback:

Terminal window
pnpm dlx @zendev-lab/spark install --managed
spark version --json
spark update status --json

You can instead keep the package manager in charge of the installation:

Terminal window
npm install --global @zendev-lab/spark
spark --help

Package-manager and source-checkout installations report update instructions but never replace themselves.

Run the health check before troubleshooting a host:

Terminal window
spark doctor

Open the interactive TUI:

Terminal window
spark

Use /login to inspect available provider authentication and start the provider’s interactive login flow. Use /model to inspect or select the active model. When Spark prompts for an API key, enter it in the prompt; do not put secrets in project files, config.json, or shell history.

For a foreground, non-interactive answer:

Terminal window
spark run "Summarize this repository and identify its validation command."

Use JSON mode for scripts:

Terminal window
spark run --json "List the top-level packages."

For an interactive session, stay in spark or run:

Terminal window
spark tui "Inspect the current project before proposing a change."

Spark starts or contacts the local daemon as needed. Run spark daemon status --json to inspect the service rather than guessing from frontend behavior.