llm_codex
Route AI tasks to the local Codex desktop agent via Codex CLI for non-interactive execution using your OpenAI subscription. Choose it when Claude limits are tight or tasks fit OpenAI's models.
Instructions
Route a task to the local Codex desktop agent (OpenAI).
Uses the Codex CLI to run tasks non-interactively. This uses the user's OpenAI subscription (not Claude quota) — ideal as a fallback when Claude limits are tight, or for tasks that benefit from OpenAI's models.
Available models: gpt-5.4, o3, o4-mini, gpt-4o, gpt-4o-mini
Args: prompt: The task or question to send to Codex. model: OpenAI model to use (default: gpt-5.4).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "llm_codex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | gpt-5.4 | |
| prompt | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |