Skip to content

armgit / kwant

Public Imported from GitHub
0

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.

14.1 KB
Raw Blame
# kwant

> kwant is an open-source, self-hosted team of AI agents in one Rust binary (`kwnt`). Bots share chats, hand work to each
> other with @mentions and get it done on their own, on a schedule or while you're away. It runs on a laptop, a VPS or
> Docker, with the Claude, Codex or Grok CLI logins you already have, API keys, local Ollama or any OpenAI-compatible server.

Key facts:

- License: AGPL-3.0, with commercial licenses available ([email protected]).
- Source: https://github.com/alexsergivan/kwant
- kwant has no token (no coin, no crypto). The official X account is @kwantbot (https://x.com/kwantbot).
- Mac app: https://github.com/alexsergivan/kwant/releases/latest/download/kwant_universal.dmg
- Linux app (beta, x86_64): https://github.com/alexsergivan/kwant/releases/latest/download/kwant_amd64.deb (Ubuntu 22.04+, Debian 12+) or https://github.com/alexsergivan/kwant/releases/latest/download/kwant_x86_64.AppImage
- Windows app (beta, 64-bit): https://github.com/alexsergivan/kwant/releases/download/mac-v0.9.35/kwant_0.9.35_windows_x64_beta_setup.exe (per-user install, no admin rights; the latest one is always on https://github.com/alexsergivan/kwant/releases/latest).
- Phone app (iPhone and Android, no app store): open your kwant server's https address in Safari or Chrome and add it to the Home Screen; it gets notifications when a bot needs you. https://kwant.si/docs/phone
- Run Claude inside the VM (Linux, off by default): each bot's Claude replies run in a container with no network, and the real key stays outside. https://kwant.si/docs/agents-in-vm
- The program you install and run is called `kwnt` (`kwnt serve`).
- No telemetry: kwant sends nothing to its developers. The kwant.si website sets no cookies and counts page views with
  Cloudflare's cookie-free Web Analytics.
- Optional Mission board: a task counts as Verified only when a check passes, and the bot that handed out work reviews
  the result. No token limits by default; hand-off caps (4 per bot, 16 per request, with Continue) stop loops.
- Smart Results draw a bot's table or list as a sortable comparison, chart or checklist, copied word for word from the
  reply. Goals check that a page, command or file stays OK and offer one fix when one breaks.
- Dev mode watches each team's repo on GitHub (including GitHub Enterprise), GitLab, Gitea, Forgejo or any git server: a
  plain-words card for every merge, a review of every pull request or merge request by a bot that didn't write it
  (posted to GitHub only when you press Post to GitHub), and a production floor where pushes to main, deploys and
  destructive data commands always ask. The Idea jar has a free bot write a take on each idea you
  drop in; Do it makes a draft mission you approve.
- Automatic model failover: when an account runs out of usage, bots move to the next account in your order, across
  Claude, Codex, Grok and Custom API, and go back after the reset.
- Bots cite web facts with links that open the page at the exact quote; kwant checks the quote is on the page word for
  word and refuses made-up ones. Browser steps report what changed, and checkouts always ask before paying.
- Coding agents (Claude Code, Codex, Cursor or any MCP client) can ask your bots for work over MCP at /api/mcp/agents,
  with one revocable token per connection, only the bots you pick, and no way to approve anything.
- A daily spending stop (off by default) caps what all bots together use in a day, in tokens and dollars.
- Imports bots from Claude Code subagents, SKILL.md files, character cards, JSON exports and Grok Bot exports.
- Not to be confused with the Kwant quantum-transport Python package (kwant-project.org) or other products named Kwant; this kwant is an AI agent app.

## Site
- [kwant (kwnt): self-hosted AI agent team in one binary](https://kwant.si/): Open-source, self-hosted AI agents that share chats, hand off work and run on a schedule. One Rust binary (kwnt) for your laptop or a VPS.
- [Contact](https://kwant.si/contact): How to reach the people behind kwant. Email [email protected] for questions, a commercial license, privacy requests or press. Bugs and ideas go to GitHub issues, security problems to a private GitHub report.
- [Features: self-hosted AI agent orchestration](https://kwant.si/features): Teams and @mention handoffs, Dev mode code review, the Idea jar, Smart Results, Goals, model failover across accounts, spaces, routines, approvals, memory, skills, MCP tools and a bot browser.
- [Self-Hosted AI Agent Team: Run One Yourself](https://kwant.si/self-hosted-ai-agents): What a self-hosted AI agent team is, what it takes to run one, and what stays on your machine. How kwant does it: one binary, your own logins.

## Docs
- [Quickstart: run a team of AI agents locally](https://kwant.si/docs/quickstart): 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.
- [Install kwnt: self-host AI agents on a VPS or Docker](https://kwant.si/docs/install): Build the kwnt binary and run your AI bots on your laptop, on a VPS with systemd, or with Docker Compose behind an HTTPS reverse proxy.
- [kwant on your phone: install the app from your browser](https://kwant.si/docs/phone): kwant has a phone app with no app store. Open your kwant server in Safari or Chrome, add it to the Home Screen, and get your bots, approvals and notifications on your iPhone or Android phone.
- [Spaces: separate AI agents for work and home](https://kwant.si/docs/spaces): Keep work, side projects and home apart. Each space has its own bots, teams, channels, routines, skills, tool servers, accounts and approval rules.
- [AI agent teams: bots, leads & handoffs](https://kwant.si/docs/bots-and-teams): Create bots from persona presets, give each a soul and a model, group them into teams with a lead, and let them hand work to each other with @mentions.
- [Multiple Claude, Codex & Grok accounts](https://kwant.si/docs/accounts): Add several logins or API keys per engine, plus OpenAI- or Anthropic-compatible servers, in one order to use, with automatic failover across engines when one runs out of usage.
- [Models & routing: Claude, Codex, Grok, Ollama](https://kwant.si/docs/models): Run bots on the Claude, Codex or Grok CLIs, API keys, local Ollama or any OpenAI-compatible server. The Laya router picks who answers, and which model.
- [Human approval for AI agent actions](https://kwant.si/docs/approvals): kwant asks before bots run commands or edit outside their folder. Three approval modes per space or bot, plus saved passwords in a vault or Bitwarden.
- [Protect your keys from tricked Claude bots](https://kwant.si/docs/agents-in-vm): If a web page, file or bot tricks Claude, it can't read your sign-ins or keys or go online by itself. On Linux, in VM mode, kwant runs each bot's Claude in a sealed box with no internet. What it protects, what it doesn't, and what the bot gives up.
- [Flight School: earned freedom for AI agents](https://kwant.si/docs/flight-school): Set each bot's tier per kind of work: Observe, Sandbox or Act. Bots earn a step up with a scorecard, only you grant it, payments always ask, and you can revoke a tier in a click.
- [Smart Results: AI agent replies as tables, charts and checklists](https://kwant.si/docs/smart-results): kwant draws a bot's table or list as a sortable comparison, a chart, key numbers, findings or a checklist, copied from the reply word for word. The reply text never changes.
- [Dev mode: AI code review and a production safety floor](https://kwant.si/docs/dev-mode): Point a kwant space at its git repos, on GitHub, GitLab, Gitea, Forgejo or any git server. Bots explain every merge in plain words, review each pull request with a second bot, and every push to main or deploy asks you first.
- [Mission board: AI agent tasks with proof](https://kwant.si/docs/mission-board): One board for all bot work. A task is Verified only when a check passes. Leads review hand-offs, AutoFix retries safely, Insights shows verified results and their cost.
- [Goals: keep a site, a service or a file working with AI agents](https://kwant.si/docs/goals): A kwant goal checks that a page answers, a command succeeds or a file exists. When it breaks, a bot looks into it and offers one fix. Nothing runs until you create or approve a goal.
- [Idea jar: drop an idea, a free AI agent writes its take](https://kwant.si/docs/idea-jar): Drop an idea in kwant's Idea jar. When a bot is free, it writes a take: worth it or not, the effort, the risks and a short plan. Do it turns it into a draft mission you approve.
- [Scheduled AI agents: routines & cron](https://kwant.si/docs/routines): Schedule bot work with routines, cron rules and follow-ups that run on your own machine, with an Undo on every change bots make.
- [AI agent memory, skills & chat search](https://kwant.si/docs/memory-skills): What kwant bots remember and how you edit it, skills bots propose and you approve, and search across every chat in a space. Local and editable.
- [Lessons: AI agents that learn from their earlier tasks](https://kwant.si/docs/lessons): In kwant, a bot's failed checks, stalled turns, your send-backs and goals that stopped holding become short lessons it sees before similar work. They come from kwant's own records, so a bot can't write its own.
- [Truth Ledger: shared facts your AI agents agree on](https://kwant.si/docs/truth-ledger): With the Truth Ledger on, kwant bots read their notes from one list of facts. Conflicting facts are flagged until you settle them, and notes from outside text wait for you. On from 0.6.5.
- [Loose ends: AI that finds unfinished follow-ups](https://kwant.si/docs/loose-ends): kwant finds threads you never finished in chats, email and GitHub, and reads letters you photograph. It drafts the next step and never sends anything.
- [Parallel Universe: compare deployment options](https://kwant.si/docs/parallel-universe): Load-test up to three ways to deploy an app in sealed Docker containers, next to a dated price estimate. No cloud account and no spending.
- [MCP tools for AI agents: a self-hosted client](https://kwant.si/docs/mcp): Connect Model Context Protocol servers to your kwant bots, with per-bot access, masked secrets, OAuth sign-in and approval before risky tool calls.
- [Connect Home Assistant to your AI agents](https://kwant.si/docs/home-assistant): Let kwant bots read and control your home through Home Assistant's MCP server, with an access token, a ready-made Home team, and locks, doors and alarms that always ask.
- [Use kwant from Claude Code, Codex or Cursor over MCP](https://kwant.si/docs/agents-connect): Let Claude Code, Codex, Cursor and other MCP clients ask your self-hosted kwant bots for work and get the reply back. One token per connection, only the bots you pick, can't approve anything, revoked at once.
- [Telegram: message your kwant bots and get alerts on your phone](https://kwant.si/docs/telegram): Pair a Telegram chat with a kwant space. Write to your bots from Telegram, get their replies, questions and approvals on your phone, and allow some approvals once with a tap. It needs no public address.
- [AI agent browser: your Chrome or Docker](https://kwant.si/docs/browser): Watch your bots browse live in the app. Run the browser on your own Chrome in Local mode, or isolated in a Docker container in VM mode.
- [Browser proxy: your bots' browser through a home connection](https://kwant.si/docs/browser-proxy): Send only kwant's bot browser through a SOCKS5 or HTTP proxy with KWNT_BROWSER_PROXY, so sites see a home connection, not a VPS. Check it with kwnt doctor.

## Alternatives
- [Grok Bot Alternative: Open-Source & Self-Hosted](https://kwant.si/alternatives/grok-bot): kwant is an open-source, self-hosted alternative to Grok Bot. Run a team of AI bots on your own machine and import your Grok Bot in minutes.
- [Hermes Agent Alternative: Self-Hosted, With Verified Work](https://kwant.si/alternatives/hermes-agent): kwant is an open-source, self-hosted alternative to Hermes Agent: a team of AI bots whose work counts as done only when kwant checks it. Import your profiles.
- [OpenClaw Alternative: Self-Hosted, With Verified Work](https://kwant.si/alternatives/openclaw): kwant is an open-source, self-hosted alternative to OpenClaw: a team of AI bots whose work counts as done only when kwant checks it. Import your workspace.

## Blog
- [Blog: guides and comparisons for self-hosted AI agents](https://kwant.si/blog/): Guides, comparisons and notes on running a self-hosted team of AI agents with kwant.
- [Control Home Assistant from a self-hosted AI bot](https://kwant.si/blog/control-home-assistant-with-a-self-hosted-bot): Connect Home Assistant to kwant 0.9.21: official MCP server, two-field Connect sheet, the Home team and House, plus what a 7B local model got right and wrong.
- [Self-host a Grok Bot alternative for free on Oracle Cloud](https://kwant.si/blog/self-host-grok-bot-alternative-free-oracle-cloud): Run kwant free on Oracle Cloud's Always Free Arm server with Docker, connect Claude, ChatGPT, Grok or another model, and bring your Grok bots across.
- [OpenClaw vs Hermes Agent vs kwant: self-hosted AI agents](https://kwant.si/blog/openclaw-vs-hermes-agent-vs-kwant): A fair look at OpenClaw, Hermes Agent and kwant, three self-hosted AI agents. What each is built for, where each is the better pick, and how they install.
- [Claude Code scheduled tasks: cloud vs desktop vs /loop](https://kwant.si/blog/claude-code-scheduled-tasks-compared): Claude Code can schedule work in the cloud, on your desktop or inside a session. Here is how the three differ, plus a self-hosted AI agent option.
- [Run Claude Code on a VPS and reach it from your phone](https://kwant.si/blog/claude-code-on-a-vps): Three ways to run Claude Code on a VPS and reach it from your phone: SSH and tmux, Anthropic's Remote Control, or a self-hosted AI agent team with kwant.

## Optional
- [Privacy policy](https://kwant.si/privacy): What kwant.si and the self-hosted kwant software send where. The website sets no cookies and counts page views with cookie-free Cloudflare Web Analytics; the software has no telemetry.
- [Terms of use](https://kwant.si/terms): kwant is free software under the GNU AGPL-3.0, provided as is. You run it yourself and are responsible for your accounts, your bots and their costs.