-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
Platform note:
omnicodeis written in Node.js and designed to work cross-platform, but it has only been developed and tested on Ubuntu Linux. Running on Windows, macOS, or other Linux distributions may uncover untested edge cases. Please report any issues you encounter.
- Linux, macOS, or Windows
- Node.js 22 or later (developed and tested on Node 26; OmniRoute requires Node >=22 <=24)
- npm
- OpenCode
- OmniRoute
- (Optional) GrayMatter
- (Optional) OpenSpec
omnicode requires opencode and omniroute to be on your PATH. Install them before installing omnicode:
npm install -g opencode
npm install -g omnirouteIf you use GrayMatter or OpenSpec, install those too:
# GrayMatter
sudo install -m 755 graymatter /usr/local/bin/graymatter
# OpenSpec
npm install -g @fission-ai/openspecsudo npm install -g @meyverick/omnicodeNo postinstall scripts run and no additional tools are installed.
omnicodeThis will:
- Verify that
opencodeandomnirouteare available, or exit with an error. - Run GrayMatter initialization quietly if installed (output captured to
~/.local/share/omnicode/graymatter-init.log). - Run OpenSpec initialization quietly if installed (output captured to
~/.local/share/omnicode/openspec-init.log). - Start
omniroute --no-openin the background, or reuse an already running instance. - Look up the latest session for the current directory in the OpenCode database.
- Launch
opencode -s <session_id>if a session exists, or plainopencodeto create a new session.
When OpenCode exits and no other OpenCode process is running, the OmniRoute process that omnicode started is stopped automatically.
omnicode -s <session_id>This launches OpenCode with opencode -s <session_id>. OpenCode will error if that session does not exist.
omnicode -cThis forces the same latest-session lookup as plain omnicode but makes it explicit. If a session exists for the current directory, it is resumed via opencode -s <session_id>.
omnicode --statusThis prints whether opencode and omniroute processes are currently running.
omnicode --versionnpm uninstall -g @meyverick/omnicodeThis removes only the npm-managed omnicode package and command. The following remain installed and must be removed manually if desired:
- OmniRoute (
npm uninstall -g omniroute) - OpenCode (
npm uninstall -g opencode) - OpenSpec (
npm uninstall -g @fission-ai/openspec) - GrayMatter binary (
sudo rm /usr/local/bin/graymatter) - Your OpenCode config in
~/.config/opencode/opencode.jsonc - Runtime data in
~/.local/share/omnicode/
sudo npm install -g @meyverick/omnicodeReinstalling only updates the omnicode wrapper.