A host is a registered machine that can run agent sessions. When a session is created with aDocumentation 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.
host_id, the Omnigent server routes it to that specific host. The host daemon (omnigent host) keeps a WebSocket tunnel open to the server and listens for launch commands. Hosts expose their filesystem to the server’s directory picker, letting users select a workspace before a session starts.
CLI Registration
To register the current machine as a host, run the daemon in the foreground:GET /v1/hosts and can receive runner launch requests. When the daemon exits, the host transitions to offline — existing sessions on that host continue until they naturally end, but no new runners can be launched.
List Hosts
GET /v1/hosts
Returns all hosts owned by the authenticated user — both online and offline.
Response:
Opaque host identifier, e.g.
"host_a1b2c3d4e5f6...".Human-readable machine name (hostname).
"online" when the daemon’s tunnel is active; "offline" otherwise.Host operating system, e.g.
"darwin", "linux", "win32".Unix epoch timestamp of first registration.
Number of active runners currently running on this host.
Get Host
GET /v1/hosts/{host_id}
Returns details for a single host.
Path parameter: host_id — the host identifier.
Errors:
404— host not found403— caller does not own the host
Browse Host Filesystem (Root)
GET /v1/hosts/{host_id}/filesystem
Lists the contents of the host daemon’s home directory. Used by the web UI’s workspace directory picker to show the root view. The host expands ~ itself.
Query parameters:
Maximum entries per page. Range: 1–1000.
Forward pagination cursor (entry path).
Backward pagination cursor.
404— host not found403— caller does not own the host409— host is offline504— host timed out
Browse Host Filesystem (Path)
GET /v1/hosts/{host_id}/filesystem/{path}
Lists the contents of a specific directory on the host. Accepts an absolute path or a tilde-prefixed path (e.g. ~/foo). The host expands ~ itself.
Path parameters: host_id, path (absolute or tilde-prefixed path on the host).
Query parameters: same as the root filesystem endpoint (limit, after, before).
Errors:
400— path validation failed404— host or path not found403— caller does not own the host409— host is offline502— host I/O error504— host timed out
Launch Runner on Host
POST /v1/hosts/{host_id}/runners
Launches a runner on a specific host for an existing session. The server generates a binding token, writes the expected runner ID to the session row, sends the launch command to the host, and waits for the host’s acknowledgement.
Session to bind the new runner to, e.g.
"conv_abc123".Absolute path on the host to use as the runner’s working directory, e.g.
"/Users/alice/projects/api". When git is set, this is the source repository directory.Optional git worktree options. When set, the server creates a worktree for a new branch off
workspace.400— session already has a runner bound403— caller does not own the host404— host not found409— host is offline