LLM CLI Gateway

v1.17.1
io.github.verivus-oss/llm-cli-gateway Checked 4 days ago Published 6 months ago

One MCP endpoint for Claude Code, Codex, Gemini, Grok and Mistral CLIs, with durable async jobs.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

validate_with_models

ParameterTypeDescription
question *stringQuestion or content to validate.
focusstringWhat reviewers should pay attention to.
judgeModelOptional provider to run an explicit judge synthesis job.
modelsarrayProviders to ask. Defaults to Claude and Codex.

second_opinion

ParameterTypeDescription
answer *stringAnswer to review.
modelstringProvider to ask for the second opinion.
questionstringOriginal question, if available.

compare_answers

ParameterTypeDescription
answers *arrayTwo or more answers to compare.
question *stringQuestion the answers respond to.

red_team_review

ParameterTypeDescription
content *stringPlan, answer, or document to challenge.
modelsarrayProviders to ask for adversarial review.
riskLevelstringHow aggressively to review.

consensus_check

ParameterTypeDescription
claim *stringClaim to check across providers.
modelsarrayProviders to ask for agreement or disagreement.

ask_model

ParameterTypeDescription
question *stringQuestion for one provider.
modelstringProvider to ask.

synthesize_validation

ParameterTypeDescription
providerResults *arrayTerminal normalized provider results from job_result.
question *stringOriginal request that was validated.
judgeModelProvider to run the judge synthesis.

list_available_models

job_status

ParameterTypeDescription
jobId *stringValidation job ID.

job_result

ParameterTypeDescription
jobId *stringValidation job ID.
maxCharsintegerMaximum result size.
providerstringProvider that produced the job, used for normalized validation output.

claude_request

ParameterTypeDescription
addDirarrayClaude --add-dir: additional directories the CLI is allowed to read/write beyond the process cwd. Each entry is emitted as its own --add-dir instance.
agentstringClaude --agent: dispatch to a named single sub-agent.
agentsobjectClaude --agents: inline JSON map of agent name → { description, prompt, tools?, model? }.
allowedToolsarrayAllowed tools (['Bash(git:*)','Edit','Write'])
appendSystemPromptstringClaude --append-system-prompt: append to the existing system prompt.
approvalPolicystringApproval policy override
approvalStrategystringApproval strategy
continueSessionbooleanContinue active session
correlationIdstringRequest trace ID (auto if omitted)
createNewSessionbooleanForce new session
dangerouslySkipPermissionsbooleanDEPRECATED: prefer `permissionMode: "bypassPermissions"`. Maps to it when `permissionMode` is unset.
disallowedToolsarrayDisallowed tools
effortstringClaude --effort: low|medium|high|xhigh|max.
excludeDynamicSystemPromptSectionsbooleanClaude --exclude-dynamic-system-prompt-sections: trim dynamic context blocks from the system prompt.
fallbackModelstringClaude --fallback-model: model name to auto-fallback to when the default model is overloaded (effective only with --print, which the gateway always uses).
forceRefreshbooleanBypass dedup and force a fresh CLI run even if a recent identical request exists
forkSessionbooleanClaude --fork-session: branch from an existing session into a fresh fork.
idleTimeoutMsintegerIdle timeout in ms (min 30s, max 1h, omit=CLI default)
jsonSchemaClaude --json-schema: JSON Schema literal (NOT a path) constraining structured output. Object values are JSON.stringify-d; string values are passed verbatim. Use with outputFormat='json'.
maxBudgetUsdnumberClaude --max-budget-usd: spend cap for this request in USD.
maxTurnsintegerClaude --max-turns: cap on agent loop iterations.
mcpServersarrayMCP servers exposed to Claude
modelstringModel name or alias (e.g. sonnet, claude-sonnet-4-5-20250929, latest)
optimizePromptbooleanOptimize prompt before execution
optimizeResponsebooleanOptimize response output
outputFormatstringOutput format (text|json|stream-json). DEFAULT: stream-json — the gateway parses NDJSON usage events to extract input/output/cache_read/cache_creation tokens + cost + model, persists them to the fli…
permissionModestringClaude --permission-mode: default|acceptEdits|plan|auto|dontAsk|bypassPermissions. `default` is a no-op (no flag emitted).
promptstringPrompt text for Claude (mutually exclusive with promptParts)
promptPartsobjectCache-aware structured prompt: { system?, tools?, context?, task, cacheControl? }. Use for repeated calls that share a stable prefix — `system`/`tools`/`context` are the stable head; `task` is the v…
sessionIdstringSession ID (uses active if omitted)
strictMcpConfigbooleanRestrict Claude to provided MCP config only
systemPromptstringClaude --system-prompt: replace the system prompt entirely.
worktreeSlice λ: run this request inside a dedicated git worktree owned by the gateway. `true` creates a fresh worktree at `<repoRoot>/.worktrees/<uuid>` branched from HEAD. `{ name?, ref? }` lets the caller…

