CLI Reference
Lightpanda ships as a single binary. You call it with a command name, followed by the command’s arguments:
lightpanda <command> [arguments]The available commands are:
| Command | Description |
|---|---|
agent | Starts an interactive AI agent that can browse the web |
completion | Prints a shell completion script (bash, fish, zsh) |
fetch | Fetches the specified URL |
help | Displays this message |
mcp | Starts an MCP (Model Context Protocol) server (stdio or HTTP) |
run | Runs a saved script (no LLM), then exits |
serve | Starts a WebSocket CDP server |
version | Displays the version of lightpanda |
Use lightpanda help <command> for more information about a command.
Every command except completion, help and version also accepts a shared set of common options.
completion
Print a shell completion script for commands, flags and their values to stdout. See how to install shell completion.
lightpanda completion fish > ~/.config/fish/completions/lightpanda.fishusage: lightpanda completion <bash | fish | zsh>
Prints a shell completion script for lightpanda to stdout.
Examples:
lightpanda completion fish | source
lightpanda completion fish > ~/.config/fish/completions/lightpanda.fish
lightpanda completion bash > ~/.local/share/bash-completion/completions/lightpanda
lightpanda completion zsh > ~/.zfunc/_lightpanda
then add `fpath=(~/.zfunc $fpath)` before `compinit` in ~/.zshrchelp
Show the command list above, or lightpanda help <command> for one command’s own reference. --help and -h work too, at the top level or after any command.
lightpanda help [command]run
Run a saved script, then exit. No LLM calls, no API key needed. See how to run a saved script.
lightpanda run script.jsusage: lightpanda run <SCRIPT | -> [COMMON_OPTIONS]
Examples:
lightpanda run script.js (replay a saved script)
cat script.js | lightpanda run - (read the script from stdin)
Arguments:
<SCRIPT>
Path to a .js script to run, then exit. Produce one with
`lightpanda agent --task "..." --save script.js`, or `/save` from the
agent REPL. Pass `-` to read the script from stdin instead.
Caution: .js files can contain evaluate(...) calls that run
arbitrary JavaScript in the page. Only run scripts you trust, the
same way you would a shell script.The command also accepts the common options.
Find the script format in the PandaScript reference.
version
Displays the version of lightpanda.
lightpanda versionusage: lightpanda version [OPTIONS]
options:
--check
Checks whether a newer release of lightpanda is available. When one is
found, prints the running version, the latest release, and how to
update.