Reference

CLI reference

Commands and flags provided by the open-cursor executable.

The npm package installs open-cursor.

open-cursor help

Commands

CommandWhat it does
open-cursor installInstalls or updates the plugin entry and cursor-acp provider, then syncs models. Safe to run again.
open-cursor sync-modelsReads cursor-agent models and updates provider model entries.
open-cursor modelsReports discovered direct models and grouped variants.
open-cursor statusPrints install, provider, authentication, backend, pool, resume, and logging state.
open-cursor doctorChecks the runtime and reports repair commands.
open-cursor uninstallRemoves the plugin entry and provider configuration.
open-cursor helpPrints command and option help.

Common install options

FlagMeaning
--config <path>Use a specific opencode.json.
--plugin-dir <path>Use a specific OpenCode plugin directory.
--base-url <url>Set the provider proxy URL. Default: http://127.0.0.1:32124/v1.
--copyCopy the plugin entry instead of creating a symlink.
--skip-modelsInstall without synchronising models.
--dry-runShow install or sync changes without writing files.
--no-backupSkip the timestamped configuration backup.

Optional Cursor bridge

open-cursor install does not write .cursor files unless you ask for them.

FlagMeaning
--install-cursor-bridgeWrite the optional Cursor hook, script, and rule.
--cursor-bridge-scope <scope>Select project, user, or both; implies bridge installation.
--skip-cursor-bridgeLegacy no-op retained for compatibility.

Project is the default scope:

open-cursor install --install-cursor-bridge

Install under the user home instead:

open-cursor install --cursor-bridge-scope user

Model synchronisation

open-cursor sync-models
FlagMeaning
--variantsGroup related Cursor models under OpenCode variants.
--compactRemove the corresponding flat entries; requires --variants.
--jsonPrint machine-readable output where supported.
--dry-runReport the changes without writing configuration.

Inspect the grouping before changing configuration:

open-cursor models --explain

Diagnosis

open-cursor status
open-cursor doctor
open-cursor doctor --deep

--deep checks the provider base URL, configured models, compact variants, and Cursor model discovery. Add --json where you need structured output.

See Installation for the normal path and opencode.json for the written structure.

On this page