Reroute

The gate your app's traffic runs through.

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.
The Reroute window in the light theme: sources on the left, the flow table with rule tags in the middle and the inspector showing a JSON response on the right

Every tool is a verb

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 find

Record HTTP and HTTPS traffic as flows, grouped by app, device and host. Search inside every header and body.

mock

Answer matching requests from a local file or folder, before the server behaviour exists.

redirect

Send matching requests to a different scheme, host, port, path or query.

script

Change requests and responses with JavaScript onRequest and onResponse functions.

expose pair

Forward a local port to a remote host with no certificate on the client, limited to devices paired by QR code.

trace diff

See the trace lines your app sends between the calls they led to, and compare two JSON documents side by side.

connect skip

Trust the certificate, switch the system proxy, set up Android devices and iOS simulators. Skip pinned hosts.

delegate

Let coding agents on this Mac read captured traffic and manage rules over MCP. Off until you switch it on.

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.

The command bar open on a partly typed mock command, suggesting addresses from captured flows

Mock from a file

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.

The Mocks screen with a mock rule and its HTTP message in the editor

Redirect and try it

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

The Redirects screen with the Send it to table and the Try it preview

Scripts with a console

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

The Scripting screen with the script editor and the reference rail

Expose a port, pair a phone

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.

The Exposed ports screen with a port rule and the pairing QR code

Trace lines between the calls

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.

The Trace screen listing trace lines between flows, one selected with its data as a JSON tree

Diff two answers

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.

The Diff screen comparing two JSON documents side by side with the changes marked

Connect a Mac, a phone, a simulator

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.

The Connect screen with the cards for this Mac, Android, iOS and agents

The same app in a terminal

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.

Reroute in a terminal: the flow table, the live rules strip and the inspector drawn with box characters

On your PATH in one command

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

Six themes, both ways

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.

The capture view in the dark theme

Let an agent look

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

Install

Homebrew

brew install --cask digikala/tap/reroute

Installs Reroute.app and puts the reroute command on your PATH.

Download

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.

Build from source

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.

Change log

From the GitHub releases. The app reads the same list at api/latest.

Loading…