agent
Launch external agent CLIs with worai MCP server + skills.
Usage
worai agent [options] [-- <agent-cli-args...>]worai agent mcp serve [--config <path>] [--profile <name>]
Options
--agent-cli/--cli:codex|claude|gemini(default:codex)--agent-exec: override executable path--config: session default config path for MCP tool calls--profile: session default profile for MCP tool calls--codex-use-user-config: for--agent-cli codex, skip forced WordLift provider/model injection and use existing user Codex auth/config--dry-run: print generated launch command and asset paths without launching--keep-temp: keep generated temporary skills/MCP config files after exit
Notes
worai agentgenerates:- a temporary skills file (
WORAI_SKILL.md) - a temporary MCP config file pointing to
worai agent mcp serve
- a temporary skills file (
- MCP tools exposed:
worai_versionworai_helpworai_graph_validateworai_graph_exportworai_graph_auditworai_graph_kpisworai_entity_matrixworai_graph_resetworai_graph_sync_run_start(async)worai_structured_data_validate_pageworai_structured_data_inventory_start(async)worai_web_pages_classify_typesworai_job_statusworai_job_outputworai_job_eventsworai_job_cancelworai_cli_exec(fallback; argv-array based)
- MCP config/profile precedence:
- per-call
config_path+profile - then session defaults from
worai agent --config/--profile - then
WORAI_PROFILE - then
default
- per-call
- Codex launcher behavior:
- default mode injects runtime model config for WordLift provider (
agent.codex_model, defaultgpt-5-5-graph-sync) - in default mode,
X-API-Keyis resolved from the selected profileapi_key(withWORDLIFT_API_KEYfallback) - in default mode, if no profile is provided, falls back to
defaultwith a warning - in default mode, exits with a human-readable error when fallback
defaultprofile is missing in the resolved config --codex-use-user-configdisables the forced WordLift provider/model injection and uses existing Codex user auth/config--dry-runredactsX-API-Keyin printed launch command when injected
- default mode injects runtime model config for WordLift provider (
- Config:
- set
agent.codex_modelglobally or under a profile to override the default Codex WordLift model
- set
Examples
worai agent --agent-cli codexworai agent --agent-cli codex --codex-use-user-configworai agent --agent-cli codex --config ./worai.toml(falls back todefaultprofile with warning when--profileandWORAI_PROFILEare not set)worai agent --agent-cli claude --profile acmeworai agent --agent-cli gemini --config ./worai.toml --profile acmeworai agent --agent-cli codex --dry-runworai agent mcp serve --profile acme