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
title: Quickstart: run a team of AI agents locally
description: Download the kwant app for Mac or Linux, add a Claude, Codex or Grok login or an API key, and ask your first team of AI bots a question.
path: docs/quickstart.html
nav: quickstart
card: Download the app, add an AI account and ask your first team of bots a question.
card_art: avatar:brand
---
<p class="kicker">Docs</p>
<h1>Quickstart: run kwant locally</h1>
<p class="intro">Download the app, add an AI account you already have and ask your first question. There's nothing to build. You can also <a href="#run">build kwant from source</a>.</p>
<h2 id="requirements">What you need</h2>
<ul>
<li><strong>A Mac</strong> (Apple silicon or Intel) <strong>or a Linux x86_64 desktop</strong> for the app. On other machines, or on a server, <a href="#run">build from source</a> or use Docker (see <a href="install.html">Install & run</a>).</li>
<li><strong>At least one AI account</strong> for your bots. Any one of these is enough:
<ul>
<li>a Claude, ChatGPT or Grok account. You don't need to install or sign in to anything first: the Get started card installs the AI when it's missing, and you sign in from the app;</li>
<li>an Anthropic, OpenAI or xAI API key, which you add in the card or under <strong>Settings → This space → 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="app">1. Download the app</h2>
<ul>
<li><strong>Mac:</strong> <a href="https://github.com/alexsergivan/kwant/releases/latest/download/kwant_universal.dmg" rel="noopener">download the Mac app</a> (a universal <code>.dmg</code> for Apple silicon and Intel), open it and drag kwant to Applications.</li>
<li><strong>Ubuntu 22.04 or newer, Debian 12 or newer:</strong> <a href="https://github.com/alexsergivan/kwant/releases/latest/download/kwant_amd64.deb" rel="noopener">download the <code>.deb</code></a>, then install it with <code>sudo apt install ./kwant_amd64.deb</code>.</li>
<li><strong>Other Linux distributions:</strong> <a href="https://github.com/alexsergivan/kwant/releases/latest/download/kwant_x86_64.AppImage" rel="noopener">download the AppImage</a>, then <code>chmod +x kwant_x86_64.AppImage</code> and run it. It needs a normal GTK desktop and FUSE.</li>
</ul>
<p>Open kwant. The app runs kwant on your computer and keeps an icon in the menu bar (Mac) or the tray (Linux). For a new person, #general opens with the <a href="#get-started">Get started</a> card.</p>
<p class="note warn">The Mac app is signed ad hoc, not notarized by Apple, so macOS stops it the first time. Click Done, open <b>System Settings › Privacy & Security</b>, scroll down and click <b>Open Anyway</b> next to kwant. On macOS 14 or earlier, right-click the app and choose <b>Open</b> instead.</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.</div>
<h3 id="run">Or build from a fresh clone</h3>
<p>You need <strong>Rust</strong> (stable), installed with <a href="https://rustup.rs" rel="noopener">rustup</a>, and <strong>Node.js 20 or newer</strong> with npm, to build the web app. The finished binary doesn't need Node.</p>
<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. To skip the Laya router, run <code>cargo run -- serve --no-laya</code>.</p>
<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="get-started">2. Get started: choose your AI, sign in, pick a team</h2>
<p>New in 0.7.6. A new person's #general starts with one <strong>Get started</strong> card, in three steps. It replaces the old welcome.</p>
<figure>
<div class="frame">{{shot:v076-get-started|kwant's #general channel for a new person, with the Get started card: step 1, Choose your AI, with tiles for Claude, ChatGPT, Grok and an API key, then step 2, Sign in, and step 3, Pick a team.|(max-width: 860px) 100vw, 760px}}</div>
<figcaption>The Get started card in #general. Screens on this site come from a sample space.</figcaption>
</figure>
<ol>
<li><strong>Choose your AI:</strong> Claude, ChatGPT, Grok or an API key. When the AI isn't on this computer yet, kwant installs it by itself, with no Terminal and no password for this computer.</li>
<li><strong>Sign in:</strong>
<ul>
<li><strong>ChatGPT or Grok:</strong> kwant shows a link and a short code. Open the link, enter the code and approve. The card notices by itself when you're done.</li>
<li><strong>Claude:</strong> press <strong>Open claude.ai</strong>, allow kwant bots, then paste the code claude.ai shows you.</li>
<li><strong>API key:</strong> paste an Anthropic, OpenAI or xAI key. Keys are write-only: the app never shows them again.</li>
</ul>
</li>
<li><strong>Pick a team:</strong> each ready-made team has a lead, helpers and skills for one job. Or choose <strong>Start with @helpers</strong>: Assistant, Researcher and Writer, for everyday asks. Or choose <strong>Bring your bots</strong> (new in 0.7.7): it opens the importer, so you can bring bots from Grok Bot, ChatGPT, Claude or a file and check a preview first. A finished import completes this step. You can add more teams later.</li>
</ol>
<figure>
<div class="phone">{{shot:phone-v076-get-started|The Get started card on a phone, under Welcome to kwant bots, with its three steps one under the other: Choose your AI with tiles for Claude, ChatGPT, Grok and an API key, then Sign in and Pick a team.|300px}}</div>
<figcaption>The same card on a phone.</figcaption>
</figure>
<figure>
<div class="frame">{{shot:v076-device-sign-in-card|The Sign in step of the Get started card after choosing ChatGPT. It says to open auth.openai.com/codex/device and enter the code TRLH-4821, with a Copy button, an Open auth.openai.com/codex/device button and a note that kwant is waiting for you to finish there.|(max-width: 860px) 100vw, 760px}}</div>
<figcaption>Signing in to ChatGPT with a short code. The code here is made up.</figcaption>
</figure>
<figure>
<div class="frame">{{shot:v077-bring-your-bots|kwant's Get started screen at step 3, Pick a team: the Inbox, Sales and Coding teams, Keep the starter bots, and a new Bring your bots tile for importing bots from Grok Bot, ChatGPT, Claude or a file.|(max-width: 860px) 100vw, 760px}}</div>
<figcaption>Bring your bots opens the importer from Get started.</figcaption>
</figure>
<p>The importer's <strong>Upload a file</strong> takes several files in one pick or drop, for example every Grok Bot export you have. kwant packs them into one zip in your browser and shows one preview with every bot, plus the names of any files it couldn't read. A pick is limited to 500 files and 20 MB in all, and a zip can only be imported on its own.</p>
<figure>
<div class="frame">{{shot:v077-import-several-card|The Check before importing preview: 3 bots will be created from 3 files, with Gear-Scout and Trail-Guide ticked.|(max-width: 860px) 100vw, 760px}}</div>
<figcaption>Three files, one preview. Nothing is created until you press Import.</figcaption>
</figure>
<p>The short-code sign-in for ChatGPT and Grok is in the Get started card. <strong>Settings → This space → Accounts</strong> still asks you to sign the <code>codex</code> or <code>grok</code> CLI in on this machine (<code>codex login</code>, <code>grok login</code>), and that's also where you add API keys. You can add several accounts per engine, such as a work and a personal one. See <a href="accounts.html">Accounts & profiles</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>@helpers</code> team, led by Assistant:</p>
<div class="table-wrap"><table>
<thead><tr><th>Bot</th><th>Title</th><th>Good at</th></tr></thead>
<tbody>
<tr><td><strong>Assistant</strong></td><td>Personal Assistant</td><td>Plans what to do and hands out the work: planning a week, turning an idea into steps, to-do lists</td></tr>
<tr><td><strong>Researcher</strong></td><td>Research Analyst</td><td>Looks things up and checks the facts: comparing options, competitor research</td></tr>
<tr><td><strong>Writer</strong></td><td>Writer & Editor</td><td>Drafts emails, posts and documents</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>@Researcher</code>) to ask it directly, or ask in the team's chat (<code>@helpers</code>): when a question needs several views, the lead runs a short discussion and posts one summary.</p>
<figure>
<div class="frame">{{shot:desktop-reasoning|The general channel. kwant routes a Postgres or queue question to Architect and shows why, plus the model and effort it used.|(max-width: 860px) 100vw, 760px}}</div>
<figcaption>kwant shows which bot it picked and why. Screens on this site come from a sample space.</figcaption>
</figure>
<p>When a task on the Mission board says <strong>Verified</strong>, kwant ran its check itself, such as the tests, a web address or a file, or someone other than the bot that did the work reviewed it. A bot's own "done" never counts. See <a href="mission-board.html#verified">what "Verified" means</a>.</p>
<h2 id="next">Next steps</h2>
<ul>
<li><a href="phone.html">Put kwant on your phone</a>: add it to the Home Screen from Safari or Chrome, no app store, and get notified when a bot needs you.</li>
<li><a href="../self-hosted-ai-agents.html">Learn what self-hosted AI agents involve</a>: what stays on your machine and where the risks are.</li>
<li><a href="bots-and-teams.html">Create bots and teams</a> from ready-made personas.</li>
<li><a href="../alternatives/grok-bot.html">Import a Grok Bot</a> from its export file.</li>
<li><a href="../alternatives/openclaw.html">Move from OpenClaw</a> or <a href="../alternatives/hermes-agent.html">Hermes Agent</a>: import your workspaces and profiles.</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>