---
title: "Add a custom agent"
url: "/docs/guides/custom-agent"
description: "Add your own agent command, such as Claude with a model flag, and make it the default"
---

# Add a custom agent

A custom agent is a command of your own in the Agent section's **▾** list, next to the built-in ones. It's how you pin a model, an effort level, a different binary, or a wrapper script you use to start Claude.

Use this guide when you start Claude with the same flags every time, or use an agent 10nx doesn't list.

## Before you start

Check the command works in Terminal first, for example:

```bash
claude --model opus
```

## Add it in Settings

1. Open Settings › **Agents**.
2. Under **Custom agents**, add a row: an **Id** (letters, digits, dashes), the **Command**, a **Label** for the menu, and **Is Claude** if the command starts Claude Code.
3. To make it what **+** starts, pick it as the **Default agent**.

## Or add it to your settings file

In `~/.10nx/settings.toml`:

```toml
[agents]
default = "opus"

[[agents.custom]]
id = "opus"
command = "claude --model opus"
label = "Claude (Opus)"
is_claude = true

[[agents.custom]]
id = "aider"
command = "aider --no-auto-commits"
label = "Aider"
```

Agents are yours, not the repo's, so they're only read from your user file.

## What "Is Claude" changes

Set `is_claude = true` for any command that ends up running Claude Code, even through a wrapper. 10nx then connects the tab to the editor (Claude sees your open file and selection, and **Cmd+Opt+K** sends it lines), loads plugins for teams, and treats the tab as a Claude session in the worktree strip. Leave it off for anything else.

## Rules

- An id that matches a built-in (`claude`, `claude -r`, `claude -c`, `codex`, `shell`) or an earlier custom agent is skipped.
- An entry with no command is skipped.
- A `default` that names no agent falls back to `claude`.
- `claude_executable_path` doesn't change custom agents: their command runs as you wrote it.

## Check it worked

Open the **▾** beside the Agent section's **+**. Your agent is in the list, marked **Default** if you made it one. Pick it: the new tab's title shows the label.

## Next steps

- [Agents and terminals](../concepts/agents-and-terminals.md)
- [Settings reference](../reference/settings.md#agents)
- [Run several Claude sessions at once](parallel-sessions.md)
