Skip to main content
Glama

Agent Orchestrator

Agent Orchestrator is a window on your computer. You chat with models that already run here or on a box you started. Other apps (like Late) can use it as MCP.

Writes wait for Approve. Keys stay on this computer. Bind is loopback (127.0.0.1) unless you type one private IP on this computer.

How it works

  1. You start it on this computer (npm run gui, or the app from Releases).

  2. You open the local page it prints. That URL is only for this machine.

  3. You type in Chat. Auto picks who speaks. Implement/install still waits for Approve.

  4. If you want Late (or another client) to use this as the agent, click Copy MCP URL. It is /mcp on the same port as the web UI, not always 8787. The HTML page is not MCP.

That is the whole idea.

How Agent Orchestrator works on your computer

Chat on this computer, then Copy MCP URL for Late. The address is the host this process bound (loopback, or the private IP you typed) on the port it printed.

Chat (GUI or MCP)
  → Auto router (control tools | single agent | multi-agent debate)
      → Cursor (local or cloud) — can edit allowlisted directories
      → External models — text only
      → Local model server on 127.0.0.1 — never public

Related MCP server: cursor-bridge

Watch it

Real clips recorded against the live GUI on this computer (no fake media). Session tokens and API keys stay off-screen.

Clip

What you see

Debate demo

Debate on your computer: local Gemma, Cursor local, and Cursor cloud each get a turn. Gemini returned 429 and was skipped. Writes still wait for Approve.

GUI overview

GUI overview — Chat rail, Settings pages, loopback bind.

Copy MCP URL

Copy MCP URL — copies http://127.0.0.1:<gui-port>/mcp (Streamable HTTP). The HTML root is not MCP.

Local models Start/Stop

Local models — Start / Stop for late-infer, Ollama, llama.cpp, and vLLM (Docker when present).

late-infer

late-infer — Hub catalog, compile/OpenVINO path, serve on 127.0.0.1:8010.

Older stills under docs/images/ (extract → Start Ollama → vLLM Docker → Late /mcp) remain accurate diagrams for the archive flow.

What’s in the archive

Ollama and llama-server are in the zip/tarball. Weights are not. vLLM Start still needs Docker. Bind stays 127.0.0.1. This app does not start inference on another host.

What you get

Picture

What is packed

Archive includes Node, Ollama, llama-server; Mac is darwin zip

Start / Stop on Local models

Start Ollama, Start llama-server, vLLM Start with Docker

GUI vs /mcp

Paste /mcp into Late, not the HTML token URL

Four steps

1

2

3

4

Extract

Start Ollama

vLLM Docker

Late /mcp

sequenceDiagram
  actor You
  participant GUI as GUI 127.0.0.1
  participant Ollama as Ollama :11434
  participant Late
  You->>GUI: extract archive → agent-orchestrator-gui
  You->>GUI: Local models → Start Ollama
  GUI->>Ollama: serve on loopback
  You->>Late: paste printed /mcp URL
  Late->>GUI: chat_send (isolated prompt)
  Note over GUI,Late: extra start_vllm / dispatch wait for Approve
  Note over GUI: no start_ollama MCP tool

Install

Download a portable build from Releases (tag v0.1.4). GitHub Actions Build installers also packs on main (workflow artifacts). Filenames are in release/README.md. Each archive includes Node 22. Extract it, then:

Your computer

File

What you do

Linux

agent-orchestrator-…-linux-….tar.gz

Extract, run ./bin/agent-orchestrator-gui. Same tarball on Debian, Fedora, Arch (no .deb / .rpm).

Mac (Apple silicon)

agent-orchestrator-…-darwin-arm64.zip

Extract, run ./bin/agent-orchestrator-gui. Unsigned zip — not mac-….tar.gz. Metal/MLX in this pack.

Mac (Intel)

agent-orchestrator-…-darwin-x64.zip

Same. llama.cpp is CPU/BLAS.

Windows

agent-orchestrator-…-win-x64.zip

Extract, run bin\agent-orchestrator-gui.cmd

That starts the GUI and Streamable HTTP /mcp on the same port. Copy the printed URL for Late. Stop with --stop. Bind stays 127.0.0.1 unless you set one private IP (see below). Ollama and llama.cpp are in the archive (Start on the Local models page). vLLM Start still needs Docker — if Docker is missing, Start with Docker stays hidden.

The Linux file is a portable tarball — it is not tied to one distro. There is no .deb or .rpm (this project packs a Node runtime archive, not an fpm/electron-builder installer).

Or install from source below.

Quick start

Requires Node.js 22.13+.

npm install
cp .env.example .env

Put API keys in .env or in the GUI Backends page — never in agents.config.yaml. apiKeyEnv is the variable name (GEMINI_API_KEY), not the secret.

# GUI (loopback, or one private IP — see Late on another computer)
npm run gui

The first npm run gui builds the engine on your computer. It uses late-infer via scripts/ensure-late-infer.js or npm run infer:build. later launches skip that build when the stamp matches this app version; an app version bump rebuilds. MCP start (npm start / npm run mcp:http) does not build or spawn late-infer; only the GUI path does.

