Surfaces oma CLI & Gateway

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.

Oma TUI

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):

CommandAction
oma gateway upStart backend + web in the foreground and print the login URL and password.
oma gateway up -dStart backend + web in the background and return once health checks pass.
oma gateway statusShow installed version, backend/web health status, and login password.
oma gateway downStop background gateway processes cleanly.
oma gateway passwdRotate the Web console login password (0600 in ~/.oma/gateway-secrets.json).
oma gateway fetchManually fetch the prebuilt gateway bundle matching your installed CLI version (needed after bun add -g because Bun skips dependency postinstall scripts).
oma updateUpgrade oma CLI and the gateway bundle together (--check to check without modifying files).

Directory Layout (Code vs State Isolation)

PathContentsTouched by oma update?
~/.oma/gateway/Prebuilt backend + web application bundleYes (replaced cleanly)
~/.oma/gateway-data/SQLite database, uploaded artifacts, agent workspacesNo (preserved across upgrades)
~/.oma/models.ymlCustom LLM provider endpoints & model overridesNo
~/.oma/gateway-secrets.jsonWeb login password & internal tokens (mode 0600)No