Docs / Getting Started

Quickstart

Run DevBro locally from source or standalone binary and connect your first coding agent.

DevBro (currently transitioning package and CLI names from Code-Buddy) runs as a local daemon plus a web/desktop UI on 127.0.0.1:4321. Your code, SQLite database, and agent API keys stay on your machine.

Requirements

  • git on PATH (required for per-task commits, diff views, and parallel worktrees).
  • At least one local coding assistant on PATH: Claude Code, Codex, OpenCode, Pi, GitHub Copilot CLI, or Antigravity CLI.
  • Node.js 26+ when running from source (Node 26 executes .ts directly with built-in node:sqlite and node:test). Standalone binary builds embed Node.

Run from source

git clone https://github.com/betterthinker/code-buddy.git
cd code-buddy
npm install
npm start

npm start builds the web UI and starts the local daemon on http://127.0.0.1:4321.

To open the UI signed in automatically:

node bin/code-buddy.mjs open

Access token note: Every API request and WebSocket connection requires the 32-byte access token generated on first start in <data-dir>/access-token. The open command signs your browser in via a private local handoff so the token never leaks into shell history or referrer headers.

Useful environment variables

Variable Default Purpose
CODE_BUDDY_PORT 4321 Loopback port (--port overrides)
CODE_BUDDY_DATA_DIR ~/.local/share/code-buddy (Linux) SQLite database, skills, access token, daemon lock
CODE_BUDDY_WEB_DIR Bundled packages/web/dist Static UI directory

Stopping cleanly

node bin/code-buddy.mjs stop
# Or terminate active tasks and child process groups immediately:
node bin/code-buddy.mjs stop --force

Stopping a task or daemon kills the assistant’s entire process group on Linux and macOS so orphan dev servers or test watchers do not linger.