CLI feature request: add `codex openclaw install`

Resolved 💬 1 comment Opened Mar 4, 2026 by Dodhon Closed Mar 4, 2026

What variant of Codex are you using?

CLI

What feature would you like to see?

Add a top-level CLI command to install OpenClaw directly from Codex:

codex openclaw install

Proposed behavior:

  • codex openclaw install uses npm by default (npm install -g openclaw@latest)
  • --manager <npm|pnpm> allows explicit manager selection
  • --dry-run prints the exact install command without executing it
  • On success, prints onboarding hint: openclaw onboard --install-daemon
  • On failure, prints actionable guidance and docs link

Additional information

I have already implemented this in my fork and validated it locally.

Implementation branch:

Commit:

  • bd662ef9c (cli: add openclaw install command)

Compare view:

Files changed:

  • codex-rs/cli/src/main.rs
  • codex-rs/cli/tests/openclaw.rs
  • README.md

Validation run:

  • just fmt
  • just fix -p codex-cli
  • cargo test -p codex-cli
  • cargo run --bin codex -- openclaw install --dry-run

Dry-run output:

  • Dry run: would run \npm install -g openclaw@latest\.
  • Next step: run \openclaw onboard --install-daemon\.

I understand external code contributions are invitation-only for this repo.
If this direction aligns, could a maintainer either:

  1. invite a PR from the branch above, or
  2. cherry-pick the commit.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