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
Use "Agent" in the UI and keep Kwant as the brand
Oleksandr Ivanchenkoa2fcc142cbdc
diff --git a/README.md b/README.mdindex 3782123a..8d32f80f 100644--- a/README.md+++ b/README.md@@ -2,7 +2,7 @@> Inspired by **Grok Bot** & **OpenMausBot**. Built with **Rust**, **Axum**, and **Laya**.-Kwants is a high-performance, self-hosted multi-agent AI platform packaged as a **single, standalone binary** with an embedded sleek dark-mode Web UI and SQLite storage. Every agent is a **Kwant**—a specialized autonomous companion with its own persona (`Architect`, `TechLead`, `DevOps`), model provider routing, and developer capabilities.+Kwant is your team of AI agents: a high-performance, self-hosted multi-agent platform packaged as a **single, standalone binary** with an embedded sleek dark-mode Web UI and SQLite storage. Every agent is a specialized autonomous companion with its own persona (`Architect`, `TechLead`, `DevOps`), model provider routing, and developer capabilities.---@@ -11,7 +11,7 @@ Kwants is a high-performance, self-hosted multi-agent AI platform packaged as a- **Single-Binary Zero-Dependency Deploy**: No Node.js or Docker required in production. One compiled native binary (`kwnt`) serves both the Tokio/Axum asynchronous engine and the embedded modern React web application in under 25 MB of RAM on your laptop or a VPS.- **Sub-50ms Intelligent Routing with Laya**: By default, task-based model selection queries [convaiinnovations/laya](https://huggingface.co/convaiinnovations/laya) over its `/v1/systemone` API in ~33ms, with seamless offline heuristic fallback and dynamic effort-level selection.- **Hybrid Driver Fleet**: Run direct cloud & local APIs (xAI Grok, Anthropic Claude, OpenAI, OpenRouter, local Ollama) or supervise host CLI agents (`claude`, `codex`, `grok` CLIs).-- **Kwant-to-Kwant Handoffs**: Every kwant knows its teammates in the current channel or team. When a reply @mentions a teammate (or `@everyone`), that teammate answers right after in the same chat, up to 4 handoffs per message.+- **Agent-to-Agent Handoffs**: Every agent knows its teammates in the current channel or team. When a reply @mentions a teammate (or `@everyone`), that teammate answers right after in the same chat, up to 4 handoffs per message.- **Moderated Team Discussions**: When a team question needs several perspectives, the lead opens with a short take (or first asks you a clarifying question and waits), teammates respond to each other by name in under ~120 words or pass if they have nothing to add, and the lead closes with one summary. The back-and-forth folds into a collapsible "Team discussed" thread so the chat shows the answer.- **Persona Presets & Avatars**: Create agents from ready-made personas grouped into **Tech** (Product, Designer, Frontend, Backend, QA, Security, SRE, Data, Tech Writer) and **Non-tech** (Research, Marketing, Copywriter, Sales, Finance, Legal, Support, People, Coach, Tutor) and **Lifestyle** (Travel Planner, Chef, Fitness Trainer, Event Planner, Home & DIY, Language Partner, Budget Buddy, Wellbeing Companion), or start blank, and pick from twenty-two pixel avatar styles. The chosen avatar always wins over hints in the agent's name.- **Agent Souls**: Besides its persona (what it does), every agent has an optional **Soul**: its personality, voice, values, and quirks. The soul is added to the system prompt, so it shapes how the agent speaks. It is not used for routing. Every preset and built-in agent comes with one.@@ -56,7 +56,7 @@ ssh user@your-vps-ip "kwnt serve --host 0.0.0.0 --port 8799"### Systemd Service (`/etc/systemd/system/kwnt.service`)```ini[Unit]-Description=Kwants 8-Bit AI Agent Platform+Description=Kwant AI agent platformAfter=network.target[Service]@@ -120,13 +120,13 @@ The `laya` image (`docker/laya.Dockerfile`) uses CPU PyTorch and preloads the ch## 🎮 The Starter Party-| Kwant | Title | Sprite | Specialty |+| Agent | Title | Sprite | Specialty ||---|---|---|---|| **CyberMage** | Arcane Architect | `cyber_mage` | Architecture, refactoring, systems thinking || **PixelNinja** | Swift Blade | `pixel_ninja` | Fast algorithms, clean functions, unit testing || **TerminalKnight** | Guardian of the Shell | `terminal_knight` | Bash scripts, devops, file safety |-You can summon new Kwants with custom personas and sprites via the **+ SUMMON KWANT** button in the UI.+You can create new agents with custom personas, souls, and avatars via the **New Agent** button in the UI.---diff --git a/frontend/index.html b/frontend/index.htmlindex 7a69c4e2..1a4e969f 100644--- a/frontend/index.html+++ b/frontend/index.html@@ -4,7 +4,7 @@<meta charset="UTF-8" /><link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' shape-rendering='crispEdges'><path fill='%234a3f8a' d='M5 1h16v1h2v1h1v2h1v16h-1v2h-1v1h-2v1H5v-1H3v-1H2v-2H1V5h1V3h1V2h2z'/><path fill='%2315112e' d='M6 2h14v1h2v1h1v2h1v14h-1v2h-1v1h-2v1H6v-1H4v-1H3v-2H2V6h1V4h1V3h2z'/><rect x='15' y='3' width='2' height='2' fill='%235ce1ff'/><rect x='15' y='6' width='1' height='1' fill='%231b1033'/><rect x='9' y='7' width='8' height='1' fill='%23fdc934'/><rect x='8' y='8' width='10' height='1' fill='%23fdc934'/><rect x='7' y='9' width='12' height='7' fill='%23fdc934'/><rect x='8' y='16' width='10' height='1' fill='%23fdc934'/><rect x='9' y='17' width='8' height='1' fill='%23d98a1f'/><rect x='18' y='9' width='1' height='7' fill='%23d98a1f'/><rect x='10' y='10' width='2' height='3' fill='%231b1033'/><rect x='14' y='10' width='2' height='3' fill='%231b1033'/><rect x='10' y='10' width='1' height='1' fill='%23fff'/><rect x='14' y='10' width='1' height='1' fill='%23fff'/><rect x='8' y='13' width='2' height='1' fill='%23ff6b81'/><rect x='16' y='13' width='2' height='1' fill='%23ff6b81'/><rect x='12' y='15' width='2' height='1' fill='%231b1033'/></svg>" /><meta name="viewport" content="width=device-width, initial-scale=1.0" />- <title>Kwant // Multi-Agent AI Platform</title>+ <title>Kwant: your team of AI agents</title><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">diff --git a/frontend/src/components/AppHeader.tsx b/frontend/src/components/AppHeader.tsxindex 50dfbdf5..7d7a0145 100644--- a/frontend/src/components/AppHeader.tsx+++ b/frontend/src/components/AppHeader.tsx@@ -86,8 +86,8 @@ export const AppHeader: React.FC<AppHeaderProps> = ({<ModernAvatar role="brand" name="Kwant" size={30} /><span className="text-[15px]">Kwant</span></div>- <span className="text-[11px] font-medium bg-zinc-800 text-zinc-300 px-2 py-0.5 rounded-full border border-zinc-700/60 hidden sm:inline-block">- AI Fleet+ <span className="text-[11px] font-medium text-zinc-500 hidden sm:inline-block">+ your team of AI agents</span></div>diff --git a/frontend/src/components/ManageTeamModal.tsx b/frontend/src/components/ManageTeamModal.tsxindex 42ebda8c..845aed1e 100644--- a/frontend/src/components/ManageTeamModal.tsx+++ b/frontend/src/components/ManageTeamModal.tsx@@ -106,7 +106,7 @@ export const ManageTeamModal: React.FC<ManageTeamModalProps> = ({playSfx('click');if (memberIds.includes(kwantId)) {if (memberIds.length <= 1) {- setError('A team must have at least one assigned Kwant.');+ setError('A team must have at least one agent.');return;}setError(null);@@ -129,7 +129,7 @@ export const ManageTeamModal: React.FC<ManageTeamModalProps> = ({return;}if (memberIds.length === 0) {- setError('Select at least one member Kwant for this team.');+ setError('Select at least one agent for this team.');return;}@@ -183,7 +183,7 @@ export const ManageTeamModal: React.FC<ManageTeamModalProps> = ({</div><div><h3 className="text-sm font-semibold text-zinc-100">Manage Team: @{team.name}</h3>- <p className="text-[11px] text-zinc-400">Configure team roster, lead kwant, and permissions</p>+ <p className="text-[11px] text-zinc-400">Configure team roster, lead agent, and permissions</p></div></div><buttondiff --git a/frontend/src/components/MentionPopover.tsx b/frontend/src/components/MentionPopover.tsxindex 2a666294..69aadc41 100644--- a/frontend/src/components/MentionPopover.tsx+++ b/frontend/src/components/MentionPopover.tsx@@ -57,7 +57,7 @@ export const MentionPopover: React.FC<MentionPopoverProps> = ({<React.Fragment key={`${item.type}-${item.id}`}>{showSectionHeader && (<div className="text-[10px] font-semibold text-zinc-500 uppercase tracking-wider px-2.5 py-1 select-none">- {item.type === 'kwant' ? 'Kwants' : 'Teams'}+ {item.type === 'kwant' ? 'Agents' : 'Teams'}</div>)}<buttondiff --git a/frontend/src/components/NewTeamModal.tsx b/frontend/src/components/NewTeamModal.tsxindex 77feb594..d950f23c 100644--- a/frontend/src/components/NewTeamModal.tsx+++ b/frontend/src/components/NewTeamModal.tsx@@ -126,7 +126,7 @@ export const NewTeamModal: React.FC<NewTeamModalProps> = ({return;}if (selectedMembers.length === 0) {- setError('At least one Kwant member must be selected.');+ setError('Select at least one agent for this team.');return;}@@ -395,10 +395,10 @@ export const NewTeamModal: React.FC<NewTeamModalProps> = ({)}</div>- {/* Lead Kwant */}+ {/* Lead agent */}<div><label className="block text-xs font-medium text-zinc-400 mb-1">- Team Lead Kwant+ Team Lead Agent</label><selectvalue={leadKwantId}diff --git a/frontend/src/components/SandboxViewer.tsx b/frontend/src/components/SandboxViewer.tsxindex c872d4f9..f028548d 100644--- a/frontend/src/components/SandboxViewer.tsx+++ b/frontend/src/components/SandboxViewer.tsx@@ -139,7 +139,7 @@ export const SandboxViewer: React.FC<{ teamId: string }> = ({ teamId }) => {}, [teamId, applyUrl]);useEffect(() => {- document.title = `${title || url || 'Sandbox browser'} · kwnt sandbox`;+ document.title = `${title || url || 'Sandbox browser'} · Kwant sandbox`;}, [title, url]);const toViewport = (clientX: number, clientY: number) => {diff --git a/src/main.rs b/src/main.rsindex 0786dcb7..dd129bc9 100644--- a/src/main.rs+++ b/src/main.rs@@ -126,10 +126,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {port = config.port,data_dir = %config.data_dir.display(),laya_url = %config.laya_url,- "Starting Kwants engine..."+ "Starting Kwant...");println!(- "⚡ Kwants Multi-Agent AI Platform listening at http://{}",+ "⚡ Kwant: your team of AI agents, listening at http://{}",addr);@@ -145,7 +145,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {Some(Commands::Teams) => print_teams(&config).await?,Some(Commands::Channels) => print_channels(&config).await?,None => {- println!("⚡ Kwants: Multi-Agent AI Platform in Rust");+ println!("⚡ Kwant: your team of AI agents");println!("Run `kwnt serve` to start the server, or `kwnt --help` for options.");}}@@ -168,7 +168,7 @@ fn print_status(config: &Config) {format!("{} (absent)", config_path.display())};- println!("Kwants");+ println!("Kwant");println!(" host {}", config.host);println!(" port {}", config.port);println!(" data dir {}", config.data_dir.display());@@ -191,7 +191,7 @@ async fn print_agents(config: &Config) -> Result<(), Box<dyn std::error::Error>>"NAME", "TITLE", "DRIVER", "MODEL");if kwants.is_empty() {- println!("(no kwants)");+ println!("(no agents)");return Ok(());}for kwant in kwants {