Skip to main content

URL Scheme

URL schemes open Loon from a browser or another app and perform a specified action.

Common actions

ActionURL
Turn VPN onloon://on
Turn VPN offloon://off
Edit the configuration fileloon://editconfig
Switch to global direct modeloon://flowmodel=direct
Switch to rule-based modeloon://flowmodel=filter
Switch to global proxy modeloon://flowmodel=proxy
Use TUN Onlyloon://proxymode=tun
Use HTTP Proxy & TUNloon://proxymode=mix
Update all subscriptionsloon://update?sub=all

Import resources

URL-encode the resource URL, then replace encode(url) in the table below.

ResourceURL
Remote configurationloon://import?sub=encode(url)
Node subscriptionloon://import?nodelist=encode(url)
Rule subscriptionloon://import?rules=encode(url)
Pluginloon://import?plugin=encode(url)
Icon setloon://import?iconset=encode(url)
GeoIP databaseloon://import?geoip=encode(url)
Parserloon://import?parser=encode(url)

If a web page cannot use a custom scheme directly, replace loon:// with:

https://www.nsloon.com/openloon/

For example:

loon://on
https://www.nsloon.com/openloon/on

Both links perform the same action.