Agent Runtimes

OpenLoomi can delegate native agent tasks to its built-in Claude Agent SDK runtime or to locally installed CLI runtimes. Runtime selection is deployment configuration: set OPENLOOMI_AGENT_PROVIDER before starting OpenLoomi, then restart the process after changing it. The runtime cannot be selected or reconfigured from a chat/API request.

Overview

Claude is the default agent runtime. Leaving OPENLOOMI_AGENT_PROVIDER unset is equivalent to setting it to claude. Codex is the secondary option when a direct, locally authenticated CLI runtime is preferred. Three more CLI runtimes — OpenCode, Hermes, and OpenClaw — round out the supported matrix for teams with existing CLI investments.

The supported runtimes sit at different layers:

  • Claude runs in-process via the Agent SDK — OpenLoomi owns the lifecycle.
  • Codex, OpenCode, Hermes are CLI subprocesses that OpenLoomi spawns per task and reads a JSON event stream from.
  • OpenClaw adds a Gateway that brokers sessions and device pairing.

Selecting a runtime chooses the AgentPlugin/IAgent implementation that executes a task; it does not turn that runtime into an OpenLoomi sandbox provider. The host and selected runtime still enforce their own filesystem, process, network, and approval boundaries.

ProviderRoleRuntime pathConfiguration source
ClaudeDefaultClaude Agent SDK query()OpenLoomi API settings / env
CodexSecondarycodex exec --jsonEnvironment and Codex CLI
OpenCodeOptionalopencode run --format jsonEnvironment and OpenCode
HermesOptionalhermes acpEnvironment and Hermes
OpenClawOptionalopenclaw acp plus a running GatewayEnvironment and OpenClaw

Each runtime guide covers installation, authentication, OpenLoomi environment variables, permission behavior, verification, and troubleshooting:

Agent runtimes and sandboxes are separate layers. Selecting a runtime chooses the AgentPlugin/IAgent implementation that executes a task; it does not turn that runtime into an OpenLoomi sandbox provider. The host and selected runtime still enforce their own filesystem, process, network, and approval boundaries.

Codex runtime vs. Codex plugin: This section describes OpenLoomi calling Codex as its runtime. The repository's plugins/codex package works in the opposite direction: it gives Codex skills and a bridge for calling into OpenLoomi.

  • Plugins — the reverse direction: give Claude Code and Codex CLI a bridge for calling into OpenLoomi (memory, connectors, Pet)
  • Getting Started — the OPENLOOMI_AGENT_PROVIDER quick reference