Adding an external agent
An external agent is a coding agent you already run, such as Claude Code, Codex or Gemini CLI, set up once so you can hand it work from Harmony. It runs on a computer you choose, on its own login or plan, and appears in the @ menu of every chat.
Add an agent
- Open Profile → External agents and choose Add external agent. You can also choose Add an agent from the
@menu in any chat, or the + next to the search bar at the top of the app. - Search for the agent you use, for example Claude Code, Codex or Cursor CLI, and select it. Each entry shows the agent's logo and a one-line description.
- Check the Name and purpose. The name is what you type after
@in chat, so keep it short. The purpose reminds you and your team what you hand this agent. - Under Runs on, choose the computer. Harmony tells you whether it found the agent installed there, for example Found on This Mac: Codex 0.146.0.
- Optionally set a Working directory: the folder the agent starts in, such as your project's repository. Leave it empty to use the computer's home folder.
- Choose how the agent signs in under Authentication, for example Claude plan or ChatGPT plan. This only records your choice; the actual sign-in happens in the agent on your computer.
- Choose Add agent. The agent appears in your list with a status, and in the
@menu of every chat.
flowchart LR
Pick[Pick the agent]
Name[Name and purpose]
Where[Choose the computer]
Folder[Working directory]
Done[Agent appears in the @ menu]
Pick --> Name --> Where --> Folder --> Done
How it works
An external agent is a saved setup: which agent program to start, on which computer, in which folder. When you ask it in chat, Harmony sends your request to that computer and the runner starts the agent there. The agent uses whatever sign-in it already has on that computer, so if Claude Code works when you type claude in Terminal, it works from Harmony too.
You can add the same kind of agent more than once. For example, add Claude Code (web app) pointing at one repository and Claude Code (API) pointing at another, so each starts in the right folder.
What you'll see
Each agent in your list shows a status:
| Status | What it means |
|---|---|
| Ready | Its computer is online and the agent is installed there. |
| Computer offline | Its computer is not connected right now. |
| Not installed on its computer | The runner did not find that agent on the computer. Install it, then sign in once in a terminal. |
| No computer picked | Choose a computer in Manage. |
| Paused | You turned the agent off with its switch. It is hidden from the @ menu until you turn it back on. |
Active agents also appear as small logos next to the search bar at the top of the app.
Check its sign-in
An agent on your own computer uses the sign-in it already has there. To see whether it is signed in, choose Check its sign-in on its row. Harmony asks the agent's computer and shows the answer on the row:
| Line | What it means |
|---|---|
| Signed in (with the method, when the agent reports one) | Ready to work. |
| Not signed in | Open a terminal on that computer and sign in to the agent once. |
| Computer didn't answer | The computer is off or asleep. Harmony checks again when it is back. |
| Its sign-in shows on its first task | The agent can't report its sign-in in advance. |
An agent on a Harmony cloud computer needs no sign-in of its own: it reaches models through Harmony, with your own key first. See Model provider keys and local models.
Tasks from teammates
Teammates can put your agent on their tasks. It still works as you, on your plan, and its progress and result post on the task for everyone on it. Choose how that works under Tasks from teammates when you add or manage the agent:
| Option | What happens |
|---|---|
| Ask me (default) | A teammate's request waits for you to approve it. |
| Run automatically for tasks assigned to me | Starts without asking when the task is already assigned to you. |
| Never | Teammates don't see this agent when they assign tasks. |
A personal plan (such as Pro or Plus) may not allow work for other people. A team or business plan, or an API key, does. For an agent that works as whoever asks it, see Team agents.
Agents you can add
Harmony lists dozens of coding agents with their logos, including Claude Code, Codex, Gemini CLI, Cursor CLI, GitHub Copilot CLI, Cline, Roo Code, Kilo Code, OpenCode, Aider, Amp, Goose, Factory Droid, Qwen Code, Kimi CLI, Grok CLI, Junie, Warp, OpenHands, Devin and Jules. If yours is not listed, choose Another CLI agent and enter the command that starts it, or MCP server or API endpoint for agents you reach over the network.
Example
Priya Shah already uses Codex in a terminal with a ChatGPT plan. In Profile → External agents, Priya adds Codex, names it Codex, sets Runs on to the MacBook Priya paired, and sets the working directory to the team's checkout-service repository. Harmony shows Found on the MacBook with the Codex version. From then on, Priya types @Codex in the Checkout workstream to hand it work.
FAQs
The agent says Not installed. What do I do? Install the agent on that computer the way its maker describes, then open Terminal and sign in to it once. The runner checks again when it restarts; reconnect the computer with Pair again if the status does not update.
Can I change the folder or computer later? Yes. Choose Manage on the agent, change the settings, and choose Save.
Can I pause an agent without deleting it? Yes. Use the switch on the agent's row. Paused agents keep their settings.
Does Harmony store my agent's API key? No. Keys and sign-ins stay on the computer that runs the agent. See Privacy and security for external agents.
Can I add the same agent twice? Yes. Give each a different name and working directory, for example one per repository.