# Custom Agent

Turn any local command into a coding agent Korey can delegate tasks to.

The Custom Agent setting turns any local command into a delegate target. If your team uses Opencode, Pi, or a wrapper script of your own, Korey can hand tasks to it the same way it hands tasks to Claude Code or Codex.

## What you can do

- Register any local CLI command as a coding agent.
- Delegate any Korey task to it with the full task prompt attached.

## Setup

1. Open **Settings → Connectors** and find **Custom Agent** under **Local Coding Agents**.
2. Set the command Korey should use, for example `opencode` or the path to your own script.

## Using it

Choose your agent from the **Delegate to agent** menu on any task. Korey pairs your command with the full task prompt and copies the result, ready to paste into a terminal.