A control plane for AI agents doing ongoing work
A control plane for AI agents doing ongoing work.
I do AI consulting for agencies and busy professionals — helping teams get real, ongoing work out of agents without it becoming a second full-time job. Always happy to hop on a call and figure out how I can be helpful: [email protected].
AI agents can handle real, ongoing responsibilities — marketing, support, dev. They post content, triage tickets, manage campaigns, submit PRs. Most of this runs on recurring schedules.
The problem is visibility. What jobs does each agent have? What ran today? What needs my attention? What broke?
Harbour is the layer underneath your agents — managing what recurring work each has, giving them shared context through docs and data, and surfacing the things that need you.
Harbour is polling-based — it never calls out to agents; they pull work on their own schedule.
scheduled → running → done/failed/…, with a waiting → pending loop when an agent needs a human).POST /api/runner/claim (the Runner Protocol) — and get everything bundled: instructions, docs, tables, secrets, and pre-resolved API endpoints. The bundled runner drives Claude Code or Codex for agent jobs; a runner on another machine hooks in over the same protocol.Work is organized into projects — an organizational grouping, not a tenancy boundary. Every user sees everything; a project just keeps one stream of work filterable in the dashboard.
Going deeper: the concepts explain the model in prose, and docs/guide.md is the exact wire contract an agent reads at
/api/guide.
There's no web signup — the first user is created from the shell (the operator has host access, so first-run setup belongs there). After that, projects and further users are created from the dashboard.
All you need is Node 24 LTS on macOS or Linux.
git clone https://github.com/geekforbrains/harbour.git
cd harbour
npm ci
npm run build
npm run harbour -- setup # one-time: create the first user + local runner (interactive)
npm start # run the serversetup also auto-provisions the local runner — it writes its token and local URL under ~/.harbour/; on macOS it prompts to schedule the polling service. npm start runs the server; npm run harbour -- install schedules the runner on macOS (polls every 60s), or npm run harbour -- run drains all due work once. Linux services are configured with systemd in the production guide.
Visit http://127.0.0.1:4272 and log in. Harbour binds to loopback by default; the port and host are configurable as described in Getting started. All state (DB, uploads, encryption key) lives in ~/.harbour — back up that directory and you have everything. (For scripted installs, npm run harbour -- user create --email --name "" --password creates the user and provisions the local runner non-interactively.)
See deploying to production for the Linux path — systemd units for the server and runner, with Caddy terminating TLS in front. On macOS, the server runs in the foreground by default; npm run release handles in-place updates only when a server launch agent has been configured separately.
Built-in support for Claude Code and Codex. Create a Harbour Agent in the dashboard, and the local runner (provisioned at setup) claims and runs it.
New agents default to Enforced permissions: the CLI runs under a policy file you write in the agent's workspace, and until that file exists the agent's runs fail closed rather than running unrestricted. To try an agent out immediately, set it to Unrestricted on its settings page — that's the old always-bypass behavior, chosen deliberately per agent. npm run harbour -- policy check shows where every agent stands. See agent permissions.
If you haven't scheduled the runner yet:
npm run harbour -- install # macOS launchd; polls every 60sOn Linux, use the runner systemd unit in the production guide.
Claude Code and Codex use their normal login or API-key setup on the runner machine.
To run an agent on another machine, give it a placement label and run a runner there advertising that label — it claims the agent's runs over the same Runner Protocol and drives the CLI locally. That remote runner is self-managed and needn't be Node: use the standalone harbour-agent, your own implementation in any language, or Harbour's bundled runner (enrolled with harbour connect). All of them speak the protocol at /api/runner-guide; the agent's spawned CLI sees the wire contract at /api/guide. Either way the agent has no Harbour API key of its own — the runner token claims and a per-run exec token authenticates the work.
More: agents (CLI auth, permissions, model/effort overrides) and running a runner on a different machine.
Workflows are claimed by the same local runner that drives agent jobs — one runner handles both, so there's nothing extra to install. A workflow with no runner scheduled at all just sits queued until the runner is scheduled (launchd on macOS, systemd on Linux) or you run npm run harbour -- run (one-shot).
More: workflows (runners, gates, the exit-code contract).
An API key lets a separate management agent operate Harbour itself — create agents, jobs, docs, tables, and more. Mint one in Settings → API Keys; the agent fetches its reference at GET /api/management-guide. See docs/management-guide.md.
Start with the docs map, which routes you to the right page. The PRD is the product north star — what Harbour is, the principles it holds to, and the roadmap.
The wire contracts — docs/guide.md (worker agents) and docs/management-guide.md (management agents) — are served live and are the source of truth for on-the-wire behavior.
Next.js (App Router), SQLite (better-sqlite3), Tailwind / shadcn/ui, TypeScript. Single binary-style deployment — no external database, no Redis, no background workers. Just npm start.
All Harbour state lives under ~/.harbour by default — DB, uploads, encryption key, runner config. Back up that directory and you have a snapshot of everything.
| Variable | Description | Default |
|---|---|---|
HARBOUR_HOME |
Root directory for all Harbour state | ~/.harbour |
HARBOUR_DB_PATH |
SQLite database file path | /harbour.db |
HARBOUR_UPLOADS_DIR |
Run attachments directory | /uploads |
HARBOUR_ENCRYPTION_KEY |
64-char hex key for secret encryption | Auto-generated at /encryption.key |
HARBOUR_PORT |
Server port; also a bundled-runner local override when set for that process | Production 4272; development 3001 |
PORT |
Next-compatible server port alias (server only; HARBOUR_PORT wins) |
Production 4272; development 3001 |
HARBOUR_HOST |
npm start / npm run dev bind address |
127.0.0.1 |
HARBOUR_PUBLIC_URL |
Browser-facing base URL for absolute page metadata (set when building) | Effective local server URL |
HARBOUR_URL |
Base URL used by the bundled runner (highest precedence) | HARBOUR_PORT, saved runner.url, then http://127.0.0.1:4272 |
HARBOUR_MAX_UPLOAD_MB |
Per-file upload cap in MB | 500 |
HARBOUR_SESSION_TTL_DAYS |
Dashboard session lifetime in days | 30 |
HARBOUR_POOL_SIZE |
Runner: lock units run in parallel per cycle | 4 |
HARBOUR_MAX_CLAIMS |
Runner: max units claimed in one cycle (floored at the pool size) | 200 |
HARBOUR_RUNNER_LABELS |
Runner: comma-separated placement labels it advertises | local |
HARBOUR_CLI_INACTIVITY_MS |
Runner: kill a CLI after this long with no output | 180000 (3 min) |
HARBOUR_USER_PASSWORD |
harbour user create: password when not passed as a flag |
— |
Setup saves its effective runner URL to ~/.harbour/runner.url. The macOS
installer also captures explicit runner-related environment values in its
launchd plist; reinstall that service after changing them.
No open issues yet, or sync has not completed.