Send a `codex` block to run a session with Codex:

```json
{
  "codex": {
    "prompt": "Find and fix the failing test.",
    "model": "gpt-6.1-sol",
    "effort": "medium"
  }
}
```

In agent YAML, the same fields go under `session.codex`. The CLI picks the harness from `--model`:

```bash
el --model gpt-6-astra -e cloud_agent_environment "Find and fix the failing test."
```

## Options

| Field | Type | Meaning |
| --- | --- | --- |
| `prompt` | `string` | The task. |
| `model` | `string`, required | `gpt-6.1-sol`, `gpt-6-astra`, `gpt-6-sol`, or `gpt-6-luna`. |
| `effort` | `string` | Reasoning effort. GPT-6.1 Sol and GPT-6 Astra don't accept `none`. Default `medium`. One of `none`, `low`, `medium`, `high`, `xhigh`, `max`. |

## Features

| Feature | Support |
| --- | --- |
| Follow-up messages | All models |
| [MCP servers](/docs/agents/schema#add-an-mcp-server) | All models |
| [JSON output](/docs/agents/schema#typed-input-and-output) | All models |
| [Skills](/docs/agents/schema#add-a-codex-skill) | All models |
| Images in messages | All models |
