Zum Inhalt springen

CLI (oax)

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

oax run <agents.md> --event <event.json> [options]
oax validate <agents.md>
oax --version
OptionMeaning
--event <file>CloudEvent or plain JSON payload (required). Plain JSON becomes an io.openagentix.manual event from /sources/local/cli.
--mcp <file>JSON array of MCP server configurations (default: built-in demo servers)
--providers <file>JSON array of provider configurations (default: OAX_PROVIDERS or simulated)
--policy <file>JSON policy bundle applied on top of the agent file
--prices <file>JSON price table for cost calculation
--approve <all|none>answer to approval requests (default none: reject)
--jsonprint each step and the result as JSON lines

The text summary ends with:

status=succeeded steps=7 toolCalls=2 tokens=1834/412 cost=$0.000000
audit: valid (12 entries, head 3f9a0c51d2e7)

With --json, each line is {"type":"step","step":…}, followed by {"type":"result","runId":…,"result":…,"audit":…}.

CodeMeaning
0success, or the file is valid
1invalid file, or the run did not succeed
2usage or other error
VariableMeaning
OAX_PROVIDERSJSON array of provider configurations
OAX_SECRET_<NAME>value of the secret reference <name> (upper-cased, non-alphanumerics as _)
OAX_SECRETS_DIRdirectory with one file per secret reference, e.g. a mounted Kubernetes Secret