Your own team of AI bots in one self-hosted binary: spaces, every account you have, handoffs, approvals and routines. Open-source, self-hosted alternative to Grok Bot, Claude Duet and OpenAI dots. Rust + React.
Rust ai-agentsai-assistantai-botautomationbotbots-teamchatbotclaude-duetgrokgrok-botgrok-bot-alternativeharnessllmmulti-agentopenai-dotsopenbotpersonal-agentrustself-hostedselfhosted-ai
Mac release: publish kwant_universal.dmg on a mac-v* tag, link Download for Mac to it
Pixel (kwant bot)282b95cb77c6
diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.ymlindex 9efb90e7..23453725 100644--- a/.github/workflows/mac.yml+++ b/.github/workflows/mac.yml@@ -1,28 +1,67 @@name: mac-# Builds kwant for Mac: a universal (Apple silicon + Intel), ad-hoc-signed .dmg as a workflow-# artifact. No release and no tag: this only proves the app builds and starts.+# Builds kwant for Mac: a universal (Apple silicon + Intel), ad-hoc-signed .dmg.+# On pull requests and manual runs it is only a workflow artifact, proving the app builds and starts.+# Pushing a mac-v* tag (mac-v0.1.0, or mac-v0.2.0-rc.1 for a prerelease) also publishes a GitHub+# release with the .dmg as kwant_universal.dmg, which the site's "Download for Mac" links to via+# releases/latest/download/kwant_universal.dmg. The tag must match apps/mac's version.on:workflow_dispatch:pull_request:paths:- "apps/mac/**"- ".github/workflows/mac.yml"+ push:+ tags:+ - "mac-v*"permissions:contents: readconcurrency:group: mac-${{ github.ref }}- cancel-in-progress: true+ # never cancel a release half-way+ cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tags/') }}env:CARGO_TERM_COLOR: alwaysCARGO_INCREMENTAL: 0jobs:+ # A tag that doesn't match the app's version fails here, before the 20-minute Mac build.+ version:+ name: version+ if: startsWith(github.ref, 'refs/tags/mac-v')+ runs-on: ubuntu-latest+ timeout-minutes: 5+ outputs:+ version: ${{ steps.check.outputs.version }}+ prerelease: ${{ steps.check.outputs.prerelease }}+ steps:+ - uses: actions/checkout@v4+ - name: Tag matches apps/mac version+ id: check+ env:+ TAG: ${{ github.ref_name }}+ run: |+ set -euo pipefail+ version="${TAG#mac-v}"+ base="${version%%-*}"+ cargo=$(sed -n 's/^version = "\(.*\)"/\1/p' apps/mac/Cargo.toml | head -1)+ tauri=$(python3 -c 'import json;print(json.load(open("apps/mac/tauri.conf.json"))["version"])')+ echo "tag $TAG -> $version (base $base); Cargo.toml $cargo; tauri.conf.json $tauri"+ if [ "$base" != "$cargo" ] || [ "$base" != "$tauri" ]; then+ echo "::error::tag $TAG doesn't match apps/mac version $cargo (tauri.conf.json $tauri)"+ exit 1+ fi+ echo "version=$version" >> "$GITHUB_OUTPUT"+ if [ "$version" != "$base" ]; then echo "prerelease=true"; else echo "prerelease=false"; fi >> "$GITHUB_OUTPUT"+dmg:name: dmg+ needs: version+ # runs on PRs and manual runs (version skipped), and on tags only after the version check passed+ if: ${{ !failure() && !cancelled() }}runs-on: macos-14timeout-minutes: 60steps:@@ -99,3 +138,49 @@ jobs:path: ${{ steps.bundle.outputs.dmg }}if-no-files-found: errorretention-days: 14++ release:+ name: release+ needs: [version, dmg]+ if: startsWith(github.ref, 'refs/tags/mac-v')+ runs-on: ubuntu-latest+ timeout-minutes: 10+ # the only job that can write: it creates the release and uploads the .dmg+ permissions:+ contents: write+ steps:+ - uses: actions/download-artifact@v4+ with:+ path: dist+ - name: Publish the release+ env:+ GH_TOKEN: ${{ github.token }}+ TAG: ${{ github.ref_name }}+ VERSION: ${{ needs.version.outputs.version }}+ PRERELEASE: ${{ needs.version.outputs.prerelease }}+ run: |+ set -euo pipefail+ dmg=$(find dist -name '*.dmg' | head -1)+ test -n "$dmg"+ cp "$dmg" kwant_universal.dmg+ sha256sum kwant_universal.dmg > kwant_universal.dmg.sha256+ cat > notes.md <<NOTES+ kwant for Mac $VERSION: one universal app for Apple silicon and Intel Macs (macOS 11 or later).++ **Install:** open \`kwant_universal.dmg\` and drag kwant to Applications.++ **First open:** the app is not notarized by Apple yet, so macOS blocks it the first time.+ 1. Open kwant from Applications. macOS says it can't check it for malicious software. Click **Done** (or **OK**).+ 2. Open **System Settings → Privacy & Security**, scroll down to the message about kwant and click **Open Anyway**.+ 3. Confirm with **Open Anyway** and your password. From then on it opens normally.++ The app runs kwant on your Mac with the same data folder as \`kwnt serve\` (\`~/.kwnt\`) and stays in the menu bar when you close the window.++ SHA-256: \`$(cut -d' ' -f1 kwant_universal.dmg.sha256)\`+ NOTES+ sed -i 's/^ //' notes.md+ flags=()+ if [ "$PRERELEASE" = "true" ]; then flags+=(--prerelease); else flags+=(--latest); fi+ gh release create "$TAG" -R "$GITHUB_REPOSITORY" --verify-tag \+ --title "kwant for Mac $VERSION" --notes-file notes.md "${flags[@]}" \+ kwant_universal.dmg kwant_universal.dmg.sha256diff --git a/README.md b/README.mdindex 82a7b35c..1a0bde5c 100644--- a/README.md+++ b/README.md@@ -12,7 +12,7 @@ It's written in Rust (Tokio, Axum, SQLite) with a React web app embedded in the-**Website and docs: [kwant.si](https://kwant.si)** · **[Download for Mac](https://github.com/alexsergivan/kwant/releases/latest)**+**Website and docs: [kwant.si](https://kwant.si)** · **[Download for Mac](https://github.com/alexsergivan/kwant/releases/latest/download/kwant_universal.dmg)**---@@ -85,7 +85,7 @@ make build # web app + cargo build --release### On a Mac: the app-[Download the Mac app](https://github.com/alexsergivan/kwant/releases/latest) (a universal `.dmg` for Apple silicon and Intel) and drag kwant to Applications. It runs its own kwant on your Mac, with the same `~/.kwnt` data folder as `kwnt serve`, and stays in the menu bar when you close the window. Build it yourself from [`apps/mac`](apps/mac/README.md).+[Download the Mac app](https://github.com/alexsergivan/kwant/releases/latest/download/kwant_universal.dmg) (a universal `.dmg` for Apple silicon and Intel) and drag kwant to Applications. It runs its own kwant on your Mac, with the same `~/.kwnt` data folder as `kwnt serve`, and stays in the menu bar when you close the window. Build it yourself from [`apps/mac`](apps/mac/README.md).The app is signed ad hoc, not notarized by Apple, so macOS stops it the first time. Click **Done**, open **System Settings → Privacy & Security**, scroll down and click **Open Anyway**. On macOS 14 or earlier, right-click the app and choose **Open** instead.diff --git a/frontend/src/pwa.ts b/frontend/src/pwa.tsindex 36195b46..757dfab5 100644--- a/frontend/src/pwa.ts+++ b/frontend/src/pwa.ts@@ -42,8 +42,8 @@ export function installHintKind(s: {export const INSTALL_HINT_DISMISSED_KEY = 'kwnt.installHint.dismissed';-/** Where the Mac app is downloaded: the newest release, or the releases list until there is one. */-export const MAC_DOWNLOAD_URL = 'https://github.com/alexsergivan/kwant/releases/latest';+/** The Mac app's .dmg in the newest release (published by the mac workflow on a mac-v* tag). */+export const MAC_DOWNLOAD_URL = 'https://github.com/alexsergivan/kwant/releases/latest/download/kwant_universal.dmg';/** Safari on a Mac, where installing is File, then Add to Dock. Not iPad, not Chrome or Firefox. */export function isMacSafari(nav: Pick<Navigator, 'userAgent' | 'maxTouchPoints'>): boolean {diff --git a/frontend/tests/pwa.test.mjs b/frontend/tests/pwa.test.mjsindex 4ff408d7..6c600fca 100644--- a/frontend/tests/pwa.test.mjs+++ b/frontend/tests/pwa.test.mjs@@ -277,7 +277,7 @@ test('the install offer is kept from page load and cleared once used or installe});test('the Mac download goes to the newest release', () => {- assert.equal(pwa.MAC_DOWNLOAD_URL, 'https://github.com/alexsergivan/kwant/releases/latest');+ assert.equal(pwa.MAC_DOWNLOAD_URL, 'https://github.com/alexsergivan/kwant/releases/latest/download/kwant_universal.dmg');});test('standalone means the installed app, on iOS or Android', () => {diff --git a/site-src/docs-install.html b/site-src/docs-install.htmlindex aeab38c7..d88ff6d8 100644--- a/site-src/docs-install.html+++ b/site-src/docs-install.html@@ -16,7 +16,7 @@ card_art: avatar:devops<p>The binary embeds the web app, so the machine that runs it needs no Node.js. Docker is only needed for VM mode and the bots' shared browser (see <a href="browser.html">Browser</a>).</p><h2 id="mac">The Mac app</h2>-<p><a href="https://github.com/alexsergivan/kwant/releases/latest" rel="noopener">Download the Mac app</a> (a universal <code>.dmg</code> for Apple silicon and Intel), open it and drag kwant to Applications. It runs its own kwant bots on your Mac, with the same data folder as <code>kwnt serve</code> (<code>~/.kwnt</code>), and keeps running in the menu bar when you close the window.</p>+<p><a href="https://github.com/alexsergivan/kwant/releases/latest/download/kwant_universal.dmg" rel="noopener">Download the Mac app</a> (a universal <code>.dmg</code> for Apple silicon and Intel), open it and drag kwant to Applications. It runs its own kwant bots on your Mac, with the same data folder as <code>kwnt serve</code> (<code>~/.kwnt</code>), and keeps running in the menu bar when you close the window.</p><p class="note warn">The app is signed ad hoc, not notarized by Apple, so macOS stops it the first time with “Apple could not verify…”. Click Done, open <b>System Settings › Privacy & Security</b>, scroll down and click <b>Open Anyway</b> next to kwant. On macOS 14 or earlier, right-click the app and choose <b>Open</b> instead. After that it opens normally.</p><h2 id="app">Install the web app</h2>diff --git a/site-src/index.html b/site-src/index.htmlindex 2dfd71ef..7ca73815 100644--- a/site-src/index.html+++ b/site-src/index.html@@ -16,7 +16,7 @@ card_art: scene<a class="btn btn-soft" href="https://github.com/alexsergivan/kwant" rel="noopener">View on GitHub</a></div>{{install:hero}}- <p class="mac-dl">On a Mac? <a href="https://github.com/alexsergivan/kwant/releases/latest" rel="noopener">Download the Mac app</a>. <a href="docs/install.html#mac">First open</a> needs one extra step.</p>+ <p class="mac-dl">On a Mac? <a href="https://github.com/alexsergivan/kwant/releases/latest/download/kwant_universal.dmg" rel="noopener">Download the Mac app</a>. <a href="docs/install.html#mac">First open</a> needs one extra step.</p></div><figure class="crt hero-crt"><div class="crt-screen">@@ -299,7 +299,7 @@ card_art: scene<div class="cta"><a class="btn btn-violet" href="docs/quickstart.html">Read the quickstart</a><a class="btn btn-soft" href="docs/install.html">Run it on a server</a>- <a class="btn btn-soft" href="https://github.com/alexsergivan/kwant/releases/latest" rel="noopener">Download for Mac</a>+ <a class="btn btn-soft" href="https://github.com/alexsergivan/kwant/releases/latest/download/kwant_universal.dmg" rel="noopener">Download for Mac</a></div><p class="mac-dl">The Mac app isn't notarized by Apple yet, so macOS stops it the first time. <a href="docs/install.html#mac">How to open it</a>.</p></div>diff --git a/site/docs/install.html b/site/docs/install.htmlindex 114bfa07..0b6cedfe 100644--- a/site/docs/install.html+++ b/site/docs/install.html@@ -20,7 +20,7 @@<meta property="og:image:height" content="630"><meta property="og:image:alt" content="Install & run: On your own computer, on a VPS with systemd, or with Docker Compose."><meta property="article:published_time" content="2026-10-22">-<meta property="article:modified_time" content="2026-10-24">+<meta property="article:modified_time" content="2026-10-25"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="Self-host AI agents on a VPS or Docker · kwant"><meta name="twitter:description" content="Build the kwnt binary and run your AI bots on your own computer, on a VPS with systemd, or with Docker Compose behind an HTTPS reverse proxy.">@@ -65,7 +65,7 @@<p>The binary embeds the web app, so the machine that runs it needs no Node.js. Docker is only needed for VM mode and the bots' shared browser (see <a href="browser.html">Browser</a>).</p><h2 id="mac">The Mac app</h2>-<p><a href="https://github.com/alexsergivan/kwant/releases/latest" rel="noopener">Download the Mac app</a> (a universal <code>.dmg</code> for Apple silicon and Intel), open it and drag kwant to Applications. It runs its own kwant bots on your Mac, with the same data folder as <code>kwnt serve</code> (<code>~/.kwnt</code>), and keeps running in the menu bar when you close the window.</p>+<p><a href="https://github.com/alexsergivan/kwant/releases/latest/download/kwant_universal.dmg" rel="noopener">Download the Mac app</a> (a universal <code>.dmg</code> for Apple silicon and Intel), open it and drag kwant to Applications. It runs its own kwant bots on your Mac, with the same data folder as <code>kwnt serve</code> (<code>~/.kwnt</code>), and keeps running in the menu bar when you close the window.</p><p class="note warn">The app is signed ad hoc, not notarized by Apple, so macOS stops it the first time with “Apple could not verify…”. Click Done, open <b>System Settings › Privacy & Security</b>, scroll down and click <b>Open Anyway</b> next to kwant. On macOS 14 or earlier, right-click the app and choose <b>Open</b> instead. After that it opens normally.</p><h2 id="app">Install the web app</h2>@@ -200,6 +200,6 @@ docker compose exec kwnt kwnt doctor</code></pre></footer><script src="../assets/js/site.js?v=c490c973ba" defer></script><script src="../assets/js/pixel.js?v=ce88473d7b" defer></script>-<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"TechArticle","@id":"https://kwant.si/docs/install#article","headline":"Self-host AI agents on a VPS or Docker","description":"Build the kwnt binary and run your AI bots on your own computer, on a VPS with systemd, or with Docker Compose behind an HTTPS reverse proxy.","url":"https://kwant.si/docs/install","mainEntityOfPage":"https://kwant.si/docs/install","image":"https://kwant.si/assets/og/docs-install.png?v=8675f78476","inLanguage":"en","datePublished":"2026-10-22","dateModified":"2026-10-24","author":{"@id":"https://kwant.si/#org"},"publisher":{"@id":"https://kwant.si/#org"},"about":{"@id":"https://kwant.si/#app"},"isPartOf":{"@id":"https://kwant.si/#website"}},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"kwant","item":"https://kwant.si/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https://kwant.si/docs/quickstart"},{"@type":"ListItem","position":3,"name":"Install & run","item":"https://kwant.si/docs/install"}]},{"@type":"Organization","@id":"https://kwant.si/#org","name":"kwant","url":"https://kwant.si/","logo":"https://kwant.si/apple-touch-icon.png","sameAs":["https://github.com/alexsergivan/kwant"]}]}</script>+<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"TechArticle","@id":"https://kwant.si/docs/install#article","headline":"Self-host AI agents on a VPS or Docker","description":"Build the kwnt binary and run your AI bots on your own computer, on a VPS with systemd, or with Docker Compose behind an HTTPS reverse proxy.","url":"https://kwant.si/docs/install","mainEntityOfPage":"https://kwant.si/docs/install","image":"https://kwant.si/assets/og/docs-install.png?v=8675f78476","inLanguage":"en","datePublished":"2026-10-22","dateModified":"2026-10-25","author":{"@id":"https://kwant.si/#org"},"publisher":{"@id":"https://kwant.si/#org"},"about":{"@id":"https://kwant.si/#app"},"isPartOf":{"@id":"https://kwant.si/#website"}},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"kwant","item":"https://kwant.si/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https://kwant.si/docs/quickstart"},{"@type":"ListItem","position":3,"name":"Install & run","item":"https://kwant.si/docs/install"}]},{"@type":"Organization","@id":"https://kwant.si/#org","name":"kwant","url":"https://kwant.si/","logo":"https://kwant.si/apple-touch-icon.png","sameAs":["https://github.com/alexsergivan/kwant"]}]}</script></body></html>diff --git a/site/index.html b/site/index.htmlindex 7cd56ec1..2f6c4bfd 100644--- a/site/index.html+++ b/site/index.html@@ -55,7 +55,7 @@<a class="btn btn-soft" href="https://github.com/alexsergivan/kwant" rel="noopener">View on GitHub</a></div><div class="install" data-tabs><div class="install-top"><span class="install-k" aria-hidden="true">Install</span><div class="tabs" role="tablist" aria-label="Install with"><button type="button" role="tab" id="hero-t-src" aria-controls="hero-p-src" aria-selected="true">macOS · Linux</button><button type="button" role="tab" id="hero-t-docker" aria-controls="hero-p-docker" aria-selected="false" tabindex="-1">Docker</button></div></div><div class="cmd" role="tabpanel" id="hero-p-src" aria-labelledby="hero-t-src"><span class="p" aria-hidden="true">$</span><code>git clone https://github.com/alexsergivan/kwant && cd kwant && make run</code><button type="button" class="copy-cmd" aria-label="Copy the macOS · Linux install command">copy</button></div><div class="cmd" role="tabpanel" id="hero-p-docker" aria-labelledby="hero-t-docker" hidden><span class="p" aria-hidden="true">$</span><code>git clone https://github.com/alexsergivan/kwant && cd kwant && docker compose up -d --build</code><button type="button" class="copy-cmd" aria-label="Copy the Docker install command">copy</button></div></div>- <p class="mac-dl">On a Mac? <a href="https://github.com/alexsergivan/kwant/releases/latest" rel="noopener">Download the Mac app</a>. <a href="docs/install.html#mac">First open</a> needs one extra step.</p>+ <p class="mac-dl">On a Mac? <a href="https://github.com/alexsergivan/kwant/releases/latest/download/kwant_universal.dmg" rel="noopener">Download the Mac app</a>. <a href="docs/install.html#mac">First open</a> needs one extra step.</p></div><figure class="crt hero-crt"><div class="crt-screen">@@ -338,7 +338,7 @@<div class="cta"><a class="btn btn-violet" href="docs/quickstart.html">Read the quickstart</a><a class="btn btn-soft" href="docs/install.html">Run it on a server</a>- <a class="btn btn-soft" href="https://github.com/alexsergivan/kwant/releases/latest" rel="noopener">Download for Mac</a>+ <a class="btn btn-soft" href="https://github.com/alexsergivan/kwant/releases/latest/download/kwant_universal.dmg" rel="noopener">Download for Mac</a></div><p class="mac-dl">The Mac app isn't notarized by Apple yet, so macOS stops it the first time. <a href="docs/install.html#mac">How to open it</a>.</p></div>diff --git a/site/sitemap.xml b/site/sitemap.xmlindex eaf6651e..5ee32dea 100644--- a/site/sitemap.xml+++ b/site/sitemap.xml@@ -4,7 +4,7 @@<url><loc>https://kwant.si/docs/approvals</loc><lastmod>2026-10-24</lastmod></url><url><loc>https://kwant.si/docs/bots-and-teams</loc><lastmod>2026-10-22</lastmod></url><url><loc>https://kwant.si/docs/browser</loc><lastmod>2026-10-23</lastmod></url>- <url><loc>https://kwant.si/docs/install</loc><lastmod>2026-10-24</lastmod></url>+ <url><loc>https://kwant.si/docs/install</loc><lastmod>2026-10-25</lastmod></url><url><loc>https://kwant.si/docs/loose-ends</loc><lastmod>2026-10-22</lastmod></url><url><loc>https://kwant.si/docs/mcp</loc><lastmod>2026-10-23</lastmod></url><url><loc>https://kwant.si/docs/memory-skills</loc><lastmod>2026-10-24</lastmod></url>@@ -14,5 +14,5 @@<url><loc>https://kwant.si/docs/routines</loc><lastmod>2026-10-24</lastmod></url><url><loc>https://kwant.si/docs/spaces</loc><lastmod>2026-10-24</lastmod></url><url><loc>https://kwant.si/features</loc><lastmod>2026-10-24</lastmod></url>- <url><loc>https://kwant.si/</loc><lastmod>2026-10-24</lastmod></url>+ <url><loc>https://kwant.si/</loc><lastmod>2026-10-25</lastmod></url></urlset>