openwrt-repo

Meshtastic OpenWRT Repo

Home to our APK and OPKG repositories for easily installing Meshtastic on OpenWRT-supported routers.

If you’re looking for the package source code, check out meshtastic/openwrt.

Supported OpenWRT versions

How to use

This repository is currently hosted on GitHub Pages. If you have problems accessing this repo or access to GitHub may be blocked in your country, skip to the Add repository to your OpenWrt device (jsDelivr) sections. Both repositories use HTTPS protocol and require one of the SSL support packages to be installed on your router.

OPKG

Used in stable versions of OpenWRT.

Supported versions:

Add OPKG repository to your OpenWRT device (GitHub)
opkg update
opkg install wget-ssl
wget -O /tmp/meshtastic-ipk.pub https://openwrt.meshtastic.org/meshtastic-ipk.pub
opkg-key add /tmp/meshtastic-ipk.pub && rm /tmp/meshtastic-ipk.pub
sed -i '/meshtastic/d' /etc/opkg/customfeeds.conf
ARCH=$( . /etc/openwrt_release; echo "$DISTRIB_ARCH" )
WRT_VER=$( . /etc/openwrt_release; echo "${DISTRIB_RELEASE%%-*}" | cut -d. -f1-2 )
echo "src/gz meshtastic https://openwrt.meshtastic.org/openwrt-${WRT_VER}/${ARCH}" >> /etc/opkg/customfeeds.conf
opkg update
Add OPKG repository to your OpenWRT device (jsDelivr)

Only use in regions where GitHub is blocked 🇨🇳

opkg update
opkg install wget-ssl
wget -O /tmp/meshtastic-ipk.pub https://cdn.jsdelivr.net/gh/meshtastic/openwrt-repo/meshtastic-ipk.pub
opkg-key add /tmp/meshtastic-ipk.pub && rm /tmp/meshtastic-ipk.pub
sed -i '/meshtastic/d' /etc/opkg/customfeeds.conf
ARCH=$( . /etc/openwrt_release; echo "$DISTRIB_ARCH" )
WRT_VER=$( . /etc/openwrt_release; echo "${DISTRIB_RELEASE%%-*}" | cut -d. -f1-2 )
echo "src/gz meshtastic https://cdn.jsdelivr.net/gh/meshtastic/openwrt-repo/openwrt-${WRT_VER}/${ARCH}" >> /etc/opkg/customfeeds.conf
opkg update

Please note that there may be delay in jsDelivr CDN cache updates compared to the repo at GitHub which may cause opkg to pull older files and/or complain about wrong signature.


APK

Used in SNAPSHOT (master) builds. For stable OpenWRT versions see OPKG above.

Add APK repository to your OpenWRT device (GitHub)
echo "https://openwrt.meshtastic.org/main/$(cat /etc/apk/arch)/packages.adb" > /etc/apk/repositories.d/meshtastic.list
wget https://openwrt.meshtastic.org/meshtastic-apk.pem -O /etc/apk/keys/meshtastic-apk.pem
apk update
Add APK repository to your OpenWRT device (jsDelivr)

Only use in regions where GitHub is blocked 🇨🇳

echo "https://cdn.jsdelivr.net/gh/meshtastic/openwrt-repo/main/$(cat /etc/apk/arch)/packages.adb" > /etc/apk/repositories.d/meshtastic.list
wget https://cdn.jsdelivr.net/gh/meshtastic/openwrt-repo/meshtastic-apk.pem -O /etc/apk/keys/meshtastic-apk.pem
apk update

Please note that there may be delay in jsDelivr CDN cache updates compared to the repo at GitHub which may cause apk to pull older files and/or complain about wrong signature.