The Agent Client Protocol (ACP) lets an editor host a coding agent in its own panel. The editor shows the conversation, the diffs, and the permission prompts. omp does the work, with the models, credentials, settings, and skills you already use in the terminal.
There is nothing to install besides omp. The editor starts omp for you as a background process each time you open a thread. You do not run a server or open a port.
Use this when you want omp next to your code in an editor. For omp's own interface, run omp in a terminal. To drive omp from your own program, see RPC.
Before you start
- Install omp on the machine where the editor runs your project.
- Sign in to a model provider. Run
ompin a terminal, type/login, and finish the sign-in. See Providers. - Find the full path to omp. Editors launched from the dock or start menu often do not see your shell's
PATH.
command -v omp
Every editor needs the same two values:
| Field | Value |
|---|---|
| Command | omp, or the full path from command -v omp |
| Arguments | acp |
Add omp to Zed
- Open the command palette and run agent: open settings.
- Go to External Agents, click Add Agent, and choose Add Custom Agent. Zed opens your settings file.
- Add an
ompentry underagent_servers:
{
"agent_servers": {
"omp": {
"type": "custom",
"command": "omp",
"args": ["acp"],
"env": {}
}
}
}
- Open the Agent Panel, start a new thread, and choose omp.
If Zed reports that the command was not found, replace "omp" with the full path. To pass a provider API key only to omp, put it in env.
Add omp to a JetBrains IDE
JetBrains IDEs with AI Assistant read custom agents from ~/.jetbrains/acp.json.
- Open the AI Chat tool window.
- Click the menu button in its upper-right corner and choose Add Custom Agent. The IDE creates
acp.jsonand opens it. - Add omp, using the full path to the executable:
{
"agent_servers": {
"omp": {
"command": "/full/path/to/omp",
"args": ["acp"],
"env": {}
}
}
}
- Pick omp from the agent list in AI Chat.
JetBrains documents the file's other options in Agent Client Protocol (ACP).
Add omp to another editor
Any ACP client works the same way: add a custom agent whose command is omp and whose only argument is acp. The protocol site keeps a list of clients.
When the editor asks how to sign in, omp offers two choices:
- Use existing local credentials: use the sign-ins and API keys omp already has. Choose this if you followed the steps above.
- Set up omp in terminal: open omp's own sign-in flow in a terminal. Offered only by editors that can launch one.
The model keys you configured for the editor's built-in assistant are not shared with omp. omp uses its own.
Work in a thread
Type a request the way you would in the terminal:
Rename issueToken to mintToken across this project, update every caller, and run the tests for the auth package.
omp streams its answer into the panel. What happens around it depends on what the editor supports:
| If the editor supports | omp does this |
|---|---|
| File access | Reads files through the editor, so it sees unsaved changes, and writes through the editor, so you see the edits in open buffers. |
| Terminals | Runs shell commands in the editor's terminal. |
| Images and attached context | Accepts images and files you attach to a message. |
| Session history | Lists your earlier threads, and lets you reopen, fork, or close them. |
Without file access, omp reads and writes the files on disk, so save your buffers first. Without terminals, omp runs commands itself and reports the output.
A thread is a normal omp session. You can pick it up later in the terminal with omp --resume. See Sessions.
Switch mode, model, and thinking level
omp gives the editor three controls. Where they appear depends on the editor.
| Control | Choices |
|---|---|
| Mode | Default, or Plan to investigate and write a plan before any file changes. |
| Model | Every model omp can use with your current sign-ins. |
| Thinking | Off, Auto, or a level the selected model supports. |
Choose Plan from the mode control to start in plan mode. omp shows you the finished plan and waits for your approval before it edits anything. See Plan mode.
Use slash commands
The editor's command menu lists the omp slash commands that work without the terminal UI, such as /compact and /mcp, along with your skills and custom commands. Commands that open a terminal screen, such as /login and /quit, are not listed. Sign in from a terminal instead.
Approve what omp does
In an editor, omp asks before it does the things that are hardest to undo:
- running a shell command;
- deleting a file;
- moving or renaming a file, including inside a larger edit.
The editor shows the request with four answers: Allow once, Always allow, Reject, and Always reject. An "always" answer lasts for the current thread only. Ordinary edits to file contents do not ask.
If you reject a request, close the prompt, or the editor cannot show it, the action does not run.
To stop the prompts for a project you trust, opt in explicitly. Either set the approval mode in your settings:
tools:
approvalMode: yolo
or add a flag to the editor's launch arguments:
{
"command": "omp",
"args": ["acp", "--approval-mode", "yolo"]
}
A tool you have set to prompt or deny in tools.approval still prompts or is blocked.
To be asked about more than the list above, choose a stricter mode such as always-ask. Those extra questions need an editor that can show omp's approval form; in an editor that cannot, the tool call is refused. See Tool approvals.
Settings and MCP servers
omp reads the same settings in an editor as in the terminal: your global settings, plus the project settings of the folder the thread works in. Any launch flag you add after acp applies to every thread from that editor, for example --model or --config extra.yml.
MCP servers are the exception. In an ACP thread the editor decides which MCP servers omp gets, and omp does not load the servers from its own MCP configuration. Add the server in the editor's settings and start a new thread. See MCP servers.
Troubleshooting
| Symptom | Fix |
|---|---|
| The editor says the command was not found | Use the full path printed by command -v omp as the command. For a remote project, install and sign in to omp on the remote machine. |
| The thread opens but no model answers | omp has no usable sign-in. Run omp in a terminal, type /login, then start a new thread. API keys set only in your shell profile may not reach an editor started from the dock; put them in the agent's env. |
| The model you want is missing from Model | The list contains only models your sign-ins unlock. Sign in to that provider, then start a new thread. |
| omp does not see unsaved changes | The editor does not give agents file access. Save the file first. |
| A permission prompt never appears and the action fails | The editor did not answer the request. Update the editor, or set an approval mode as shown above. |
| MCP tools are missing | Configure the server in the editor, not only in omp, then start a new thread. |
Running omp acp in a terminal prints omp acp: ACP server speaking JSON-RPC over stdio. and waits | That is expected. The command is meant to be started by an editor, not by hand. Press Ctrl+C. |
| You need to see what the editor and omp said to each other | In Zed, run dev: open acp logs. omp writes its own logs under ~/.omp/logs/. |
For people building an ACP client
omp acp speaks ACP over stdio: JSON-RPC, one message per line. Keep stdout for the protocol and read diagnostics from stderr. omp --mode acp is the same thing.
omp supports creating, listing, loading, resuming, forking, and closing sessions. It accepts images and embedded context in prompts, and MCP servers over stdio, HTTP, and SSE. It uses the client's file system and terminal capabilities when the client advertises them, and it requests permission through the standard permission request. Message schemas are in the ACP specification.
Related
- Tool approvals: approval modes and per-tool policies
- Plan mode: what the Plan mode does
- Providers: sign in before your first thread
- RPC: omp's own protocol, for hosts that are not editors