Install the plugin
Theonepatch CLI wires every coding agent on your machine in one step.
onepatch install detects Claude Code, Codex, and Cursor and installs the OnePatch plugin in each. Pass an agent name to set up only one, as in onepatch install cursor. Each plugin can also be installed by hand.
~/.codex/config.toml:
/mcp to sign in. In Codex, run codex mcp login onepatch. In Cursor, sign in under Settings, MCP.
Other MCP clients
Any MCP client that speaks streamable HTTP can connect without a plugin..vscode/mcp.json (VS Code), ~/.codeium/windsurf/mcp_config.json (Windsurf). Reload the window after editing. The first call opens an OAuth sign-in with your OnePatch account.
For a script, CI job, or unattended agent that can’t open a browser, use an API key. See MCP server.