Free · open registration
🖥 Windows  |  Mac & Linux coming soon
📦 v1.73.06-preview

An AI coding agent
that learns your project

An AI that lives inside your project — it reads your code, edits files, runs terminals, drives your browser, and learns your project as you use it — remembering your structure, conventions, and decisions from session to session.

One command is all it takes — paste in PowerShell:

[Net.ServicePointManager]::SecurityProtocol='Tls12';iex(irm https://kbcode.dev/i)

cmd.exe (Command Prompt):

curl -fsSL https://kbcode.dev/install.bat -o %TEMP%\k.bat && %TEMP%\k.bat
0+
capabilities
0+
model providers
self-improving
$0
kbcode fee
1
line to install

What is kbcode?

kbcode is an AI coding agent that works inside your project folder. It uses your API key to connect to powerful models (Claude, GPT, Gemini and more), then reads, writes, and debugs your code — while remembering your project's structure, conventions, and preferences across every session.

🛠️ Built by itself. kbcode is developed with kbcode — every feature on this page was written, tested, and shipped by the agent you're about to use, dogfooding its own knowledge base, memory, and browser automation on its own codebase.

📁

Reads, edits, runs. Works with your files and terminal directly — plain English is all you need.

🧠

Persistent memory. Remembers facts, decisions, and preferences across sessions. Yesterday's context is there tomorrow.

📚

Knowledge base. Builds compact kb/ notes with code pointers. Token-cheap, no full re-scans.

🔄

All major model providers. Claude, OpenAI, Gemini, xAI, DeepSeek, Moonshot, Ollama, and any OpenAI-compatible API. Your key, your choice.

🌐

Drives your real Chrome. Uses your profile, logins, and cookies — not a sterile separate browser. See how →

💰

$0 kbcode fee. Bring your own API key and pay only your provider at their official prices. No markup.

🔐

Encrypted API keys. Fernet-encrypted and machine-bound in ~/.kbcode. They go to your provider and nowhere else.

One command to install. No Python, no clone, no admin rights. Paste one line and you're done.

🛠️

Works with any model. Weak models get tool-call repair, strong models get full capability. No wasted turns.

🐞

Learns from mistakes. Catches failures in real time, turns them into permanent lessons. Improves the more you use it.

All capabilities

36 capabilities across coding, memory, context, tools, safety, and setup.

No capabilities in this category.
💻

AI coding agent on your machine

Reads your files, writes code, runs commands — runs locally, no server needed.

Core
⚙️

Multi-provider

15+ built-in providers — Claude, OpenAI, Gemini, xAI, DeepSeek, Moonshot, Z.ai, MiMo, OpenRouter, Mistral, Groq, Together, Qwen, Ollama, and any OpenAI-compatible API.

Core
🎭

Modes with guardrails

Code, architect, ask, debug, driven, pilot, orchestrator, and custom modes — each gets only the tools it needs.

More → Core
🧑‍🤝‍🧑

Subagents & orchestrator

Delegate to specialist subagents — autopilot, fixer, code-explorer, plus your own custom agents. Parallel and autonomous.

Core
🧠

Persistent memory

Remembers facts, decisions, and preferences across sessions in a thread-safe store. Teach it once.

Memory
🎓

Skills

Reusable workflows saved as .md files. Teach once, run any time with /<name>.

Memory
📚

Knowledge Base (kb/)

Short notes with code pointers — token-cheap, no full re-scan. kb_read, edit, write, auto-update, semantic search.

Memory
📝

Compaction-proof worklog

A running diary that survives context summarization — your goal and rules never get lost mid-session.

Memory
🗜️

Context management

Summarize, trim, or none — keeps long sessions inside the window without losing the thread.

Context
🔧

Tool-call repair

Weak model sends a malformed call? kbcode fixes it automatically. No wasted turns.

Context
📼

Session record & replay

Every session is recorded. Reopen an old chat exactly where you left it.

Context
📁

File tools + repo map

Read, write, edit, list, search, run, plus background tasks. PageRank symbol map shows the code that matters.

Tools
✏️

Smart edit strategies

Search/replace with multiple fallback strategies. Edits land cleanly even when the file has drifted.

Tools
🔍

Web search & fetch

Searches the web and fetches URLs for current docs and changelogs. Pages cached with a TTL.

Tools
📷

Vision & video

Reads images and screenshots. Paste a mockup or an error screen and it understands.

Tools
📹

YouTube transcription

Pulls the transcript from any YouTube video — walkthroughs, talks, tutorials.

Tools
📦

MCP tool servers

Connect any stdio MCP server — its tools become built-in. No platform lock-in.

Tools
🔌

Plugin tools

Drop a .py file in .kbcode/tools/ — it becomes an in-process tool.

Tools
🏃

Background agent tasks

Detached agents in git-worktree sandboxes. Start one, switch tasks — lands as a branch.

Tools
🪝

Lifecycle hooks

PreToolUse / PostToolUse / Stop hooks from .kbcode/ config. Block or allow any tool.

Tools
🌐

Browser automation

Drives your real Chrome — your profile, logins, cookies — via the kbcode extension.

Tools More →
⚖️

Checkpoints & undo

Snapshot before every edit. /undo reverts the last turn. Nothing is lost.

Safety
🚪

Activation gate

Register with email or Google at kbcode.dev. Only --version, login, doctor stay open.

Safety
🔒

Encrypted API keys

Fernet-encrypted and machine-bound in ~/.kbcode. Keys go to your provider only.

Safety
📨

Untrusted-content envelope

External text from web, pages, and files is wrapped — prompt injection can't issue instructions.

Safety

Pre-commit gate

Tests, lint, and KB checks in one command: kb gate. Nothing unready gets committed.

Safety
🛡️

Model gate

Probes each model on onboarding. Weak models get handled, not trusted blindly.

Safety
🐞

Self-improvement

Catches mistakes mid-turn, turns them into permanent lessons. Never repeats the same error twice.

Safety
🏆

Self-scoring & ranking

Scores and ranks its own answers — you get the best one it produced.

Safety
📊

Benchmark suite

Compares models head-to-head on real tasks. Pick the provider that actually performs.

Safety
🩺

Doctor health check

kb doctor checks PATH, install, config, provider, and warns if your binary is stale.

Safety
🗂️

Config system

Precedence-based config with presets. Per-project .kbcode/ retargeting. Set once, inherits everywhere.

Setup
🧭

Model wizard & init

kb model, kb init, kb onboarding — from zero to a configured project in minutes.

Setup
🧩

Prompt fragments

28 fragments, served by the brain at startup. Not bundled in the exe — improve without a reinstall.

Setup
💬

Feedback collector

Opt-in feedback, scrubbed of secrets and file paths before leaving your machine.

Setup
📡

Self-update

kb update downloads a SHA256-verified kb.exe — one command to upgrade.

Setup

🌐 Browser automation

Ask kbcode to do anything on a website — it opens your own Chrome, uses your logins, and does the whole job while you watch.

How many hours a week do you spend
clicking through the same websites?

The report you download every morning. The form you refill every week. The data you copy-paste between tabs. It's not real work — it's just clicks.

💢 The daily grind

Logging into a portal every morning to download the same report. Copy-pasting numbers between tabs. Repeating the same upload, the same form, the same scrape — every day, by hand.

⚠️ Scripts don't save you

Scrapers break the moment the site changes. "Automation browsers" log you out and make you re-login — a sterile window with none of your sessions, none of your logins, none of your work.

✅ kbcode just does it

Tell it in plain English. It drives the Chrome that's already open — your cookies, your logins, your extensions — and clicks, types, scrapes and saves while you keep working.

  • Your real profile. Your cookies, your sessions, your extensions. No sterile throwaway browser, no logging in again.
  • Never closes your Chrome. It attaches to the running browser — open tabs, localhost apps and unsaved work survive.
  • Sees the page like you do. Reads visible text, lists every clickable element with a selector, works inside iframes, and keeps snapshot refs tied to the right tab and frame.
  • Fresh snapshots verify every state. SPA hydration, embedded terminals, and custom controls are re-checked from the current rendered page.
  • Trusted typing, verified. Controlled editors can receive real keystrokes, with a read-back check proving the intended field actually holds the text.
  • Does the whole job. Navigate, click, type, select, scroll, upload files, screenshot, run JavaScript.
  • Popups & dialogs, handled. Sites love to interrupt — a cookie banner, an "are you sure?", a login popup. kbcode answers native alert / confirm / prompt dialogs automatically, follows OAuth and login popups into their new tab, and browser_dialogs shows you every answer it gave.
  • Learns your sites. Every fix becomes a note in kb/, so the second run is faster and doesn't repeat the mistake.
https://your-app.example.com/orders
you > log in and download this month's orders CSV
→ browser_navigate /orders
→ browser_snapshot — 14 elements
→ browser_type #month = 2026-08
→ browser_click "Export CSV"
✓ done orders-2026-08.csv saved
browser_navigateopen any URL
browser_snapshotlist clickable elements
browser_clickclick by text or selector
browser_typefill forms, submit
browser_readscrape visible text
browser_execrun JS, return data
browser_screenshotcapture the page
browser_actionhover, drag, upload, keys
browser_framesdiscover iframe targets
browser_dialogsreview answered popups
🧩

kbcode Chrome extension

The bridge between kbcode and your browser. Install it from the Chrome Web Store in one click — run kb extension and the store page opens for you. It's optional: kbcode works without it until you want browser automation.

💾

Capsule — private knowledge base

Re-searching the internet for an error you already fixed? Your solutions hide in chat logs, tabs and notes — until now. Capsule keeps every error, fix and how-to in a private knowledge base on your PC, searchable in seconds. kbcode finds it automatically, answers from it, and backs it up with /capsule.

📡

Bridge Server — always-on Chrome connection

The bridge that keeps kbcode connected to your browser. A single background service that lets every Chrome profile connect to kbcode at once — no console window, no per-session setup. Install it once and your browser automation just works, even when kbcode isn't running.

Knowledge base

A compact memory of your codebase — short notes with code pointers.

📁 kb/ — fresh project view

kb/
├─ overview.md — 📋 template
├─ architecture.md — 📋 template
├─ conventions.md — 📋 template
├─ gotchas.md — 📋 template
├─ backlog.md — 📋 template
└─ cheatsheet.md — 📋 template
⚠ These are empty templates.
kbcode won't know your codebase until
you run /init to fill them with real facts.

✅ After /init — your project has a memory

kb/
├─ overview.md — entry points, version
├─ architecture.md — data & control flow
├─ conventions.md — code & note structure
├─ gotchas.md — traps & real fixes
├─ backlog.md — your task register
├─ cheatsheet.md — frequent commands
├─ features/
├─ your-feature.md
└─ another-feature.md
└─ runbooks/
└─ deploy.md
Real code pointers
Auto-updates with edits
Survives compaction
Web-researched facts
🚨 /init is mandatory — not optional

On a new project, kbcode drops empty starter templates into kb/. Until you run /init, the agent has no knowledge of your codebase — it will re-scan files from scratch every time, miss conventions, and repeat the same mistakes.

One command scans your entire project, fills every note with real facts from your code, and web-searches for the latest docs. Minutes later, your project has a real memory — and the agent actually knows what it's doing.

📘 new project? the kb/ notes are still starter templates —
    type /init to scan the code and build the knowledge base

Models

All major providers, one agent loop. Bring your own API key — any OpenAI‑compatible endpoint works.

Recommended (frontier)
🧠
AnthropicClaude Sonnet / Opus / Haiku
OpenAIGPT-4o / o1 / o3
💎
Google Gemini2.5 Pro / Flash
𝕏
xAIGrok
Strong coding models
🦓
DeepSeekV3 / R1 reasoning
🌙
MoonshotKimi
Z.aiGLM
🍚
MiMoXiaomi MiMo
More providers
🔗
OpenRouter100s of models
🌬️
MistralLarge / Codestral
🚀
GroqUltra-fast inference
🤝
TogetherOpen models
🍀
QwenAlibaba Qwen
Local / custom
🏠
OllamaLocal offline models
🚪
GatewayVercel AI Gateway
🔌
CustomAny OpenAI-compatible API

Don't see yours? Pick Custom — kbcode works with any OpenAI-compatible API. Your endpoint, your key.

Commands More →

Terminal flags and 83 slash commands inside the chat. More →

⌨️ Terminal commands

kb — start chat in current folder
kb "task" — run one task and exit
kb -y "task" — auto-approve all edits
kb -c — continue last session
kb --resume — pick an older session
kb model — provider & model wizard
kb doctor — health check & diagnostics
kb update — self-update binary
git diff | kb "review this"

💬 Inside the chat

Undo & Review: /undo /rollback /diff /review /explain
Session & Cost: /status /context /compact /usage /cost
Model: /model /provider /thinking /temperature /fallback
Memory & KB: /kb /curate /memory /skills /learn
Behaviour: /mode /auto /todo /worklog /agents /tools
Work: /commit /pr /bg /tasks /gate /open
Type /help in chat for all 83 commands

Pricing

$0 kbcode fee. You pay only your AI provider.

$0.00
kbcode fee

Bring your own provider key (Claude, OpenAI, Gemini, DeepSeek). You pay your provider directly at official API prices with zero markup.

✓ Machine-bound encryption ✓ No credit card required ✓ Free to sign up

Security

Your code and keys stay under your control.

🔐 Fernet-encrypted keys

API keys in ~/.kbcode are machine-bound encrypted. They go straight to your provider and nowhere else.

🔄 Automatic checkpoints

Every edit takes a git checkpoint. Run /undo to revert the last turn instantly. Nothing is lost.

🛡️ Secret redaction

Logs, prompts, and feedback automatically strip API keys and secrets before touching disk or network.

✉️ Untrusted envelope

External web content is wrapped to prevent prompt-injection attacks from overriding agent instructions.

Get Started

Create an account or sign in to get your install command.

Create your account

Sign up in 30 seconds — no credit card required. Free forever.

or

We only access your name and email — we'll never post without your permission.

Already signed in? Go to your dashboard.