Installation¶
Requirements¶
- Docker or Podman installed and runnable on the host.
ocmruns one container per workspace and builds/pulls a base image on first use. - Node.js / npm, with npm's global bin directory on your
PATH(only needed for the recommended install method below). - A Linux or macOS host. (
x64andarm64are published.)
Install with npm (recommended)¶
This installs two interchangeable commands:
opencode-manager— the full name.ocm— the short alias.
The npm postinstall step also:
- creates the global config directory
~/.config/opencode-manager/, - writes a default
config.yaml(only if one does not already exist), - copies the built-in modules into your module directory without overwriting anything you have customised.
Nothing you already have is clobbered, so re-running the install to upgrade is safe.
Install with Nix¶
With flakes enabled, install the package from GitHub:
Alternatively, add github:Mickael-Roger/opencode-manager as a flake input
and include inputs.opencode-manager.packages.${pkgs.system}.default in your
NixOS or Home Manager packages. The package provides ocm and
opencode-manager. On launch, it creates the default configuration if needed
and copies built-in modules into the standard user configuration directory,
updating built-ins while preserving separately named custom modules. As with the
npm installer, this initialization uses the default module directory even if
moduleDirs has been customized.
Workspaces created before the module directory existed may have no module bind mount. Update/recreate their containers from the dashboard after installation; their workspace homes are preserved.
Run without installing¶
npx runs the same binary on demand. The first run still creates the config
directory and seeds defaults.
Verify the install¶
ocm version # prints the installed version
ocm workspaces list # prints an (empty) workspace table or "No workspaces"
ocm # launches the dashboard
On first launch ocm ensures the base container image is available and shows
Creating the base image... while it is pulled or built. With the default
prebuilt base image this is a quick pull; see
Configuration → Base image for what controls it.
Upgrading¶
Re-run the install command. Your config.yaml, customised modules, and
workspaces are preserved.
Uninstalling¶
This removes the commands but leaves your data in place. To remove everything,
also delete the config directory (~/.config/opencode-manager/) and the
workspace root (see Configuration). Stop and remove any
remaining workspace containers/images from the dashboard first.