TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/omnigent-ai/omnigent/llms.txt
Use this file to discover all available pages before exploring further.
omnigent and omni commands are identical entry points to the Omnigent CLI. Every subcommand is documented here. The CLI manages agent sessions, the local server daemon, remote server connections, cloud sandboxes, and credential configuration — all from one tool.
omni is an alias for omnigent. Both commands accept exactly the same subcommands and flags.omnigent (root)
Bareomnigent with no arguments on an interactive TTY behaves like omnigent run — it resolves the configured default agent or first-run plan, and drops into omnigent setup when nothing is configured yet. In a non-interactive context (pipe, CI, no TTY) it falls back to --help.
Global flag:
| Flag | Description |
|---|---|
--version | Print the installed Omnigent version and exit. |
omnigent myagent.yamlis equivalent toomnigent run myagent.yamlomnigent --harness claude-sdkis equivalent toomnigent run --harness claude-sdk
omnigent run
Start a session with an Omnigent agent.AGENT may be an agent YAML file or an agent directory. Without AGENT, pass --server to connect to a server directly, or --harness to launch a built-in harness.
Flags
Flags
| Flag | Default | Description |
|---|---|---|
--harness TEXT | — | Harness to use: claude-sdk (alias claude), openai-agents, codex, open-responses, or pi. Without an AGENT, launches that harness directly. |
--model TEXT | — | Model to use for the agent. |
-p, --prompt TEXT | — | Send this as the first message when the REPL starts (headless one-shot mode). |
--system-prompt TEXT | — | Override the agent’s instructions for this run. |
-r, --resume [CONV_ID] | — | Resume a prior conversation. Without a value, opens an interactive picker. With a conversation id, attaches directly. |
-c, --continue | false | Continue the most recent conversation for this agent. |
--fork SESSION_ID | — | Fork an existing session by id and open the REPL on the fork. Mutually exclusive with --resume and --continue. |
--server URL | — | Remote Omnigent URL. Uploads the local YAML as an ephemeral agent, spawns a local runner that tunnels to this server, and connects the REPL. Pass --server "" to auto-spawn a persistent local server. |
--no-session | false | Use a fresh temporary local session store for this run. |
--log / --no-log | false | Write a JSON dump of the conversation to ~/.omnigent/logs/ on exit. |
--debug-events | false | Enable the SSE-to-UI debug pipeline: event tape overlay, JSONL event log, and pipeline stage counters. |
--tools TEXT | — | Client-side tool set name (e.g. coding) for shell access. |
omnigent claude
Launch Claude Code in an Omnigent terminal.-- are passed through to the claude CLI unchanged.
Flags
Flags
| Flag | Default | Description |
|---|---|---|
--server URL | — | Remote Omnigent URL. Omit or leave empty to auto-spawn a local server. |
-r, --resume [CONV_ID] | — | Resume a prior Omnigent conversation. No value opens an interactive picker scoped to claude-native sessions. |
--use-native-config | false | Use your existing ~/.claude/ configuration instead of the configured Omnigent provider. |
--profile-startup | false | Print native Claude startup timing marks to stderr. Also enabled by OMNIGENT_CLAUDE_STARTUP_PROFILE=1. |
omnigent codex
Launch Codex TUI in an Omnigent terminal.Flags
Flags
| Flag | Default | Description |
|---|---|---|
--server URL | — | Remote Omnigent URL. Omit or leave empty to auto-spawn a local server. |
-r, --resume [CONV_ID] | — | Resume a prior Omnigent conversation. No value opens an interactive picker. |
--model TEXT | — | Codex model to use for the native thread. |
-p, --prompt TEXT | — | Send this as the first message after the Codex TUI starts. |
omnigent attach
Attach the REPL to a live session — never starts anything.attach is a thin client: it joins an already-running conversation and streams its I/O. It never spawns a server, runner, or harness, and errors loudly when there is no live session to attach to. To start a session use omnigent run; to reopen a stored one use omnigent resume.
Flags
Flags
| Flag | Default | Description |
|---|---|---|
--server URL | — | Omnigent server hosting the session. Defaults to the configured server or a local server already running in the background. |
--tools TEXT | — | Client-side tool set name for shell access. |
--debug-events | false | Enable the SSE-to-UI debug pipeline. |
omnigent resume
Resume an Omnigent conversation, auto-dispatching by runtime.CONV_ID: looks up the conversation and dispatches to the matching wrapper — claude-native sessions land in omnigent claude, everything else surfaces a hint to use omnigent run --resume <id> <agent.yaml>. Without CONV_ID: opens a cross-agent picker (requires --server).
| Flag | Default | Description |
|---|---|---|
--server URL | — | Remote Omnigent server URL. Required for the picker (no id) mode. |
omnigent server
Manage the Omnigent server daemon.omnigent server (foreground)
omnigent server runs the server in the foreground (Ctrl-C to stop) — suitable for deploys and Docker.
Flags
Flags
| Flag | Default | Description |
|---|---|---|
--host TEXT | 127.0.0.1 | Interface to bind to. |
-p, --port INT | 6767 | Port to listen on. |
--database-uri TEXT | sqlite:///<data-dir>/chat.db | Database URI. |
--artifact-location TEXT | <data-dir>/artifacts | Path for artifact storage. |
-c, --config PATH | — | Path to a YAML server config file. |
--execution-timeout INT | 7200 | Max wall-clock seconds per agent execution. |
--agent PATH | — | Pre-register an agent from a directory at startup. Repeatable. |
--open / --no-open | --open | On first boot of accounts auth, open the magic-redeem URL in the browser. Pass --no-open for headless / SSH / Docker. |
--admin-password TEXT | — | Set the first-run admin password non-interactively. |
omnigent server start
Ensure the managed background server is running.run/host). Otherwise spawns a detached one on a free loopback port and prints its URL.
omnigent server stop
Stop the background server and local host daemon.| Flag | Description |
|---|---|
--force | SIGKILL the local host daemon if it does not exit on SIGTERM. |
omnigent server status
Show whether the background server is running.omnigent host
Register this machine as a host with a server.--server URL is given, starts (or reuses) a local Omnigent server. The server URL may be given positionally (omnigent host https://example.com) or via --server.
| Flag | Description |
|---|---|
--server URL | Remote Omnigent server URL. |
omnigent host status
Inspect host daemon, runner, and session status.omnigent host stop
Stop host daemon sessions, then stop daemon processes.omnigent host stop-session
Stop specific sessions without stopping a daemon.omnigent stop
Stop everything Omnigent is running on this machine.omnigent host stop instead.
| Flag | Description |
|---|---|
--force | Continue past failures and SIGKILL daemons that do not exit on SIGTERM. |
omnigent login
Authenticate with a remote Omnigent server.- accounts mode: prompts for username + password, stores the JWT in
~/.omnigent/auth_tokens.json. - OIDC mode: opens the browser, polls the CLI ticket endpoint, stores the JWT.
- header mode: prints a hint that no login is needed.
- Databricks-fronted (a Databricks App or workspace-hosted Omnigent): runs
databricks auth loginagainst the right workspace automatically.
omnigent setup
Launch the interactive credential setup flow.--internal-beta to configure Databricks internal-beta defaults and authentication instead.
After setup, list configured credentials with omnigent config list.
omnigent config
Get, set, and view Omnigent defaults and credentials.omnigent config list
omnigent config set
--global, writes to .omnigent/config.yaml in the current directory (project-level, like .git/config). With --global, writes to ~/.omnigent/config.yaml.
Supported keys: auto_open_conversation, default_agent, harness, model, server.
omnigent config unset
omnigent sandbox
Run an Omnigent host inside a remote cloud sandbox. Available when at least one sandbox provider extra is installed (pip install 'omnigent[modal]' or pip install 'omnigent[daytona]').
omnigent sandbox create
Provision a new cloud sandbox and bootstrap Omnigent into it.omnigent sandbox connect
Register an existing sandbox as a host with your server (runsomnigent host inside the sandbox).
For provider-side sandbox lifecycle management (list, status, delete, start, stop), use the provider’s own CLI directly — for example
modal sandbox list.omnigent debug
Internal maintenance commands (advanced — not needed for normal use).omnigent debug db-upgrade
Upgrade the schema of an Omnigent tracking database to the latest version.URL is a SQLAlchemy database URL, e.g. sqlite:////absolute/path/to/chat.db or postgresql://user:pass@host/dbname.