A process manager for opencode, built with bun and opentui.
| Arg | Description |
|---|---|
path |
Project path. Defaults to current working directory. |
--session/-s |
Reuse explicit session id. |
--continue/-c |
Continue latest root session. |
--attach/-a |
Attach immediately after resolving session. |
| Arg | Description |
|---|---|
| (none) | This command has no positional args or options. |
This command is also available via the global flag: ocd --list.
ocd list/ocd --list prints each tracked instance with status, endpoint, and all attached sessions including busy/idle state and session title (from the OpenCode /session API).
| Arg | Description |
|---|---|
path |
Project path. Defaults to current working directory. |
--tui/-t |
Launch top in Solid/OpenTUI view. |
--watch/-w |
Continuously refresh top output. |
--intervalMs/--interval/-i |
Sampling interval in milliseconds. |
In --tui mode, instances are shown as pages (one instance per view). Keyboard:
j/k(ordown/up) to move to next/previous instance pageh/l(orleft/right) to horizontally scroll the command columnH/Lfor faster horizontal command scrollingrrefresh,q/esc/ctrl+cquit
| Arg | Description |
|---|---|
path |
Project path. Defaults to current working directory. |
--session/-s |
Attach specific session id. |
--latest/-l |
Attach latest root session. |
| Arg | Description |
|---|---|
path |
Project path. Defaults to current working directory. |
--all/-a |
Stop every tracked project server. |
--graceMs/--grace |
Grace period before SIGKILL. |
| Arg | Description |
|---|---|
path |
Project path. Defaults to current working directory. |
--graceMs/--grace |
Grace period before SIGKILL. |
--continue/-c |
Continue latest root session after restart. |
--attach/-a |
Attach immediately after restart. |
| Arg | Description |
|---|---|
--idleMinutes/--idle |
Idle cutoff in minutes. |
--orphan |
Remove dead registry entries. |
| Arg | Description |
|---|---|
path |
Project path. Defaults to current working directory. |
--watch/-w |
Continuously refresh status output. |
--intervalMs/--interval/-i |
Refresh interval in milliseconds. |
To install dependencies:
bun installTo run:
bun run src/index.tsTo build a standalone binary:
bun run build:binTo copy the bin to ~/.local/bin:
bun run copyTo build the binary and copy it to ~/.local/bin:
bun run build