oma CLI, TUI & Gateway
Language: English · 简体中文
oma (@chengchenccc/oh-my-agent) serves two roles: CrewDesk's built-in ACP coding harness and a standalone terminal agent that talks directly to LLM APIs with no backend required.

Standalone CLI & Interactive TUI
# Launch interactive TUI in the current working directory
oma
# Execute a one-shot non-interactive prompt
oma -p "Summarize docs/architecture/README.md in 3 bullets"
The interactive TUI (packages/tui) renders multi-line editing, collapsible tool cards, streaming Markdown, and native terminal Mermaid diagrams.
oma gateway Commands
When installed with the prebuilt CrewDesk bundle (install.sh or bun add -g @chengchenccc/oh-my-agent@rc), oma gateway controls both the backend (:3000) and web console (:3001):
| Command | Action |
|---|---|
oma gateway up | Start backend + web in the foreground and print the login URL and password. |
oma gateway up -d | Start backend + web in the background and return once health checks pass. |
oma gateway status | Show installed version, backend/web health status, and login password. |
oma gateway down | Stop background gateway processes cleanly. |
oma gateway passwd | Rotate the Web console login password (0600 in ~/.oma/gateway-secrets.json). |
oma gateway fetch | Manually fetch the prebuilt gateway bundle matching your installed CLI version (needed after bun add -g because Bun skips dependency postinstall scripts). |
oma update | Upgrade oma CLI and the gateway bundle together (--check to check without modifying files). |
Directory Layout (Code vs State Isolation)
| Path | Contents | Touched by oma update? |
|---|---|---|
~/.oma/gateway/ | Prebuilt backend + web application bundle | Yes (replaced cleanly) |
~/.oma/gateway-data/ | SQLite database, uploaded artifacts, agent workspaces | No (preserved across upgrades) |
~/.oma/models.yml | Custom LLM provider endpoints & model overrides | No |
~/.oma/gateway-secrets.json | Web login password & internal tokens (mode 0600) | No |