single binary · local or remote models · full-screen terminal UI
An open-source AI coding agent for your terminal.
Use Claude, GPT or a local Ollama model to plan, edit and test code in your repo. You set
how much it does without asking: ask, accept-edits, auto or readonly. One Rust binary,
MIT licensed. bwn is the short name for buildwithnexus.
This is a real session recorded in bwn 0.12.7, before the current 0.20.0 release. The diff has a line-number gutter and tinted rows,
and it highlights only the part that changed, which in this session is - 1.
This is the same 0.12.7 recording. Type / and a popup lists every command with a one-line description. ↑ and ↓
move through the list, Tab or Enter accepts, and Esc dismisses.
New in 0.20
A hang is fixed. If the terminal went away without a hangup signal, bwn read end-of-input in a loop, pinning a CPU core and never exiting. It now exits at once.
Typing, start-up and streaming do less work. A keystroke no longer asks the terminal for its size ten times and writes about 230 bytes, down from about 1,150. Start-up reads each settings file once, not about twenty times. A streamed chunk repaints only the rows that changed.
Saving and searching are faster. The save after each tool round appends to the session file in place of rewriting it: about 0.5 ms at any size, where rewriting a 4.6 MB session cost about 8 ms. grep_files is two to three times faster.
Session files change format. A session saved by 0.20 cannot be opened by 0.19 or earlier; 0.20 opens every earlier session. The layout is under Session files, and Upgrading in the changelog says what else changes.
› why does the dropdown overlap the header? @"Screenshot 2026-09-23 at 14.02.11.png"
Here's why the overlap happens and the fix.
The dropdown is positioned absolute inside a header that has no stacking context, so it paints above the toolbar. Two lines fix it:
╭─ ⟨ css ⟩ ──────────────────────────────────────────────────────────────────────│ .site-header { position: relative; z-index: 20; }
│ .menu-dropdown { z-index: 10; } /* below the header now */ ╰──────────────────────────────────────────────────────────────────────Element│Before│After ────────────────┼───────────────┼────────────.site-header│ static │z-index: 20.menu-dropdown│z-index: 9999│z-index: 10
toolbar overlap │yes│ none
☑ reproduce at 1280×720
☐ add a Playwright check for the header stack
╭─ ⟨ rust ⟩ ──────────────────────────────────────────────────────────────────────│ #[test]
│fnheader_stays_on_top() {
│let page = Page::open("/")?; // 1280x720 viewport│ assert_eq!(page.z_index(".site-header"), 20);
│ }
╰──────────────────────────────────────────────────────────────────────╭──────────────────────────────────────────────────────────────────────╮│›describe a task · Shift+Tab to change mode│╰──────────────────────────────────────────────────────────────────────╯claude-sonnet-5⠹working· 4s · 212 tok/s · Esc to interrupt
The text is real output of the 0.14 renderer, captured as ANSI and converted to HTML. The
pasted screenshot is an SVG drawing that stands in for the image a terminal draws in real
pixels. The figure also shows syntax-highlighted CSS and Rust blocks in the reply, a pipe
table that follows its :-: and --: alignment markers, task-list
checkboxes, and the live footer.
Inline images
Screenshots and video frames appear inside the transcript as soon as you paste them or drop them onto the terminal. bwn uses the kitty graphics protocol on kitty, Ghostty and WezTerm (with placeholder support), and Sixel on terminals that support it, such as Windows Terminal 1.22 or later, WezTerm, foot and mlterm. Other truecolor terminals get half-block art. Sixel and half-block previews need ffmpeg. On kitty and Ghostty, a PNG draws without ffmpeg, but other images and video frames need it.
Code rendering
Syntax highlighting covers 20+ languages, and Markdown tables stay aligned. Diffs highlight the changed part of each line, and file paths are clickable. The terminal UI re-wraps only the transcript line that changed and draws each frame in one synchronized update, and it has live autocomplete for slash commands.
Plan, build, brainstorm
Shift+Tab cycles through three modes. PLAN breaks the task into steps for you to approve, BUILD runs the agentic ReAct loop, and BRAINSTORM is a chat in which the agent can use read-only tools and never writes.
Local models
bwn uses Ollama's native API and detects each model's context window. It also recovers tool calls that small coder models write as tagged text.
Permissions and checkpoints
Permission gates run in ask (the default), accept-edits, auto or readonly mode. In auto, bwn edits files and runs commands without asking. Dangerous commands, sensitive paths such as .env and ~/.ssh, and calls an ask rule covers still prompt, unless one of your own hooks allows them. These gates prevent mistakes. They are not a sandbox, so run untrusted work in a container or VM. OS-level confinement is opt-in with --sandbox auto. Checkpoints let you undo what the agent's write, edit, move and delete tools changed in text files up to 2 MiB. They do not cover changes made by shell commands, apply_patch or str_replace_editor.
MCP, skills, AGENTS.md
bwn is a full MCP client over stdio and HTTP. It loads Agent Skills folders and reads the same AGENTS.md and CLAUDE.md instruction files as other agents. The terminal UI asks before it uses a repository's own instruction files, and a repository's skills load only after you trust the folder.
Hooks
Hooks run your own commands at the same lifecycle points as Claude Code. A project hook can deny a tool but never grant one.
Sessions and workflows
Resume any session, queue background workflows with /schedule and /loop, and add a note to your next message with /btw.
One binary
Each 0.20.0 release binary is 5.1 to 6.4 MB, depending on the platform, and needs no language runtime. It has 10 direct crate dependencies, plus the libc crate on Linux and macOS. The native binary's --version takes 1.2 ms at the median of 30 runs. Through the npm launcher the same command takes about 27 ms, because Node starts first. An idle terminal UI uses about 9 MiB. Those figures are in BENCHMARKS.md. The Linux binaries need glibc 2.34 or later. On the first run in a terminal, the npm launcher downloads the binary for your platform and verifies its SHA-256 checksum. Without a terminal, as in CI, pass --bootstrap or set BWN_ALLOW_BOOTSTRAP=1 to allow the download. Each release binary carries a build-provenance attestation.
Questions
What is buildwithnexus?
buildwithnexus (bwn for short) is an open-source AI coding agent for the terminal. It uses Claude, GPT or a local model to plan, edit and test code in your repository. It is one Rust binary, MIT licensed.
Is it free?
Yes. buildwithnexus is open source under the MIT license, with no account, no telemetry and no analytics. You use your own API key, so a remote provider's pricing applies; a local model has no API cost.
How do I install it?
Run npm install -g buildwithnexus (Node.js 18 or later) or cargo install buildwithnexus --locked (Rust 1.94 or later), then run bwn. With npm, the first launch downloads the binary for your platform and verifies its checksum. See Install.
Which models does it work with?
Anthropic (Claude), OpenAI, OpenRouter, Groq and Hugging Face with an API key; local models through Ollama, a llama.cpp server or LM Studio; and any OpenAI-compatible endpoint. /model switches the model and the provider mid-session. See Models & providers.
Can it run entirely on my machine?
Yes. With Ollama, llama.cpp, LM Studio or another server on your machine or your network, the prompts, code and command output go to that server and nowhere else. You can turn off the little other traffic there is, such as the daily update check. See Data & privacy.
Does it change files without asking?
Not by default. In ask mode, the default, it asks before each change. accept-edits applies file edits inside the workspace without asking but still asks before commands and deletions. auto edits files and runs commands without asking, except for dangerous commands and sensitive paths. readonly refuses every change. /undo reverts the edits its file tools made in the last turn. See Permissions & hooks.
What does it send to the model provider?
Each request carries the conversation so far: what you type and attach, the files the agent reads, the output of the commands it runs, and its system prompt. It sends no machine identifier, usage statistics or crash reports. See Data & privacy.
Which platforms does it run on?
Linux on x86_64 and aarch64 with glibc 2.34 or later, macOS on Intel and Apple Silicon, and Windows on x86_64. The prebuilt binaries do not run on musl or Alpine.
Can I run it in CI?
Yes. bwn run "<task>" runs without the terminal UI, using the provider from --provider or the first API key in the environment. Pass --permission-mode auto to let it make changes. On an npm install, the first run without a terminal also needs --bootstrap or BWN_ALLOW_BOOTSTRAP=1. See Quickstart.