KageDocs
Development

Build from source

Set up Wails and build and package Kage with embedded Xray.

Kage client documentation

Kage uses Go, Wails v3, React, and embedded Xray. The Xray revision is pinned in go.mod.

Prerequisites

  • Go 1.27 or newer.
  • Bun.
  • Wails CLI v3.0.0. Keep the CLI, Go module, and @wailsio/runtime aligned.
  • Platform build tools listed below.
go install github.com/wailsapp/wails/v3/cmd/wails3@v3.0.0
PlatformBuild tools
macOSXcode Command Line Tools: xcode-select --install.
LinuxC toolchain, libgtk-4-dev, and libwebkitgtk-6.0-dev. pkexec is needed at runtime.
WindowsWebView2 and NSIS for installer packaging.

Clone and run

git clone https://github.com/Rigby-Foundation/Kage.git
cd Kage
make dev

Build and validate

make build
make test
make vet

make build writes to bin/. For a standalone frontend check:

cd frontend
bun run build

Desktop packages

CommandOutput
make dmgbin/Kage.dmg
make dmg-universalUniversal arm64 + amd64 DMG.
make linux-packagesDEB, RPM, and AppImage in bin/.
make package on WindowsExecutable and NSIS installer.

Android builds

Set ANDROID_NDK_HOME for the NDK. APK builds also need JDK 17 and the Android SDK through ANDROID_HOME.

wails3 task android:apk
wails3 task android:package
wails3 task android:run:device

These build a debug arm64 APK, release arm64 and x86_64 APKs, and a debug build on a connected device respectively. Release signing is configured through the release workflow’s ANDROID_KEYSTORE_* secrets.

Contributing changes

Frontend calls go through frontend/src/lib/backend.ts to services under internal/app/. Configuration generation and compatibility tests live in internal/xrayconfig/. Kage is licensed under MPL-2.0. See the contribution guide.

iOS builds

On macOS with Xcode installed, build an unsigned IPA. Sign it with the Packet Tunnel entitlement before installing.

wails3 task ios:ipa

On this page