ngrok — Omarchy bar widget
Shows active ngrok tunnels in the bar by polling the
local ngrok agent's own API at http://127.0.0.1:4040/api/tunnels — the
same interface ngrok's own web inspector uses. Click the pill to see each
tunnel's public URL, copy one to the clipboard, or jump to the local
inspector.
This widget only reads tunnel metadata already exposed by the local agent — it never touches your ngrok auth token or account.
Prerequisites
A local ngrok agent with at least one tunnel running, e.g.:
ngrok http 3000
The bar pill shows "ngrok" with no count when nothing is running, and "ngrok · N" once N tunnels are active.
Install
omarchy plugin add https://github.com/ejames-dev/ngrok-omarchy-plugin --enable
Uninstall
omarchy plugin remove io.github.ejames-dev.ngrok
Security notes
- Makes a single
GET http://127.0.0.1:4040/api/tunnelsrequest on a 2-second timeout — loopback-only, read-only, no credentials. - Copying a tunnel URL runs
wl-copywith the URL passed through a single-quoted, escaped argument (never interpolated unescaped into a shell string). - "Open inspector" launches
http://127.0.0.1:4040(ngrok's own local inspector) via the same browser-launch helper other Omarchy plugins use. - No external dependencies beyond
curlandwl-copy, both of which ship with Omarchy.