Skip to content

CLI Commands

CommandDescriptionExample
uiStart the web UI at localhost:7823npx openjck ui
tracesList all trace runs in terminalnpx openjck traces
clearDelete all traces from ~/.openjck/traces/npx openjck clear
--versionPrint the OpenJCK versionnpx openjck --version
--helpShow help message with all commandsnpx openjck --help
  • TRACES_DIR: Directory where trace JSON files are stored (defaults to ~/.openjck/traces/)

The web UI runs on port 7823 by default. If this port is in use, the CLI will attempt to find the next available port.

  • ✅ Always runs the latest version
  • ✅ No installation required
  • ✅ No version conflicts
  • ❌ Slightly slower startup (downloads on first use)
  • ✅ Faster startup after initial install
  • ✅ Works offline after installation
  • ❌ Requires manual updates (npm update -g openjck)
  • ❌ Potential version conflicts in shared environments

Starts the Express server that serves the OpenJCK web UI. By default, it opens at http://localhost:7823. The server automatically loads traces from ~/.openjck/traces/.

Terminal window
# Start UI (same as running with no arguments)
npx openjck ui
npx openjck # equivalent
# Specify custom traces directory
TRACES_DIR=/my/custom/path npx openjck ui

Prints a formatted table of all trace runs to the terminal, showing:

  • Trace ID
  • Run name
  • Timestamp
  • Status (completed/failed/running)
  • Step count
  • Total tokens
  • Duration
Terminal window
npx openjck traces

Sample output:

Trace ID | Run Name | Started At | Status | Steps | Tokens | Duration
----------------|------------------|---------------------|-----------|-------|--------|----------
a3f9c1b2 | research_agent | 2026-03-12 10:00:00 | completed | 3 | 180 | 1.2s
b4d0e2c3 | chatbot_v2 | 2026-03-12 09:45:00 | failed | 5 | 420 | 2.1s

Permanently deletes all trace JSON files from the traces directory. Use with caution!

Terminal window
npx openjck clear
# Prompts for confirmation by default
npx openjck clear --force # skip confirmation

Outputs the current OpenJCK version:

Terminal window
npx openjck --version
# Example output: 0.1.0

Displays the help menu with all available commands and options:

Terminal window
npx openjck --help