Skip to content
OpenScienceDocs

CLI reference

Commands for setup, research, models, accounts, sessions, and extensions.

Run openscience --help or openscience <command> --help for the options supported by your installed version. This reference covers the public workflows described in these guides.

Install and launch

CommandPurpose
openscience [project]Open the browser workspace in a folder.
openscience web [project]Explicit workspace command.
openscience initInteractive setup; alias onboard.
openscience doctorCheck configuration and missing setup.
openscience --versionPrint the installed version.
openscience --helpShow available commands.

web and serve accept --port <number>. Use the URL printed by the command.

Run and resume

CommandPurpose
openscience run "request"Run one terminal turn.
openscience run --continue "request"Continue the latest session.
openscience run --session <id> "request"Continue a specific session.
openscience session listList sessions; supports -n and --format json.
openscience export <id>Write a session export to stdout.
openscience import <file>Import a session export.
openscience statsShow local usage statistics.

Important run options: --model, --agent, --effort, --variant, --file, --title, --command, --format json, --bare, --attach, --workspace, --delegation, --worker-model, --autonomy, --deadline, --deny-prompts, and --auto-approve.

See Sessions for meanings and Automation for JSON events and exit codes.

Provider access

CommandPurpose
openscience keys addConnect a provider key or supported sign-in.
openscience keys signinConnect supported ChatGPT access.
openscience keys listShow connected providers.
openscience keys rmRemove a saved provider credential.
openscience connect codexConnect supported ChatGPT access.
openscience disconnect codexDisconnect that sign-in.
openscience model [provider]List models; alias models.
openscience model --flatPrint one provider/model identifier per line.
openscience model --verboseInclude model metadata.
openscience model --refreshRefresh the model catalog.

auth is an alias for keys. See Models.

Local models

CommandPurpose
openscience local addDiscover and add a model endpoint.
openscience local listList configured local providers.
openscience local remove <id>Remove a provider configuration.

local add accepts --url, --id, --model, --key, --context, --project, and --default. See Local models.

Ace and account

CommandPurpose
openscience loginSign in for Ace and account connections.
openscience login --no-browserPrint browser sign-in instructions.
openscience login --key <workspace-key>Connect an existing workspace key; keep the secret out of shell history.
openscience logoutSign this device out.
openscience statusShow account, model access, and Wallet; alias whoami.
openscience syncRefresh shared workspace connections.
openscience devicesShow this device's sign-in.
openscience wallet showShow purchased Wallet balance and access.
openscience wallet topupOpen billing to review a Wallet payment.

billing is an alias for wallet. See Ace and Pricing.

Skills and agents

CommandPurpose
openscience skill list --allList skills including the bundled library.
openscience skill show <target>Inspect an installed namespace or skill.
openscience skill add <url>Install skills from a public Git repository.
openscience skill new <name>Create a user skill.
openscience skill edit <name>Edit a user skill.
openscience skill validate <target>Check a skill; --strict also fails on warnings.
openscience skill set-entries <namespace> <entries>Choose comma-separated picker entry names.
openscience skill remove <target>Remove a skill or namespace.
openscience agent createCreate a custom agent.
openscience agent listInspect installed agent profiles.

Connections and integration

CommandPurpose
openscience tools add / tools listConfigure or inspect external tool connections.
openscience tools auth <name>Authorize a connection.
openscience tools logout <name>Remove its authorization.
openscience tools remove <name>Remove its configuration.
openscience serveStart a local server without opening a browser.
openscience acp --cwd <path>Connect through an ACP-compatible editor.
openscience pr <number>Check out a GitHub PR branch and launch OpenScience.

mcp is an alias for tools. The pr command changes the current checkout; save your work first. It does not create or merge a PR.

Maintenance

CommandPurpose
openscience upgrade [version]Update the CLI. On a copy that came with the desktop app, it points at the app's own updater instead.
openscience uninstall --dry-runPreview removal.
openscience uninstallUninstall while keeping work and settings by default.
openscience debug audit <session>Show content-free identities for its visible, internal, and worker model calls.
openscience debug pathsShow resolved application directories.
openscience completionGenerate the completion script for the detected shell.

For installation problems, see Troubleshooting. For other advanced commands, consult the installed command's help.