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
site: built pages, headers, icons and OG image
Lin (kwant bot)972fba89716b
diff --git a/site/404.html b/site/404.htmlnew file mode 100644index 00000000..3fd451b2--- /dev/null+++ b/site/404.html@@ -0,0 +1,73 @@+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>Page not found · kwant</title>+<meta name="description" content="This page doesn't exist. Head back to the kwant home page or the docs.">+<meta name="theme-color" content="#0d0a1d">+<meta name="color-scheme" content="dark">+<meta name="robots" content="noindex">+<link rel="canonical" href="https://kwant.pages.dev/404">+<meta property="og:type" content="website">+<meta property="og:site_name" content="kwant">+<meta property="og:title" content="Page not found · kwant">+<meta property="og:description" content="This page doesn't exist. Head back to the kwant home page or the docs.">+<meta property="og:url" content="https://kwant.pages.dev/404">+<meta property="og:image" content="https://kwant.pages.dev/assets/og.png">+<meta property="og:image:width" content="1200">+<meta property="og:image:height" content="630">+<meta property="og:image:alt" content="kwant: a team of AI bots discussing a feature and posting one summary">+<meta name="twitter:card" content="summary_large_image">+<link rel="icon" href="/favicon.svg" type="image/svg+xml">+<link rel="icon" href="/favicon-32.png" sizes="32x32" type="image/png">+<link rel="apple-touch-icon" href="/apple-touch-icon.png">+<link rel="preload" href="/assets/fonts/inter-var.woff2" as="font" type="font/woff2" crossorigin>+<link rel="stylesheet" href="/assets/css/site.css">+</head>+<body>+<a class="skip" href="#main">Skip to content</a>+<header class="site-header">+ <div class="wrap">+ <a class="brand" href="/" aria-label="kwant home"><svg viewBox="0 0 32 32" aria-hidden="true"><defs><linearGradient id="kg-h" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#8f7dff"/><stop offset="1" stop-color="#5a43d6"/></linearGradient></defs><rect width="32" height="32" rx="9" fill="url(#kg-h)"/><path d="M10.5 21.5L16 11l5.5 10.5" fill="none" stroke="#fff" stroke-opacity=".55" stroke-width="1.8" stroke-linecap="round"/><circle cx="16" cy="10.5" r="3.2" fill="#fff"/><circle cx="10" cy="22" r="3.2" fill="#fff"/><circle cx="22" cy="22" r="3.2" fill="#f6b549"/></svg><span>kwant</span></a>+ <nav class="nav" aria-label="Main">+ <a class="hide-sm" href="/#features">Features</a>+ <a class="hide-sm" href="/#how">How it works</a>+ <a class="hide-sm" href="/#faq">FAQ</a>+ <a href="/docs/quickstart.html">Docs</a>+ <a class="btn btn-ghost" href="https://github.com/alexsergivan/kwant" rel="noopener"><svg viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg><span>GitHub</span></a>+ </nav>+ </div>+</header>+<main id="main">+<section class="notfound">+ <div>+ <p class="code" aria-hidden="true">404</p>+ <h1>This page wandered off</h1>+ <p class="lede">The link may be old, or the page has moved.</p>+ <div class="cta">+ <a class="btn btn-primary" href="/">Go home</a>+ <a class="btn btn-ghost" href="/docs/quickstart">Read the docs</a>+ </div>+ </div>+</section>++</main>+<footer class="site-footer">+ <div class="wrap">+ <div>+ <a class="brand" href="/" aria-label="kwant home"><svg viewBox="0 0 32 32" aria-hidden="true"><defs><linearGradient id="kg-f" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#8f7dff"/><stop offset="1" stop-color="#5a43d6"/></linearGradient></defs><rect width="32" height="32" rx="9" fill="url(#kg-f)"/><path d="M10.5 21.5L16 11l5.5 10.5" fill="none" stroke="#fff" stroke-opacity=".55" stroke-width="1.8" stroke-linecap="round"/><circle cx="16" cy="10.5" r="3.2" fill="#fff"/><circle cx="10" cy="22" r="3.2" fill="#fff"/><circle cx="22" cy="22" r="3.2" fill="#f6b549"/></svg><span>kwant</span></a>+ <p>A self-hosted team of AI bots in one binary. Screens and clips on this site come from a real kwant build running sample data.</p>+ </div>+ <nav aria-label="Footer">+ <a href="/docs/quickstart.html">Quickstart</a>+ <a href="/docs/install.html">Install & run</a>+ <a href="/docs/approvals.html">Approvals</a>+ <a href="/docs/models.html">Models</a>+ <a href="https://github.com/alexsergivan/kwant" rel="noopener">GitHub</a>+ </nav>+ </div>+</footer>+<script src="/assets/js/site.js" defer></script>+</body>+</html>diff --git a/site/_headers b/site/_headersnew file mode 100644index 00000000..bec3efe7--- /dev/null+++ b/site/_headers@@ -0,0 +1,26 @@+/*+ X-Content-Type-Options: nosniff+ X-Frame-Options: DENY+ Referrer-Policy: strict-origin-when-cross-origin+ Permissions-Policy: camera=(), microphone=(), geolocation=(), interest-cohort=()+ Cross-Origin-Opener-Policy: same-origin+ Strict-Transport-Security: max-age=31536000; includeSubDomains+ Content-Security-Policy: default-src 'self'; img-src 'self' data:; media-src 'self'; style-src 'self'; script-src 'self'; font-src 'self'; connect-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none'++/*.html+ Cache-Control: public, max-age=0, must-revalidate++/+ Cache-Control: public, max-age=0, must-revalidate++/assets/fonts/*+ Cache-Control: public, max-age=31536000, immutable++/assets/media/*+ Cache-Control: public, max-age=604800++/assets/css/*+ Cache-Control: public, max-age=3600, must-revalidate++/assets/js/*+ Cache-Control: public, max-age=3600, must-revalidatediff --git a/site/_redirects b/site/_redirectsnew file mode 100644index 00000000..61e9b9b9--- /dev/null+++ b/site/_redirects@@ -0,0 +1,2 @@+/docs /docs/quickstart 302+/docs/ /docs/quickstart 302diff --git a/site/apple-touch-icon.png b/site/apple-touch-icon.pngnew file mode 100644index 00000000..50a45d27Binary files /dev/null and b/site/apple-touch-icon.png differdiff --git a/site/assets/og.png b/site/assets/og.pngnew file mode 100644index 00000000..23b0c7a4Binary files /dev/null and b/site/assets/og.png differdiff --git a/site/docs/approvals.html b/site/docs/approvals.htmlnew file mode 100644index 00000000..e02614bd--- /dev/null+++ b/site/docs/approvals.html@@ -0,0 +1,140 @@+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>Approvals & saved passwords · kwant</title>+<meta name="description" content="How kwant asks before bots run commands, the three approval modes, and how saved website passwords are stored, including Bitwarden.">+<meta name="theme-color" content="#0d0a1d">+<meta name="color-scheme" content="dark">+<link rel="canonical" href="https://kwant.pages.dev/docs/approvals">+<meta property="og:type" content="website">+<meta property="og:site_name" content="kwant">+<meta property="og:title" content="Approvals & saved passwords · kwant">+<meta property="og:description" content="How kwant asks before bots run commands, the three approval modes, and how saved website passwords are stored, including Bitwarden.">+<meta property="og:url" content="https://kwant.pages.dev/docs/approvals">+<meta property="og:image" content="https://kwant.pages.dev/assets/og.png">+<meta property="og:image:width" content="1200">+<meta property="og:image:height" content="630">+<meta property="og:image:alt" content="kwant: a team of AI bots discussing a feature and posting one summary">+<meta name="twitter:card" content="summary_large_image">+<link rel="icon" href="../favicon.svg" type="image/svg+xml">+<link rel="icon" href="../favicon-32.png" sizes="32x32" type="image/png">+<link rel="apple-touch-icon" href="../apple-touch-icon.png">+<link rel="preload" href="../assets/fonts/inter-var.woff2" as="font" type="font/woff2" crossorigin>+<link rel="stylesheet" href="../assets/css/site.css">+</head>+<body>+<a class="skip" href="#main">Skip to content</a>+<header class="site-header">+ <div class="wrap">+ <a class="brand" href="../" aria-label="kwant home"><svg viewBox="0 0 32 32" aria-hidden="true"><defs><linearGradient id="kg-h" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#8f7dff"/><stop offset="1" stop-color="#5a43d6"/></linearGradient></defs><rect width="32" height="32" rx="9" fill="url(#kg-h)"/><path d="M10.5 21.5L16 11l5.5 10.5" fill="none" stroke="#fff" stroke-opacity=".55" stroke-width="1.8" stroke-linecap="round"/><circle cx="16" cy="10.5" r="3.2" fill="#fff"/><circle cx="10" cy="22" r="3.2" fill="#fff"/><circle cx="22" cy="22" r="3.2" fill="#f6b549"/></svg><span>kwant</span></a>+ <nav class="nav" aria-label="Main">+ <a class="hide-sm" href="../#features">Features</a>+ <a class="hide-sm" href="../#how">How it works</a>+ <a class="hide-sm" href="../#faq">FAQ</a>+ <a href="../docs/quickstart.html" aria-current="page">Docs</a>+ <a class="btn btn-ghost" href="https://github.com/alexsergivan/kwant" rel="noopener"><svg viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg><span>GitHub</span></a>+ </nav>+ </div>+</header>+<main id="main">+<div class="wrap docs">+ <nav class="docs-nav" aria-label="Docs">+ <h2>Docs</h2>+ <ul>+ <li><a href="../docs/quickstart.html">Quickstart</a></li>+ <li><a href="../docs/install.html">Install & run</a></li>+ <li><a href="../docs/bots-and-teams.html">Bots & teams</a></li>+ <li><a href="../docs/approvals.html" aria-current="page">Approvals & passwords</a></li>+ <li><a href="../docs/models.html">Models & accounts</a></li>+ <li><a href="../docs/mcp.html">MCP tools</a></li>+ <li><a href="../docs/browser.html">Browser</a></li>+ </ul>+ </nav>+ <article class="prose">+<p class="kicker">Docs</p>+<h1>Approvals & saved passwords</h1>+<p class="intro">You decide how much a bot may do without asking. Risky actions wait on a card with the exact command or arguments, and kwant's own secrets are off limits in every mode.</p>++<h2 id="cards">Approval cards</h2>+<p>When a bot wants to run a command, edit a file outside its folder or call a tool, you see a card with what it will do:</p>+<ul>+ <li><strong>Allow once</strong> runs this one call.</li>+ <li><strong>Always allow</strong> allows that tool for that bot until kwant restarts.</li>+ <li><strong>Deny</strong> refuses it, and the bot is told.</li>+</ul>+<figure>+ <div class="frame"><a class="zoom" href="../assets/media/desktop-approval-2880.webp" data-caption="An Action Approval Required card for a GitHub create pull request call, showing the full arguments with Deny, Allow Once and Always Allow buttons."><img src="../assets/media/desktop-approval-1440.webp" srcset="../assets/media/desktop-approval-1440.webp 1440w, ../assets/media/desktop-approval-2880.webp 2880w" sizes="(max-width: 860px) 100vw, 760px" width="1440" height="900" loading="lazy" decoding="async" alt="An Action Approval Required card for a GitHub create pull request call, showing the full arguments with Deny, Allow Once and Always Allow buttons."></a></div>+ <figcaption>TechLead asks before opening a pull request.</figcaption>+</figure>+<p>Only you can answer a card. Bots' own tools can't, and neither can a bot calling kwant's API.</p>++<h2 id="modes">Approval modes</h2>+<p>Each space has a mode, and each bot can override it or follow the space. Only you can change it.</p>+<div class="table-wrap"><table>+ <thead><tr><th>Mode</th><th>In the app</th><th>What happens</th></tr></thead>+ <tbody>+ <tr><td><code>ask</code> (default)</td><td>Ask before running commands</td><td>Every tool call outside the bot's folder shows a card.</td></tr>+ <tr><td><code>smart</code></td><td>Ask only when risky</td><td>Ordinary work runs without a card. Anything risky or unclear shows the card, with the reason.</td></tr>+ <tr><td><code>off</code></td><td>Don't ask</td><td>Everything runs.</td></tr>+ </tbody>+</table></div>+<p>In every mode, a call that names kwant's own secret files (the vault, its key, the API token) is refused and recorded as denied. Calls that run without a card are recorded too, and under <code>smart</code> each record says why it was judged safe.</p>++<h3 id="smart">What "Ask only when risky" lets through</h3>+<ul>+ <li><strong>Shell commands</strong> in the bot's folder that a fail-closed allowlist recognises as safe: file and text tools like <code>ls</code>, <code>cat</code> or <code>jq</code>, and build tools like <code>cargo</code>, <code>npm</code>, <code>make</code> or <code>git</code>, with checks. Network tools, <code>sudo</code>, containers, <code>git push</code>, package installs, <code>npx</code>, inline code, and any path outside the folder still ask.</li>+ <li><strong>Reads</strong> outside the folder, unless they touch system data or anything that looks like a credential: <code>.ssh</code>, <code>.aws</code>, <code>.env</code> files, key files, browser profiles, shell histories and more.</li>+ <li><strong>MCP tools</strong> the server marks read-only and not destructive.</li>+</ul>+<p>Requests to kwant itself, on its own port or any loopback <code>/api/</code> path, always ask. Writes and edits outside the folder, and unknown tools, always ask.</p>+<div class="note warn"><strong><code>smart</code> guards against accidents. It isn't a sandbox.</strong> Scripts in the bot's folder, <code>make</code>, <code>cargo build</code> and <code>npm run</code> run without a card and can do anything the bot's user can, including a script the bot wrote a moment earlier. Use <code>ask</code> for bots or folders you don't trust.</div>++<h3 id="session">"Always this session"</h3>+<p>Under <code>ask</code> and <code>smart</code>, "Always this session" on a Claude tool's card allows that tool, for example all <code>Bash</code>, for that bot and conversation until kwant restarts.</p>++<h2 id="passwords">Saved passwords</h2>+<p>kwant can fill website logins in a team's, channel's or bot's browser. Passwords live in one of two stores:</p>+<div class="table-wrap"><table>+ <thead><tr><th>Store</th><th>Where</th></tr></thead>+ <tbody>+ <tr><td><strong>Built-in</strong> (default)</td><td>Encrypted files in <code><data dir>/kwnt-vault/</code>, with the key next to them.</td></tr>+ <tr><td><strong>Bitwarden</strong></td><td>Your own Bitwarden or Vaultwarden account, folder <code>kwnt</code>, after you unlock it once.</td></tr>+ </tbody>+</table></div>+<p>The built-in store protects against copies of the data folder. It doesn't protect against a bot running as the same user with approvals off, because that bot could read the key. So kwant enforces one rule:</p>+<div class="note"><strong>Approvals off, or "Ask only when risky", needs Bitwarden</strong> while the built-in store holds any password. Move them to Bitwarden first (<code>POST /api/passwords/migrate</code>): each one is deleted locally only after Bitwarden has it.</div>++<h3 id="bitwarden">How the Bitwarden store works</h3>+<ul>+ <li>kwant talks to Bitwarden itself, not through the <code>bw</code> CLI or <code>bw serve</code>.</li>+ <li>The master password, session and vault key exist only in kwant's memory. Nothing secret is written to disk, passed to a child process or logged.</li>+ <li>After a restart the vault is <strong>locked</strong>: nothing is filled until you unlock it again.</li>+ <li>Only items in the <code>kwnt</code> folder that carry kwant's owner field are used. Organisation items, trash and other folders are never read.</li>+ <li>Showing a password needs your master password. Five wrong tries in a row lock the vault.</li>+</ul>+<div class="note warn"><strong>Known gap.</strong> Autofill stays on while approvals are off. Chrome's debugging port listens on loopback without authentication, so a bot with a shell could read a field kwant has just filled. This applies to both stores. A fix that removes the port is planned.</div>++ <nav class="pager" aria-label="Docs pages"><a class="prev" href="../docs/bots-and-teams.html"><small>Previous</small>Bots & teams</a><a class="next" href="../docs/models.html"><small>Next</small>Models & accounts</a></nav>+ </article>+</div>+</main>+<footer class="site-footer">+ <div class="wrap">+ <div>+ <a class="brand" href="../" aria-label="kwant home"><svg viewBox="0 0 32 32" aria-hidden="true"><defs><linearGradient id="kg-f" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#8f7dff"/><stop offset="1" stop-color="#5a43d6"/></linearGradient></defs><rect width="32" height="32" rx="9" fill="url(#kg-f)"/><path d="M10.5 21.5L16 11l5.5 10.5" fill="none" stroke="#fff" stroke-opacity=".55" stroke-width="1.8" stroke-linecap="round"/><circle cx="16" cy="10.5" r="3.2" fill="#fff"/><circle cx="10" cy="22" r="3.2" fill="#fff"/><circle cx="22" cy="22" r="3.2" fill="#f6b549"/></svg><span>kwant</span></a>+ <p>A self-hosted team of AI bots in one binary. Screens and clips on this site come from a real kwant build running sample data.</p>+ </div>+ <nav aria-label="Footer">+ <a href="../docs/quickstart.html">Quickstart</a>+ <a href="../docs/install.html">Install & run</a>+ <a href="../docs/approvals.html">Approvals</a>+ <a href="../docs/models.html">Models</a>+ <a href="https://github.com/alexsergivan/kwant" rel="noopener">GitHub</a>+ </nav>+ </div>+</footer>+<script src="../assets/js/site.js" defer></script>+</body>+</html>diff --git a/site/docs/bots-and-teams.html b/site/docs/bots-and-teams.htmlnew file mode 100644index 00000000..c9ace6f0--- /dev/null+++ b/site/docs/bots-and-teams.html@@ -0,0 +1,148 @@+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>Bots & teams · kwant</title>+<meta name="description" content="Create kwant bots from persona presets, give them souls, group them into teams with a lead, and let them hand work to each other.">+<meta name="theme-color" content="#0d0a1d">+<meta name="color-scheme" content="dark">+<link rel="canonical" href="https://kwant.pages.dev/docs/bots-and-teams">+<meta property="og:type" content="website">+<meta property="og:site_name" content="kwant">+<meta property="og:title" content="Bots & teams · kwant">+<meta property="og:description" content="Create kwant bots from persona presets, give them souls, group them into teams with a lead, and let them hand work to each other.">+<meta property="og:url" content="https://kwant.pages.dev/docs/bots-and-teams">+<meta property="og:image" content="https://kwant.pages.dev/assets/og.png">+<meta property="og:image:width" content="1200">+<meta property="og:image:height" content="630">+<meta property="og:image:alt" content="kwant: a team of AI bots discussing a feature and posting one summary">+<meta name="twitter:card" content="summary_large_image">+<link rel="icon" href="../favicon.svg" type="image/svg+xml">+<link rel="icon" href="../favicon-32.png" sizes="32x32" type="image/png">+<link rel="apple-touch-icon" href="../apple-touch-icon.png">+<link rel="preload" href="../assets/fonts/inter-var.woff2" as="font" type="font/woff2" crossorigin>+<link rel="stylesheet" href="../assets/css/site.css">+</head>+<body>+<a class="skip" href="#main">Skip to content</a>+<header class="site-header">+ <div class="wrap">+ <a class="brand" href="../" aria-label="kwant home"><svg viewBox="0 0 32 32" aria-hidden="true"><defs><linearGradient id="kg-h" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#8f7dff"/><stop offset="1" stop-color="#5a43d6"/></linearGradient></defs><rect width="32" height="32" rx="9" fill="url(#kg-h)"/><path d="M10.5 21.5L16 11l5.5 10.5" fill="none" stroke="#fff" stroke-opacity=".55" stroke-width="1.8" stroke-linecap="round"/><circle cx="16" cy="10.5" r="3.2" fill="#fff"/><circle cx="10" cy="22" r="3.2" fill="#fff"/><circle cx="22" cy="22" r="3.2" fill="#f6b549"/></svg><span>kwant</span></a>+ <nav class="nav" aria-label="Main">+ <a class="hide-sm" href="../#features">Features</a>+ <a class="hide-sm" href="../#how">How it works</a>+ <a class="hide-sm" href="../#faq">FAQ</a>+ <a href="../docs/quickstart.html" aria-current="page">Docs</a>+ <a class="btn btn-ghost" href="https://github.com/alexsergivan/kwant" rel="noopener"><svg viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg><span>GitHub</span></a>+ </nav>+ </div>+</header>+<main id="main">+<div class="wrap docs">+ <nav class="docs-nav" aria-label="Docs">+ <h2>Docs</h2>+ <ul>+ <li><a href="../docs/quickstart.html">Quickstart</a></li>+ <li><a href="../docs/install.html">Install & run</a></li>+ <li><a href="../docs/bots-and-teams.html" aria-current="page">Bots & teams</a></li>+ <li><a href="../docs/approvals.html">Approvals & passwords</a></li>+ <li><a href="../docs/models.html">Models & accounts</a></li>+ <li><a href="../docs/mcp.html">MCP tools</a></li>+ <li><a href="../docs/browser.html">Browser</a></li>+ </ul>+ </nav>+ <article class="prose">+<p class="kicker">Docs</p>+<h1>Bots & teams</h1>+<p class="intro">A bot is a persona with its own voice, model and folder. Bots share channels and teams, know who else is there, and pass work along with an @mention.</p>++<h2 id="new-bot">Create a bot</h2>+<p>Click <strong>New bot</strong> in the sidebar. Start from a ready-made persona, or start blank:</p>+<div class="table-wrap"><table>+ <thead><tr><th>Group</th><th>Presets</th></tr></thead>+ <tbody>+ <tr><td><strong>Tech</strong></td><td>Product, Designer, Frontend, Backend, QA, Security, SRE, Data, Tech Writer</td></tr>+ <tr><td><strong>Non-tech</strong></td><td>Research, Marketing, Copywriter, Sales, Finance, Legal, Support, People, Coach, Tutor</td></tr>+ <tr><td><strong>Lifestyle</strong></td><td>Travel Planner, Chef, Fitness Trainer, Event Planner, Home & DIY, Language Partner, Budget Buddy, Wellbeing Companion</td></tr>+ </tbody>+</table></div>+<p>A preset fills in the name, title, persona, soul and avatar. Change anything before you create the bot.</p>+<figure>+ <div class="frame"><a class="zoom" href="../assets/media/desktop-presets-2880.webp" data-caption="The New bot dialog with the Security preset picked, showing the Tech, Non-tech and Lifestyle tabs and the avatar grid."><img src="../assets/media/desktop-presets-1440.webp" srcset="../assets/media/desktop-presets-1440.webp 1440w, ../assets/media/desktop-presets-2880.webp 2880w" sizes="(max-width: 860px) 100vw, 760px" width="1440" height="900" loading="lazy" decoding="async" alt="The New bot dialog with the Security preset picked, showing the Tech, Non-tech and Lifestyle tabs and the avatar grid."></a></div>+ <figcaption>The New bot dialog with the Security preset picked.</figcaption>+</figure>++<h3 id="persona-soul">Persona and soul</h3>+<ul>+ <li><strong>Persona</strong> is what the bot does: its role and instructions. It's also what the router reads when it picks who should answer.</li>+ <li><strong>Soul</strong> is optional: its personality, voice, values and quirks. It's added to the system prompt, so it shapes how the bot speaks, but it isn't used for routing. Every preset and built-in bot has one.</li>+ <li><strong>Avatar:</strong> pick a pixel avatar style. The one you choose always wins over hints in the bot's name.</li>+</ul>++<h3 id="edit">Edit a bot</h3>+<p>Hover a bot in the sidebar and click the pencil, or use <strong>Edit</strong> in a direct chat's header. You can change its name, title, avatar, preferred model, persona and soul. A rename carries over to the bot's past messages. Bots on an API key also get a <strong>Usage</strong> tab with their token use by purpose, cache and call.</p>++<h2 id="channels-teams">Channels and teams</h2>+<p>A <strong>channel</strong> (like <code>#general</code>) is a shared chat for any bots you add to it. A <strong>team</strong> (like <code>@Product</code>) is a group of bots with:</p>+<ul>+ <li>a <strong>handle</strong> and a <strong>mission</strong>;</li>+ <li><strong>pinned team instructions</strong> every member follows;</li>+ <li>a <strong>workspace</strong> folder;</li>+ <li>a <strong>lead</strong> and a roster of members.</li>+</ul>+<p>Create a team with <strong>New team</strong> in the sidebar and change it later with <strong>Manage</strong> in its header. Each team has its own chat. When you delete a team, its chat is kept as <code>#archived-team-<name></code> with all its messages.</p>+<figure>+ <div class="frame"><a class="zoom" href="../assets/media/desktop-manage-team-2880.webp" data-caption="The Manage Team dialog with handle, mission, pinned team instructions, workspace, lead and roster."><img src="../assets/media/desktop-manage-team-1440.webp" srcset="../assets/media/desktop-manage-team-1440.webp 1440w, ../assets/media/desktop-manage-team-2880.webp 2880w" sizes="(max-width: 860px) 100vw, 760px" width="1440" height="900" loading="lazy" decoding="async" alt="The Manage Team dialog with handle, mission, pinned team instructions, workspace, lead and roster."></a></div>+ <figcaption>Manage Team: one lead, clear rules, the right members.</figcaption>+</figure>++<h2 id="routing">Who answers</h2>+<p>In a channel, kwant picks the bot whose persona fits your message best and shows the reason. The <a href="models.html#laya">Laya router</a> does this, and falls back to keyword matching while it's unavailable. Mention a bot (<code>@Designer</code>) to ask it directly.</p>++<h2 id="handoffs">Handoffs</h2>+<p>Every bot knows its teammates in the current channel or team. When a reply @mentions a teammate, or <code>@everyone</code>, that teammate answers right after in the same chat. A message can lead to <strong>up to four handoffs</strong>, so bots can't keep each other going forever.</p>+<figure>+ <div class="frame"><a class="zoom" href="../assets/media/desktop-handoff-2880.webp" data-caption="Designer answers in the design-review channel, then @mentions QA, and QA picks it up."><img src="../assets/media/desktop-handoff-1440.webp" srcset="../assets/media/desktop-handoff-1440.webp 1440w, ../assets/media/desktop-handoff-2880.webp 2880w" sizes="(max-width: 860px) 100vw, 760px" width="1440" height="900" loading="lazy" decoding="async" alt="Designer answers in the design-review channel, then @mentions QA, and QA picks it up."></a></div>+ <figcaption>Designer hands the check to QA with an @mention.</figcaption>+</figure>++<h2 id="discussions">Team discussions</h2>+<p>When a question to a team needs several views, the lead runs a short, moderated discussion:</p>+<ol>+ <li>The lead opens with a short take, or first asks you a clarifying question and waits.</li>+ <li>Teammates respond to each other by name in about 120 words or fewer, or pass when they have nothing to add.</li>+ <li>The lead closes with one summary.</li>+</ol>+<p>The back-and-forth folds into a collapsible <strong>Team discussed</strong> thread, so the chat shows the answer. Open it to read every turn.</p>+<figure>+ <div class="frame"><a class="zoom" href="../assets/media/desktop-team-discussion-expanded-2880.webp" data-caption="The Product team chat with the Team discussed fold open, showing each bot's turn and the @mentions between them."><img src="../assets/media/desktop-team-discussion-expanded-1440.webp" srcset="../assets/media/desktop-team-discussion-expanded-1440.webp 1440w, ../assets/media/desktop-team-discussion-expanded-2880.webp 2880w" sizes="(max-width: 860px) 100vw, 760px" width="1440" height="900" loading="lazy" decoding="async" alt="The Product team chat with the Team discussed fold open, showing each bot's turn and the @mentions between them."></a></div>+ <figcaption>The discussion fold, opened.</figcaption>+</figure>++<h2 id="routines">Routines and follow-ups</h2>+<p>Bots with kwant's own tools can set things up for you when you ask, in the same turn: routines on a schedule (daily, weekly, monthly, every N minutes or once), one-off follow-ups, new bots, channels and spaces. Each change is applied at once with an undo. Deleting a bot, archiving a space or deleting an account waits for your confirmation.</p>+<p>Find every routine in the space under <strong>Routines</strong> in the sidebar.</p>++ <nav class="pager" aria-label="Docs pages"><a class="prev" href="../docs/install.html"><small>Previous</small>Install & run</a><a class="next" href="../docs/approvals.html"><small>Next</small>Approvals & passwords</a></nav>+ </article>+</div>+</main>+<footer class="site-footer">+ <div class="wrap">+ <div>+ <a class="brand" href="../" aria-label="kwant home"><svg viewBox="0 0 32 32" aria-hidden="true"><defs><linearGradient id="kg-f" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#8f7dff"/><stop offset="1" stop-color="#5a43d6"/></linearGradient></defs><rect width="32" height="32" rx="9" fill="url(#kg-f)"/><path d="M10.5 21.5L16 11l5.5 10.5" fill="none" stroke="#fff" stroke-opacity=".55" stroke-width="1.8" stroke-linecap="round"/><circle cx="16" cy="10.5" r="3.2" fill="#fff"/><circle cx="10" cy="22" r="3.2" fill="#fff"/><circle cx="22" cy="22" r="3.2" fill="#f6b549"/></svg><span>kwant</span></a>+ <p>A self-hosted team of AI bots in one binary. Screens and clips on this site come from a real kwant build running sample data.</p>+ </div>+ <nav aria-label="Footer">+ <a href="../docs/quickstart.html">Quickstart</a>+ <a href="../docs/install.html">Install & run</a>+ <a href="../docs/approvals.html">Approvals</a>+ <a href="../docs/models.html">Models</a>+ <a href="https://github.com/alexsergivan/kwant" rel="noopener">GitHub</a>+ </nav>+ </div>+</footer>+<script src="../assets/js/site.js" defer></script>+</body>+</html>diff --git a/site/docs/browser.html b/site/docs/browser.htmlnew file mode 100644index 00000000..a98ebf66--- /dev/null+++ b/site/docs/browser.html@@ -0,0 +1,125 @@+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>Browser · kwant</title>+<meta name="description" content="kwant's bot browser, shown live in the app. Run it on your own Chrome in Local mode, or isolated in Docker in VM mode.">+<meta name="theme-color" content="#0d0a1d">+<meta name="color-scheme" content="dark">+<link rel="canonical" href="https://kwant.pages.dev/docs/browser">+<meta property="og:type" content="website">+<meta property="og:site_name" content="kwant">+<meta property="og:title" content="Browser · kwant">+<meta property="og:description" content="kwant's bot browser, shown live in the app. Run it on your own Chrome in Local mode, or isolated in Docker in VM mode.">+<meta property="og:url" content="https://kwant.pages.dev/docs/browser">+<meta property="og:image" content="https://kwant.pages.dev/assets/og.png">+<meta property="og:image:width" content="1200">+<meta property="og:image:height" content="630">+<meta property="og:image:alt" content="kwant: a team of AI bots discussing a feature and posting one summary">+<meta name="twitter:card" content="summary_large_image">+<link rel="icon" href="../favicon.svg" type="image/svg+xml">+<link rel="icon" href="../favicon-32.png" sizes="32x32" type="image/png">+<link rel="apple-touch-icon" href="../apple-touch-icon.png">+<link rel="preload" href="../assets/fonts/inter-var.woff2" as="font" type="font/woff2" crossorigin>+<link rel="stylesheet" href="../assets/css/site.css">+</head>+<body>+<a class="skip" href="#main">Skip to content</a>+<header class="site-header">+ <div class="wrap">+ <a class="brand" href="../" aria-label="kwant home"><svg viewBox="0 0 32 32" aria-hidden="true"><defs><linearGradient id="kg-h" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#8f7dff"/><stop offset="1" stop-color="#5a43d6"/></linearGradient></defs><rect width="32" height="32" rx="9" fill="url(#kg-h)"/><path d="M10.5 21.5L16 11l5.5 10.5" fill="none" stroke="#fff" stroke-opacity=".55" stroke-width="1.8" stroke-linecap="round"/><circle cx="16" cy="10.5" r="3.2" fill="#fff"/><circle cx="10" cy="22" r="3.2" fill="#fff"/><circle cx="22" cy="22" r="3.2" fill="#f6b549"/></svg><span>kwant</span></a>+ <nav class="nav" aria-label="Main">+ <a class="hide-sm" href="../#features">Features</a>+ <a class="hide-sm" href="../#how">How it works</a>+ <a class="hide-sm" href="../#faq">FAQ</a>+ <a href="../docs/quickstart.html" aria-current="page">Docs</a>+ <a class="btn btn-ghost" href="https://github.com/alexsergivan/kwant" rel="noopener"><svg viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg><span>GitHub</span></a>+ </nav>+ </div>+</header>+<main id="main">+<div class="wrap docs">+ <nav class="docs-nav" aria-label="Docs">+ <h2>Docs</h2>+ <ul>+ <li><a href="../docs/quickstart.html">Quickstart</a></li>+ <li><a href="../docs/install.html">Install & run</a></li>+ <li><a href="../docs/bots-and-teams.html">Bots & teams</a></li>+ <li><a href="../docs/approvals.html">Approvals & passwords</a></li>+ <li><a href="../docs/models.html">Models & accounts</a></li>+ <li><a href="../docs/mcp.html">MCP tools</a></li>+ <li><a href="../docs/browser.html" aria-current="page">Browser</a></li>+ </ul>+ </nav>+ <article class="prose">+<p class="kicker">Docs</p>+<h1>Browser</h1>+<p class="intro">Bots can browse the web, and you watch it live in the app's browser panel. Take control at any time to sign in or solve a CAPTCHA yourself.</p>++<h2 id="how">How it works</h2>+<p>kwant runs one long-lived Chromium per installation, with a separate browser context for each bot, channel or team. The app connects to kwant over a same-origin WebSocket. kwant relays the screen frames and your input, so your browser never talks to Chromium directly.</p>+<ul>+ <li><strong>Take Control</strong> gives you an exclusive hold. Bot navigation waits until you hand it back, close the panel or disconnect.</li>+ <li>Closing the panel stops its stream. Slow viewers don't build up a backlog of frames.</li>+ <li>Restarting kwant reconnects to the existing sessions while Chromium keeps running.</li>+</ul>++<h2 id="modes">Local or VM mode</h2>+<p>Choose where bots' browser and shell commands run in <strong>Settings → Computer</strong>, or with the browser panel's mode toggle. Switching takes effect at once, without a restart.</p>+<div class="table-wrap"><table>+ <thead><tr><th></th><th>Local computer</th><th>VM</th></tr></thead>+ <tbody>+ <tr><td><strong>Default on</strong></td><td>macOS</td><td>Everywhere else, including a VPS</td></tr>+ <tr><td><strong>Browser</strong></td><td>Your installed Chrome or Chromium, windowless, with its own profile</td><td>A Chromium container</td></tr>+ <tr><td><strong>kwant's shell</strong></td><td>On your computer, in the bot's folder. Every command asks first.</td><td>A separate execution container</td></tr>+ <tr><td><strong>Needs</strong></td><td>A Chrome binary</td><td>Docker, or your own Chromium service</td></tr>+ </tbody>+</table></div>+<p>In Local mode, <strong>Open as window</strong> reopens the same profile as a real window, with each bot's page, so you can sign in yourself. <strong>Show it here instead</strong> brings it back into the panel. kwant never uses your everyday Chrome profile.</p>+<div class="note warn"><strong>Local mode gives up isolation.</strong> Commands run with your user's access to your files, and other programs on the computer can reach Chrome's debugging port while it runs. Use VM mode for untrusted browsing and shell work. In both modes, the Claude, Codex and Grok CLIs run on the host with their own tools.</div>++<h2 id="vm">VM mode with Docker</h2>+<p>Install Docker and start kwant. The first browser request builds the browser image from a recipe embedded in the binary and starts a private container, so a VPS with only the binary works too. No desktop or display server is needed. Prebuild the images to skip the first-use wait:</p>+<pre><code>docker build -t kwnt-browser:v1 -f docker/browser.Dockerfile docker+docker build -t kwnt-executor:v1 -f docker/executor.Dockerfile docker</code></pre>+<p>The browser shares a 1.5 GiB memory limit across all bots, rather than one Chromium per bot. Browser contexts keep cookies and local storage apart. They aren't OS isolation between users who don't trust each other.</p>++<h2 id="own-service">Your own Chromium service</h2>+<p>If you manage Chromium separately, point kwant at its debugging endpoint:</p>+<pre><code>KWNT_BROWSER_CDP_URL=http://browser:9222 kwnt serve --host 0.0.0.0 --port 8799</code></pre>+<p>Keep that endpoint private: it grants full control of the browser. Use a dedicated browser, never a person's everyday profile.</p>++<h2 id="settings">Settings</h2>+<div class="table-wrap"><table>+ <thead><tr><th>Environment</th><th>What it does</th></tr></thead>+ <tbody>+ <tr><td><code>KWNT_COMPUTER_MODE</code></td><td><code>local</code> or <code>vm</code>, unless a choice is saved in Settings</td></tr>+ <tr><td><code>KWNT_CHROME_PATH</code></td><td>The browser binary Local mode launches</td></tr>+ <tr><td><code>KWNT_BROWSER_CDP_URL</code></td><td>Use an existing Chromium service</td></tr>+ </tbody>+</table></div>+<p>Saved website logins for the browser are covered in <a href="approvals.html#passwords">Approvals & saved passwords</a>.</p>++ <nav class="pager" aria-label="Docs pages"><a class="prev" href="../docs/mcp.html"><small>Previous</small>MCP tools</a></nav>+ </article>+</div>+</main>+<footer class="site-footer">+ <div class="wrap">+ <div>+ <a class="brand" href="../" aria-label="kwant home"><svg viewBox="0 0 32 32" aria-hidden="true"><defs><linearGradient id="kg-f" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#8f7dff"/><stop offset="1" stop-color="#5a43d6"/></linearGradient></defs><rect width="32" height="32" rx="9" fill="url(#kg-f)"/><path d="M10.5 21.5L16 11l5.5 10.5" fill="none" stroke="#fff" stroke-opacity=".55" stroke-width="1.8" stroke-linecap="round"/><circle cx="16" cy="10.5" r="3.2" fill="#fff"/><circle cx="10" cy="22" r="3.2" fill="#fff"/><circle cx="22" cy="22" r="3.2" fill="#f6b549"/></svg><span>kwant</span></a>+ <p>A self-hosted team of AI bots in one binary. Screens and clips on this site come from a real kwant build running sample data.</p>+ </div>+ <nav aria-label="Footer">+ <a href="../docs/quickstart.html">Quickstart</a>+ <a href="../docs/install.html">Install & run</a>+ <a href="../docs/approvals.html">Approvals</a>+ <a href="../docs/models.html">Models</a>+ <a href="https://github.com/alexsergivan/kwant" rel="noopener">GitHub</a>+ </nav>+ </div>+</footer>+<script src="../assets/js/site.js" defer></script>+</body>+</html>diff --git a/site/docs/install.html b/site/docs/install.htmlnew file mode 100644index 00000000..4157207d--- /dev/null+++ b/site/docs/install.html@@ -0,0 +1,163 @@+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>Install & run · kwant</title>+<meta name="description" content="Build the kwnt binary and run it on your own computer, on a VPS with systemd, or with Docker Compose behind an HTTPS proxy.">+<meta name="theme-color" content="#0d0a1d">+<meta name="color-scheme" content="dark">+<link rel="canonical" href="https://kwant.pages.dev/docs/install">+<meta property="og:type" content="website">+<meta property="og:site_name" content="kwant">+<meta property="og:title" content="Install & run · kwant">+<meta property="og:description" content="Build the kwnt binary and run it on your own computer, on a VPS with systemd, or with Docker Compose behind an HTTPS proxy.">+<meta property="og:url" content="https://kwant.pages.dev/docs/install">+<meta property="og:image" content="https://kwant.pages.dev/assets/og.png">+<meta property="og:image:width" content="1200">+<meta property="og:image:height" content="630">+<meta property="og:image:alt" content="kwant: a team of AI bots discussing a feature and posting one summary">+<meta name="twitter:card" content="summary_large_image">+<link rel="icon" href="../favicon.svg" type="image/svg+xml">+<link rel="icon" href="../favicon-32.png" sizes="32x32" type="image/png">+<link rel="apple-touch-icon" href="../apple-touch-icon.png">+<link rel="preload" href="../assets/fonts/inter-var.woff2" as="font" type="font/woff2" crossorigin>+<link rel="stylesheet" href="../assets/css/site.css">+</head>+<body>+<a class="skip" href="#main">Skip to content</a>+<header class="site-header">+ <div class="wrap">+ <a class="brand" href="../" aria-label="kwant home"><svg viewBox="0 0 32 32" aria-hidden="true"><defs><linearGradient id="kg-h" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#8f7dff"/><stop offset="1" stop-color="#5a43d6"/></linearGradient></defs><rect width="32" height="32" rx="9" fill="url(#kg-h)"/><path d="M10.5 21.5L16 11l5.5 10.5" fill="none" stroke="#fff" stroke-opacity=".55" stroke-width="1.8" stroke-linecap="round"/><circle cx="16" cy="10.5" r="3.2" fill="#fff"/><circle cx="10" cy="22" r="3.2" fill="#fff"/><circle cx="22" cy="22" r="3.2" fill="#f6b549"/></svg><span>kwant</span></a>+ <nav class="nav" aria-label="Main">+ <a class="hide-sm" href="../#features">Features</a>+ <a class="hide-sm" href="../#how">How it works</a>+ <a class="hide-sm" href="../#faq">FAQ</a>+ <a href="../docs/quickstart.html" aria-current="page">Docs</a>+ <a class="btn btn-ghost" href="https://github.com/alexsergivan/kwant" rel="noopener"><svg viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg><span>GitHub</span></a>+ </nav>+ </div>+</header>+<main id="main">+<div class="wrap docs">+ <nav class="docs-nav" aria-label="Docs">+ <h2>Docs</h2>+ <ul>+ <li><a href="../docs/quickstart.html">Quickstart</a></li>+ <li><a href="../docs/install.html" aria-current="page">Install & run</a></li>+ <li><a href="../docs/bots-and-teams.html">Bots & teams</a></li>+ <li><a href="../docs/approvals.html">Approvals & passwords</a></li>+ <li><a href="../docs/models.html">Models & accounts</a></li>+ <li><a href="../docs/mcp.html">MCP tools</a></li>+ <li><a href="../docs/browser.html">Browser</a></li>+ </ul>+ </nav>+ <article class="prose">+<p class="kicker">Docs</p>+<h1>Install & run</h1>+<p class="intro"><code>kwnt</code> is one self-contained binary with the web app and SQLite built in. Build it once, then run it on your own computer or on a server.</p>++<h2 id="build">Build the release binary</h2>+<pre><code>make build+./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="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>+<pre><code>ssh -L 8799:127.0.0.1:8799 user@your-vps</code></pre>++<h2 id="vps">On a VPS</h2>+<pre><code><span class="c"># 1. Copy the binary to your server</span>+scp target/release/kwnt user@your-vps:/usr/local/bin/kwnt++<span class="c"># 2. Run it</span>+ssh user@your-vps "kwnt serve --host 0.0.0.0 --port 8799"</code></pre>+<p>On a bind other than loopback, <code>kwnt serve</code> prints a ready-to-open sign-in link on its output, never in the log:</p>+<pre><code>http://<this-host>:8799/#kwnt_token=…</code></pre>+<p>Swap <code><this-host></code> for the server's address and open the link once. The page signs in with an HttpOnly cookie that lasts a year and clears the address bar.</p>+<ul>+ <li><strong>Lost the link?</strong> <code>kwnt token</code> prints it again.</li>+ <li><strong>Scripts:</strong> <code>kwnt token --raw</code> prints just the token, to send as <code>Authorization: Bearer <token></code>.</li>+ <li>The token lives in <code><data dir>/api-token</code> (mode 0600), or set <code>KWNT_API_TOKEN</code> (16+ characters).</li>+</ul>+<div class="note warn"><strong>The link signs in as you.</strong> Anyone who can read the server's output, or <code>docker compose logs</code> with Docker, can use it. Keep that output private.</div>++<h3 id="systemd">As a systemd service</h3>+<p>Create a dedicated user (<code>useradd --system --create-home --home-dir /var/lib/kwnt kwnt</code>), then sign the CLIs in as that user, or add API keys in the app.</p>+<pre><code><span class="c"># /etc/systemd/system/kwnt.service</span>+[Unit]+Description=Kwant AI agent platform+After=network.target++[Service]+Type=simple+User=kwnt+ExecStart=/usr/local/bin/kwnt serve --host 0.0.0.0 --port 8799+Restart=always+Environment=KWNT_DATA_DIR=/var/lib/kwnt+Environment=LAYA_URL=http://127.0.0.1:8000++[Install]+WantedBy=multi-user.target</code></pre>+<pre><code>systemctl daemon-reload+systemctl enable --now kwnt</code></pre>++<h2 id="docker">With Docker Compose</h2>+<p><code>docker-compose.yml</code> runs kwant next to a Laya image with the model weights baked in, so the server never downloads them at runtime:</p>+<pre><code>docker compose up -d --build <span class="c"># UI on http://127.0.0.1:8799</span>+docker compose logs kwnt | grep kwnt_token <span class="c"># open that link once</span>+docker compose exec kwnt kwnt token <span class="c"># print it again later</span></code></pre>+<p>Requests through Docker's published port arrive from the bridge network, so they count as remote: open the startup link once, using <code>127.0.0.1</code> as the host. Data persists in the <code>kwnt-data</code> volume.</p>++<h2 id="proxy">Behind an HTTPS reverse proxy</h2>+<p>Only the HTTPS port needs to be reachable from outside. Forward the original <code>Host</code> header, because the live browser stream checks <code>Origin</code> against it, and allow WebSocket upgrades:</p>+<pre><code>location / {+ proxy_pass http://127.0.0.1:8799;+ proxy_http_version 1.1;+ proxy_set_header Host $http_host;+ proxy_set_header Upgrade $http_upgrade;+ proxy_set_header Connection "upgrade";+ proxy_set_header X-Forwarded-Proto $scheme;+ proxy_buffering off;+ proxy_read_timeout 90s;+}</code></pre>+<p>Requests carrying proxy headers count as remote, so they need the sign-in link even if the proxy runs on the same machine. Never publish Chromium's debugging port or the Docker socket.</p>++<h2 id="settings">Settings</h2>+<div class="table-wrap"><table>+ <thead><tr><th>Environment</th><th>What it does</th></tr></thead>+ <tbody>+ <tr><td><code>KWNT_DATA_DIR</code></td><td>Where kwant keeps its database (<code>kwnt.db</code>), account profiles and saved passwords. Default <code>~/.kwnt</code>.</td></tr>+ <tr><td><code>KWNT_REQUIRE_TOKEN</code></td><td><code>always</code> requires the token for local requests too; <code>never</code> turns the check off (only behind your own authentication).</td></tr>+ <tr><td><code>KWNT_API_TOKEN</code></td><td>Use your own API token instead of the generated one.</td></tr>+ <tr><td><code>KWNT_ALLOWED_ORIGINS</code></td><td>Extra browser origins allowed to call <code>/api</code>, comma separated.</td></tr>+ <tr><td><code>KWNT_COMPUTER_MODE</code></td><td><code>local</code> or <code>vm</code>, unless a choice is saved in Settings.</td></tr>+ <tr><td><code>LAYA_URL</code></td><td>Where the Laya router answers. Default <code>http://127.0.0.1:8000</code>.</td></tr>+ <tr><td><code>KWNT_LAYA_MANAGED=0</code></td><td>Don't install or run Laya; use your own. <code>kwnt serve --no-laya</code> skips it.</td></tr>+ </tbody>+</table></div>+<p><code>~/.kwnt/config.toml</code> can also set <code>host</code>, <code>port</code>, <code>data_dir</code> and the Laya options (<code>laya_url</code>, <code>laya_managed</code>, <code>laya_models</code>). More on Laya is in <a href="models.html#laya">Models & accounts</a>.</p>++ <nav class="pager" aria-label="Docs pages"><a class="prev" href="../docs/quickstart.html"><small>Previous</small>Quickstart</a><a class="next" href="../docs/bots-and-teams.html"><small>Next</small>Bots & teams</a></nav>+ </article>+</div>+</main>+<footer class="site-footer">+ <div class="wrap">+ <div>+ <a class="brand" href="../" aria-label="kwant home"><svg viewBox="0 0 32 32" aria-hidden="true"><defs><linearGradient id="kg-f" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#8f7dff"/><stop offset="1" stop-color="#5a43d6"/></linearGradient></defs><rect width="32" height="32" rx="9" fill="url(#kg-f)"/><path d="M10.5 21.5L16 11l5.5 10.5" fill="none" stroke="#fff" stroke-opacity=".55" stroke-width="1.8" stroke-linecap="round"/><circle cx="16" cy="10.5" r="3.2" fill="#fff"/><circle cx="10" cy="22" r="3.2" fill="#fff"/><circle cx="22" cy="22" r="3.2" fill="#f6b549"/></svg><span>kwant</span></a>+ <p>A self-hosted team of AI bots in one binary. Screens and clips on this site come from a real kwant build running sample data.</p>+ </div>+ <nav aria-label="Footer">+ <a href="../docs/quickstart.html">Quickstart</a>+ <a href="../docs/install.html">Install & run</a>+ <a href="../docs/approvals.html">Approvals</a>+ <a href="../docs/models.html">Models</a>+ <a href="https://github.com/alexsergivan/kwant" rel="noopener">GitHub</a>+ </nav>+ </div>+</footer>+<script src="../assets/js/site.js" defer></script>+</body>+</html>diff --git a/site/docs/mcp.html b/site/docs/mcp.htmlnew file mode 100644index 00000000..2e1dbbd4--- /dev/null+++ b/site/docs/mcp.html@@ -0,0 +1,125 @@+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>MCP tools · kwant</title>+<meta name="description" content="Give kwant bots tools through Model Context Protocol servers, with per-bot access, masked secrets, OAuth sign-in and approvals.">+<meta name="theme-color" content="#0d0a1d">+<meta name="color-scheme" content="dark">+<link rel="canonical" href="https://kwant.pages.dev/docs/mcp">+<meta property="og:type" content="website">+<meta property="og:site_name" content="kwant">+<meta property="og:title" content="MCP tools · kwant">+<meta property="og:description" content="Give kwant bots tools through Model Context Protocol servers, with per-bot access, masked secrets, OAuth sign-in and approvals.">+<meta property="og:url" content="https://kwant.pages.dev/docs/mcp">+<meta property="og:image" content="https://kwant.pages.dev/assets/og.png">+<meta property="og:image:width" content="1200">+<meta property="og:image:height" content="630">+<meta property="og:image:alt" content="kwant: a team of AI bots discussing a feature and posting one summary">+<meta name="twitter:card" content="summary_large_image">+<link rel="icon" href="../favicon.svg" type="image/svg+xml">+<link rel="icon" href="../favicon-32.png" sizes="32x32" type="image/png">+<link rel="apple-touch-icon" href="../apple-touch-icon.png">+<link rel="preload" href="../assets/fonts/inter-var.woff2" as="font" type="font/woff2" crossorigin>+<link rel="stylesheet" href="../assets/css/site.css">+</head>+<body>+<a class="skip" href="#main">Skip to content</a>+<header class="site-header">+ <div class="wrap">+ <a class="brand" href="../" aria-label="kwant home"><svg viewBox="0 0 32 32" aria-hidden="true"><defs><linearGradient id="kg-h" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#8f7dff"/><stop offset="1" stop-color="#5a43d6"/></linearGradient></defs><rect width="32" height="32" rx="9" fill="url(#kg-h)"/><path d="M10.5 21.5L16 11l5.5 10.5" fill="none" stroke="#fff" stroke-opacity=".55" stroke-width="1.8" stroke-linecap="round"/><circle cx="16" cy="10.5" r="3.2" fill="#fff"/><circle cx="10" cy="22" r="3.2" fill="#fff"/><circle cx="22" cy="22" r="3.2" fill="#f6b549"/></svg><span>kwant</span></a>+ <nav class="nav" aria-label="Main">+ <a class="hide-sm" href="../#features">Features</a>+ <a class="hide-sm" href="../#how">How it works</a>+ <a class="hide-sm" href="../#faq">FAQ</a>+ <a href="../docs/quickstart.html" aria-current="page">Docs</a>+ <a class="btn btn-ghost" href="https://github.com/alexsergivan/kwant" rel="noopener"><svg viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg><span>GitHub</span></a>+ </nav>+ </div>+</header>+<main id="main">+<div class="wrap docs">+ <nav class="docs-nav" aria-label="Docs">+ <h2>Docs</h2>+ <ul>+ <li><a href="../docs/quickstart.html">Quickstart</a></li>+ <li><a href="../docs/install.html">Install & run</a></li>+ <li><a href="../docs/bots-and-teams.html">Bots & teams</a></li>+ <li><a href="../docs/approvals.html">Approvals & passwords</a></li>+ <li><a href="../docs/models.html">Models & accounts</a></li>+ <li><a href="../docs/mcp.html" aria-current="page">MCP tools</a></li>+ <li><a href="../docs/browser.html">Browser</a></li>+ </ul>+ </nav>+ <article class="prose">+<p class="kicker">Docs</p>+<h1>MCP tools</h1>+<p class="intro">Bots can use tools from <a href="https://modelcontextprotocol.io" rel="noopener">Model Context Protocol</a> servers, like GitHub or Notion. Register a server once, then choose which bots may use it.</p>++<h2 id="add">Add a server</h2>+<p>Open the tool servers screen, <strong>Give your bots new abilities</strong>, and paste a command or URL from any server's README. kwant supports two transports:</p>+<ul>+ <li><strong>stdio:</strong> kwant, or the bot's CLI, starts a command as a child process, for example <code>npx -y @modelcontextprotocol/server-github</code>. No shell is involved.</li>+ <li><strong>http:</strong> a streamable-HTTP MCP endpoint at a URL.</li>+</ul>+<p>Click <strong>Connect</strong> to test it: kwant starts the server, lists its tools and shuts it down again, and shows what the server printed if something fails.</p>++<h2 id="access">Which bots see which tools</h2>+<p>A bot only ever sees the servers assigned to it, never the host user's own MCP configuration. Pick a bot's servers under <strong>Tools this bot can use</strong>. A disabled server is kept but offered to no bot. Tool names look like <code>mcp__<server>__<tool></code>.</p>++<h2 id="secrets">Secrets</h2>+<p>Environment variables and headers are treated as secrets. They're stored, but every value comes back masked as <code>********</code>, with only the keys visible. Secret values never appear in API responses, logs or the CLI's command line, and test output has them replaced too.</p>++<h2 id="oauth">Servers that need a sign-in</h2>+<p>For HTTP servers that require sign-in, such as <code>https://mcp.notion.com/mcp</code>, kwant follows the MCP authorization spec: it discovers the server's sign-in provider, registers itself, and runs the authorization-code flow with PKCE in a popup. The sign-in must finish within 10 minutes. The API only ever reports whether a server is connected, never its tokens.</p>++<h2 id="suggestions">Bots can suggest servers</h2>+<p>Bots can search the official MCP Registry and post a suggestion card in the chat. A suggestion installs nothing: you install it, with one click, and only exact versions from the default npm and PyPI registries, Docker images or HTTPS endpoints qualify. Cards for servers that would run on your computer say so.</p>++<h2 id="approvals">Approvals for tools</h2>+<p>MCP tool calls follow the bot's <a href="approvals.html#modes">approval mode</a>. Under "Ask only when risky", tools the server marks read-only and not destructive run without a card. That's the server's own claim, and if kwant can't check it, the call asks. Every call a bot makes is recorded on its reply.</p>++<h2 id="api">HTTP API</h2>+<div class="table-wrap"><table>+ <thead><tr><th>Route</th><th>What it does</th></tr></thead>+ <tbody>+ <tr><td><code>GET /api/mcp/servers</code></td><td>List servers, by name</td></tr>+ <tr><td><code>POST /api/mcp/servers</code></td><td>Register a server</td></tr>+ <tr><td><code>PUT /api/mcp/servers/:id</code></td><td>Update one. A masked value keeps the stored secret.</td></tr>+ <tr><td><code>DELETE /api/mcp/servers/:id</code></td><td>Delete it and remove it from every bot</td></tr>+ <tr><td><code>POST /api/mcp/servers/:id/test</code></td><td>Initialize, list tools, shut down</td></tr>+ <tr><td><code>POST /api/mcp/servers/:id/oauth/start</code></td><td>Start a sign-in; returns the URL to open</td></tr>+ <tr><td><code>GET</code> / <code>PUT /api/kwants/:id/mcp-servers</code></td><td>Read or set a bot's servers</td></tr>+ </tbody>+</table></div>+<pre><code><span class="c"># Register the GitHub server</span>+curl -X POST http://127.0.0.1:8799/api/mcp/servers \+ -H 'Content-Type: application/json' \+ -d '{"name":"github","transport":"stdio","command":"npx",+ "args":["-y","@modelcontextprotocol/server-github"],+ "env":{"GITHUB_TOKEN":"…"}}'</code></pre>+<p>The full contract, including the server object and error codes, is in <a href="https://github.com/alexsergivan/kwant/blob/main/docs/mcp-api.md" rel="noopener">docs/mcp-api.md</a>.</p>++ <nav class="pager" aria-label="Docs pages"><a class="prev" href="../docs/models.html"><small>Previous</small>Models & accounts</a><a class="next" href="../docs/browser.html"><small>Next</small>Browser</a></nav>+ </article>+</div>+</main>+<footer class="site-footer">+ <div class="wrap">+ <div>+ <a class="brand" href="../" aria-label="kwant home"><svg viewBox="0 0 32 32" aria-hidden="true"><defs><linearGradient id="kg-f" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#8f7dff"/><stop offset="1" stop-color="#5a43d6"/></linearGradient></defs><rect width="32" height="32" rx="9" fill="url(#kg-f)"/><path d="M10.5 21.5L16 11l5.5 10.5" fill="none" stroke="#fff" stroke-opacity=".55" stroke-width="1.8" stroke-linecap="round"/><circle cx="16" cy="10.5" r="3.2" fill="#fff"/><circle cx="10" cy="22" r="3.2" fill="#fff"/><circle cx="22" cy="22" r="3.2" fill="#f6b549"/></svg><span>kwant</span></a>+ <p>A self-hosted team of AI bots in one binary. Screens and clips on this site come from a real kwant build running sample data.</p>+ </div>+ <nav aria-label="Footer">+ <a href="../docs/quickstart.html">Quickstart</a>+ <a href="../docs/install.html">Install & run</a>+ <a href="../docs/approvals.html">Approvals</a>+ <a href="../docs/models.html">Models</a>+ <a href="https://github.com/alexsergivan/kwant" rel="noopener">GitHub</a>+ </nav>+ </div>+</footer>+<script src="../assets/js/site.js" defer></script>+</body>+</html>diff --git a/site/docs/models.html b/site/docs/models.htmlnew file mode 100644index 00000000..3a08bd66--- /dev/null+++ b/site/docs/models.html@@ -0,0 +1,136 @@+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>Models & accounts · kwant</title>+<meta name="description" content="The engines kwant runs on, account profiles with automatic failover, custom OpenAI- or Anthropic-compatible servers, and the Laya model router.">+<meta name="theme-color" content="#0d0a1d">+<meta name="color-scheme" content="dark">+<link rel="canonical" href="https://kwant.pages.dev/docs/models">+<meta property="og:type" content="website">+<meta property="og:site_name" content="kwant">+<meta property="og:title" content="Models & accounts · kwant">+<meta property="og:description" content="The engines kwant runs on, account profiles with automatic failover, custom OpenAI- or Anthropic-compatible servers, and the Laya model router.">+<meta property="og:url" content="https://kwant.pages.dev/docs/models">+<meta property="og:image" content="https://kwant.pages.dev/assets/og.png">+<meta property="og:image:width" content="1200">+<meta property="og:image:height" content="630">+<meta property="og:image:alt" content="kwant: a team of AI bots discussing a feature and posting one summary">+<meta name="twitter:card" content="summary_large_image">+<link rel="icon" href="../favicon.svg" type="image/svg+xml">+<link rel="icon" href="../favicon-32.png" sizes="32x32" type="image/png">+<link rel="apple-touch-icon" href="../apple-touch-icon.png">+<link rel="preload" href="../assets/fonts/inter-var.woff2" as="font" type="font/woff2" crossorigin>+<link rel="stylesheet" href="../assets/css/site.css">+</head>+<body>+<a class="skip" href="#main">Skip to content</a>+<header class="site-header">+ <div class="wrap">+ <a class="brand" href="../" aria-label="kwant home"><svg viewBox="0 0 32 32" aria-hidden="true"><defs><linearGradient id="kg-h" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#8f7dff"/><stop offset="1" stop-color="#5a43d6"/></linearGradient></defs><rect width="32" height="32" rx="9" fill="url(#kg-h)"/><path d="M10.5 21.5L16 11l5.5 10.5" fill="none" stroke="#fff" stroke-opacity=".55" stroke-width="1.8" stroke-linecap="round"/><circle cx="16" cy="10.5" r="3.2" fill="#fff"/><circle cx="10" cy="22" r="3.2" fill="#fff"/><circle cx="22" cy="22" r="3.2" fill="#f6b549"/></svg><span>kwant</span></a>+ <nav class="nav" aria-label="Main">+ <a class="hide-sm" href="../#features">Features</a>+ <a class="hide-sm" href="../#how">How it works</a>+ <a class="hide-sm" href="../#faq">FAQ</a>+ <a href="../docs/quickstart.html" aria-current="page">Docs</a>+ <a class="btn btn-ghost" href="https://github.com/alexsergivan/kwant" rel="noopener"><svg viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg><span>GitHub</span></a>+ </nav>+ </div>+</header>+<main id="main">+<div class="wrap docs">+ <nav class="docs-nav" aria-label="Docs">+ <h2>Docs</h2>+ <ul>+ <li><a href="../docs/quickstart.html">Quickstart</a></li>+ <li><a href="../docs/install.html">Install & run</a></li>+ <li><a href="../docs/bots-and-teams.html">Bots & teams</a></li>+ <li><a href="../docs/approvals.html">Approvals & passwords</a></li>+ <li><a href="../docs/models.html" aria-current="page">Models & accounts</a></li>+ <li><a href="../docs/mcp.html">MCP tools</a></li>+ <li><a href="../docs/browser.html">Browser</a></li>+ </ul>+ </nav>+ <article class="prose">+<p class="kicker">Docs</p>+<h1>Models & accounts</h1>+<p class="intro">Bots run on the CLIs you already use or on API keys. Add several accounts per engine, and kwant moves a turn to the next one when an account runs out of usage.</p>++<h2 id="engines">Engines</h2>+<ul>+ <li><strong>Host CLIs:</strong> <code>claude</code>, <code>codex</code> and <code>grok</code>, supervised by kwant, with their own file and shell tools.</li>+ <li><strong>Provider APIs:</strong> Anthropic, OpenAI and xAI keys.</li>+ <li><strong>Custom API:</strong> any server that speaks the OpenAI chat API (OpenRouter, LM Studio and others) or the Anthropic Messages API.</li>+</ul>+<p>Each bot has a preferred model. Set it to <strong>auto</strong> and kwant picks the model and effort for every message.</p>++<h2 id="profiles">Account profiles</h2>+<p>A profile is one account for an engine, for example a work Claude subscription and a personal one. Every engine starts with a <strong>This machine</strong> profile, which uses the CLI's own login, or the key from Settings or the environment.</p>+<div class="table-wrap"><table>+ <thead><tr><th>Kind</th><th>Runs with</th><th>Signed in by</th></tr></thead>+ <tbody>+ <tr><td><code>system</code></td><td>The CLI's default config folder, or the Settings or environment key</td><td>Whatever you did on the host</td></tr>+ <tr><td><code>cli_home</code></td><td>Its own config folder; host credential variables are removed</td><td>The in-app sign-in, or your own folder</td></tr>+ <tr><td><code>api_key</code></td><td>The provider's API, with only the profile's key</td><td>The key you paste</td></tr>+ <tr><td><code>custom_api</code></td><td>Your own server, with its key if it has one</td><td>A check of the server's model list</td></tr>+ </tbody>+</table></div>+<p>Keys are write-only: no API response ever contains one, only whether it's set.</p>++<h3 id="sign-in">Signing in a CLI profile</h3>+<p>kwant runs the CLI's own login with the profile's folder. For Claude, open the link and paste the code shown back into kwant. For Codex and Grok, open the link and enter the code. A sign-in expires after 10 minutes.</p>++<h3 id="failover">Failover</h3>+<p>A bot can be pinned to a profile; otherwise the engine's default profile runs. When that profile is out of usage or signed out, and nothing has been shown or done yet in the turn, kwant moves the turn to the engine's next enabled profile by priority, up to 3 attempts, and the chat says so. A profile that ran out is skipped until its reset time. Overloads and rate limits are retried, not failed over. Turn failover off for a bot to keep it on its profile.</p>++<h2 id="custom">Custom API accounts</h2>+<p>Add an account with the server's base URL and, if needed, a key. kwant checks the server's model list when you save it and shows whether it's ready, unreachable or rejected the key. A space can have several custom accounts, and they belong to that space only.</p>+<ul>+ <li>Paste the base URL with or without <code>/chat/completions</code> or <code>/messages</code>: kwant trims it to the API root.</li>+ <li>MCP tools are offered on OpenAI-chat servers. Anthropic-Messages servers run without tools and say so.</li>+ <li>Custom API never falls back to the host's accounts.</li>+</ul>++<h2 id="laya">The Laya router</h2>+<p><a href="https://huggingface.co/convaiinnovations/laya" rel="noopener">Laya</a> picks which bot answers in a channel, and which model and effort a bot set to auto uses. It's a small Python service, and <code>kwnt serve</code> manages it for you:</p>+<ol>+ <li>On first run it installs <code>laya[serve]</code> into <code>~/.kwnt/laya/venv</code>, with <code>uv</code> when present or <code>python3 -m venv</code> otherwise.</li>+ <li>It starts <code>laya-serve</code> and downloads the English checkpoint (about 420 MB) on first start.</li>+ <li>It restarts Laya if it exits, and stops it when kwant shuts down.</li>+</ol>+<p>The header shows the router's status: green online, amber installing or loading, red offline. While Laya is unavailable, kwant routes by keyword and says so on the routing card.</p>+<div class="table-wrap"><table>+ <thead><tr><th>Setting</th><th><code>config.toml</code></th><th>Environment</th><th>Default</th></tr></thead>+ <tbody>+ <tr><td>Laya URL</td><td><code>laya_url</code></td><td><code>LAYA_URL</code></td><td><code>http://127.0.0.1:8000</code></td></tr>+ <tr><td>Manage a local Laya</td><td><code>laya_managed</code></td><td><code>KWNT_LAYA_MANAGED=0</code> or <code>--no-laya</code> to disable</td><td>on</td></tr>+ <tr><td>Checkpoints to preload</td><td><code>laya_models</code></td><td><code>KWNT_LAYA_MODELS</code></td><td><code>english</code></td></tr>+ <tr><td>Existing <code>laya-serve</code></td><td></td><td><code>KWNT_LAYA_SERVE_BIN</code></td><td></td></tr>+ </tbody>+</table></div>+<p>kwant only starts Laya for loopback URLs. If Laya already answers, for example from Docker, kwant uses it as is.</p>+<div class="note"><strong>Behind a proxy that blocks Hugging Face?</strong> Start kwant once on an open network, or copy an existing <code>~/.kwnt/laya/hf</code> from another machine. After that, Laya starts offline.</div>++ <nav class="pager" aria-label="Docs pages"><a class="prev" href="../docs/approvals.html"><small>Previous</small>Approvals & passwords</a><a class="next" href="../docs/mcp.html"><small>Next</small>MCP tools</a></nav>+ </article>+</div>+</main>+<footer class="site-footer">+ <div class="wrap">+ <div>+ <a class="brand" href="../" aria-label="kwant home"><svg viewBox="0 0 32 32" aria-hidden="true"><defs><linearGradient id="kg-f" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#8f7dff"/><stop offset="1" stop-color="#5a43d6"/></linearGradient></defs><rect width="32" height="32" rx="9" fill="url(#kg-f)"/><path d="M10.5 21.5L16 11l5.5 10.5" fill="none" stroke="#fff" stroke-opacity=".55" stroke-width="1.8" stroke-linecap="round"/><circle cx="16" cy="10.5" r="3.2" fill="#fff"/><circle cx="10" cy="22" r="3.2" fill="#fff"/><circle cx="22" cy="22" r="3.2" fill="#f6b549"/></svg><span>kwant</span></a>+ <p>A self-hosted team of AI bots in one binary. Screens and clips on this site come from a real kwant build running sample data.</p>+ </div>+ <nav aria-label="Footer">+ <a href="../docs/quickstart.html">Quickstart</a>+ <a href="../docs/install.html">Install & run</a>+ <a href="../docs/approvals.html">Approvals</a>+ <a href="../docs/models.html">Models</a>+ <a href="https://github.com/alexsergivan/kwant" rel="noopener">GitHub</a>+ </nav>+ </div>+</footer>+<script src="../assets/js/site.js" defer></script>+</body>+</html>diff --git a/site/docs/quickstart.html b/site/docs/quickstart.htmlnew file mode 100644index 00000000..8188d3cd--- /dev/null+++ b/site/docs/quickstart.html@@ -0,0 +1,139 @@+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>Quickstart · kwant</title>+<meta name="description" content="Build kwant from a fresh clone, add an account and ask your first team of bots a question.">+<meta name="theme-color" content="#0d0a1d">+<meta name="color-scheme" content="dark">+<link rel="canonical" href="https://kwant.pages.dev/docs/quickstart">+<meta property="og:type" content="website">+<meta property="og:site_name" content="kwant">+<meta property="og:title" content="Quickstart · kwant">+<meta property="og:description" content="Build kwant from a fresh clone, add an account and ask your first team of bots a question.">+<meta property="og:url" content="https://kwant.pages.dev/docs/quickstart">+<meta property="og:image" content="https://kwant.pages.dev/assets/og.png">+<meta property="og:image:width" content="1200">+<meta property="og:image:height" content="630">+<meta property="og:image:alt" content="kwant: a team of AI bots discussing a feature and posting one summary">+<meta name="twitter:card" content="summary_large_image">+<link rel="icon" href="../favicon.svg" type="image/svg+xml">+<link rel="icon" href="../favicon-32.png" sizes="32x32" type="image/png">+<link rel="apple-touch-icon" href="../apple-touch-icon.png">+<link rel="preload" href="../assets/fonts/inter-var.woff2" as="font" type="font/woff2" crossorigin>+<link rel="stylesheet" href="../assets/css/site.css">+</head>+<body>+<a class="skip" href="#main">Skip to content</a>+<header class="site-header">+ <div class="wrap">+ <a class="brand" href="../" aria-label="kwant home"><svg viewBox="0 0 32 32" aria-hidden="true"><defs><linearGradient id="kg-h" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#8f7dff"/><stop offset="1" stop-color="#5a43d6"/></linearGradient></defs><rect width="32" height="32" rx="9" fill="url(#kg-h)"/><path d="M10.5 21.5L16 11l5.5 10.5" fill="none" stroke="#fff" stroke-opacity=".55" stroke-width="1.8" stroke-linecap="round"/><circle cx="16" cy="10.5" r="3.2" fill="#fff"/><circle cx="10" cy="22" r="3.2" fill="#fff"/><circle cx="22" cy="22" r="3.2" fill="#f6b549"/></svg><span>kwant</span></a>+ <nav class="nav" aria-label="Main">+ <a class="hide-sm" href="../#features">Features</a>+ <a class="hide-sm" href="../#how">How it works</a>+ <a class="hide-sm" href="../#faq">FAQ</a>+ <a href="../docs/quickstart.html" aria-current="page">Docs</a>+ <a class="btn btn-ghost" href="https://github.com/alexsergivan/kwant" rel="noopener"><svg viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg><span>GitHub</span></a>+ </nav>+ </div>+</header>+<main id="main">+<div class="wrap docs">+ <nav class="docs-nav" aria-label="Docs">+ <h2>Docs</h2>+ <ul>+ <li><a href="../docs/quickstart.html" aria-current="page">Quickstart</a></li>+ <li><a href="../docs/install.html">Install & run</a></li>+ <li><a href="../docs/bots-and-teams.html">Bots & teams</a></li>+ <li><a href="../docs/approvals.html">Approvals & passwords</a></li>+ <li><a href="../docs/models.html">Models & accounts</a></li>+ <li><a href="../docs/mcp.html">MCP tools</a></li>+ <li><a href="../docs/browser.html">Browser</a></li>+ </ul>+ </nav>+ <article class="prose">+<p class="kicker">Docs</p>+<h1>Quickstart</h1>+<p class="intro">Go from a fresh clone to a team of bots answering in your browser. On most machines it takes a few minutes, plus a one-time model download in the background.</p>++<h2 id="requirements">What you need</h2>+<ul>+ <li><strong>Rust</strong> (stable), installed with <a href="https://rustup.rs" rel="noopener">rustup</a>.</li>+ <li><strong>Node.js 20 or newer</strong> with npm, to build the web app. The finished binary doesn't need it.</li>+ <li><strong>At least one AI account</strong> for your bots. Any one of these is enough:+ <ul>+ <li>the <a href="https://docs.anthropic.com/en/docs/claude-code" rel="noopener"><code>claude</code> CLI</a>, installed. You don't need to sign it in first, because kwant has a <strong>Sign in with Claude</strong> button;</li>+ <li>the <code>codex</code> or <code>grok</code> CLI, signed in on the same machine (<code>codex login</code>, <code>grok login</code>);</li>+ <li>an Anthropic, OpenAI or xAI API key, which you add in the app under <strong>Space settings → Accounts</strong>.</li>+ </ul>+ </li>+ <li>Optional: <strong>Docker</strong> for VM mode and the bots' shared browser, and <a href="https://docs.astral.sh/uv/" rel="noopener"><code>uv</code></a> or <code>python3</code> for the Laya router.</li>+</ul>++<h2 id="run">1. Run from a fresh clone</h2>+<pre><code>git clone https://github.com/alexsergivan/kwant.git+cd kwant+make run <span class="c"># builds the web app, then runs `cargo run -- serve`</span></code></pre>+<p>Open <strong><a href="http://127.0.0.1:8799">http://127.0.0.1:8799</a></strong>. On your own computer there's nothing to sign in to. If no account works yet, kwant shows a <strong>Get ready</strong> banner with an <strong>Add an account</strong> button.</p>+<div class="note"><strong>The first start takes a few minutes.</strong> kwant installs its Laya router and downloads its model (about 420 MB) in the background. Bots answer in the meantime, picked by keyword. To skip Laya, run <code>cargo run -- serve --no-laya</code>.</div>+<p><code>cargo run -- serve</code> on its own works only once <code>frontend/dist</code> exists, because the binary embeds the web app. After the first <code>make run</code> (or <code>make frontend</code>) you can use either.</p>++<h2 id="account">2. Add an account</h2>+<p>Pick whichever you have:</p>+<ul>+ <li><strong>Claude:</strong> click <strong>Sign in with Claude</strong>, open the link and paste the code shown back into kwant.</li>+ <li><strong>Codex or Grok:</strong> sign the CLI in on this machine, and kwant uses it as is.</li>+ <li><strong>API key:</strong> open <strong>Space settings → Accounts</strong> and add an Anthropic, OpenAI or xAI key. Keys are write-only: the app never shows them again.</li>+</ul>+<p>You can add several accounts per engine, such as a work and a personal one. See <a href="models.html">Models & accounts</a>.</p>++<h2 id="first-question">3. Ask your first question</h2>+<p>A fresh install's Default space starts with three bots in <strong>#general</strong>, on the <code>@core-engineering</code> team:</p>+<div class="table-wrap"><table>+ <thead><tr><th>Bot</th><th>Title</th><th>Good at</th></tr></thead>+ <tbody>+ <tr><td><strong>Architect</strong></td><td>Systems Architect</td><td>Architecture, software design, multi-file engineering</td></tr>+ <tr><td><strong>TechLead</strong></td><td>Staff Engineer & Prototyper</td><td>Fast reasoning, prototyping, clear explanations</td></tr>+ <tr><td><strong>DevOps</strong></td><td>Systems & Security Engineer</td><td>Shell, servers, containers, security</td></tr>+ </tbody>+</table></div>+<p>Type a question in #general. kwant picks the bot that fits best and shows why. Mention a bot by name (<code>@Architect</code>) to ask it directly, or ask in the team's chat (<code>@core-engineering</code>): when a question needs several views, the lead runs a short discussion and posts one summary.</p>+<figure>+ <div class="frame"><a class="zoom" href="../assets/media/desktop-reasoning-2880.webp" data-caption="A question in the general channel routed to Architect, with the routing reason and the model and effort used."><img src="../assets/media/desktop-reasoning-1440.webp" srcset="../assets/media/desktop-reasoning-1440.webp 1440w, ../assets/media/desktop-reasoning-2880.webp 2880w" sizes="(max-width: 860px) 100vw, 760px" width="1440" height="900" loading="lazy" decoding="async" alt="A question in the general channel routed to Architect, with the routing reason and the model and effort used."></a></div>+ <figcaption>kwant shows which bot it picked and why. Screens on this site come from a sample space.</figcaption>+</figure>++<h2 id="next">Next steps</h2>+<ul>+ <li><a href="bots-and-teams.html">Create bots and teams</a> from ready-made personas.</li>+ <li><a href="approvals.html">Choose how often bots ask</a> before running commands.</li>+ <li><a href="install.html">Run kwant on a server</a> with systemd or Docker Compose.</li>+ <li><a href="mcp.html">Give bots tools</a> like GitHub or Notion through MCP.</li>+</ul>+<h2 id="tests">Running the tests</h2>+<pre><code>cargo test <span class="c"># Rust tests (run `make frontend` first: they need frontend/dist)</span>+cd frontend && npm test <span class="c"># web app tests</span></code></pre>++ <nav class="pager" aria-label="Docs pages"><a class="next" href="../docs/install.html"><small>Next</small>Install & run</a></nav>+ </article>+</div>+</main>+<footer class="site-footer">+ <div class="wrap">+ <div>+ <a class="brand" href="../" aria-label="kwant home"><svg viewBox="0 0 32 32" aria-hidden="true"><defs><linearGradient id="kg-f" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#8f7dff"/><stop offset="1" stop-color="#5a43d6"/></linearGradient></defs><rect width="32" height="32" rx="9" fill="url(#kg-f)"/><path d="M10.5 21.5L16 11l5.5 10.5" fill="none" stroke="#fff" stroke-opacity=".55" stroke-width="1.8" stroke-linecap="round"/><circle cx="16" cy="10.5" r="3.2" fill="#fff"/><circle cx="10" cy="22" r="3.2" fill="#fff"/><circle cx="22" cy="22" r="3.2" fill="#f6b549"/></svg><span>kwant</span></a>+ <p>A self-hosted team of AI bots in one binary. Screens and clips on this site come from a real kwant build running sample data.</p>+ </div>+ <nav aria-label="Footer">+ <a href="../docs/quickstart.html">Quickstart</a>+ <a href="../docs/install.html">Install & run</a>+ <a href="../docs/approvals.html">Approvals</a>+ <a href="../docs/models.html">Models</a>+ <a href="https://github.com/alexsergivan/kwant" rel="noopener">GitHub</a>+ </nav>+ </div>+</footer>+<script src="../assets/js/site.js" defer></script>+</body>+</html>diff --git a/site/favicon-32.png b/site/favicon-32.pngnew file mode 100644index 00000000..530df839Binary files /dev/null and b/site/favicon-32.png differdiff --git a/site/favicon.svg b/site/favicon.svgnew file mode 100644index 00000000..e9406614--- /dev/null+++ b/site/favicon.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="kg" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#8f7dff"/><stop offset="1" stop-color="#5a43d6"/></linearGradient></defs><rect width="32" height="32" rx="9" fill="url(#kg)"/><path d="M10.5 21.5L16 11l5.5 10.5" fill="none" stroke="#fff" stroke-opacity=".55" stroke-width="1.8" stroke-linecap="round"/><circle cx="16" cy="10.5" r="3.2" fill="#fff"/><circle cx="10" cy="22" r="3.2" fill="#fff"/><circle cx="22" cy="22" r="3.2" fill="#f6b549"/></svg>diff --git a/site/index.html b/site/index.htmlnew file mode 100644index 00000000..f3f787a5--- /dev/null+++ b/site/index.html@@ -0,0 +1,301 @@+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>kwant: your own team of AI bots, in one binary</title>+<meta name="description" content="kwant is a self-hosted team of AI bots. They run on the Claude, Codex or Grok CLIs or your API keys, hand work to each other, and ask before anything risky. One binary, on your laptop or a VPS.">+<meta name="theme-color" content="#0d0a1d">+<meta name="color-scheme" content="dark">+<link rel="canonical" href="https://kwant.pages.dev/">+<meta property="og:type" content="website">+<meta property="og:site_name" content="kwant">+<meta property="og:title" content="kwant: your own team of AI bots, in one binary">+<meta property="og:description" content="kwant is a self-hosted team of AI bots. They run on the Claude, Codex or Grok CLIs or your API keys, hand work to each other, and ask before anything risky. One binary, on your laptop or a VPS.">+<meta property="og:url" content="https://kwant.pages.dev/">+<meta property="og:image" content="https://kwant.pages.dev/assets/og.png">+<meta property="og:image:width" content="1200">+<meta property="og:image:height" content="630">+<meta property="og:image:alt" content="kwant: a team of AI bots discussing a feature and posting one summary">+<meta name="twitter:card" content="summary_large_image">+<link rel="icon" href="favicon.svg" type="image/svg+xml">+<link rel="icon" href="favicon-32.png" sizes="32x32" type="image/png">+<link rel="apple-touch-icon" href="apple-touch-icon.png">+<link rel="preload" href="assets/fonts/inter-var.woff2" as="font" type="font/woff2" crossorigin>+<link rel="stylesheet" href="assets/css/site.css">+</head>+<body>+<a class="skip" href="#main">Skip to content</a>+<header class="site-header">+ <div class="wrap">+ <a class="brand" href="./" aria-label="kwant home"><svg viewBox="0 0 32 32" aria-hidden="true"><defs><linearGradient id="kg-h" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#8f7dff"/><stop offset="1" stop-color="#5a43d6"/></linearGradient></defs><rect width="32" height="32" rx="9" fill="url(#kg-h)"/><path d="M10.5 21.5L16 11l5.5 10.5" fill="none" stroke="#fff" stroke-opacity=".55" stroke-width="1.8" stroke-linecap="round"/><circle cx="16" cy="10.5" r="3.2" fill="#fff"/><circle cx="10" cy="22" r="3.2" fill="#fff"/><circle cx="22" cy="22" r="3.2" fill="#f6b549"/></svg><span>kwant</span></a>+ <nav class="nav" aria-label="Main">+ <a class="hide-sm" href="./#features">Features</a>+ <a class="hide-sm" href="./#how">How it works</a>+ <a class="hide-sm" href="./#faq">FAQ</a>+ <a href="docs/quickstart.html">Docs</a>+ <a class="btn btn-ghost" href="https://github.com/alexsergivan/kwant" rel="noopener"><svg viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg><span>GitHub</span></a>+ </nav>+ </div>+</header>+<main id="main">+<section class="hero">+ <div class="wrap">+ <div class="hero-copy">+ <p class="eyebrow"><span class="dot" aria-hidden="true"></span>Self-hosted · one binary · your data</p>+ <h1>Your own team of <span class="grad">AI bots</span>, working together.</h1>+ <p class="lede">kwant gives you a team of bots that share chats, hand work to each other with an @mention and wait for your OK before anything risky. Run it on your laptop or a server, with the Claude, Codex or Grok CLI you already use, or your own API keys.</p>+ <div class="cta">+ <a class="btn btn-primary" href="docs/quickstart.html">Get started+ <svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 10h12M11 5l5 5-5 5"/></svg></a>+ <a class="btn btn-ghost" href="https://github.com/alexsergivan/kwant" rel="noopener"><svg viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg>View on GitHub</a>+ </div>+ <p class="install-line"><span class="p" aria-hidden="true">$</span><code>git clone https://github.com/alexsergivan/kwant.git && cd kwant && make run</code></p>+ </div>+ <figure class="hero-media">+ <div class="frame">+ <div class="frame-bar" aria-hidden="true"><i></i><i></i><i></i><span>127.0.0.1:8799</span></div>+ <video data-autoplay controls muted playsinline loop preload="metadata" poster="assets/media/clip-handoff-poster.jpg" width="1280" height="800" aria-label="Demo: a question in the design-review channel. Designer answers, then hands it to QA with an @mention, and QA replies with a checklist."><source src="assets/media/clip-handoff.mp4" type="video/mp4"></video>+ </div>+ <figcaption class="media-caption">Ask once. Designer answers, then hands the check to QA with an @mention.</figcaption>+ </figure>+ </div>+</section>++<section id="benefits" class="alt">+ <div class="wrap">+ <div class="section-head center">+ <p class="kicker">Why kwant</p>+ <h2>A real team, not another chat tab</h2>+ <p>Each bot has its own role, voice and model. They know who else is in the room, and you stay in charge of what they're allowed to do.</p>+ </div>+ <div class="benefits">+ <article class="benefit">+ <span class="icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 8l-9-5-9 5 9 5 9-5z"/><path d="M3 8v8l9 5 9-5V8"/><path d="M12 13v8"/></svg></span>+ <h3>One binary</h3>+ <p><code>kwnt</code> is a single program with the web app and an SQLite database built in. No Node.js at runtime and no database server to set up.</p>+ </article>+ <article class="benefit">+ <span class="icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="2"/><path d="M8 20h8M12 16v4"/></svg></span>+ <h3>Your laptop or a VPS</h3>+ <p>On your own computer there's nothing to sign in to. On a server, open the link it prints at startup once. Docker Compose and a systemd unit are included.</p>+ </article>+ <article class="benefit">+ <span class="icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 17l6-6-6-6"/><path d="M12 19h8"/></svg></span>+ <h3>Any model, any CLI</h3>+ <p>Use the <code>claude</code>, <code>codex</code> or <code>grok</code> CLI, Anthropic, OpenAI or xAI API keys, or any OpenAI-compatible server like OpenRouter or LM Studio.</p>+ </article>+ <article class="benefit">+ <span class="icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="8" cy="8" r="3"/><circle cx="17" cy="16" r="3"/><path d="M10.5 10.5l4 4"/><path d="M17 5v4M15 7h4"/></svg></span>+ <h3>Bots that hand off</h3>+ <p>When a reply @mentions a teammate, that teammate answers next in the same chat. For bigger questions the lead runs a short discussion and posts one summary.</p>+ </article>+ <article class="benefit">+ <span class="icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 3l8 3v6c0 4.5-3.4 8.3-8 9-4.6-.7-8-4.5-8-9V6l8-3z"/><path d="M9 12l2 2 4-4"/></svg></span>+ <h3>You approve risky actions</h3>+ <p>Commands and edits outside a bot's own folder wait for Allow once, Always allow or Deny. Or let kwant ask only when something looks risky.</p>+ </article>+ <article class="benefit">+ <span class="icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="11" width="14" height="10" rx="2"/><path d="M8 11V8a4 4 0 018 0v3"/></svg></span>+ <h3>Your data stays yours</h3>+ <p>Chats, bots and settings live in kwant's data folder on your machine. Saved website logins can live in your own Bitwarden.</p>+ </article>+ </div>+ </div>+</section>++<section id="features">+ <div class="wrap">+ <div class="section-head">+ <p class="kicker">Features</p>+ <h2>Everything a small team needs</h2>+ <p>These are real screens from kwant, running a sample space called Trailhead with a four-bot product team.</p>+ </div>++ <div class="showcase">+ <div class="row">+ <div class="row-copy">+ <h3>Ask the team. Get one answer.</h3>+ <p>Ask a team a question that needs several views and the lead takes it from there. It opens with a short take, or asks you first if something's unclear. Teammates reply to each other by name, or pass when they have nothing to add.</p>+ <ul class="checks">+ <li>The back-and-forth folds into a <strong>Team discussed</strong> thread</li>+ <li>The chat shows the lead's summary, with who said what</li>+ <li>Open the fold to read every turn</li>+ </ul>+ </div>+ <div class="frame"><a class="zoom" href="assets/media/desktop-team-discussion-2880.webp" data-caption="The Product team chat. A question about adding a trip waitlist, a collapsed "Team discussed, 4 turns" fold, and TechLead's summary covering flow, backend, hold length, UI and the release gate."><img src="assets/media/desktop-team-discussion-1440.webp" srcset="assets/media/desktop-team-discussion-1440.webp 1440w, assets/media/desktop-team-discussion-2880.webp 2880w" sizes="(max-width: 1024px) 100vw, 680px" width="1440" height="900" loading="lazy" decoding="async" alt="The Product team chat. A question about adding a trip waitlist, a collapsed "Team discussed, 4 turns" fold, and TechLead's summary covering flow, backend, hold length, UI and the release gate."></a></div>+ </div>++ <div class="row flip">+ <div class="row-copy">+ <h3>Nothing risky runs without your OK</h3>+ <p>When a bot wants to run a command, edit a file outside its folder or call a tool like GitHub, you see exactly what it will do, arguments and all.</p>+ <ul class="checks">+ <li><strong>Allow once</strong>, <strong>Always allow</strong> or <strong>Deny</strong>, per action</li>+ <li>Three modes per space or bot: ask every time, ask only when risky, or don't ask</li>+ <li>kwant's own secret files are refused in every mode</li>+ </ul>+ </div>+ <div class="frame"><video data-autoplay controls muted playsinline loop preload="none" poster="assets/media/clip-approval-poster.jpg" width="1280" height="800" aria-label="Demo: TechLead asks to create a GitHub pull request. An approval card shows the full arguments, the user clicks Allow Once, and the reply confirms pull request 482 is open."><source src="assets/media/clip-approval.mp4" type="video/mp4"></video></div>+ </div>++ <div class="row">+ <div class="row-copy">+ <h3>A new teammate in seconds</h3>+ <p>Start from a ready-made persona: Tech roles like Security, QA or SRE, non-tech ones like Research, Legal or Support, or lifestyle helpers like Travel Planner and Chef. Or start blank.</p>+ <ul class="checks">+ <li>Name, role and avatar fill in for you</li>+ <li>Every preset comes with a <strong>Soul</strong>: its voice, values and quirks</li>+ <li>Pick a model, or let kwant choose one per message</li>+ </ul>+ </div>+ <div class="frame"><video data-autoplay controls muted playsinline loop preload="none" poster="assets/media/clip-new-bot-poster.jpg" width="1280" height="800" aria-label="Demo: New bot, the Security preset is picked, the name, role and avatar fill in, and the new SecurityAuditor bot opens ready to chat."><source src="assets/media/clip-new-bot.mp4" type="video/mp4"></video></div>+ </div>+ </div>+ </div>+</section>++<section class="alt" aria-labelledby="more-title">+ <div class="wrap">+ <div class="section-head">+ <p class="kicker">And more</p>+ <h2 id="more-title">Built for day-to-day work</h2>+ </div>+ <div class="grid">+ <article class="card">+ <span class="shot"><a class="zoom" href="assets/media/desktop-handoff-2880.webp" data-caption="The design-review channel. Designer answers a question about empty states, then @mentions QA, and QA checks it on a 360 pixel screen."><img src="assets/media/desktop-handoff-1440.webp" srcset="assets/media/desktop-handoff-1440.webp 1440w, assets/media/desktop-handoff-2880.webp 2880w" sizes="(max-width: 720px) 100vw, (max-width: 1024px) 50vw, 370px" width="1440" height="900" loading="lazy" decoding="async" alt="The design-review channel. Designer answers a question about empty states, then @mentions QA, and QA checks it on a 360 pixel screen."></a></span>+ <div class="card-body"><h3>Handoffs with an @mention</h3><p>Mention a teammate, or <code>@everyone</code>, and they pick it up right after, up to four handoffs per message.</p></div>+ </article>+ <article class="card">+ <span class="shot"><a class="zoom" href="assets/media/desktop-reasoning-2880.webp" data-caption="The general channel. kwant routes a Postgres or queue question to Architect and shows why, plus the model and effort it used."><img src="assets/media/desktop-reasoning-1440.webp" srcset="assets/media/desktop-reasoning-1440.webp 1440w, assets/media/desktop-reasoning-2880.webp 2880w" sizes="(max-width: 720px) 100vw, (max-width: 1024px) 50vw, 370px" width="1440" height="900" loading="lazy" decoding="async" alt="The general channel. kwant routes a Postgres or queue question to Architect and shows why, plus the model and effort it used."></a></span>+ <div class="card-body"><h3>The right bot and model</h3><p>The Laya router picks who answers in a channel, and the model and effort for bots set to auto. If it's offline, kwant routes by keyword.</p></div>+ </article>+ <article class="card">+ <span class="shot"><a class="zoom" href="assets/media/desktop-manage-team-2880.webp" data-caption="The Manage Team dialog with the team handle, mission, pinned team instructions, workspace, lead and roster."><img src="assets/media/desktop-manage-team-1440.webp" srcset="assets/media/desktop-manage-team-1440.webp 1440w, assets/media/desktop-manage-team-2880.webp 2880w" sizes="(max-width: 720px) 100vw, (max-width: 1024px) 50vw, 370px" width="1440" height="900" loading="lazy" decoding="async" alt="The Manage Team dialog with the team handle, mission, pinned team instructions, workspace, lead and roster."></a></span>+ <div class="card-body"><h3>Teams with a lead</h3><p>Give a team a mission, pinned instructions every member follows, a lead and a shared workspace.</p></div>+ </article>+ <article class="card">+ <span class="shot"><a class="zoom" href="assets/media/desktop-usage-2880.webp" data-caption="A bot's Usage tab showing calls, cache share, fresh, cached and output tokens, a breakdown by purpose and recent calls."><img src="assets/media/desktop-usage-1440.webp" srcset="assets/media/desktop-usage-1440.webp 1440w, assets/media/desktop-usage-2880.webp 2880w" sizes="(max-width: 720px) 100vw, (max-width: 1024px) 50vw, 370px" width="1440" height="900" loading="lazy" decoding="async" alt="A bot's Usage tab showing calls, cache share, fresh, cached and output tokens, a breakdown by purpose and recent calls."></a></span>+ <div class="card-body"><h3>See what each bot uses</h3><p>For API-key bots, a Usage tab breaks tokens down by purpose, cache and call.</p></div>+ </article>+ <article class="card">+ <span class="shot"><a class="zoom" href="assets/media/desktop-approval-done-2880.webp" data-caption="After Allow Once, TechLead reports that pull request 482 is open, with a receipt: used 1 tool, create pull request, done."><img src="assets/media/desktop-approval-done-1440.webp" srcset="assets/media/desktop-approval-done-1440.webp 1440w, assets/media/desktop-approval-done-2880.webp 2880w" sizes="(max-width: 720px) 100vw, (max-width: 1024px) 50vw, 370px" width="1440" height="900" loading="lazy" decoding="async" alt="After Allow Once, TechLead reports that pull request 482 is open, with a receipt: used 1 tool, create pull request, done."></a></span>+ <div class="card-body"><h3>A receipt for every tool</h3><p>Replies list the tools a bot used and how each call ended, so nothing happens out of sight.</p></div>+ </article>+ <article class="card">+ <span class="shot"><a class="zoom" href="assets/media/desktop-presets-2880.webp" data-caption="The New bot dialog with the Security preset picked, showing Tech, Non-tech and Lifestyle tabs and the avatar grid."><img src="assets/media/desktop-presets-1440.webp" srcset="assets/media/desktop-presets-1440.webp 1440w, assets/media/desktop-presets-2880.webp 2880w" sizes="(max-width: 720px) 100vw, (max-width: 1024px) 50vw, 370px" width="1440" height="900" loading="lazy" decoding="async" alt="The New bot dialog with the Security preset picked, showing Tech, Non-tech and Lifestyle tabs and the avatar grid."></a></span>+ <div class="card-body"><h3>Personas and souls</h3><p>Every bot has a persona for what it does, a soul for how it speaks, and a pixel avatar.</p></div>+ </article>+ </div>+ </div>+</section>++<section aria-labelledby="phone-title">+ <div class="wrap phones">+ <div class="section-head">+ <p class="kicker">Anywhere</p>+ <h2 id="phone-title">Check in from your phone</h2>+ <p>The web app works on a phone, so you can read the team's summary or approve an action while you're away from your desk.</p>+ </div>+ <div class="phone"><a class="zoom" href="assets/media/phone-team-chat-780.webp" data-caption="The Product team summary on a phone screen."><img src="assets/media/phone-team-chat-390.webp" srcset="assets/media/phone-team-chat-390.webp 390w, assets/media/phone-team-chat-780.webp 780w" sizes="260px" width="390" height="844" loading="lazy" decoding="async" alt="The Product team summary on a phone screen."></a></div>+ <div class="phone lift"><a class="zoom" href="assets/media/phone-approval-780.webp" data-caption="The approval card for a GitHub pull request on a phone screen."><img src="assets/media/phone-approval-390.webp" srcset="assets/media/phone-approval-390.webp 390w, assets/media/phone-approval-780.webp 780w" sizes="260px" width="390" height="844" loading="lazy" decoding="async" alt="The approval card for a GitHub pull request on a phone screen."></a></div>+ </div>+</section>++<section id="how" class="alt">+ <div class="wrap">+ <div class="section-head center">+ <p class="kicker">How it works</p>+ <h2>Running in three steps</h2>+ </div>+ <div class="steps">+ <article class="step">+ <h3>Build and run</h3>+ <p>You need Rust and Node.js 20+ to build. The finished binary needs neither.</p>+<pre><code>git clone https://github.com/alexsergivan/kwant.git+cd kwant+make run</code></pre>+ </article>+ <article class="step">+ <h3>Add an account</h3>+ <p>Use the <strong>Sign in with Claude</strong> button, a signed-in <code>codex</code> or <code>grok</code> CLI, or add an API key under <strong>Space settings → Accounts</strong>.</p>+ </article>+ <article class="step">+ <h3>Ask your team</h3>+ <p>Open <code>http://127.0.0.1:8799</code>. Architect, TechLead and DevOps are already in #general. Ask them something, or create your own team.</p>+ </article>+ </div>+ </div>+</section>++<section id="faq">+ <div class="wrap">+ <div class="section-head center">+ <p class="kicker">FAQ</p>+ <h2>Questions, answered</h2>+ </div>+ <div class="faq">+ <details>+ <summary>Do I need an API key?</summary>+ <div><p>No. Any one account is enough: the <code>claude</code> CLI (kwant has a Sign in with Claude button), the <code>codex</code> or <code>grok</code> CLI signed in on the same machine, or an Anthropic, OpenAI or xAI API key.</p></div>+ </details>+ <details>+ <summary>Where does my data live?</summary>+ <div><p>In kwant's data folder, <code>~/.kwnt</code> by default, or wherever <code>KWNT_DATA_DIR</code> points. Chats, bots and settings are in an SQLite database there. The models themselves run wherever your chosen CLI or API runs them.</p></div>+ </details>+ <details>+ <summary>Can a bot run commands on my computer?</summary>+ <div><p>Only within the limits you set. By default every tool call outside the bot's own folder shows an approval card. You can switch a space or a single bot to "Ask only when risky" or "Don't ask". In any mode, calls that name kwant's own secret files are refused.</p></div>+ </details>+ <details>+ <summary>Can I run it on a server?</summary>+ <div><p>Yes. Copy the binary to a VPS and run <code>kwnt serve --host 0.0.0.0</code>, or use the included Docker Compose file. Open the sign-in link kwant prints at startup once, and that browser stays signed in for a year. Put an HTTPS reverse proxy in front of it.</p></div>+ </details>+ <details>+ <summary>Do I need Docker?</summary>+ <div><p>Only for VM mode, which runs the bots' shared browser and kwant's built-in shell in containers. In Local mode kwant uses your installed Chrome or Chromium, with its own profile, and asks before every command.</p></div>+ </details>+ <details>+ <summary>What is Laya?</summary>+ <div><p>A small routing model (<a href="https://huggingface.co/convaiinnovations/laya" rel="noopener">convaiinnovations/laya</a>) that picks which bot answers in a channel, and which model and effort a bot set to auto uses. kwant installs and runs it for you on first start, which downloads about 420 MB. Skip it with <code>--no-laya</code>, and kwant routes by keyword.</p></div>+ </details>+ <details>+ <summary>Can bots use other tools, like GitHub or Notion?</summary>+ <div><p>Yes, through MCP servers. Add a server once, by pasting a command or URL from its README, then choose which bots can use it. A bot only ever sees the servers you gave it. Servers that need a sign-in use OAuth.</p></div>+ </details>+ </div>+ </div>+</section>++<section class="tight-top" aria-labelledby="closing-title">+ <div class="wrap">+ <div class="closing">+ <h2 id="closing-title">Put your team to work</h2>+ <p>Clone it, run <code>make run</code> and ask your first question in a few minutes.</p>+ <div class="cta">+ <a class="btn btn-primary" href="docs/quickstart.html">Read the quickstart</a>+ <a class="btn btn-ghost" href="docs/install.html">Run it on a server</a>+ </div>+ </div>+ </div>+</section>++</main>+<footer class="site-footer">+ <div class="wrap">+ <div>+ <a class="brand" href="./" aria-label="kwant home"><svg viewBox="0 0 32 32" aria-hidden="true"><defs><linearGradient id="kg-f" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#8f7dff"/><stop offset="1" stop-color="#5a43d6"/></linearGradient></defs><rect width="32" height="32" rx="9" fill="url(#kg-f)"/><path d="M10.5 21.5L16 11l5.5 10.5" fill="none" stroke="#fff" stroke-opacity=".55" stroke-width="1.8" stroke-linecap="round"/><circle cx="16" cy="10.5" r="3.2" fill="#fff"/><circle cx="10" cy="22" r="3.2" fill="#fff"/><circle cx="22" cy="22" r="3.2" fill="#f6b549"/></svg><span>kwant</span></a>+ <p>A self-hosted team of AI bots in one binary. Screens and clips on this site come from a real kwant build running sample data.</p>+ </div>+ <nav aria-label="Footer">+ <a href="docs/quickstart.html">Quickstart</a>+ <a href="docs/install.html">Install & run</a>+ <a href="docs/approvals.html">Approvals</a>+ <a href="docs/models.html">Models</a>+ <a href="https://github.com/alexsergivan/kwant" rel="noopener">GitHub</a>+ </nav>+ </div>+</footer>+<script src="assets/js/site.js" defer></script>+</body>+</html>diff --git a/site/robots.txt b/site/robots.txtnew file mode 100644index 00000000..08c92794--- /dev/null+++ b/site/robots.txt@@ -0,0 +1,4 @@+User-agent: *+Allow: /++Sitemap: https://kwant.pages.dev/sitemap.xmldiff --git a/site/sitemap.xml b/site/sitemap.xmlnew file mode 100644index 00000000..b4b5e89f--- /dev/null+++ b/site/sitemap.xml@@ -0,0 +1,11 @@+<?xml version="1.0" encoding="UTF-8"?>+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">+ <url><loc>https://kwant.pages.dev/docs/approvals</loc></url>+ <url><loc>https://kwant.pages.dev/docs/bots-and-teams</loc></url>+ <url><loc>https://kwant.pages.dev/docs/browser</loc></url>+ <url><loc>https://kwant.pages.dev/docs/install</loc></url>+ <url><loc>https://kwant.pages.dev/docs/mcp</loc></url>+ <url><loc>https://kwant.pages.dev/docs/models</loc></url>+ <url><loc>https://kwant.pages.dev/docs/quickstart</loc></url>+ <url><loc>https://kwant.pages.dev/</loc></url>+</urlset>