The command bar
One field for everything. Type a verb and it suggests addresses from the captured flows, with the number of flows each would match. A number goes to that flow; any other text runs a find.
Reroute is an HTTP(S) debugging proxy for macOS. It captures your app's API calls, answers them from local files, sends them to other servers, changes them with JavaScript and exposes remote servers on local ports. You change the traffic, not the app or its server.
brew install --cask digikala/tap/reroute
macOS 13 or later. Free and open source, MIT.
And the verb is its command. Press ⌘K, type it, press Enter. A rule can be made from a captured flow in one command, and the live rules strip shows which tools are on.
capture findRecord HTTP and HTTPS traffic as flows, grouped by app, device and host. Search inside every header and body.
mockAnswer matching requests from a local file or folder, before the server behaviour exists.
redirectSend matching requests to a different scheme, host, port, path or query.
scriptChange requests and responses with JavaScript onRequest and onResponse functions.
expose pairForward a local port to a remote host with no certificate on the client, limited to devices paired by QR code.
trace diffSee the trace lines your app sends between the calls they led to, and compare two JSON documents side by side.
connect skipTrust the certificate, switch the system proxy, set up Android devices and iOS simulators. Skip pinned hosts.
delegateLet coding agents on this Mac read captured traffic and manage rules over MCP. Off until you switch it on.
One field for everything. Type a verb and it suggests addresses from the captured flows, with the number of flows each would match. A number goes to that flow; any other text runs a find.

A plain body, or a full HTTP message with its status line and headers, with an optional delay. The Mocks screen edits the file in place.

Move everything below a path and keep the rest. The Redirects screen shows a captured flow's address before and after the rule.

JavaScript runs in a sandbox with the reference beside the editor and a console for console.log. A failed script leaves the traffic unchanged.

One local port can serve one remote host, several chosen by a request header, or any host named in the request path. Pairing by QR code keeps it to your own devices.

Your app sends a line such as "new checkout is on", and it sits above the calls it led to, with its data as a JSON tree.

Added, removed and changed values with the path of each one. Member order is ignored and arrays are aligned item by item, so one inserted item shows as one addition.

Trust the root certificate, switch the macOS system proxy, set the proxy and certificate on Android over adb, install it on iOS simulators, and follow the steps for a real iPhone or iPad.

reroute is Reroute drawn in a terminal: the same frame, tools, commands and engine, on the same data folder, so it shares the rules, settings and look with the window. Ctrl stands in for ⌘, Alt for ⌥, and the lists take vim keys too.

It ships inside the app. Type install cli in either command bar, or press Install the reroute command on the Connect screen, and /usr/local/bin/reroute points at it.
reroute # the app in this terminal
reroute app # the window instead
reroute --port 8080 # listen there for this run
reroute --mock # generated traffic, nothing on the machine changes
Dark, light, dim, high contrast, paper and tide, or follow macOS. The screenshots on this page use the light theme; the window and the terminal share the chosen theme, and the dark one is a theme dark away.

An opt-in MCP endpoint at http://127.0.0.1:9191/mcp lets coding agents on this Mac read captured traffic and save rules. Rules an agent saves appear in the window at once. It listens only on localhost, refuses browser origins, and stays off until you type delegate on.
claude mcp add --transport http reroute http://127.0.0.1:9191/mcp
brew install --cask digikala/tap/reroute
Installs Reroute.app and puts the reroute command on your PATH.
Get the disk image for your Mac from the latest release, open it, drag Reroute.app to Applications and open it. The app is not notarized, so if macOS says it is damaged, run this once and open it again:
xattr -dr com.apple.quarantine /Applications/Reroute.app
The app checks this site for newer versions shortly after launch and every six hours, and downloads the update itself.
git clone https://github.com/digikala/reroute.git
cd $(basename digikala/reroute)
cargo run -p reroute-app # the window
cargo run -p reroute-tui # the terminal
cargo xtask bundle # release/Reroute.app
Rust stable, macOS 13 or later. Windows builds are paused for now.