Open the token URL from stderr (http://127.0.0.1:<gui-port>?token=… on loopback, or the private IP you typed). The session token is stored at .orchestrator/gui.secret (gitignored). The GUI also serves Streamable HTTP at /mcp on that same port (no GUI token — Late never sends it). Copy that exact URL from stderr or GUI Settings → Copy MCP URL — it is the host and port this process bound, not always 8787. On listen it writes .orchestrator/mcp.gui.url (and last-writer mcp.url) plus ~/.config/agent-orchestrator/ (or $XDG_CONFIG_HOME) so a client like Late can find a non-default port. Dedicated npm run mcp:http writes mcp.http.url separately so it does not hide the GUI URL.

Late uses only the printed Streamable HTTP /mcp URL (same port as the GUI, or npm run mcp:http). Do not put this program in Cursor mcpServers for Late — that skips Late Approve and must not receive API keys. npm start / .cursor/mcp.json is stdio for this repo’s Cursor IDE, not the Late operator path.

Copy the /mcp URL — the HTML page is not MCP

The HTML root is the GUI. /mcp on that same port is Streamable HTTP (a JSON body, not the chat page). Paste the printed /mcp URL into Late.

Windows

Same Node 22.13+ and npm commands work in PowerShell or cmd. Loopback bind is the default (127.0.0.1). One private IP is optional (see below).

npm install
copy .env.example .env
npm run gui

Open the token URL from stderr. Stop with npm run gui:stop. Late still uses the printed /mcp URL. npm start is stdio for this checkout’s Cursor IDE only (node + tsx/dist/cli.mjs, not a Unix .bin shim) — not the Late operator path.

Local models on your computer talk to 127.0.0.1:

  • Ollama — packed installs include runtime/bin/ollama. Start it from Local models, or use one you already run (%LOCALAPPDATA%\Programs\Ollama\ollama.exe).

  • llama.cpp — packed installs include llama-server (Vulkan/Metal; Intel Mac is CPU/BLAS). Start with --host 127.0.0.1 and a GGUF path. Weights are not in the archive.

  • vLLM — Windows CUDA wheel when you have NVIDIA + nvidia-smi; host vllm / python -m vllm. AMD: ROCm tools (amd-smi) when present.

  • Docker Desktop — optional for vLLM. NVIDIA GPU in Docker Desktop can work when GPU support is enabled. Intel XPU / /dev/dri images are a Linux path; on Windows use WSL2 or a Linux host, or skip Intel Docker. If Docker is missing, vLLM Start-with-Docker stays hidden.

Hardware detect uses nvidia-smi (including C:\Windows\System32 / NVIDIA NVSMI), Win32 video controllers, and vendor CLIs when present — not Linux lspci / sysfs. If probes fail, the GUI shows a reason instead of crashing.

State stays in .orchestrator under the repo (or AGENT_ORCHESTRATOR_STATE_DIR). Write-allowlist paths may use drive letters (C:\Users\…). POSIX 0600/0700 bits do not apply on NTFS; use folder ACLs if the machine is shared.

Command

Purpose

npm run gui

Control plane on loopback GUI port (AGENT_ORCHESTRATOR_GUI_PORT, default 8787: web UI + /mcp)

npm run gui:stop

Stop that process

npm run gui:restart

Stop then start

npm start

Stdio MCP server

npm run mcp:http

Dedicated Streamable HTTP MCP (AGENT_ORCHESTRATOR_MCP_PORT, default 8790 /mcp)

Late Settings is optional. Paste the printed /mcp URL, or leave Late’s address empty and let it read the advertised file. That URL uses the port this process actually bound — not a hardcoded 8787. /MCP is the same route. Late will not start this process and works with MCP off.

If the GUI port is already in use, the GUI is already running — use gui:stop or open the existing token URL. Stopping a local model container does not stop the GUI.

This checkout’s .cursor/mcp.json is Cursor IDE for developing this repo, not the Late operator path. It does not pass API keys. Late pastes the printed /mcp URL and keeps Approve. list_agents re-reads env and GUI secrets without a full IDE restart.

Chat

Home is a chat thread. The header (new chat, thread switcher, settings) and composer stay on screen; only messages scroll.

  • Auto (default) — control tools for hardware/download/start; debate for plan/fix/review when two or more backends are ready, and whenever two or more local servers (vLLM, Ollama, llama.cpp) are running; otherwise a single agent.

  • Debate — round-table: each ready model speaks in turn (one bubble per speaker), then a closer synthesizes.

  • Single / pin a backend — that backend only.

While a speaker runs, a thinking chip shows name, elapsed time, and phase so the UI does not look hung.

On your computer (short how-tos)

Do this

How

Picture

Start / Stop local servers

Settings → Local models. Start Ollama / Stop, or Start llama-server with an absolute .gguf path. Loopback only. Weights are not in the archive.

Start Ollama and llama-server

vLLM

Start with Docker only if Docker is on this computer. Hidden when Docker is missing. Ollama / llama.cpp still work.

Search the catalog

MCP for Late

Copy MCP URL → paste /mcp into Late. HTML root is not MCP. Empty Late URL = folder. Send is chat_send. Extra start_* wait for Approve. Do not put this in Cursor mcpServers.

Copy the /mcp URL

Token-gated /api

Open the printed ?token= URL. GUI /api/* needs that session token. /mcp does not (Late never sends it). On a private-IP bind, /mcp is trusted LAN — firewall to the laptop.

GUI on loopback only

MCP tools

chat_send, list_agents, start_vllm, ollama_status, llamacpp_status, … There is no start_ollama tool — Start Ollama is the Local models button.

GUI vs /mcp

Debate: several models each get a turn

This clip is Debate on your computer: paste a prompt (do not drip-type). Local Gemma, Cursor local, and Cursor cloud each spoke. Gemini returned 429 and was skipped. Writes still wait for Approve.

Delete a chat

Delete next to a thread removes that chat. It cannot be undone.

Writes and installs wait for Approve. Implement/install stays plan-only until you click Approve on the pending-actions card. After that, Cursor may write only inside the write allowlist. If Cursor is missing, Approve still writes with Node apply-patch in that granted folder. Host-wide installs (package managers, game engines, sudo) are called out and still wait. External models never edit files.

Approve before a write

Grant a folder that already exists on this computer, then Approve. This capture created notes.txt (not .env) with Cursor local. The file still lands only inside the granted path.

Settings

Page

What it does

Backends

Ready/not-ready, paste keys (masked), Gemini model id, nicknames, custom logos, Listen host (loopback or one private IP) + Copy MCP URL

Chat

Opt-in Show tokens/sec (research) on the composer (default off; estimate only)

Local models

Detect GPU VRAM, recommend weights that fit, download, start/stop/remove local servers. Hugging Face token (gated Gemma/Llama/Mistral): paste a Hub read token; status is configured/not; value is never returned

Allowlist

Directories Cursor may write to

Updates

Check GitHub for this app and Late. Ask before download. Cloud AI is not required.

Config

Edit agents.config.yaml (validated; no live keys)

Run workflow

Optional named pipelines

Theme

Appearance for this browser. Stored in localStorage (orchestrator.gui.theme), not in git.

Ready backends on this computer

Ready vs not-ready. Keys stay masked. Nicknames and logos are optional. Reload env picks up a key added after start.

Check for updates on your computer

Updates: Check for updates asks GitHub for Late and this app. Then pick Update Late, Update Orchestrator, or Update both. Nothing downloads until you confirm Download on your computer? Cloud AI is not required.

Keys live in .env and .orchestrator/secrets.env (gitignored). On POSIX the orchestrator creates secret/state files as mode 0600 and directories as 0700, then chmods again after overwrite (Node’s mode option only applies when creating a new file). Windows does not honor Unix permission bits — Node can only toggle the read-only flag, not user vs group vs others. If other accounts use the machine, restrict the repo folder with NTFS ACLs (your user only). Reload env picks up a key added after start.

Cursor (cursor-local and cursor-cloud) uses the env name CURSOR_API_KEY. Paste it in GUI Settings → Backends, or set it in .orchestrator/secrets.env / .env. Get a key from Cursor Dashboard → Integrations. Never commit the value. If it is missing, chat shows Cursor not configured (one line, no stack). Local Cursor uses the MCP process working directory when that path is on the write allowlist — not a hardcoded home path.

Nicknames are stored on each backend in agents.config.yaml (nickname: Arc Qwen). Custom logos are PNG/JPEG/WebP files under .orchestrator/logos/ (gitignored, 512 KiB max; SVG/HTML rejected by magic bytes). Chat bubbles and Settings use the nickname and logo when set.

The GUI Theme picker (sidebar, Chat → Settings, and Overview) is per browser/profile so people sharing a machine can keep their own look. It is not stored in git.

Theme on this browser

Security

Property

Behavior

Bind

GUI and HTTP MCP default to 127.0.0.1. You may bind one private IP on this computer (RFC1918 or IPv6 ULA) via mcp.listen_host, GUI Settings, or AGENT_ORCHESTRATOR_MCP_HOST / AGENT_ORCHESTRATOR_GUI_HOST. auto (or Settings empty) is this computer's primary RFC1918 IPv4. Ports from AGENT_ORCHESTRATOR_GUI_PORT / AGENT_ORCHESTRATOR_MCP_PORT (defaults 8787 / 8790). 0.0.0.0, ::, and public addresses are refused. Local model HTTP stays loopback.

Auth

GUI /api/* requires the session token. Streamable HTTP /mcp does not (Late never sends it). Host + Origin are the boundary (loopback and the bound private host). Pairing a token on /mcp would break Late unless Late starts sending one. On a private-IP bind, treat /mcp as trusted LAN — firewall to the laptop. Do not tunnel /mcp to the public internet. Late Approve is Late’s sidecar when Late is the client.

GUI token

Open the printed ?token= URL. The token is stored in sessionStorage and stripped from the address bar. EventSource /api/events still uses a query token because the browser cannot set Authorization on EventSource. Logo URLs use the same query form.

Origin

Host must be loopback or the bound private IP. GUI /api Origin must match this port. Streamable HTTP /mcp allows loopback Origin, the bound private host, or none (Late sidecar). Random websites (evil.com) are rejected.

Secrets

Never logged or shown in full. Not committed. POSIX files 0600; Windows needs NTFS ACLs.

Writes

Realpath + allowlist; .. and symlink escapes fail.

Do not tunnel the GUI or vLLM. Cloud Cursor agents cannot reach localhost; the orchestrator passes text between local and cloud.

GUI on loopback only

The rail shows the bind address. Local vLLM stays loopback. This page is for your computer (and, if you choose, one private IP on a trusted LAN).

Write allowlist

Default: this workspace (WORKSPACE_CWD / workspace.cwd). Add more via Settings → Allowlist or add_allowed_dir. Chat offers one-click add when you name an absolute path that is not listed. Drag a folder onto Chat (or paste a path). The path must already exist on this computer (the one running the GUI).

Grant a folder on this computer

Inference engines (this tree)

Local inference is local-first: engines bind loopback only (127.0.0.1 — never 0.0.0.0). Auto prefers control tools for hardware/download/start, debate when two or more local servers are ready, else a single agent. Writes and extra MCP starts wait for Approve.

Search the local models catalog

Local models Start/Stop demo · late-infer demo

What ships vs what stays on disk

Piece

Where it lives

Notes

Portable archive

Releases zip/tarball to runtime/bin (Ollama, llama-server, Node, packed late-infer)

Weights are not in the archive.

Source late-infer

GUI path ensure-late-infer.js / infer:build to bin/late-infer

Candle/OpenVINO binary; Hub weights under .orchestrator/

Model weights / IR

.orchestrator/models (+ gguf), LATE_COMPILED_DIR OpenVINO IR

Gitignored; stay on write allowlist

Secrets

.orchestrator/gui.secret and secrets.env

Never commit.

Ports (loopback)

Engine

Default OpenAI-compat base

Start / Stop

late-infer

http://127.0.0.1:8010/v1

GUI Local models; MCP start_late_infer / stop_late_infer

Ollama

http://127.0.0.1:11434/v1

GUI Start Ollama / Stop only (no start_ollama MCP tool)

llama.cpp

http://127.0.0.1:8080/v1

GUI Start with Hub GGUF or absolute .gguf

vLLM

free port in 8000-8099 on 127.0.0.1

GUI Start with Docker or host wheel; MCP start_vllm / stop_vllm

Stop actually kills

Stop is not a UI soft-flag. stopLocalServer (and vLLM process-tree stop) sends SIGTERM, waits a short grace, then SIGKILLs any matching engine still listening on that loopback port — including orphans after a GUI restart (pidfile / cmdline / comm checks). Stopping late-infer clears :8010; Ollama :11434; llama-server :8080; vLLM the instance port.

late-infer (OpenVINO / Candle)

  • Built from the sibling Late crate (LATE_INFER_CRATE / LATE_CHECKOUT / Local_AI_Terminal_Emulator) into bin/ and runtime/bin. MCP-only processes do not build or spawn it.

  • Compile path: late-infer --compile-only --model HubId. On Intel, Start needs OpenVINO IR on disk (.../compiled/slug/openvino/openvino_model.xml). Missing IR means Start refused. NVIDIA uses Candle/MLC when eligible; AMD HIP serve is fail-closed.

  • Hub catalog (hub-catalog.ts + hub-serve.ts) lists safetensors CausalLM snapshots for late-infer (not GGUF — that is the llama.cpp Hub store). Rows are pre-screened with ovExportOk / loadable from known model_type plus a soft-fail cached config.json probe (fallback seeds are always probed). Loadable + ungated sort first (newest among those); missing/denied config and OV-incompatible graphs are demoted — Download uses the same human soft-fail instead of a raw Error: config.json. Gemma3/4 visual-only Optimum types are not OpenVINO CausalLM text-generation-with-past. Gemma2 is not the primary default.

  • Hub store UI: checkbox to hide gated models or show them locked until license accept + HF read token; clearer gated path before Download.

  • Default Hub id when unset: Qwen/Qwen2.5-0.5B-Instruct (prefers loadable ungated over Gemma2).

Ollama

Packed binary preferred (runtime/bin), else PATH. Loopback only. Pull weights yourself, then Register Ollama backend. YAML type ollama; dummy apiKey ollama is not a secret.

llama.cpp / GGUF Hub catalog

Packed llama-server (Vulkan Linux/Windows, Metal Apple silicon). GGUF Hub catalog (hub-gguf-catalog.ts) uses Hugging Face REST (filter=gguf) — not HTML scrape — with quant preference Q4_K_M. Downloads land in .orchestrator/models/gguf. YAML type llamacpp.

vLLM

Host CUDA/ROCm wheel when present; else Docker. Intel XPU images are a Linux path. Stop one instance; Remove from mix drops YAML; Delete weights is a separate confirm.

Approve-gated tools

Chat/MCP Approve gates writes (apply_patch, allowlisted paths) and extra starts such as start_vllm / dispatch. Late Approve sidecar applies when Late is the client.

Local models (vendor-agnostic)

list_hardware probes whatever accelerators are present (NVIDIA CUDA, AMD ROCm, Intel XPU, or CPU if none). Recommendations use measured VRAM, not a single vendor. Missing NVIDIA is not treated as CPU only when another GPU exists.

Search the catalog by name (this clip types gemma). Recommended rows say whether a snapshot fits this computer.

A catalog model fits a single GPU when estimated weights plus ~20% KV-cache headroom are ≤ that GPU’s VRAM. start_vllm uses every GPU on this computer by default (vllm serve --tensor-parallel-size N). Pass use_all_gpus=false to stay on one card. A larger model can still fit via tensor parallel when weight shards fit in combined VRAM. Remaining memory on each card is used for the KV cache (--gpu-memory-utilization 0.9). The catalog is not tied to one vendor: it includes Qwen 2.5/3/3.5/3.8, Gemma 4 Instruct (prefer E2B; 12B on Intel XPU uses online FP8 text-only), Llama 3.1/3.3/4 Scout, Mistral 7B and Small 3.2, Phi-4, OLMo 2/3, IBM Granite 3.3/4.2, and DeepSeek-R1 Qwen distills. Recommendations list every catalog snapshot (no top-8 cap) with fit flags for this computer (fits / needs tensor parallel / too big). Newest Hub id is marked when a family has several names (Gemma 4 over Gemma 3, Qwen3.8 over Qwen2.5). Gemma 2 is skipped as old; Gemma 3 stays downloadable when gated terms are accepted. FP16 rows work on CUDA, ROCm, and Intel XPU; AWQ/GPTQ rows are CUDA/ROCm only. Official Gemma 3 (Gemma Terms of Use) and Llama (Llama Community License / Llama 4 Community License) Hugging Face repos are gated. Gemma 4 Instruct is ungated Apache-2.0 (E2B recommended; 12B/31B/26B-A4B on Intel llm-scaler 0.21+ use online FP8 + text-only MM limits). Community Llama AWQ snapshots in the catalog are ungated on Hugging Face but still under the Llama Community License. You can still download any other org/name snapshot that vLLM can load.

Download snapshots into .orchestrator/models (gitignored, must stay on the allowlist).

Gated Hugging Face models (Gemma, Llama, Mistral, and similar Hub gates):

  1. While logged into your Hugging Face account, open the model card and accept the license / access terms (Gemma 3: Gemma Terms of Use; Llama 4: Llama 4 Community License).

  2. Create a read access token at huggingface.co/settings/tokens. Paste it in the GUI: Settings → Local models → Hugging Face token (stored as HF_TOKEN in gitignored .orchestrator/secrets.env). HUGGING_FACE_HUB_TOKEN in env or that same secrets file is also honored. Do not put the token in agents.config.yaml or git.

  3. The GUI never returns the raw token (status is configured / not configured). Clear or paste a new token to rotate. POSIX file mode is 0600; on Windows use NTFS ACLs if the machine is shared.

The download helper uses that stored token. If it is missing, a 401 from a gated repo still tells you to set HF_TOKEN in the GUI or env — never commit it.

start_vllm picks a serving stack from the detected backend:

  • CUDA — host vllm serve when the CUDA wheel is installed

  • ROCm — ROCm vLLM when present

  • XPU — vendor Docker images if they are already local; otherwise a host XPU build

  • CPU — not used as a serve path

The API is published on 127.0.0.1 only. start_vllm / GUI Start with Docker picks a free port in 8000–8099 and writes that baseUrl into agents.config.yaml (do not hardcode 8001/8003/8004). Start returns immediately (202); wait on the Local models page until /v1/models is healthy. The running server is registered as a backend automatically (dummy loopback token if the client requires Bearer — you do not copy a key from the container). Late infer stays on 127.0.0.1:8010.

You can run several models at once. Each catalog id gets its own container, port, and backend (vllm-<catalog-slug>). Stop one instance; Remove from mix also drops that backend from YAML; Delete weights is a separate confirm.

pip install -r scripts/requirements-hf.txt   # downloads
# Then install the vLLM build that matches your GPU (CUDA, ROCm, or vendor XPU/Docker).

Ollama

Ollama is a local OpenAI-compat API (http://127.0.0.1:11434/v1). Packed installs include the binary. Start it from Local models → Start Ollama (loopback only). Pull weights yourself (ollama pull llama3.1) or from Late. Then Register Ollama backend.

YAML type is ollama. Dummy apiKey: ollama is not a secret. Non-loopback hosts are refused.

llama.cpp

Packed installs include llama-server (Vulkan on Linux/Windows, Metal on Apple silicon; Intel Mac is CPU/BLAS from the official zip). GGUF files are not in the archive. Start from Local models with an absolute .gguf path, or:

llama-server -m /path/to/model.gguf --host 127.0.0.1 --port 8080
# Windows: llama-server.exe -m C:\path\to\model.gguf --host 127.0.0.1 --port 8080

Then Backends → Add llama.cpp backend with http://127.0.0.1:8080/v1. Bind 127.0.0.1 only.

YAML type is llamacpp.

Ready vLLM, Ollama, and llama.cpp backends all participate in Auto debate when two or more local servers are up. File writes still go through Cursor.

HTTP MCP (any client)

The GUI serves Streamable HTTP at http://<bind-host>:<gui-port>/mcp on the same process as the web UI (AGENT_ORCHESTRATOR_GUI_PORT, default 8787). A dedicated process is npm run mcp:http → http://<bind-host>:<mcp-port>/mcp (AGENT_ORCHESTRATOR_MCP_PORT, default 8790). /MCP is the same route. Late does not send a GUI token. Copy the URL that process printed (or GUI Settings → Copy MCP URL). Late works with MCP off.

Late on another computer on your LAN

You start Orchestrator on this computer. Late only talks HTTP; it will not start this process. Cloud AI is not required for a private LAN address.

On the Orchestrator PC, pick one:

# Auto: this computer's primary RFC1918 IPv4 (here 192.168.2.139)
AGENT_ORCHESTRATOR_MCP_HOST=auto AGENT_ORCHESTRATOR_MCP_PORT=8790 npm run mcp:http

# Explicit IP
AGENT_ORCHESTRATOR_MCP_HOST=192.168.2.139 AGENT_ORCHESTRATOR_MCP_PORT=8790 npm run mcp:http

Bare npm run mcp:http stays 127.0.0.1 unless YAML mcp.listen_host is auto or an IP.

Or bind the GUI (same /mcp on the GUI port, default 8787):

AGENT_ORCHESTRATOR_GUI_HOST=auto npm run gui

Or type auto / leave empty / type 192.168.2.139 in GUI Settings → Backends → Listen host, save, and restart. That writes mcp.listen_host in agents.config.yaml. Env vars override the YAML field.

Late on the other computer: paste the printed URL, for example http://192.168.2.139:8790/mcp (dedicated MCP) or http://192.168.2.139:8787/mcp (GUI). The HTML page is not MCP.

Firewall: allow the laptop (example 192.168.3.116) to that host and port. If the two boxes are on different subnets (.2 vs .3) you need routing — if ping already works, you are fine. SSH is not required.

This is one private IP on your computer, not every interface. 0.0.0.0 and public addresses are refused. /mcp has no GUI token because Late never sends one — use a trusted LAN and the firewall.

Copy MCP URL vs the HTML root

Paste that /mcp URL. Opening the HTML page in a browser is the GUI, not MCP.

POST /mcp HTTP/1.1
Host: 192.168.2.139:8790
Accept: application/json, text/event-stream
Content-Type: application/json
MCP-Protocol-Version: 2025-03-26

(Loopback is Host: 127.0.0.1:<port>.)

Late: Settings → MCP is optional. If you turn it on, Address = the printed /mcp URL from this process (GUI Settings can copy it). Save, then Check. List/status tools run; starts and writes still wait for Approve. You start the GUI or npm run mcp:http; Late will not start it and still chats when MCP is off.

Stdio (tsx src/index.ts) is for this repo’s Cursor IDE only. Late still uses the printed /mcp URL.

Optional ClearPass / ISE / Active Directory

Off by default (AGENT_ORCHESTRATOR_MCP_AUTH=local-token). Passwords and RADIUS secrets go in .env or GUI Backends secrets (RADIUS_SECRET, LDAP_BIND_PASSWORD) — never agents.config.yaml.

LDAP/RADIUS verify the user, then /mcp/login returns a short-lived Bearer for /mcp. HTTP Basic username/password on /mcp also works when those plugins are on. If an allowlist is set, the AD memberOf / RADIUS Filter-Id must match or the result is 401.

LDAPS (Active Directory) — prefer ldaps:// (port 636). Plain ldap:// is refused.

AGENT_ORCHESTRATOR_MCP_AUTH=local-token,ldap
AGENT_ORCHESTRATOR_LDAP_URL=ldaps://dc.example.com:636
AGENT_ORCHESTRATOR_LDAP_BIND_DN=CN={username},CN=Users,DC=example,DC=com
AGENT_ORCHESTRATOR_LDAP_BASE_DN=DC=example,DC=com
AGENT_ORCHESTRATOR_LDAP_FILTER=(sAMAccountName={username})
AGENT_ORCHESTRATOR_LDAP_ALLOWED_GROUPS=CN=MCP Users,OU=Groups,DC=example,DC=com
# LDAP_BIND_PASSWORD in GUI secrets if you use a service bind DN

Windows and Linux: same env vars. Trust the DC certificate (or lab-only AGENT_ORCHESTRATOR_LDAP_TLS_REJECT_UNAUTHORIZED=0).

RADIUS (ClearPass and Cisco ISE) — Access-Request/Accept, PAP. Point the host at the NAD/RADIUS listener ClearPass or ISE already uses. Set a Filter-Id (or equivalent) on the accept profile and allowlist it here.

AGENT_ORCHESTRATOR_MCP_AUTH=local-token,radius
AGENT_ORCHESTRATOR_RADIUS_HOST=clearpass.example.com
AGENT_ORCHESTRATOR_RADIUS_PORT=1812
AGENT_ORCHESTRATOR_RADIUS_ALLOWED_FILTER_IDS=mcp-users
# RADIUS_SECRET in GUI secrets (writeSecureFile / POSIX 0600)

Login: not used by Late. HTTP MCP for Late is the printed /mcp URL with no GUI token.

MCP tools

Tool

Purpose

list_agents

Specialists, backends, allowlist, local runtime

chat_send / chat_approve / chat_list

Same router as the GUI

dispatch / follow_up / run_workflow

Named specialist or pipeline

get_run / list_runs

Async run status

list_allowed_dirs / add_allowed_dir / remove_allowed_dir

Write sandbox

list_hardware / list_local_models / recommend_local_models

Fit and catalog

download_local_model

Hugging Face snapshot

start_vllm / stop_vllm / remove_vllm / vllm_status / delete_local_model

Local vLLM servers

ollama_status / llamacpp_status

Probe loopback Ollama / llama-server. There is no start_ollama MCP tool — use Local models Start Ollama.

Default specialists

Specialists on this computer

Id

Typical backend

Role

planner

Anthropic

Implementation plan

builder

Cursor local

Writes code

reviewer

OpenAI

Review

pr-triage

Cursor local

Failing checks

gemini-planner

Gemini

Extra external planner

vllm-chat

Local vLLM

Text-only local model

ollama-chat

Local Ollama

Text-only; daemon on 127.0.0.1:11434

cloud-builder

Cursor cloud

Isolated cloud agent

Only Cursor backends edit files. Point backend at any id in agents.config.yaml.

Add a backend

backends:
  groq:
    type: openai
    baseUrl: https://api.groq.com/openai/v1
    model: llama-3.3-70b-versatile
    apiKeyEnv: GROQ_API_KEY

specialists:
  groq-reviewer:
    description: Fast external review
    backend: groq
    fallback: reviewer

Gemini uses Google’s OpenAI-compatible endpoint. Set one current model id (the GUI lists ids from Google when the key works). Do not put comments or pro / flash lists in model.

${ENV_NAME} in YAML expands from the process environment.

Cursor IDE only (not Late)

Do not add this to Cursor mcpServers when you use Late. Late’s path is the printed /mcp URL; Cursor mcpServers skips Late Approve and must not receive vault keys.

If you open this repo in Cursor to develop the orchestrator, stdio looks like:

{
  "mcpServers": {
    "agent-orchestrator": {
      "type": "stdio",
      "command": "node",
      "args": [
        "/absolute/path/to/this-repo/node_modules/tsx/dist/cli.mjs",
        "/absolute/path/to/this-repo/src/index.ts"
      ],
      "env": {
        "AGENT_ORCHESTRATOR_CONFIG": "/absolute/path/to/this-repo/agents.config.yaml",
        "WORKSPACE_CWD": "${workspaceFolder}"
      }
    }
  }
}

On Windows use the same node + tsx/dist/cli.mjs form with C:\… paths (or ${workspaceFolder} in Cursor). Do not point command at node_modules/.bin/tsx — that shim is a Unix shell script. Do not put CURSOR_API_KEY or other provider keys in this block.

Late: paste the printed /mcp URL in Late Settings. Leave Cursor mcpServers empty for that workflow.

What is not in git

.env, .orchestrator/ (GUI token, secrets, chats, logos, allowlist, model weights, vLLM state), gui.secret / secrets.env if copied to the repo root, node_modules/, runtime/ (portable bins/libs), local bin/late-infer* and bin/agent-orchestrator* wrappers, target/, and logs. See .gitignore.

Changes

What shipped in each tag: CHANGELOG.md.

Licenses

This repository is MIT. npm dependencies keep their own licenses under node_modules after npm install (including @cursor/sdk and @modelcontextprotocol/server). Model weights you download are not in this repo and remain under their upstream terms (Gemma Terms of Use, Llama Community License, Apache-2.0, MIT, and others as listed on each Hugging Face card).

Available Tools

35 tools
add_allowed_dirA

Grant a directory for local Cursor agent file writes. The path is resolved with realpath (symlink escapes are rejected) and must already exist.

Inputs: path (required).

chat_approveA

Approve or reject pending implement/install actions from chat_send. Until Approve, Cursor stays plan-only (no writes, no Unity/apt/sudo). After Approve, the closer may write only inside the allowlisted cwd. Optional comment is stored on the thread.

Inputs: decision (required), thread_id (required), comment.

chat_deleteB

Delete a persisted GUI/MCP chat thread by id. Late will wait for Approve. Does not delete files on disk outside the chat store.

Inputs: thread_id (required).

chat_getA

Read one chat thread (messages, speakers, pending approval). Includes busy=true while debate/single is still running so clients can poll instead of blocking on chat_send wait.

Inputs: thread_id (required).

chat_listA

List persisted GUI/MCP chat threads (id, title, agents, updatedAt).

Inputs: no named parameters.

chat_sendA

Send a natural-language message through the same auto-router the GUI uses. Default pin is auto: hardware/vLLM/allowlist questions hit control tools; build/fix/review/plan with two or more ready backends (including Cursor) runs a round-table. pin=debate forces every ready local server plus ready Cursor/Gemini/cloud specialists to answer (Late MCP uses this). Implement/install stays plan-only until the user Approves (pendingApproval on the thread). Q&A and debate text are not blocked. pin=single or a backend id skips debate. File writes never go to vLLM. Assistant messages include speaker id, nickname, and a loopback logoUrl when a logo is set.

Inputs: message (required), cwd, pin, wait, +5 more.

delete_late_inferA

Remove a compiled late-infer snapshot from this computer (compiled dir only, not the Hub cache). Requires a Hub org/model id and confirm=true. Extra calls wait for Late Approve. If that snapshot is serving on 127.0.0.1:8010, Stop then delete. Does not delete bin/late-infer. Accepts no cwd, allowlist, write directory, or filesystem path.

Inputs: model (required), confirm (required).

delete_local_modelA

Permanently delete a downloaded snapshot from the allowlisted models directory. Stops that model if it is running. Requires confirm=true. Does not unregister other backends.

Inputs: confirm (required), model_id (required).

dispatchA

Send a task to one specialist. Prefer chat_send for natural language so the orchestrator auto-routes (including round-table debate). Cursor local backends can edit files only inside the write allowlist.

Inputs: task (required), specialist (required), cwd, wait, +7 more.

download_local_modelA

Download a catalog model (or Hugging Face org/name repo) into the allowlisted models directory (default .orchestrator/models). Large; requires an explicit model_id. Honors HF_TOKEN / HUGGING_FACE_HUB_TOKEN for gated repos. dry_run only checks the destination path.

Inputs: model_id (required), dest, dry_run.

follow_upA

Continue an existing specialist run. Cursor backends resume the same agent (full conversation + workspace). External backends continue with stored chat history.

Inputs: run_id (required), message (required), wait.

get_runA

Fetch status and output for a dispatch or workflow step by run id.

Inputs: run_id (required).

late_infer_statusA

Probe loopback late-infer (default http://127.0.0.1:8010/v1). Does not start a process. Non-loopback URLs are rejected.

Inputs: base_url.

list_agentsA

List specialist agents, backends (Cursor + external), workflows, write-allowlist directories, default cwd, and local-runtime status (late-infer running vs idle, Cursor cloud / CURSOR_API_KEY). Call this before dispatching work so you pick a ready backend. Re-reads .env and GUI secrets on each call so newly added keys take effect without restarting Cursor. Local Cursor agents may only write inside allowed directories. Cloud Cursor agents cannot reach localhost late-infer; use local-and-cloud or cloud-with-local-draft workflows.

Inputs: no named parameters.

list_allowed_dirsA

List directories local Cursor agents may write to, plus the default cwd. The workspace is granted by default until you add more.

Inputs: no named parameters.

list_hardwareA

Summarize discrete GPUs for local model serving (NVIDIA, AMD, Intel, or CPU if none), with VRAM, primaryBackend, and any local vendor Docker images for serving.

Inputs: no named parameters.

list_hub_modelsA

List Hugging Face Instruct/chat safetensors for Late infer on your computer (same searchable catalog as the GUI). Always includes well-known Qwen/Gemma/Mistral/Llama/Phi Instruct ids; Hub API rows merge on top when reachable. Each row includes estimated VRAM at max usage (weights plus KV cache). Optional query (Gemma, Qwen, …). No filesystem path. Does not download. Public Hub ids are listed without Cloud AI; HF_TOKEN from Settings is used when present so gated listings appear. Extra pull_late_infer / delete_late_infer still wait for Approve.

Inputs: q.

list_local_modelsA

Every curated open-weight chat model for local vLLM (full catalog, not a short slice): fit flags for this GPU (weights + ~20% KV headroom), newest Hub id when a family has several names, downloaded under the allowlisted models dir, and every running loopback vLLM instance (backend id, port, image).

Inputs: no named parameters.

list_runsA

List recent orchestrated runs, newest first.

Inputs: limit.

llamacpp_statusA

Probe a loopback llama.cpp llama-server OpenAI API (default http://127.0.0.1:8080/v1). Does not download GGUF files or start a process. Non-loopback URLs are rejected.

Inputs: base_url.

ollama_statusA

Probe a loopback Ollama daemon (default http://127.0.0.1:11434). Lists tags when it is running. Does not install Ollama. Non-loopback URLs are rejected.

Inputs: base_url.

pull_late_inferA

Pull a Hugging Face model snapshot and compile it for late-infer on this computer. Detects the idle GPU first (NVIDIA / AMD / Intel) and compiles for that vendor — Intel is never treated as NVIDIA. Requires a Hub org/model id. Extra calls wait for Late Approve. The destination is fixed by late-infer; this tool accepts no cwd, allowlist, write directory, or filesystem path.

Inputs: model (required).

recommend_local_modelsA

Every catalog model for local vLLM, with fit flags for the GPUs on this computer (fits / needs tensor parallel / too big). Newest Hub id is marked when a family has several names (Qwen3.8 over Qwen2.5, Gemma 4 over Gemma 2/3, Llama 4/3.3 over 3.1). Nothing is hidden. Without an accelerator, only tiny CPU-feasible entries fit.

Inputs: no named parameters.

remove_allowed_dirA

Revoke a previously granted write directory. Local Cursor dispatch will fail if cwd is no longer allowed.

Inputs: path (required).

remove_vllmA

Stop one vLLM instance and unregister its backend and specialist from agents.config.yaml. Other running models stay up. Does not delete downloaded weights.

Inputs: model_id, backend_id.

run_workflowA

Run a named multi-agent pipeline. Built-in: ship-feature (planner → builder → reviewer), troubleshoot-pr (pr-triage → builder → reviewer), local-and-cloud (vLLM + Cursor cloud in parallel), cloud-with-local-draft (vLLM draft then cloud builder). Each sequential step sees prior output. Parallel recipes collect both results. Local file writes still require an allowed cwd. Cloud agents never call localhost vLLM.

Inputs: task (required), workflow (required), cwd, branch, +4 more.

start_late_inferA

Start late-infer on this computer (OpenAI /v1 on 127.0.0.1:8010 only, never 0.0.0.0 or LAN). Spawns the late-infer binary (PATH or sibling Late target/release). First start loads Hugging Face safetensors (not packed). Extra calls wait for Late Approve — this is not auto-run.

Inputs: model, use_all_gpus.

start_llamacppA

Start llama-server on this computer (127.0.0.1:8080 only) with an absolute .gguf path. Extra calls wait for Late Approve.

Inputs: model_path (required).

start_ollamaA

Start Ollama serve on this computer (127.0.0.1:11434 only). Extra calls wait for Late Approve. Does not pull models.

Inputs: no named parameters.

start_vllmA

Launch a local OpenAI-compatible server bound to 127.0.0.1 only (never 0.0.0.0). Each catalog model gets its own Docker container, port in 8000–8099, backend id (vllm- from the catalog id, e.g. vllm-qwen25-7b-instruct), and specialist. Tensor-parallels across every GPU only when the catalog fit needs more than one card; models that fit a single GPU stay at --tensor-parallel-size 1. Pass use_all_gpus=false to pin to one GPU even when the model is larger. Does not stop other orchestrator vLLM containers unless replace=true (restarts this model only). On intel-xpu, if intel/llm-scaler-vllm or intel/vllm:*xpu is local, starts that container (API published as 127.0.0.1:port:8000). Model must already be downloaded. Waits until GET /v1/models is healthy, upserts that backend + specialist, and stores a dummy loopback Bearer in gitignored GUI secrets if needed (never copy a key from vLLM). Cloud agents still cannot reach this server.

Inputs: model_id (required), host, port, image, +5 more.

stop_late_inferA

Stop the late-infer process this orchestrator started (owned pid only). Does not kill a late-infer Late started.

Inputs: no named parameters.

stop_llamacppA

Stop the llama-server process this orchestrator started (owned pid only).

Inputs: no named parameters.

stop_ollamaA

Stop the Ollama process this orchestrator started (owned pid only).

Inputs: no named parameters.

stop_vllmA

Stop one orchestrator-managed vLLM instance (container or host process group). Pass model_id or backend_id to leave other running models up. If several are running and neither id is set, the call fails unless all=true. Does not stop unrelated Docker containers (including a leftover orch-vllm you did not start this way).

Inputs: all, model_id, backend_id.

vllm_statusA

All orchestrator-managed vLLM instances (image, port, model, backend id, container) plus whether a serving stack is installed (including local Intel Docker images).

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 35 tools

    Disambiguation3/5

    Backend-specific status/start/stop tools are clearly separated by backend, but list_local_models and recommend_local_models describe nearly identical catalog-plus-fit-flag surfaces, and dispatch/chat_send/run_workflow overlap enough that an agent must read carefully to choose. Detailed descriptions mitigate but do not fully eliminate the boundary problem.

    Naming Consistency3/5

    Most tools follow a verb_noun pattern such as start_ollama, list_runs, and add_allowed_dir, but chat_list/chat_send/chat_get/chat_delete invert that pattern, and noun_status tools plus bare dispatch and follow_up break the convention. It remains readable, but the conventions are not consistently applied.

    Tool Count2/5

    35 tools is past the 25+ threshold and the surface feels padded: four status tools, three heavily overlapping local-model list/recommend tools, and many start/stop pairs could be consolidated. The broad scope explains part of the count, but not all of it.

    Completeness4/5

    The set covers the main lifecycle well: start/stop/status for four backends, model download/delete, chat threads, runs/workflows, and write-allowlist management. Minor gaps remain, such as no Ollama model pull, no run cancellation, and no agent CRUD, but agents can work around them.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables routing context and execution across AI tools like Claude, Cursor, Windsurf, and ChatGPT with a shared memory, task board, and context bus, plus local file conversion.
      11 npm
      9
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables two-way delegation between Codex and Cursor agents with background jobs, handoff plans, and isolated worktrees, allowing either editor to offload investigation, review, planning, or implementation to the other and continue the same native session later.
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables delegating coding tasks to Cursor Cloud Agents from Claude Code, Codex, or Grok, with scoped repository access, progress monitoring, follow-ups, and result reporting.
      23
      MIT