CLI
Run NextOS from scripts, terminals, and automation.
The CLI is the runtime entry point. It can launch the interactive TUI, run prompts non-interactively, manage providers and MCP auth, serve the local API, and inspect sessions.
Daily commands
nextosnextos run "fix the failing test"nextos servenextos webRuntime management
nextos providersnextos modelsnextos mcpnextos sessionnextos upgradeUse CLI for automation
nextos run is useful in scripts, CI experiments, or repeatable local checks. Prefer prompts that name the target and expected output:
nextos run "audit packages/nextos for permission regressions and report findings only"For irreversible actions, let permissions stay strict. Automation should still be auditable.
Configuration locations
Project behavior is usually described by AGENTS.md and .nextos/. User-level defaults live under the NextOS config directories described in Config.