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
Install app on desktop, Download for Mac on the site and README
Pixel (kwant bot)22e519d4fa1a
diff --git a/README.md b/README.mdindex 1228c89a..82a7b35c 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)**+**Website and docs: [kwant.si](https://kwant.si)** · **[Download for Mac](https://github.com/alexsergivan/kwant/releases/latest)**---@@ -83,6 +83,16 @@ make build # web app + cargo build --release./target/release/kwnt serve```+### 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).++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.++### Install the web app++In Chrome or Edge, click **Install app** in the sidebar; in Safari on a Mac, **File → Add to Dock**; on a phone, kwant shows how. Browsers only install pages served over https or from `127.0.0.1`.+More in the [quickstart](https://kwant.si/docs/quickstart) and [install](https://kwant.si/docs/install) docs.---diff --git a/frontend/src/components/InstallAppButton.tsx b/frontend/src/components/InstallAppButton.tsxnew file mode 100644index 00000000..3aaa216a--- /dev/null+++ b/frontend/src/components/InstallAppButton.tsx@@ -0,0 +1,80 @@+import React, { useId, useState } from 'react';+import { Download, ExternalLink, Laptop, Share, SquarePlus } from 'lucide-react';+import { MAC_DOWNLOAD_URL, desktopInstallKind, isEmbeddedWebView, isIos, isMacSafari, isStandalone, runInstallPrompt } from '../pwa';+import { useInstall } from '../useInstall';++const onMac = () => /Macintosh/.test(navigator.userAgent) && !isIos(navigator);++/** "Install app" in the sidebar, on desktop: Chrome and Edge install in one click; other browsers+ * get the steps that work there. Gone once kwant runs installed, or in the Mac app. */+export const InstallAppButton: React.FC<{ className: string }> = ({ className }) => {+ const { prompt, installed } = useInstall();+ const [open, setOpen] = useState(false);+ const panelId = useId();++ // Server rendering (tests) has no browser to install into.+ const kind = typeof window === 'undefined' ? null : desktopInstallKind({+ standalone: installed || isStandalone(window),+ embedded: isEmbeddedWebView(navigator),+ secure: window.isSecureContext,+ canPrompt: !!prompt,+ macSafari: isMacSafari(navigator),+ ios: isIos(navigator),+ });+ if (!kind) return null;++ const onClick = () => {+ if (kind === 'prompt') void runInstallPrompt();+ else setOpen((o) => !o);+ };++ return (+ <div className="hidden md:block" data-install-app={kind}>+ <button+ type="button"+ onClick={onClick}+ aria-expanded={kind === 'prompt' ? undefined : open}+ aria-controls={kind === 'prompt' ? undefined : panelId}+ className={className}+ >+ <Download size={15} className="text-zinc-500" aria-hidden="true" />+ <span className="truncate flex-1">Install app</span>+ </button>+ {open && kind !== 'prompt' && (+ <div id={panelId} className="mx-2.5 mt-1 mb-1.5 rounded-lg border border-zinc-800 bg-zinc-900/70 p-2.5 text-[11px] leading-relaxed text-zinc-400">+ {kind === 'safari' ? (+ <p>+ In Safari, choose <span className="text-zinc-200">File › Add to Dock</span>. kwant bots then opens in its own window.+ </p>+ ) : kind === 'ios' ? (+ <p>+ Tap <Share size={12} className="inline -mt-0.5 text-sky-300" aria-label="Share" /> Share, then{' '}+ <SquarePlus size={12} className="inline -mt-0.5 text-sky-300" aria-hidden="true" /> Add to Home Screen.+ </p>+ ) : kind === 'insecure' ? (+ <p>+ Installing needs <span className="text-zinc-200">https</span>. Browsers don't install pages served over plain http. Put kwant bots+ behind an https proxy, or open it at 127.0.0.1 on the machine it runs on.+ </p>+ ) : (+ <p>+ Use your browser's install option. In Chrome or Edge it's the install icon at the right of the address bar. Firefox can't install+ web apps.+ </p>+ )}+ {onMac() && (+ <a+ href={MAC_DOWNLOAD_URL}+ target="_blank"+ rel="noopener noreferrer"+ className="mt-2 flex items-center gap-1.5 text-sky-300 hover:text-sky-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-sky-500 rounded"+ >+ <Laptop size={12} aria-hidden="true" /> Download the Mac app <ExternalLink size={11} aria-hidden="true" />+ </a>+ )}+ {onMac() && <p className="mt-0.5 text-zinc-500">It runs its own kwant bots on this Mac.</p>}+ </div>+ )}+ </div>+ );+};diff --git a/frontend/src/components/InstallHint.tsx b/frontend/src/components/InstallHint.tsxindex a542ae53..fbe0045d 100644--- a/frontend/src/components/InstallHint.tsx+++ b/frontend/src/components/InstallHint.tsx@@ -1,12 +1,7 @@import React, { useEffect, useState } from 'react';import { Download, Share, SquarePlus, X } from 'lucide-react';-import { INSTALL_HINT_DISMISSED_KEY, installHintKind, isIos, isStandalone } from '../pwa';--/** Chrome's install event: not in the DOM types yet. */-interface InstallPromptEvent extends Event {- prompt: () => Promise<void>;- userChoice: Promise<{ outcome: 'accepted' | 'dismissed' }>;-}+import { INSTALL_HINT_DISMISSED_KEY, installHintKind, isIos, isStandalone, runInstallPrompt } from '../pwa';+import { useInstall } from '../useInstall';const PHONE_QUERY = '(max-width: 767px)';@@ -21,32 +16,21 @@ const readDismissed = () => {/** "Install on your phone": the browser's install button on Android, the Share steps on iPhone.* Sits above the phone tab bar until it's installed or dismissed. */export const InstallHint: React.FC = () => {- const [prompt, setPrompt] = useState<InstallPromptEvent | null>(null);+ const { prompt, installed } = useInstall();const [dismissed, setDismissed] = useState(readDismissed);- const [installed, setInstalled] = useState(() => isStandalone(window));const [phone, setPhone] = useState(() => !!window.matchMedia?.(PHONE_QUERY).matches);useEffect(() => {- const onPrompt = (e: Event) => {- // Keep Chrome's own mini bar away; the hint offers the same install.- e.preventDefault();- setPrompt(e as InstallPromptEvent);- };- const onInstalled = () => setInstalled(true);const mq = window.matchMedia?.(PHONE_QUERY);const onMq = () => setPhone(!!mq?.matches);- window.addEventListener('beforeinstallprompt', onPrompt);- window.addEventListener('appinstalled', onInstalled);mq?.addEventListener('change', onMq);return () => {- window.removeEventListener('beforeinstallprompt', onPrompt);- window.removeEventListener('appinstalled', onInstalled);mq?.removeEventListener('change', onMq);};}, []);const kind = installHintKind({- standalone: installed,+ standalone: installed || isStandalone(window),dismissed,phone,secure: window.isSecureContext,@@ -64,15 +48,6 @@ export const InstallHint: React.FC = () => {}};- const install = async () => {- if (!prompt) return;- await prompt.prompt();- const { outcome } = await prompt.userChoice.catch(() => ({ outcome: 'dismissed' as const }));- // A prompt works once; Chrome sends a new event if it can be offered again.- setPrompt(null);- if (outcome === 'accepted') setInstalled(true);- };-return (<asidearia-label="Install on your phone"@@ -87,7 +62,7 @@ export const InstallHint: React.FC = () => {<p className="mt-0.5 text-zinc-400">It opens full screen from your home screen, like an app.</p><buttontype="button"- onClick={install}+ onClick={runInstallPrompt}className="mt-2 inline-flex min-h-[44px] items-center gap-1.5 rounded-lg bg-sky-600 px-4 font-medium text-white hover:bg-sky-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-sky-400"><Download size={14} aria-hidden="true" /> Installdiff --git a/frontend/src/components/Sidebar.tsx b/frontend/src/components/Sidebar.tsxindex 80d8aa0e..c6b57307 100644--- a/frontend/src/components/Sidebar.tsx+++ b/frontend/src/components/Sidebar.tsx@@ -12,6 +12,7 @@ import { isMac } from './LayaStatus';import { ApprovalsOffBadge } from './ApprovalsSetting';import { approvalsOff, spaceOffLine } from '../approvalMode';import { teamChannelOf } from '../teamChannel';+import { InstallAppButton } from './InstallAppButton';export interface Kwant {id: string;@@ -312,6 +313,7 @@ export const Sidebar: React.FC<SidebarProps> = ({<CalendarClock size={15} className="text-zinc-500" aria-hidden="true" /><span className="truncate flex-1">Routines</span></button>+ <InstallAppButton className={navRow(false)} /></div>)}diff --git a/frontend/src/main.tsx b/frontend/src/main.tsxindex fcf6b475..ce4756f0 100644--- a/frontend/src/main.tsx+++ b/frontend/src/main.tsx@@ -3,10 +3,11 @@ import ReactDOM from 'react-dom/client';import { App } from './Shell';import { SandboxViewer } from './components/SandboxViewer';import { AuthGate } from './components/AuthGate';-import { registerServiceWorker, trackAppHeight } from './pwa';+import { captureInstallPrompt, registerServiceWorker, trackAppHeight } from './pwa';import './styles/modern.css';registerServiceWorker();+captureInstallPrompt();trackAppHeight();const sandboxMatch = window.location.pathname.match(/^\/sandbox\/([^/]+)\/?$/);diff --git a/frontend/src/pwa.ts b/frontend/src/pwa.tsindex 5feabf2e..36195b46 100644--- a/frontend/src/pwa.ts+++ b/frontend/src/pwa.ts@@ -1,4 +1,4 @@-// Installing kwant bots on a phone: the service worker, the install hint and the app height.+// Installing kwant bots: the service worker, the install hint and button, and the app height./** Registers /sw.js (built by vite.config.ts). Only in a build, and only where browsers allow* one: HTTPS or localhost. Plain http on a home network still works, just not installed. */@@ -42,6 +42,91 @@ 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';++/** 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 {+ const ua = nav.userAgent;+ return /Macintosh/.test(ua) && !isIos(nav) && /Version\/[\d.]+.*Safari\//.test(ua) && !/Chrome|Chromium|CriOS|FxiOS|Edg\//.test(ua);+}++/** A web view inside an app (the kwant Mac app's WKWebView): a Mac WebKit page that isn't Safari. */+export function isEmbeddedWebView(nav: Pick<Navigator, 'userAgent' | 'maxTouchPoints'>): boolean {+ const ua = nav.userAgent;+ return /Macintosh/.test(ua) && !isIos(nav) && /AppleWebKit/.test(ua) && !/Safari\//.test(ua);+}++export type DesktopInstallKind = 'prompt' | 'safari' | 'ios' | 'insecure' | 'manual' | null;++/** What the desktop "Install app" entry offers: the browser's one-click install (Chrome, Edge),+ * the File > Add to Dock steps (Safari on a Mac), the Share steps (iPad), a note that installing+ * needs https, or the browser's own menu. None when it's already the installed app or the Mac app. */+export function desktopInstallKind(s: {+ standalone: boolean;+ embedded: boolean;+ secure: boolean;+ canPrompt: boolean;+ macSafari: boolean;+ ios: boolean;+}): DesktopInstallKind {+ if (s.standalone || s.embedded) return null;+ if (!s.secure) return 'insecure';+ if (s.canPrompt) return 'prompt';+ if (s.macSafari) return 'safari';+ if (s.ios) return 'ios';+ return 'manual';+}++/** Chrome's install event: not in the DOM types yet. */+export interface InstallPromptEvent extends Event {+ prompt: () => Promise<void>;+ userChoice: Promise<{ outcome: 'accepted' | 'dismissed' }>;+}++/** The browser's install offer, kept from page load, so it's there whenever an install button+ * mounts. Chrome sends it once, often before the app has rendered. */+export interface InstallState {+ prompt: InstallPromptEvent | null;+ installed: boolean;+}++let installState: InstallState = { prompt: null, installed: false };+const installListeners = new Set<() => void>();+const setInstallState = (next: InstallState) => {+ installState = next;+ installListeners.forEach((fn) => fn());+};++export function captureInstallPrompt(win: Window = window): void {+ installState = { prompt: null, installed: isStandalone(win) };+ win.addEventListener('beforeinstallprompt', (e) => {+ // Keep Chrome's own mini bar away; kwant offers the same install.+ e.preventDefault();+ setInstallState({ ...installState, prompt: e as InstallPromptEvent });+ });+ win.addEventListener('appinstalled', () => setInstallState({ prompt: null, installed: true }));+}++export const getInstallState = (): InstallState => installState;++export function subscribeInstallState(fn: () => void): () => void {+ installListeners.add(fn);+ return () => {+ installListeners.delete(fn);+ };+}++/** Shows the browser's install dialog. A prompt works once; Chrome sends a new event if it can be+ * offered again. */+export async function runInstallPrompt(): Promise<void> {+ const { prompt } = installState;+ if (!prompt) return;+ await prompt.prompt();+ const { outcome } = await prompt.userChoice.catch(() => ({ outcome: 'dismissed' as const }));+ setInstallState({ prompt: null, installed: installState.installed || outcome === 'accepted' });+}+/** Keeps --kwnt-app-height at the visible height, so the iOS keyboard doesn't cover the message* box (Android resizes the page itself: interactive-widget=resizes-content in index.html). */export function trackAppHeight(win: Window = window): () => void {diff --git a/frontend/src/useInstall.ts b/frontend/src/useInstall.tsnew file mode 100644index 00000000..d23ab5e0--- /dev/null+++ b/frontend/src/useInstall.ts@@ -0,0 +1,5 @@+import { useSyncExternalStore } from 'react';+import { getInstallState, InstallState, subscribeInstallState } from './pwa';++/** The browser's install offer and whether kwant is installed, kept since page load. */+export const useInstall = (): InstallState => useSyncExternalStore(subscribeInstallState, getInstallState, getInstallState);diff --git a/frontend/tests/pwa.test.mjs b/frontend/tests/pwa.test.mjsindex 4dda21fd..4ff408d7 100644--- a/frontend/tests/pwa.test.mjs+++ b/frontend/tests/pwa.test.mjs@@ -210,6 +210,76 @@ test('iPhone and iPad are recognised, including iPadOS calling itself a Mac', ()assert.ok(!pwa.isIos({ userAgent: 'Mozilla/5.0 (Linux; Android 15; Pixel 9) Chrome/154', maxTouchPoints: 5 }));});+const UA = {+ macSafari: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/19.0 Safari/605.1.15',+ macChrome: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36',+ macEdge: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0',+ macFirefox: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:144.0) Gecko/20100101 Firefox/144.0',+ macApp: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)',+ winChrome: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36',+};++test('Safari on a Mac and the Mac app web view are told apart from Chrome, Edge and Firefox', () => {+ const nav = (userAgent, maxTouchPoints = 0) => ({ userAgent, maxTouchPoints });+ assert.ok(pwa.isMacSafari(nav(UA.macSafari)));+ for (const k of ['macChrome', 'macEdge', 'macFirefox', 'macApp', 'winChrome']) assert.ok(!pwa.isMacSafari(nav(UA[k])), k);+ assert.ok(!pwa.isMacSafari(nav(UA.macSafari, 5)), 'an iPad says it is a Mac');+ assert.ok(pwa.isEmbeddedWebView(nav(UA.macApp)));+ for (const k of ['macSafari', 'macChrome', 'macEdge', 'macFirefox', 'winChrome']) assert.ok(!pwa.isEmbeddedWebView(nav(UA[k])), k);+});++test('the desktop Install app entry: one click, Safari steps, https note or browser menu', () => {+ const base = { standalone: false, embedded: false, secure: true, canPrompt: false, macSafari: false, ios: false };+ assert.equal(pwa.desktopInstallKind({ ...base, canPrompt: true }), 'prompt');+ assert.equal(pwa.desktopInstallKind({ ...base, macSafari: true }), 'safari');+ assert.equal(pwa.desktopInstallKind({ ...base, ios: true }), 'ios');+ assert.equal(pwa.desktopInstallKind(base), 'manual', 'Firefox, or Chrome before it offers');+ assert.equal(pwa.desktopInstallKind({ ...base, secure: false, canPrompt: true }), 'insecure', 'plain http says why');+ assert.equal(pwa.desktopInstallKind({ ...base, canPrompt: true, standalone: true }), null, 'already installed');+ assert.equal(pwa.desktopInstallKind({ ...base, embedded: true, macSafari: true }), null, 'the Mac app');+});++test('the install offer is kept from page load and cleared once used or installed', async () => {+ const handlers = {};+ const win = {+ navigator: {},+ matchMedia: () => ({ matches: false }),+ addEventListener: (type, fn) => { handlers[type] = fn; },+ };+ pwa.captureInstallPrompt(win);+ let changes = 0;+ const off = pwa.subscribeInstallState(() => changes++);+ assert.deepEqual(pwa.getInstallState(), { prompt: null, installed: false });++ let prevented = false;+ let shown = 0;+ const event = {+ preventDefault: () => { prevented = true; },+ prompt: async () => { shown++; },+ userChoice: Promise.resolve({ outcome: 'dismissed' }),+ };+ handlers.beforeinstallprompt(event);+ assert.ok(prevented, "Chrome's own mini bar stays away");+ assert.equal(pwa.getInstallState().prompt, event);++ await pwa.runInstallPrompt();+ assert.equal(shown, 1);+ assert.deepEqual(pwa.getInstallState(), { prompt: null, installed: false }, 'a prompt works once');++ handlers.beforeinstallprompt({ ...event, userChoice: Promise.resolve({ outcome: 'accepted' }) });+ await pwa.runInstallPrompt();+ assert.equal(pwa.getInstallState().installed, true);++ handlers.appinstalled();+ assert.deepEqual(pwa.getInstallState(), { prompt: null, installed: true });+ assert.ok(changes >= 4);+ off();+});++test('the Mac download goes to the newest release', () => {+ assert.equal(pwa.MAC_DOWNLOAD_URL, 'https://github.com/alexsergivan/kwant/releases/latest');+});+test('standalone means the installed app, on iOS or Android', () => {const win = (standalone, matches) => ({ navigator: { standalone }, matchMedia: () => ({ matches }) });assert.ok(pwa.isStandalone(win(true, false)));diff --git a/site-src/docs-install.html b/site-src/docs-install.htmlindex efa2ac4d..aeab38c7 100644--- a/site-src/docs-install.html+++ b/site-src/docs-install.html@@ -15,6 +15,13 @@ card_art: avatar:devops./target/release/kwnt serve</code></pre><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 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>+<p>kwant bots also installs from the browser, so it opens in its own window. In Chrome or Edge, click <b>Install app</b> in the sidebar (or the install icon in the address bar). In Safari on a Mac, choose <b>File › Add to Dock</b>. On a phone, kwant shows how. Browsers only install pages served over https or from <code>127.0.0.1</code>, so a server needs an <a href="#proxy">HTTPS reverse proxy</a> first.</p>+<h2 id="local">On your own computer</h2><p>Run <code>kwnt serve</code> and open <a href="http://127.0.0.1:8799">http://127.0.0.1:8799</a>. There's nothing to sign in to: requests from this machine need no token, and <code>kwnt serve</code> prints nothing about one.</p><p>"This machine" means a loopback connection with a loopback <code>Host</code> and no proxy headers. A VPS you reach through an SSH tunnel counts too:</p>diff --git a/site-src/index.html b/site-src/index.htmlindex 49d9eee8..2dfd71ef 100644--- a/site-src/index.html+++ b/site-src/index.html@@ -16,6 +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></div><figure class="crt hero-crt"><div class="crt-screen">@@ -283,7 +284,7 @@ card_art: scene<div><dt>Tools</dt><dd>Any MCP server</dd></div><div><dt>Optional</dt><dd><a href="features.html#running">Composio</a> for Gmail, Slack, Notion</dd></div><div><dt>Where</dt><dd>Your laptop or a VPS</dd></div>- <div><dt>OS</dt><dd>macOS, Linux, Docker</dd></div>+ <div><dt>OS</dt><dd>macOS (<a href="https://github.com/alexsergivan/kwant/releases/latest" rel="noopener">app</a> or CLI), Linux, Docker</dd></div></dl></div></section>@@ -298,7 +299,9 @@ 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></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><div class="crt crt-small"><div class="crt-screen street-screen">diff --git a/site/404.html b/site/404.htmlindex f3e9b515..81ad9fb5 100644--- a/site/404.html+++ b/site/404.html@@ -30,7 +30,7 @@<link rel="apple-touch-icon" href="/apple-touch-icon.png?v=1bc2442f39"><link rel="preload" href="/assets/fonts/pixelify-sans.woff2?v=66e897e155" as="font" type="font/woff2" crossorigin><link rel="preload" href="/assets/fonts/inter-var.woff2?v=3100e775e8" as="font" type="font/woff2" crossorigin>-<link rel="stylesheet" href="/assets/css/site.css?v=c6d8997040">+<link rel="stylesheet" href="/assets/css/site.css?v=da07f2e4ce"></head><body class="page-404"><a class="skip" href="#main">Skip to content</a>diff --git a/site/assets/css/site.css b/site/assets/css/site.cssindex e6db3549..2e5fd0a0 100644--- a/site/assets/css/site.css+++ b/site/assets/css/site.css@@ -198,6 +198,8 @@ section { padding: 104px 0; }.outro-copy > p { margin-top: 10px; color: var(--muted); font-size: 18px; }.outro .install { margin-top: 24px; }.outro .cta { margin-top: 20px; }+.mac-dl { margin-top: 14px; color: var(--dim); font-size: 14px; }+.outro-copy > .mac-dl { font-size: 14px; color: var(--dim); }.page-features .outro { padding-top: 104px; }/* Footer */diff --git a/site/docs/accounts.html b/site/docs/accounts.htmlindex 229b6337..656d4cf3 100644--- a/site/docs/accounts.html+++ b/site/docs/accounts.html@@ -31,7 +31,7 @@<link rel="apple-touch-icon" href="../apple-touch-icon.png?v=1bc2442f39"><link rel="preload" href="../assets/fonts/pixelify-sans.woff2?v=66e897e155" as="font" type="font/woff2" crossorigin><link rel="preload" href="../assets/fonts/inter-var.woff2?v=3100e775e8" as="font" type="font/woff2" crossorigin>-<link rel="stylesheet" href="../assets/css/site.css?v=c6d8997040">+<link rel="stylesheet" href="../assets/css/site.css?v=da07f2e4ce"></head><body class="page-docs"><a class="skip" href="#main">Skip to content</a>diff --git a/site/docs/approvals.html b/site/docs/approvals.htmlindex b86cadd8..6975808b 100644--- a/site/docs/approvals.html+++ b/site/docs/approvals.html@@ -31,7 +31,7 @@<link rel="apple-touch-icon" href="../apple-touch-icon.png?v=1bc2442f39"><link rel="preload" href="../assets/fonts/pixelify-sans.woff2?v=66e897e155" as="font" type="font/woff2" crossorigin><link rel="preload" href="../assets/fonts/inter-var.woff2?v=3100e775e8" as="font" type="font/woff2" crossorigin>-<link rel="stylesheet" href="../assets/css/site.css?v=c6d8997040">+<link rel="stylesheet" href="../assets/css/site.css?v=da07f2e4ce"></head><body class="page-docs"><a class="skip" href="#main">Skip to content</a>diff --git a/site/docs/bots-and-teams.html b/site/docs/bots-and-teams.htmlindex dc425e40..e32405be 100644--- a/site/docs/bots-and-teams.html+++ b/site/docs/bots-and-teams.html@@ -31,7 +31,7 @@<link rel="apple-touch-icon" href="../apple-touch-icon.png?v=1bc2442f39"><link rel="preload" href="../assets/fonts/pixelify-sans.woff2?v=66e897e155" as="font" type="font/woff2" crossorigin><link rel="preload" href="../assets/fonts/inter-var.woff2?v=3100e775e8" as="font" type="font/woff2" crossorigin>-<link rel="stylesheet" href="../assets/css/site.css?v=c6d8997040">+<link rel="stylesheet" href="../assets/css/site.css?v=da07f2e4ce"></head><body class="page-docs"><a class="skip" href="#main">Skip to content</a>diff --git a/site/docs/browser.html b/site/docs/browser.htmlindex 5f5c72ad..9df86c2c 100644--- a/site/docs/browser.html+++ b/site/docs/browser.html@@ -31,7 +31,7 @@<link rel="apple-touch-icon" href="../apple-touch-icon.png?v=1bc2442f39"><link rel="preload" href="../assets/fonts/pixelify-sans.woff2?v=66e897e155" as="font" type="font/woff2" crossorigin><link rel="preload" href="../assets/fonts/inter-var.woff2?v=3100e775e8" as="font" type="font/woff2" crossorigin>-<link rel="stylesheet" href="../assets/css/site.css?v=c6d8997040">+<link rel="stylesheet" href="../assets/css/site.css?v=da07f2e4ce"></head><body class="page-docs"><a class="skip" href="#main">Skip to content</a>diff --git a/site/docs/install.html b/site/docs/install.htmlindex 80849d21..114bfa07 100644--- a/site/docs/install.html+++ b/site/docs/install.html@@ -31,7 +31,7 @@<link rel="apple-touch-icon" href="../apple-touch-icon.png?v=1bc2442f39"><link rel="preload" href="../assets/fonts/pixelify-sans.woff2?v=66e897e155" as="font" type="font/woff2" crossorigin><link rel="preload" href="../assets/fonts/inter-var.woff2?v=3100e775e8" as="font" type="font/woff2" crossorigin>-<link rel="stylesheet" href="../assets/css/site.css?v=c6d8997040">+<link rel="stylesheet" href="../assets/css/site.css?v=da07f2e4ce"></head><body class="page-docs"><a class="skip" href="#main">Skip to content</a>@@ -64,6 +64,13 @@./target/release/kwnt serve</code></pre><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 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>+<p>kwant bots also installs from the browser, so it opens in its own window. In Chrome or Edge, click <b>Install app</b> in the sidebar (or the install icon in the address bar). In Safari on a Mac, choose <b>File › Add to Dock</b>. On a phone, kwant shows how. Browsers only install pages served over https or from <code>127.0.0.1</code>, so a server needs an <a href="#proxy">HTTPS reverse proxy</a> first.</p>+<h2 id="local">On your own computer</h2><p>Run <code>kwnt serve</code> and open <a href="http://127.0.0.1:8799">http://127.0.0.1:8799</a>. There's nothing to sign in to: requests from this machine need no token, and <code>kwnt serve</code> prints nothing about one.</p><p>"This machine" means a loopback connection with a loopback <code>Host</code> and no proxy headers. A VPS you reach through an SSH tunnel counts too:</p>diff --git a/site/docs/loose-ends.html b/site/docs/loose-ends.htmlindex f133eb97..96d6ebf4 100644--- a/site/docs/loose-ends.html+++ b/site/docs/loose-ends.html@@ -31,7 +31,7 @@<link rel="apple-touch-icon" href="../apple-touch-icon.png?v=1bc2442f39"><link rel="preload" href="../assets/fonts/pixelify-sans.woff2?v=66e897e155" as="font" type="font/woff2" crossorigin><link rel="preload" href="../assets/fonts/inter-var.woff2?v=3100e775e8" as="font" type="font/woff2" crossorigin>-<link rel="stylesheet" href="../assets/css/site.css?v=c6d8997040">+<link rel="stylesheet" href="../assets/css/site.css?v=da07f2e4ce"></head><body class="page-docs"><a class="skip" href="#main">Skip to content</a>diff --git a/site/docs/mcp.html b/site/docs/mcp.htmlindex 336fc835..e9e0c09b 100644--- a/site/docs/mcp.html+++ b/site/docs/mcp.html@@ -31,7 +31,7 @@<link rel="apple-touch-icon" href="../apple-touch-icon.png?v=1bc2442f39"><link rel="preload" href="../assets/fonts/pixelify-sans.woff2?v=66e897e155" as="font" type="font/woff2" crossorigin><link rel="preload" href="../assets/fonts/inter-var.woff2?v=3100e775e8" as="font" type="font/woff2" crossorigin>-<link rel="stylesheet" href="../assets/css/site.css?v=c6d8997040">+<link rel="stylesheet" href="../assets/css/site.css?v=da07f2e4ce"></head><body class="page-docs"><a class="skip" href="#main">Skip to content</a>diff --git a/site/docs/memory-skills.html b/site/docs/memory-skills.htmlindex 160adf69..915cb59f 100644--- a/site/docs/memory-skills.html+++ b/site/docs/memory-skills.html@@ -31,7 +31,7 @@<link rel="apple-touch-icon" href="../apple-touch-icon.png?v=1bc2442f39"><link rel="preload" href="../assets/fonts/pixelify-sans.woff2?v=66e897e155" as="font" type="font/woff2" crossorigin><link rel="preload" href="../assets/fonts/inter-var.woff2?v=3100e775e8" as="font" type="font/woff2" crossorigin>-<link rel="stylesheet" href="../assets/css/site.css?v=c6d8997040">+<link rel="stylesheet" href="../assets/css/site.css?v=da07f2e4ce"></head><body class="page-docs"><a class="skip" href="#main">Skip to content</a>diff --git a/site/docs/models.html b/site/docs/models.htmlindex ee6b6ed7..402a3d3e 100644--- a/site/docs/models.html+++ b/site/docs/models.html@@ -31,7 +31,7 @@<link rel="apple-touch-icon" href="../apple-touch-icon.png?v=1bc2442f39"><link rel="preload" href="../assets/fonts/pixelify-sans.woff2?v=66e897e155" as="font" type="font/woff2" crossorigin><link rel="preload" href="../assets/fonts/inter-var.woff2?v=3100e775e8" as="font" type="font/woff2" crossorigin>-<link rel="stylesheet" href="../assets/css/site.css?v=c6d8997040">+<link rel="stylesheet" href="../assets/css/site.css?v=da07f2e4ce"></head><body class="page-docs"><a class="skip" href="#main">Skip to content</a>diff --git a/site/docs/parallel-universe.html b/site/docs/parallel-universe.htmlindex 5437d666..ab51956a 100644--- a/site/docs/parallel-universe.html+++ b/site/docs/parallel-universe.html@@ -31,7 +31,7 @@<link rel="apple-touch-icon" href="../apple-touch-icon.png?v=1bc2442f39"><link rel="preload" href="../assets/fonts/pixelify-sans.woff2?v=66e897e155" as="font" type="font/woff2" crossorigin><link rel="preload" href="../assets/fonts/inter-var.woff2?v=3100e775e8" as="font" type="font/woff2" crossorigin>-<link rel="stylesheet" href="../assets/css/site.css?v=c6d8997040">+<link rel="stylesheet" href="../assets/css/site.css?v=da07f2e4ce"></head><body class="page-docs"><a class="skip" href="#main">Skip to content</a>diff --git a/site/docs/quickstart.html b/site/docs/quickstart.htmlindex 07dc57f1..0550d9bd 100644--- a/site/docs/quickstart.html+++ b/site/docs/quickstart.html@@ -31,7 +31,7 @@<link rel="apple-touch-icon" href="../apple-touch-icon.png?v=1bc2442f39"><link rel="preload" href="../assets/fonts/pixelify-sans.woff2?v=66e897e155" as="font" type="font/woff2" crossorigin><link rel="preload" href="../assets/fonts/inter-var.woff2?v=3100e775e8" as="font" type="font/woff2" crossorigin>-<link rel="stylesheet" href="../assets/css/site.css?v=c6d8997040">+<link rel="stylesheet" href="../assets/css/site.css?v=da07f2e4ce"></head><body class="page-docs"><a class="skip" href="#main">Skip to content</a>diff --git a/site/docs/routines.html b/site/docs/routines.htmlindex 05f635da..fe129e00 100644--- a/site/docs/routines.html+++ b/site/docs/routines.html@@ -31,7 +31,7 @@<link rel="apple-touch-icon" href="../apple-touch-icon.png?v=1bc2442f39"><link rel="preload" href="../assets/fonts/pixelify-sans.woff2?v=66e897e155" as="font" type="font/woff2" crossorigin><link rel="preload" href="../assets/fonts/inter-var.woff2?v=3100e775e8" as="font" type="font/woff2" crossorigin>-<link rel="stylesheet" href="../assets/css/site.css?v=c6d8997040">+<link rel="stylesheet" href="../assets/css/site.css?v=da07f2e4ce"></head><body class="page-docs"><a class="skip" href="#main">Skip to content</a>diff --git a/site/docs/spaces.html b/site/docs/spaces.htmlindex 53037d15..32e315c6 100644--- a/site/docs/spaces.html+++ b/site/docs/spaces.html@@ -31,7 +31,7 @@<link rel="apple-touch-icon" href="../apple-touch-icon.png?v=1bc2442f39"><link rel="preload" href="../assets/fonts/pixelify-sans.woff2?v=66e897e155" as="font" type="font/woff2" crossorigin><link rel="preload" href="../assets/fonts/inter-var.woff2?v=3100e775e8" as="font" type="font/woff2" crossorigin>-<link rel="stylesheet" href="../assets/css/site.css?v=c6d8997040">+<link rel="stylesheet" href="../assets/css/site.css?v=da07f2e4ce"></head><body class="page-docs"><a class="skip" href="#main">Skip to content</a>diff --git a/site/features.html b/site/features.htmlindex fcb1d746..f55d1a4a 100644--- a/site/features.html+++ b/site/features.html@@ -29,7 +29,7 @@<link rel="apple-touch-icon" href="apple-touch-icon.png?v=1bc2442f39"><link rel="preload" href="assets/fonts/pixelify-sans.woff2?v=66e897e155" as="font" type="font/woff2" crossorigin><link rel="preload" href="assets/fonts/inter-var.woff2?v=3100e775e8" as="font" type="font/woff2" crossorigin>-<link rel="stylesheet" href="assets/css/site.css?v=c6d8997040">+<link rel="stylesheet" href="assets/css/site.css?v=da07f2e4ce"></head><body class="page-features"><a class="skip" href="#main">Skip to content</a>diff --git a/site/index.html b/site/index.htmlindex 310eb961..7cd56ec1 100644--- a/site/index.html+++ b/site/index.html@@ -29,7 +29,7 @@<link rel="apple-touch-icon" href="apple-touch-icon.png?v=1bc2442f39"><link rel="preload" href="assets/fonts/pixelify-sans.woff2?v=66e897e155" as="font" type="font/woff2" crossorigin><link rel="preload" href="assets/fonts/inter-var.woff2?v=3100e775e8" as="font" type="font/woff2" crossorigin>-<link rel="stylesheet" href="assets/css/site.css?v=c6d8997040">+<link rel="stylesheet" href="assets/css/site.css?v=da07f2e4ce"></head><body class="page-home"><a class="skip" href="#main">Skip to content</a>@@ -55,6 +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></div><figure class="crt hero-crt"><div class="crt-screen">@@ -322,7 +323,7 @@<div><dt>Tools</dt><dd>Any MCP server</dd></div><div><dt>Optional</dt><dd><a href="features.html#running">Composio</a> for Gmail, Slack, Notion</dd></div><div><dt>Where</dt><dd>Your laptop or a VPS</dd></div>- <div><dt>OS</dt><dd>macOS, Linux, Docker</dd></div>+ <div><dt>OS</dt><dd>macOS (<a href="https://github.com/alexsergivan/kwant/releases/latest" rel="noopener">app</a> or CLI), Linux, Docker</dd></div></dl></div></section>@@ -337,7 +338,9 @@<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></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><div class="crt crt-small"><div class="crt-screen street-screen">