codex_request

ParameterTypeDescription
addDirarrayCodex --add-dir <DIR>: additional writable workspace directories. Emitted once per entry on new sessions only; resume inherits the original session's writable-dir policy.
approvalPolicystringApproval policy override
approvalStrategystringApproval strategy
askForApprovalstringCodex --ask-for-approval: untrusted|on-request|never.
configOverridesobjectCodex -c key=value overrides. Keys: /^[a-zA-Z0-9._]+$/. Values: no CR/LF.
correlationIdstringRequest trace ID (auto if omitted)
createNewSessionbooleanForce a fresh session (no resume)
dangerouslyBypassApprovalsAndSandboxbooleanRun Codex without approvals/sandbox
ephemeralbooleanCodex --ephemeral: do not persist the session to disk.
forceRefreshbooleanBypass dedup and force a fresh CLI run even if a recent identical request exists
fullAutobooleanDEPRECATED: prefer `sandboxMode` + `askForApproval`. Expands to `--sandbox workspace-write --ask-for-approval never`.
idleTimeoutMsintegerIdle timeout in ms (min 30s, max 1h, omit=CLI default)
ignoreRulesbooleanCodex --ignore-rules: skip project rule files for this run.
ignoreUserConfigbooleanCodex --ignore-user-config: ignore ~/.codex/config.toml for this run.
imagesarrayCodex -i <path>: image attachments. Each path must exist; missing paths fail fast.
mcpServersarrayMCP server names for approval tracking (Codex manages its own MCP config)
modelstringModel name or alias (e.g. gpt-5.4, latest)
optimizePromptbooleanOptimize prompt before execution
optimizeResponsebooleanOptimize response output
outputFormatstringCodex output format. `json` emits --json (JSONL events) so token usage and cost are parsed and reported in the flight recorder. `text` is the default.
outputSchemaCodex --output-schema. Pass a path (string) or an inline JSON Schema object; object is materialised to a 0o600 temp file under os.tmpdir() and deleted after the run.
profilestringCodex --profile <name>: select a profile from ~/.codex/config.toml.
promptstringPrompt text for Codex (mutually exclusive with promptParts)
promptPartsobjectCache-aware structured prompt: { system?, tools?, context?, task }. Mutually exclusive with prompt. Stable parts hash into cache_state for prefix-discipline tracking.
resumeLatestbooleanResume the most recent Codex session in the current cwd via `codex exec resume --last`. Ignored if sessionId is set.
sandboxModestringCodex --sandbox: read-only|workspace-write|danger-full-access.
searchbooleanEmit Codex --search to enable web search.
sessionIdstringCodex session UUID to resume via `codex exec resume <ID>`. Must be a real Codex session ID (from `~/.codex/sessions/` or the `codex resume` picker). Gateway-generated `gw-*` IDs are rejected.
useLegacyFullAutoFlagbooleanEscape hatch: emit `--full-auto` directly instead of expanding (deprecated).
workingDirstringCodex -C/--cd <DIR>: working root for this session. Emitted on new sessions only; resume inherits the original session's cwd via CODEX_RESUME_FILTERED_FLAGS.
worktreeSlice λ: run this request inside a dedicated git worktree owned by the gateway. `true` creates a fresh worktree at `<repoRoot>/.worktrees/<uuid>` branched from HEAD. `{ name?, ref? }` lets the caller…

