Skip to content

CLI reference

The oe binary is the primary interface to OpenExpertise. Install once:

bash
npm install -g @openexpertise/cli

Then use:

bash
oe <command> [options]

When developing from source (after pnpm -r build), you can also invoke via:

bash
node packages/cli/dist/bin.js <command> [options]

All examples on this page use the short oe form.

Verbs at a glance

CommandPurpose
oe diffList pending evolution proposals
oe evolveGenerate evolution proposals for a prior run
oe initScaffold a new experience directory
oe inspectRender a run trace from the event log
oe reset-stateDelete the persistent state blackboard (destructive)
oe resumeRe-run an experience with cached results from a prior run
oe runExecute an experience
oe stateInspect the persistent state blackboard
oe ultraLLM-author a new experience from a natural-language description
oe validateValidate an experience.yaml file or directory

Global flags

These flags are accepted by every command and must be placed before the subcommand name.

FlagDescriptionDefault
--log-format <fmt>Log format: json or prettypretty
--log-level <level>Log verbosity: info, debug, warn, or errorinfo
-V, --versionPrint the oe version and exit
-h, --helpDisplay help and exit

Example — machine-readable JSON logs:

bash
oe --log-format json --log-level debug run examples/hello-tool

Standard exit codes

CodeMeaning
0Success
1Runtime failure (experience error, file not found, LLM error, etc.)
2Invalid invocation (bad flag value, missing required argument)

Environment variables

VariableUsed byPurpose
ANTHROPIC_API_KEYrun, resume, evolve, ultraAuthenticates against the Anthropic API; selects Anthropic as the default LLM provider
OPENAI_API_KEYrun, resume, evolve, ultraAuthenticates against the OpenAI API; selects OpenAI as the default LLM provider when ANTHROPIC_API_KEY is absent
OPENAI_BASE_URLrun, resume, evolve, ultraOverride the OpenAI-compatible endpoint (e.g. for vLLM or Ollama)

When both ANTHROPIC_API_KEY and OPENAI_API_KEY are set, Anthropic takes precedence unless --llm openai is passed.

Commands by use case

Author

CommandWhen to use
oe initBootstrap a new experience directory with a minimal scaffold
oe ultraDescribe a task in plain English; let the LLM write the YAML for you

Validate

CommandWhen to use
oe validateCheck YAML syntax and schema correctness before running

Run

CommandWhen to use
oe runExecute an experience from scratch
oe resumeRe-run, reusing cached node results from a prior run

Inspect

CommandWhen to use
oe inspectReplay the event log for a completed run
oe stateRead current values from the SQLite blackboard
oe diffPreview pending evolution proposals

Evolve

CommandWhen to use
oe evolveAsk the LLM advisor to analyse a run and propose YAML improvements
oe diffSee what proposals are waiting to be reviewed

Reset

CommandWhen to use
oe reset-stateWipe the SQLite blackboard to start with a clean slate

See also

Released under the MIT License.