Skip to content
omp
Docs ↗ ↗
docs · Editors (ACP)▾
Documentation
Get started
  • Overview
  • Install & update
  • Quickstart
  • How omp works
  • Coming from other agents
  • Best practices
Using omp
  • Using omp
  • Plan mode
  • Goals & loops
  • Tern
  • Voice
Sessions & context
  • Sessions
  • Session tree
  • Context & compaction
  • Memory
Models & accounts
  • Providers
  • Models & roles
  • Speed, usage & cost
  • Custom & local models
  • Prewalk
Tools & capabilities
  • Files & shell
  • Editing code
  • Code intelligence & debugging
  • Web & browser
  • Desktop control
  • Code review
  • Commits & git
  • GitHub & GitLab
Agents & collaboration
  • Subagents
  • Advisor
  • Vibe mode
  • Collab & streaming
Safety & privacy
  • Tool approvals
  • What leaves your machine
  • Credentials & secrets
  • Security scans
Customize
  • Settings
  • Ways to extend omp
  • Context files
  • Skills
  • Prompt templates & keywords
  • Stream rules
  • MCP servers
  • Plugins & marketplaces
  • Themes & status line
Build & integrate
  • Authoring extensions
  • Authoring subagents
  • Authoring MCP servers
  • Headless & CI
  • SDK
  • RPC
  • Editors (ACP)
Reference & help
  • CLI reference
  • Slash commands
  • Keybindings
  • Environment variables
  • Built-in tools
  • Session format
  • Troubleshooting
Documentation
Get started
  • Overview
  • Install & update
  • Quickstart
  • How omp works
  • Coming from other agents
  • Best practices
Using omp
  • Using omp
  • Plan mode
  • Goals & loops
  • Tern
  • Voice
Sessions & context
  • Sessions
  • Session tree
  • Context & compaction
  • Memory
Models & accounts
  • Providers
  • Models & roles
  • Speed, usage & cost
  • Custom & local models
  • Prewalk
Tools & capabilities
  • Files & shell
  • Editing code
  • Code intelligence & debugging
  • Web & browser
  • Desktop control
  • Code review
  • Commits & git
  • GitHub & GitLab
Agents & collaboration
  • Subagents
  • Advisor
  • Vibe mode
  • Collab & streaming
Safety & privacy
  • Tool approvals
  • What leaves your machine
  • Credentials & secrets
  • Security scans
Customize
  • Settings
  • Ways to extend omp
  • Context files
  • Skills
  • Prompt templates & keywords
  • Stream rules
  • MCP servers
  • Plugins & marketplaces
  • Themes & status line
Build & integrate
  • Authoring extensions
  • Authoring subagents
  • Authoring MCP servers
  • Headless & CI
  • SDK
  • RPC
  • Editors (ACP)
Reference & help
  • CLI reference
  • Slash commands
  • Keybindings
  • Environment variables
  • Built-in tools
  • Session format
  • Troubleshooting
loading…
§ 09Build & integrate← RPCCLI reference →

Editors (ACP)

Add omp to Zed, JetBrains IDEs, or any other ACP editor and work with it in the editor's agent panel.

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

  1. Install omp on the machine where the editor runs your project.
  2. Sign in to a model provider. Run omp in a terminal, type /login, and finish the sign-in. See Providers.
  3. 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:

FieldValue
Commandomp, or the full path from command -v omp
Argumentsacp

Add omp to Zed

  1. Open the command palette and run agent: open settings.
  2. Go to External Agents, click Add Agent, and choose Add Custom Agent. Zed opens your settings file.
  3. Add an omp entry under agent_servers:
{
  "agent_servers": {
    "omp": {
      "type": "custom",
      "command": "omp",
      "args": ["acp"],
      "env": {}
    }
  }
}
  1. 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.

  1. Open the AI Chat tool window.
  2. Click the menu button in its upper-right corner and choose Add Custom Agent. The IDE creates acp.json and opens it.
  3. Add omp, using the full path to the executable:
{
  "agent_servers": {
    "omp": {
      "command": "/full/path/to/omp",
      "args": ["acp"],
      "env": {}
    }
  }
}
  1. 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 supportsomp does this
File accessReads files through the editor, so it sees unsaved changes, and writes through the editor, so you see the edits in open buffers.
TerminalsRuns shell commands in the editor's terminal.
Images and attached contextAccepts images and files you attach to a message.
Session historyLists 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.

ControlChoices
ModeDefault, or Plan to investigate and write a plan before any file changes.
ModelEvery model omp can use with your current sign-ins.
ThinkingOff, 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

SymptomFix
The editor says the command was not foundUse 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 answersomp 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 ModelThe list contains only models your sign-ins unlock. Sign in to that provider, then start a new thread.
omp does not see unsaved changesThe editor does not give agents file access. Save the file first.
A permission prompt never appears and the action failsThe editor did not answer the request. Update the editor, or set an approval mode as shown above.
MCP tools are missingConfigure 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 waitsThat 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 otherIn 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