> ## Documentation Index
> Fetch the complete documentation index at: https://docs.boxd.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Harnesses and models

> The harnesses the agents API can run, and the models and effort levels each one takes.

A harness is the program that runs a model as a coding agent, such as Claude Code. The agents API supports two for now:

| Harness | Name in code | Signs in with |
| - | - | - |
|   Claude Code | `claude-code` | Claude account or Anthropic API key |
|   Codex | `codex` | ChatGPT account or OpenAI API key |

Both come installed on every Linux machine. To use one, [connect it once](https://docs.boxd.sh/guides/agents/sign-in.md).

You can run any other harness on a machine yourself, but the agents API only drives these two. Want another one supported? Write to [contact@boxd.sh](mailto:contact@boxd.sh).

> [!NOTE]
>
> Starting `claude` or `codex` yourself in a machine's terminal still works, but boxd doesn't track those agents: they don't show up in the SDKs, the CLI or the console.

## Models and effort

`harnesses` lists what each harness on a machine takes. `agents` is `boxd.machines.agents`, as in the [overview](https://docs.boxd.sh/guides/agents).

```typescript TypeScript theme={"theme":"github-dark"}
for (const harness of await agents.harnesses("myapp")) {
  console.log(harness.id, harness.version, harness.models, harness.efforts);
}
```

```python Python theme={"theme":"github-dark"}
for harness in agents.harnesses("myapp"):
    print(harness.id, harness.version, harness.models, harness.efforts)
```

```bash CLI theme={"theme":"github-dark"}
boxd agent harnesses myapp
```

You choose the model and the effort when a [session](https://docs.boxd.sh/guides/agents/sessions.md) starts, and they stay the same for the whole session. Without them, the harness uses its own defaults.

```typescript TypeScript theme={"theme":"github-dark"}
await agents.run("myapp", {
  harness: "claude-code",
  text: "Review the last commit",
  model: "sonnet",
  effort: "high",
});
```

```python Python theme={"theme":"github-dark"}
agents.run(
    "myapp", "claude-code", "Review the last commit",
    model="sonnet", effort="high",
)
```

```bash CLI theme={"theme":"github-dark"}
boxd agent run myapp claude-code "Review the last commit" \
  --model sonnet --effort high
```

* **`model`** takes any of the harness's models. Claude Code also takes `opus`, `sonnet` and `haiku`, which stand for the newest model of each family.
* **`effort`** is how hard the agent thinks. A level the harness doesn't have is refused, with the list of the ones it does.

| Harness | Effort levels |
| - | - |
| Claude Code | `low`, `medium`, `high`, `xhigh`, `max` |
| Codex | `minimal`, `low`, `medium`, `high`, `xhigh` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.