codex_fork_session

ParameterTypeDescription
prompt *stringPrompt text for the forked Codex session
askForApprovalstringCodex --ask-for-approval: untrusted|on-request|never.
correlationIdstringRequest trace ID (auto if omitted)
forkLastbooleanFork from the most recent Codex session. Mutually exclusive with `sessionId`.
idleTimeoutMsintegerIdle timeout in ms (min 30s, max 1h, omit=CLI default)
modelstringModel name or alias (e.g. gpt-5.5, latest)
sandboxModestringCodex --sandbox: read-only|workspace-write|danger-full-access.
sessionIdstringCodex session UUID to fork from. Mutually exclusive with `forkLast`.

gemini_request

ParameterTypeDescription
adminPolicyFilesarrayAdmin policy file paths (--admin-policy <path>, one per file). Paths must exist.
allowedToolsarrayAllowed tools (['Write','Edit','Bash'])
approvalModestringApproval: default|auto_edit|yolo|plan
approvalPolicystringApproval policy override
approvalStrategystringApproval strategy
attachmentsarrayAbsolute file paths prepended as @<path> tokens to the prompt
correlationIdstringRequest trace ID (auto if omitted)
createNewSessionbooleanForce new session
forceRefreshbooleanBypass dedup and force a fresh CLI run even if a recent identical request exists
idleTimeoutMsintegerIdle timeout in ms (min 30s, max 1h, omit=CLI default)
includeDirsarrayAdditional workspace directories
mcpServersarrayMCP server names passed to Gemini as --allowed-mcp-server-names
modelstringModel name or alias (e.g. gemini-3-pro-preview, gemini-2.5-flash, pro, flash, latest)
optimizePromptbooleanOptimize prompt before execution
optimizeResponsebooleanOptimize response output
outputFormatstringGemini output format. `json` emits `-o json` (single JSON with usageMetadata). `stream-json` emits `-o stream-json` (NDJSON event stream — `init`/`message`/`result` lines, usage extracted from the t…
policyFilesarrayPolicy file paths (--policy <path>, one per file). Paths must exist.
promptstringPrompt text for Gemini (mutually exclusive with promptParts)
promptPartsobjectCache-aware structured prompt: { system?, tools?, context?, task }. Mutually exclusive with prompt. Stable parts hash into cache_state for prefix-discipline tracking.
resumeLatestbooleanResume latest session
sandboxbooleanRun Gemini in sandbox mode (-s)
sessionIdstringSession ID or 'latest'
skipTrustbooleanEmit `--skip-trust` so Gemini trusts the workspace for this session and skips the interactive trust prompt (Phase 4 slice γ). Required for headless runs in fresh workspaces.
worktreeSlice λ: run this request inside a dedicated git worktree owned by the gateway. `true` creates a fresh worktree at `<repoRoot>/.worktrees/<uuid>` branched from HEAD. `{ name?, ref? }` lets the caller…

grok_request

ParameterTypeDescription
allowarrayGrok --allow <RULE>: permission allow rules. Each entry is emitted as its own --allow instance (per `grok --help`: "Repeat to add multiple rules").
allowedToolsarrayAllowed built-in tools (passed as --tools comma list)
alwaysApprovebooleanAuto-approve all tool executions (--always-approve)
approvalPolicystringApproval policy override
approvalStrategystringApproval strategy
correlationIdstringRequest trace ID (auto if omitted)
createNewSessionbooleanForce new session
denyarrayGrok --deny <RULE>: permission deny rules. Each entry is emitted as its own --deny instance (per `grok --help`: "Repeat to add multiple rules").
disallowedToolsarrayDisallowed built-in tools (passed as --disallowed-tools comma list)
effortstringGrok effort level
forceRefreshbooleanBypass dedup and force a fresh CLI run even if a recent identical request exists
idleTimeoutMsintegerIdle timeout in ms (min 30s, max 1h, omit=CLI default)
maxTurnsintegerGrok `--max-turns N`: cap on agent-loop iterations for cost / latency control (Phase 4 slice δ). Bounded to safe integers ≤ 10000.
mcpServersarrayMCP server names for approval tracking (Grok manages its own MCP config via `grok mcp`)
modelstringModel name or alias (e.g. grok-build, latest)
optimizePromptbooleanOptimize prompt before execution
optimizeResponsebooleanOptimize response output
outputFormatstringOutput format (plain|json|streaming-json). Grok default is plain.
permissionModestringGrok permission mode
promptstringPrompt text for Grok (mutually exclusive with promptParts)
promptPartsobjectCache-aware structured prompt: { system?, tools?, context?, task }. Mutually exclusive with prompt. Stable parts hash into cache_state for prefix-discipline tracking.
reasoningEffortstringReasoning effort for reasoning models
resumeLatestbooleanResume most recent Grok session in cwd (--continue)
rulesstringGrok --rules <RULES>: extra rules to append to the system prompt. Supports `@file` prefix per `grok --help` to load from a file; gateway passes the value verbatim and lets Grok parse the prefix.
sandboxstringGrok --sandbox <PROFILE>: sandbox profile for filesystem and network access. Freeform per `grok --help` (no enum constraint on Grok 0.1.210); also settable via GROK_SANDBOX env var. Caller responsibil…
sessionIdstringSession ID (user-provided CLI handle for --resume)
systemPromptOverridestringGrok --system-prompt-override <PROMPT>: replace the agent's system prompt entirely. Distinct from Claude's --system-prompt / --append-system-prompt (Grok has only one override flag, not a pair).
workingDirstringGrok --cwd <DIR>: working directory for this invocation. Lets headless callers run Grok against a directory other than the gateway process's cwd.
worktreeSlice λ: run this request inside a dedicated git worktree owned by the gateway. `true` creates a fresh worktree at `<repoRoot>/.worktrees/<uuid>` branched from HEAD. `{ name?, ref? }` lets the caller…

mistral_request

ParameterTypeDescription
addDirarrayVibe --add-dir <DIR>: additional writable workspace directories. Each entry is emitted as its own --add-dir instance (Vibe states this flag may be specified multiple times).
allowedToolsarrayAllowlist of built-in tools — each emitted as a separate --enabled-tools <tool> flag
approvalPolicystringApproval policy override
approvalStrategystringApproval strategy
correlationIdstringRequest trace ID (auto if omitted)
createNewSessionbooleanForce new session
disallowedToolsarrayAccepted for caller parity; Vibe has no deny-list flag, so values are ignored (a warning is logged).
effortstringVibe effort level
forceRefreshbooleanBypass dedup and force a fresh CLI run even if a recent identical request exists
idleTimeoutMsintegerIdle timeout in ms (min 30s, max 1h, omit=CLI default)
maxPricenumberVibe `--max-price DOLLARS`: interrupt the session when cumulative cost crosses this cap (programmatic mode only, Phase 4 slice δ). Bounded to finite values ≤ 10000 USD.
maxTokensintegerVibe `--max-tokens N`: cap cumulative prompt + completion tokens for the session (programmatic mode only). Bounded to safe integers ≤ 100000000.
maxTurnsintegerVibe `--max-turns N`: cap the agent-loop iteration count (programmatic mode only, Phase 4 slice δ). Bounded to safe integers ≤ 10000.
mcpServersarrayMCP server names for approval tracking (Vibe manages its own MCP config via `vibe mcp`)
modelstringModel alias (e.g. mistral-medium-3.5, latest). Resolved alias is injected via VIBE_ACTIVE_MODEL env var; Vibe has no --model flag.
optimizePromptbooleanOptimize prompt before execution
optimizeResponsebooleanOptimize response output
outputFormatstringOutput format for Vibe 2.x (text|json|streaming). Legacy aliases plain→text and stream-json→streaming are accepted.
permissionModestringVibe agent mode (default|plan|accept-edits|auto-approve|chat|explore|lean). Defaults to auto-approve for programmatic use.
promptstringPrompt text for Mistral Vibe (mutually exclusive with promptParts)
promptPartsobjectCache-aware structured prompt: { system?, tools?, context?, task }. Mutually exclusive with prompt. Stable parts hash into cache_state for prefix-discipline tracking.
reasoningEffortstringReasoning effort for reasoning models
resumeLatestbooleanResume most recent Vibe session in cwd (--continue)
sessionIdstringSession ID (user-provided CLI handle for --resume). Current Vibe defaults session logging on; doctor flags explicit [session_logging] enabled = false.
trustbooleanEmit `--trust` so Vibe trusts the cwd for this invocation only (not persisted to trusted_folders.toml) and skips the interactive trust prompt (Phase 4 slice γ).
workingDirstringVibe --workdir <DIR>: change to this directory before running. Single value (Vibe accepts one --workdir per invocation).
worktreeSlice λ: run this request inside a dedicated git worktree owned by the gateway. `true` creates a fresh worktree at `<repoRoot>/.worktrees/<uuid>` branched from HEAD. `{ name?, ref? }` lets the caller…

claude_request_async

ParameterTypeDescription
addDirarrayClaude --add-dir: additional directories the CLI is allowed to read/write beyond the process cwd. Each entry is emitted as its own --add-dir instance.
agentstringClaude --agent: dispatch to a named single sub-agent.
agentsobjectClaude --agents: inline JSON map of agent name → { description, prompt, tools?, model? }.
allowedToolsarrayAllowed tools (['Bash(git:*)','Edit','Write'])
appendSystemPromptstringClaude --append-system-prompt: append to the existing system prompt.
approvalPolicystringApproval policy override
approvalStrategystringApproval strategy
continueSessionbooleanContinue active session
correlationIdstringRequest trace ID (auto if omitted)
createNewSessionbooleanForce new session
dangerouslySkipPermissionsbooleanDEPRECATED: prefer `permissionMode: "bypassPermissions"`. Maps to it when `permissionMode` is unset.
disallowedToolsarrayDisallowed tools
effortstringClaude --effort: low|medium|high|xhigh|max.
excludeDynamicSystemPromptSectionsbooleanClaude --exclude-dynamic-system-prompt-sections: trim dynamic context blocks from the system prompt.
fallbackModelstringClaude --fallback-model: model name to auto-fallback to when the default model is overloaded (effective only with --print, which the gateway always uses).
forceRefreshbooleanBypass dedup and force a fresh CLI run even if a recent identical request exists
forkSessionbooleanClaude --fork-session: branch from an existing session into a fresh fork.
idleTimeoutMsintegerIdle timeout in ms (min 30s, max 1h, omit=CLI default)
jsonSchemaClaude --json-schema: JSON Schema literal (NOT a path) constraining structured output. Object values are JSON.stringify-d; string values are passed verbatim. Use with outputFormat='json'.
maxBudgetUsdnumberClaude --max-budget-usd: spend cap for this request in USD.
maxTurnsintegerClaude --max-turns: cap on agent loop iterations.
mcpServersarrayMCP servers exposed to Claude
modelstringModel name or alias (e.g. sonnet, claude-sonnet-4-5-20250929, latest)
optimizePromptbooleanOptimize prompt before execution
outputFormatstringOutput format (text|json|stream-json). DEFAULT: stream-json — same rationale as claude_request: keeps usage/cache/cost observable for cache_state aggregates. Override to 'text' only when raw stdout…
permissionModestringClaude --permission-mode: default|acceptEdits|plan|auto|dontAsk|bypassPermissions. `default` is a no-op.
promptstringPrompt text for Claude (mutually exclusive with promptParts)
promptPartsobjectCache-aware structured prompt: { system?, tools?, context?, task, cacheControl? }. Same semantics as claude_request: stable head (system/tools/context) + volatile tail (task). Set `cacheControl: { sys…
sessionIdstringSession ID (uses active if omitted)
strictMcpConfigbooleanRestrict Claude to provided MCP config only
systemPromptstringClaude --system-prompt: replace the system prompt entirely.
worktreeSlice λ: run this request inside a dedicated git worktree owned by the gateway. `true` creates a fresh worktree at `<repoRoot>/.worktrees/<uuid>` branched from HEAD. `{ name?, ref? }` lets the caller…

codex_request_async

ParameterTypeDescription
addDirarrayCodex --add-dir <DIR>: additional writable workspace directories (repeat per entry). New sessions only.
approvalPolicystringApproval policy override
approvalStrategystringApproval strategy
askForApprovalstringCodex --ask-for-approval: untrusted|on-request|never.
configOverridesobjectCodex -c key=value overrides. Keys: /^[a-zA-Z0-9._]+$/. Values: no CR/LF.
correlationIdstringRequest trace ID (auto if omitted)
createNewSessionbooleanForce a fresh session (no resume)
dangerouslyBypassApprovalsAndSandboxbooleanRun Codex without approvals/sandbox
ephemeralbooleanCodex --ephemeral.
forceRefreshbooleanBypass dedup and force a fresh CLI run even if a recent identical request exists
fullAutobooleanDEPRECATED: prefer `sandboxMode` + `askForApproval`. Expands to `--sandbox workspace-write --ask-for-approval never`.
idleTimeoutMsintegerIdle timeout in ms (min 30s, max 1h, omit=CLI default)
ignoreRulesbooleanCodex --ignore-rules.
ignoreUserConfigbooleanCodex --ignore-user-config.
imagesarrayCodex -i <path>: image attachments.
mcpServersarrayMCP server names for approval tracking (Codex manages its own MCP config)
modelstringModel name or alias (e.g. gpt-5.4, latest)
optimizePromptbooleanOptimize prompt before execution
outputFormatstringCodex output format. `json` emits --json (JSONL events) for token usage extraction.
outputSchemaCodex --output-schema. Pass a path (string) or an inline JSON Schema object.
profilestringCodex --profile <name>.
promptstringPrompt text for Codex (mutually exclusive with promptParts)
promptPartsobjectCache-aware structured prompt: { system?, tools?, context?, task }. Mutually exclusive with prompt. Stable parts hash into cache_state for prefix-discipline tracking.
resumeLatestbooleanResume the most recent Codex session in the current cwd via `codex exec resume --last`. Ignored if sessionId is set.
sandboxModestringCodex --sandbox: read-only|workspace-write|danger-full-access.
searchbooleanEmit Codex --search to enable web search.
sessionIdstringCodex session UUID to resume via `codex exec resume <ID>`. Must be a real Codex session ID (from `~/.codex/sessions/` or the `codex resume` picker). Gateway-generated `gw-*` IDs are rejected.
useLegacyFullAutoFlagbooleanEscape hatch: emit `--full-auto` directly (deprecated).
workingDirstringCodex -C/--cd <DIR>: working root for this session. New sessions only; resume inherits the original session's cwd.
worktreeSlice λ: run this request inside a dedicated git worktree owned by the gateway. `true` creates a fresh worktree at `<repoRoot>/.worktrees/<uuid>` branched from HEAD. `{ name?, ref? }` lets the caller…

gemini_request_async

ParameterTypeDescription
adminPolicyFilesarrayAdmin policy file paths (--admin-policy <path>, one per file). Paths must exist.
allowedToolsarrayAllowed tools (['Write','Edit','Bash'])
approvalModestringApproval: default|auto_edit|yolo|plan
approvalPolicystringApproval policy override
approvalStrategystringApproval strategy
attachmentsarrayAbsolute file paths prepended as @<path> tokens to the prompt
correlationIdstringRequest trace ID (auto if omitted)
createNewSessionbooleanForce new session
forceRefreshbooleanBypass dedup and force a fresh CLI run even if a recent identical request exists
idleTimeoutMsintegerIdle timeout in ms (min 30s, max 1h, omit=CLI default)
includeDirsarrayAdditional workspace directories
mcpServersarrayMCP server names passed to Gemini as --allowed-mcp-server-names
modelstringModel name or alias (e.g. gemini-3-pro-preview, gemini-2.5-flash, pro, flash, latest)
optimizePromptbooleanOptimize prompt before execution
outputFormatstringGemini output format. `json` emits `-o json` (single JSON with usageMetadata). `stream-json` emits `-o stream-json` (NDJSON event stream — `init`/`message`/`result` lines, usage extracted from the t…
policyFilesarrayPolicy file paths (--policy <path>, one per file). Paths must exist.
promptstringPrompt text for Gemini (mutually exclusive with promptParts)
promptPartsobjectCache-aware structured prompt: { system?, tools?, context?, task }. Mutually exclusive with prompt. Stable parts hash into cache_state for prefix-discipline tracking.
resumeLatestbooleanResume latest session
sandboxbooleanRun Gemini in sandbox mode (-s)
sessionIdstringSession ID (user-provided CLI handle for --resume)
skipTrustbooleanEmit `--skip-trust` so Gemini trusts the workspace for this session and skips the interactive trust prompt (Phase 4 slice γ). Required for headless runs in fresh workspaces.
worktreeSlice λ: run this request inside a dedicated git worktree owned by the gateway. `true` creates a fresh worktree at `<repoRoot>/.worktrees/<uuid>` branched from HEAD. `{ name?, ref? }` lets the caller…

grok_request_async

ParameterTypeDescription
allowarrayGrok --allow <RULE>: permission allow rules. Each entry → its own --allow instance.
allowedToolsarrayAllowed built-in tools (passed as --tools comma list)
alwaysApprovebooleanAuto-approve all tool executions (--always-approve)
approvalPolicystringApproval policy override
approvalStrategystringApproval strategy
correlationIdstringRequest trace ID (auto if omitted)
createNewSessionbooleanForce new session
denyarrayGrok --deny <RULE>: permission deny rules. Each entry → its own --deny instance.
disallowedToolsarrayDisallowed built-in tools (passed as --disallowed-tools comma list)
effortstringGrok effort level
forceRefreshbooleanBypass dedup and force a fresh CLI run even if a recent identical request exists
idleTimeoutMsintegerIdle timeout in ms (min 30s, max 1h, omit=CLI default)
maxTurnsintegerGrok `--max-turns N`: cap on agent-loop iterations for cost / latency control (Phase 4 slice δ). Bounded to safe integers ≤ 10000.
mcpServersarrayMCP server names for approval tracking (Grok manages its own MCP config via `grok mcp`)
modelstringModel name or alias (e.g. grok-build, latest)
optimizePromptbooleanOptimize prompt before execution
outputFormatstringOutput format (plain|json|streaming-json). Grok default is plain.
permissionModestringGrok permission mode
promptstringPrompt text for Grok (mutually exclusive with promptParts)
promptPartsobjectCache-aware structured prompt: { system?, tools?, context?, task }. Mutually exclusive with prompt. Stable parts hash into cache_state for prefix-discipline tracking.
reasoningEffortstringReasoning effort for reasoning models
resumeLatestbooleanResume most recent Grok session in cwd (--continue)
rulesstringGrok --rules <RULES>: extra rules to append to the system prompt. Supports `@file` prefix; gateway passes the value verbatim.
sandboxstringGrok --sandbox <PROFILE>: sandbox profile for filesystem and network access. Freeform per `grok --help` (no enum constraint); also settable via GROK_SANDBOX env var.
sessionIdstringSession ID (user-provided CLI handle for --resume)
systemPromptOverridestringGrok --system-prompt-override <PROMPT>: replace the agent's system prompt entirely.
workingDirstringGrok --cwd <DIR>: working directory for this invocation. Lets headless callers run Grok against a directory other than the gateway process's cwd.
worktreeSlice λ: run this request inside a dedicated git worktree owned by the gateway. `true` creates a fresh worktree at `<repoRoot>/.worktrees/<uuid>` branched from HEAD. `{ name?, ref? }` lets the caller…

mistral_request_async

ParameterTypeDescription
addDirarrayVibe --add-dir <DIR>: additional writable workspace directories. Each entry is emitted as its own --add-dir instance.
allowedToolsarrayAllowlist of built-in tools — each emitted as a separate --enabled-tools <tool> flag
approvalPolicystringApproval policy override
approvalStrategystringApproval strategy
correlationIdstringRequest trace ID (auto if omitted)
createNewSessionbooleanForce new session
disallowedToolsarrayAccepted for caller parity; Vibe has no deny-list flag, so values are ignored (a warning is logged).
effortstringVibe effort level
forceRefreshbooleanBypass dedup and force a fresh CLI run even if a recent identical request exists
idleTimeoutMsintegerIdle timeout in ms (min 30s, max 1h, omit=CLI default)
maxPricenumberVibe `--max-price DOLLARS`: interrupt the session when cumulative cost crosses this cap (programmatic mode only, Phase 4 slice δ). Bounded to finite values ≤ 10000 USD.
maxTokensintegerVibe `--max-tokens N`: cap cumulative prompt + completion tokens for the session (programmatic mode only). Bounded to safe integers ≤ 100000000.
maxTurnsintegerVibe `--max-turns N`: cap the agent-loop iteration count (programmatic mode only, Phase 4 slice δ). Bounded to safe integers ≤ 10000.
mcpServersarrayMCP server names for approval tracking (Vibe manages its own MCP config via `vibe mcp`)
modelstringModel alias (resolved into VIBE_ACTIVE_MODEL env var — Vibe has no --model flag)
optimizePromptbooleanOptimize prompt before execution
outputFormatstringOutput format for Vibe 2.x (text|json|streaming). Legacy aliases plain→text and stream-json→streaming are accepted.
permissionModestringVibe agent mode (default|plan|accept-edits|auto-approve|chat|explore|lean). Defaults to auto-approve for programmatic use.
promptstringPrompt text for Mistral Vibe (mutually exclusive with promptParts)
promptPartsobjectCache-aware structured prompt: { system?, tools?, context?, task }. Mutually exclusive with prompt. Stable parts hash into cache_state for prefix-discipline tracking.
reasoningEffortstringReasoning effort for reasoning models
resumeLatestbooleanResume most recent Vibe session in cwd (--continue)
sessionIdstringSession ID (user-provided CLI handle for --resume). Current Vibe defaults session logging on; doctor flags explicit [session_logging] enabled = false.
trustbooleanEmit `--trust` so Vibe trusts the cwd for this invocation only (not persisted to trusted_folders.toml) and skips the interactive trust prompt (Phase 4 slice γ).
workingDirstringVibe --workdir <DIR>: change to this directory before running. Single value per invocation.
worktreeSlice λ: run this request inside a dedicated git worktree owned by the gateway. `true` creates a fresh worktree at `<repoRoot>/.worktrees/<uuid>` branched from HEAD. `{ name?, ref? }` lets the caller…

llm_job_status

ParameterTypeDescription
jobId *stringAsync job ID from *_request_async

llm_job_result

ParameterTypeDescription
jobId *stringAsync job ID from *_request_async
maxCharsintegerMax chars returned per stream

llm_job_cancel

ParameterTypeDescription
jobId *stringAsync job ID from *_request_async

llm_process_health

approval_list

ParameterTypeDescription
clistringOptional CLI filter
limitintegerMax number of approval records

list_models

ParameterTypeDescription
clistringCLI filter (claude|codex|gemini|grok|mistral)

cli_versions

ParameterTypeDescription
clistringCLI filter (claude|codex|gemini|grok|mistral)

upstream_contracts

ParameterTypeDescription
clistringCLI filter (claude|codex|gemini|grok|mistral)
probeInstalledbooleanWhen true, run local --help probes and compare advertised flags

cli_upgrade

ParameterTypeDescription
cli *stringCLI to upgrade
dryRunbooleanWhen true, return the upgrade plan without running it
targetstringPackage tag/version/target to install (default: latest)
timeoutMsintegerUpgrade timeout in ms when dryRun=false

session_create

ParameterTypeDescription
cli *stringCLI type (claude|codex|gemini|grok|mistral)
descriptionstringSession description
setAsActivebooleanSet as active session

session_list

ParameterTypeDescription
clistringCLI filter (claude|codex|gemini|grok|mistral)

session_set_active

ParameterTypeDescription
cli *stringCLI type (claude|codex|gemini|grok|mistral)
sessionId *string | nullSession ID (null to clear)

session_delete

ParameterTypeDescription
sessionId *stringSession ID

session_get

ParameterTypeDescription
sessionId *stringSession ID

session_clear_all

ParameterTypeDescription
clistringCLI filter (claude|codex|gemini|grok|mistral)