Quickstart Docs menu

Docs

Quickstart: run kwant locally

Download the app, add an AI account you already have and ask your first question. There's nothing to build. You can also build kwant from source.

What you need

  • A Mac (Apple silicon or Intel) or a Linux x86_64 desktop for the app. On other machines, or on a server, build from source or use Docker (see Install & run). No machine to keep on? Deploy on Railway in one click.
  • At least one AI account for your bots. Any one of these is enough:
    • 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;
    • an Anthropic, OpenAI or xAI API key, which you add in the card or under Settings → This space → Accounts.
  • Optional: Docker for VM mode and the bots' shared browser, and uv or python3 for the Laya router.

1. Download the app

  • Mac: download the Mac app (a universal .dmg for Apple silicon and Intel), open it and drag kwant to Applications.
  • Ubuntu 22.04 or newer, Debian 12 or newer: download the .deb, then install it with sudo apt install ./kwant_amd64.deb.
  • Other Linux distributions: download the AppImage, then chmod +x kwant_x86_64.AppImage and run it. It needs a normal GTK desktop and FUSE.

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 Get started card.

The Mac app is signed ad hoc, not notarized by Apple, so macOS stops it the first time. Click Done, open System Settings › Privacy & Security, scroll down and click Open Anyway next to kwant. On macOS 14 or earlier, right-click the app and choose Open instead.

The first start takes a few minutes. kwant installs its Laya router and downloads its model (about 420 MB) in the background. Bots answer in the meantime, picked by keyword.

Or build from a fresh clone

You need Rust (stable), installed with rustup, and Node.js 20 or newer with npm, to build the web app. The finished binary doesn't need Node.

git clone https://github.com/alexsergivan/kwant.git
cd kwant
make run   # builds the web app, then runs `cargo run -- serve`

Open http://127.0.0.1:8799 in your browser. On your own computer there's nothing to sign in to. Page won't load? See kwant won't open. To skip the Laya router, run cargo run -- serve --no-laya.

cargo run -- serve on its own works only once frontend/dist exists, because the binary embeds the web app. After the first make run (or make frontend) you can use either.

2. Get started: choose your AI, sign in, pick a team

New in 0.7.6. A new person's #general starts with one Get started card, in three steps. It replaces the old welcome.

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.
The Get started card in #general. Screens on this site come from a sample space.
  1. Choose your AI: 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.
  2. Sign in:
    • ChatGPT or Grok: 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.
    • Claude: press Open claude.ai, allow kwant bots, then paste the code claude.ai shows you.
    • API key: paste an Anthropic, OpenAI or xAI key. Keys are write-only: the app never shows them again.
  3. Pick a team: each ready-made team has a lead, helpers and skills for one job. Or choose Start with @helpers: Assistant, Researcher and Writer, for everyday asks. Or choose Bring your bots (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.
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.
The same card on a phone.
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.
Signing in to ChatGPT with a short code. The code here is made up.
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.
Bring your bots opens the importer from Get started.

The importer's Upload a file 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.

The Check before importing preview: 3 bots will be created from 3 files, with Gear-Scout and Trail-Guide ticked.
Three files, one preview. Nothing is created until you press Import.

The short-code sign-in for ChatGPT and Grok is in the Get started card. Settings → This space → Accounts still asks you to sign the codex or grok CLI in on this machine (codex login, grok login), 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 Accounts & profiles.

3. Ask your first question

A fresh install's Default space starts with three bots in #general, on the @helpers team, led by Assistant:

BotTitleGood at
AssistantPersonal AssistantPlans what to do and hands out the work: planning a week, turning an idea into steps, to-do lists
ResearcherResearch AnalystLooks things up and checks the facts: comparing options, competitor research
WriterWriter & EditorDrafts emails, posts and documents

Type a question in #general. kwant picks the bot that fits best and shows why. Mention a bot by name (@Researcher) to ask it directly, or ask in the team's chat (@helpers): when a question needs several views, the lead runs a short discussion and posts one summary.

The general channel. kwant routes a Postgres or queue question to Architect and shows why, plus the model and effort it used.
kwant shows which bot it picked and why. Screens on this site come from a sample space.

When a task on the Mission board says Verified, 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 what "Verified" means.

Next steps

Running the tests

cargo test               # Rust tests (run `make frontend` first: they need frontend/dist)
cd frontend && npm test  # web app tests