Back to Browse

Cowork MCP Server

Developer Tools10.0Low riskLocal
Free

Self-hosted MCP task inbox shared by Claude Code, Codex, Gemini CLI and local LLMs.

About

Self-hosted MCP task inbox shared by Claude Code, Codex, Gemini CLI and local LLMs.

Security report

How we score
10.0out of 10Low riskMCP Marketplace security score

Valid MCP server (2 strong, 3 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry.

6 files analyzed Β· Nothing found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Bearer key required on /api and /mcp. If unset, a key is generated on first start, saved to /data/api-key and printed once in the container log.Required

Environment variable: COWORK_API_KEY

How to Install

Install command not verified. See the repository for install instructions.

View repository

Documentation

View on GitHub

From the project's GitHub README.

🀝 Cowork MCP β€” Self-Hosted Multi-Agent Task Queue & MCP Control Plane

One Task Inbox for Claude Code, Codex, Gemini CLI & Hermes Agents

Self-hosted MCP server & Web Dashboard with auto-fallback chains, remote fleet execution, and zero-database storage.

Disambiguation: Independent MIT open-source project β€” not affiliated with Anthropic.

GitHub Stars CI Pipeline Release License: MIT MCP Compatible PRs Welcome

slashman413/cowork MCP server

⚑ Run & Connect β€’ πŸ’‘ Why Cowork? β€’ βš”οΈ Competitive Comparison β€’ πŸ“– Documentation β€’ 🌐 Live Architecture β€’ 🀝 Join as a Remote Agent β€’ ⭐ Star on GitHub


⚑ Run & Connect in 30 Seconds

1. Start the Cowork MCP hub (one-line Docker container β€” or clone and run deploy/install-server.sh):

docker run -d --name cowork -p 6868:6868 -e COWORK_API_KEY=change-me -v cowork-data:/data ghcr.io/slashman413/cowork:1.0.5

Omit -e COWORK_API_KEY=change-me to auto-generate a token printed once in docker logs cowork. Open http://localhost:6868/?apiKey=change-me for the dashboard.

2. Add mcp.json to your coding agent (omit "headers" against a local 127.0.0.1 Node.js hub):

  • Claude Code (.mcp.json or ~/.claude.json β€” or claude mcp add --transport http cowork http://localhost:6868/mcp --header "Authorization: Bearer change-me"):
{
  "mcpServers": {
    "cowork": {
      "type": "http",
      "url": "http://localhost:6868/mcp",
      "headers": { "Authorization": "Bearer change-me" }
    }
  }
}
  • Cursor (~/.cursor/mcp.json or .cursor/mcp.json):
{
  "mcpServers": {
    "cowork": {
      "url": "http://localhost:6868/mcp",
      "headers": { "Authorization": "Bearer ${env:COWORK_API_KEY}" }
    }
  }
}
  • Cline (cline_mcp_settings.json):
{
  "mcpServers": {
    "cowork": {
      "type": "streamableHttp",
      "url": "http://localhost:6868/mcp",
      "headers": { "Authorization": "Bearer change-me" },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Full client recipes, npx mcp-remote bridges, and O(1) async get_task resumption β†’ docs/mcp-setup.md


πŸ’‘ Why Cowork?

You are using Claude Code for development. Two hours into a sprint, you hit the dreaded rate limit:

Error: You have exceeded your current quota. Please wait 4 hours and 12 minutes.

Your workflow stalls. Your terminal hangs. You switch to Gemini CLI or a local Hermes instance, but you lose your entire task state, intermediate patches, and execution context.

Cowork solves this in one command. It is an open-source control plane that connects all your coding agents into one unified task inbox:

  • πŸ”€ Smart Fallback Chains: Route tasks from Claude Code βž” Hermes βž” Gemini βž” Ollama. When an API limits out, Cowork transparently hands the work to the next agent in line.
  • πŸ–₯️ Single-Pane-of-Glass Dark Dashboard: Live CPU/GPU/memory thermals, running agent status, interactive calendar routines, and direct artifact downloads.
  • πŸ“ Zero-Database Simplicity: Pure JSON and Markdown on disk. No Postgres, Redis, or SQLite migrations to maintain.
  • ⚑ One-Command Remote Workers: Harness GPUs or models across laptops, Mac Studios, and cloud boxes: COWORK_URL=https://hub:6868 HOST=mac-studio node cowork/deploy/remote-agent-client.mjs
  • 🎭 285+ Built-in Specialist Personas: Out-of-the-box routing across 19 departments (Frontend, SRE, Security, Penetration Testing, Data Engineering).

βš”οΈ How Cowork Compares

FeatureCoworkCrewAI / AutoGPTOpenHandsLangGraph
Primary FocusMulti-CLI / Multi-Agent Control PlaneLLM Python ScriptsHeadless Dev ContainerGraph Logic Framework
Supports Claude Code & Hermes Native CLIsβœ… Native❌ No❌ No❌ No
Auto Quota / Rate-Limit Fallback Chainsβœ… Built-in❌ Manual❌ No⚠️ Custom Code
Self-Hosted Dark Web UI & Hardware Telemetryβœ… Instant⚠️ Basicβœ… Web UI⚠️ LangSmith (SaaS)
Model Context Protocol (MCP) Streamable Serverβœ… First-class❌ No⚠️ Partial❌ Custom
Storage EnginePlain Files / JSONSQLite/PostgresDocker VolumePostgres/Memory
Multi-Machine Remote Cluster Joiningβœ… 1-Line Node CLI❌ Complex❌ Docker swarm❌ Complex
Pre-loaded Agent Personas285+ Personas0 (DIY)0 (Generalist)0 (DIY)

Jump to: 30-Second Quickstart Β· Quick Start Β· Connecting agents Β· Architecture Β· Dispatcher Β· Agents Β· Vocabulary Β· Thinking level Β· MCP tools

⚑ 30-Second Quickstart

Copy-paste these three lines and your agents are on one shared queue:

git clone https://github.com/slashman413/cowork && cd cowork
deploy/install-server.sh    # 1) build & launch the MCP server + dark dashboard (systemd user service)
deploy/install-skill.sh     # 2) wire the Cowork MCP connection into your agent clients

Then open http://localhost:6868 β€” the dashboard is live: create a task, the dispatcher routes it across your agent fallback chains, and results plus artifacts land back on the task card. Running a hub-only container instead? docker run -d -p 6868:6868 -v cowork-data:/data ghcr.io/slashman413/cowork:1.0.5.

Full walkthrough, manual steps and per-client wiring β†’ Quick Start Β· Connecting agents Β· MCP Client Setup Guide


Screenshots

One dark-themed single pane of glass for the whole operation. The Overview shows live host metrics (CPU / GPU / memory / temp), active workers, open tasks and personas, a 7-day quality panel (pass rate, retries, wait-input, timeouts), the latest agent rulings, the dispatcher's role β†’ model chains, and a real-time activity feed.

Cowork dashboard β€” metrics, counters, dispatcher chains, and live activity

The sidebar groups every view: Operations (Overview, Portal, Tasks, Recipes, Calendar, Goals), AI Fleet (Routing, Agents) and System (Workers, Configuration). Integrations (skills, MCP servers and persona packs) have their own page, /integrations.html. The Tasks, Routing, Agents and Workers views are shown in context throughout this README.

Calendar β€” scheduled tasks and recurring routines by weekGoals β€” long-running goals with phases, decisions and budget
Calendar view β€” week grid of scheduled and recurring tasksGoals view β€” an achieved goal with done-when criteria, phases and progress
Recipes β€” saved tasks you re-run with one clickIntegrations β€” audited git repos installed as skills / MCP / persona packs / portal cards
Recipes view β€” saved recurring tasks with run counts and Run buttonsIntegrations page β€” add a repository, audit results, installed skills
Portal β€” one-click launcher for local web servicesObsidian Vault β€” the shared, readable knowledge base
Portal view β€” cards for Obsidian Vault, Video Studio, File Browser and moreObsidian vault viewer β€” notes tree and a rendered note
Configuration β€” every setting, editable live
Configuration view β€” orchestration settings and default chain

Supported Platforms

PlatformAgentsFormat
Claude Code~285.md with YAML frontmatter
Antigravity (AGY)Built-in + skillsSKILL.md
Hermes Agent39 skillsSKILL.md + triggers
Gemini CLIConverted from source.md subagents
CopilotSame as Claude.md agents
CodexConverted.toml agents
CursorConverted.mdc rules
+ 7 moreSee the agency-agents persona packVarious formats

πŸ— Architecture

One self-hosted Cowork hub (MCP server + dark web dashboard + task inbox, plain JSON on disk β€” no database) sits between all your agent clients and the machines that run the work. Every task is routed in two stages (division β†’ persona) and then executes top-to-bottom along an agent fallback chain: local executors on the hub machine, or remote machines that claim tasks through the remote-agent-client:

flowchart LR
  subgraph clients ["Your agent clients"]
    CC["Claude Code"]
    CX["Codex"]
    GC["Gemini CLI / AGY"]
    HM["Hermes"]
    OTH["any MCP client"]
  end

  subgraph hub ["Cowork hub β€” one self-hosted node"]
    MCP["MCP server + REST API<br/>Streamable HTTP :6868"]
    INBOX[("Task inbox<br/>plain JSON on disk")]
    DISP["Dispatcher"]
    ROUTE["2-stage LLM router<br/>division then persona, ~285"]
    CHAIN["Agent fallback chain<br/>agent 0 to 1 to 2"]
    DASH["Dark web dashboard<br/>tasks, workers, goals, telemetry"]
  end

  subgraph localm ["Hub machine β€” local executors"]
    EXC["claude / codex / agy / hermes / ollama"]
  end

  subgraph remotem ["Remote machines β€” the fleet"]
    RAC["remote-agent-client.mjs<br/>systemd user service"]
    EXR["agent CLIs on that machine"]
  end

  clients -->|"create / claim / complete"| MCP
  MCP --> INBOX
  INBOX --> DISP
  DISP --> ROUTE
  ROUTE --> CHAIN
  CHAIN -->|"local rung"| EXC
  CHAIN -->|"remote rung"| RAC
  RAC --> EXR
  EXC -->|"result + artifacts"| INBOX
  RAC -->|"uploads result + artifacts"| INBOX
  INBOX <--> DASH
  • Inbox first: tasks land in a JSON inbox with inputs, status and artifacts; the dispatcher (not a human) does the routing, so the queue never stalls on unassigned work.
  • Fallback, not retry: when chain[0] fails or a remote rung goes unclaimed within the grace window, the task hands over to chain[1] β€” recording each attempt on the card.
  • Fleet by convention: any machine that runs remote-agent-client.mjs shows up live in the Workers view; claims are atomic, so two clients can never double-run a task.

Deeper detail lives in Task Execution β€” the Dispatcher.


Quick Start

Prerequisites

  • Node.js β‰₯ 20 (tested with v22)
  • npm β‰₯ 10
  • Nothing else to clone. Personas and skills are integrations: on first run, once the server is up, it provisions the default integrations in the background β€” msitarzewski/agency-agents (persona pack the router picks from per task), garrytan/gbrain, addyosmani/agent-skills, anthropics/skills, vercel-labs/agent-browser, backnotprop/pstack, pbakaus/impeccable, Nutlope/hallmark, multica-ai/andrej-karpathy-skills. Check them with GET /api/integrations/defaults (or the Integrations page); override the list with integrations.defaults in config.

Fast path β€” two scripts (recommended)

From the repo root, after cloning (the 30-second quickstart above):

# 1. Build + launch the server (installs deps, builds, starts a systemd user service)
deploy/install-server.sh

# 2. Drop the coordination skill + MCP connection into your agent clients on this box
deploy/install-skill.sh            # auto-detects Claude Code / Hermes / Antigravity

install-server.sh generates a systemd unit with this machine's real node path and working dir (nothing to hand-edit), or pass --foreground to launch in the terminal and --build-only to stop after building. install-skill.sh copies the right per-client skill into place and, for Claude Code, merges mcpServers.cowork into ~/.claude.json non-destructively (add --url http://<host>:6868 for a remote server; --client claude|hermes|agy|all to target one). The numbered steps below are the same thing, broken out for when you want to do it by hand.

Container (hub only)

docker run -d -p 6868:6868 -v cowork-data:/data ghcr.io/slashman413/cowork:1.0.5
docker logs <container>   # first start prints the generated API key once

The image (amd64 + arm64) runs the MCP server, dashboard and task inbox with the local dispatcher off: agents connect to http://<host>:6868/mcp, and machines offer their agents with deploy/remote-agent-client.mjs (see JOIN-AS-AN-AGENT.md). Config and all state live in the /data volume. /api and /mcp always require a key: pass your own with -e COWORK_API_KEY=…, or the server generates one on first start, saves it to /data/api-key and prints it once. Clients send Authorization: Bearer <key> (the agent client reads COWORK_API_KEY); open http://<host>:6868/?apiKey=<key> once to log the dashboard in. Images are built from v* tags by the release workflow on a digest-pinned base.

Once the hub is up, open Integrations (or GET /api/integrations/defaults) to check that the default persona and skill packs finished provisioning. Until the persona pack is installed, the router has no personas to pick from.

1. Install Dependencies

cd cowork/server
npm install

2. Configure Settings

Config lives outside the repo. The tracked cowork/config.json is a sanitized template only. On first run the server copies it to ~/.cowork/config.json β€” your real per-server config (host binding, registered agents, chains). Edit that copy, not the template; the server also persists all live dashboard/API edits there, so your personal host/agent settings never touch the repo. Override the location with the COWORK_CONFIG env var.

Edit ~/.cowork/config.json to match your environment:

{
  "server": {
    "port": 6868,          // ← Change the port here
    "host": "0.0.0.0",     // ← Bind address (0.0.0.0 = all interfaces)
    "name": "cowork-mcp",
    "version": "1.0.0",
    "apiKey": null          // ← Set a string to require API key auth (see below for null)
  },
  "paths": {
    "inbox": "./inbox",
    "status": "./.status",
    "decisions": "./decisions",
    "artifacts": "./artifacts",
    "inputs": "./inputs"
  }
}

All paths are relative to cowork/ (the parent of server/). Use ~ for home directory paths (e.g., ~/.claude/agents).

Key Settings
SettingDefaultDescription
server.port6868HTTP port for MCP endpoint + Web UI
server.host0.0.0.0Bind address (127.0.0.1 for local-only)
server.apiKeynullAPI key for /api and /mcp. When null and host is not loopback, a key is generated into api-key beside the config and printed once
server.allowUnauthenticatedfalseServe a non-loopback host with no key (also COWORK_ALLOW_NO_AUTH=1). Only for a trusted, firewalled network
server.blockedClientsβ€”Client denylist enforced regardless of the API key: {ips: [...], names: [...]}. A matching source IP gets 403 on every path; a names substring (case-insensitive) in the User-Agent / X-Cowork-Client header, MCP clientInfo.name, or tool-call identity args (agent_name, agent_id, capabilities, agents[].id) gets 403 on /api//mcp. Matching agents are disabled so tasks stop routing to them. See server/src/core/client-guard.ts
paths.agencyAgentsunsetOptional. Pins the roster to one local persona checkout; when unset, personas come from every installed persona-pack integration
integrations.defaultsbuilt-in listRepos provisioned once on first start (persona pack + skill packs)

| platforms.*.enabled | true | Enable/disable individual platforms | | platforms.*.agentsDir | varies | Where platform-specific agents live on disk | | services.*.enabled | false | Enable/disable service health monitoring |

3. Start the Server

# Development mode (with hot-reload)
cd cowork/server
npm run dev

# Production mode
npm run build
npm start

You should see:

=========================================
 Multi-Agent Cowork MCP Server Started
 HTTP API: http://0.0.0.0:6868/api
 MCP Endpoint: http://0.0.0.0:6868/mcp
 SSE Stream: http://0.0.0.0:6868/api/events
=========================================

4. Open the Dashboard

Open http://localhost:6868 in your browser.


Connecting AI Agents

For programmatic access, wire the MCP connection into your agent clients. See docs/mcp-setup.md for the full zero-friction guide covering Node.js / npx (mcp-remote), Docker (Authorization: Bearer), and Smithery container deployments.

Scripted (recommended): deploy/install-skill.sh installs the cowork coordination skill and wires the MCP connection for every agent client detected on the box β€” one command instead of hand-editing each config:

deploy/install-skill.sh                          # auto-detect all clients, localhost server
deploy/install-skill.sh --client claude          # just Claude Code
deploy/install-skill.sh --client all --url http://cowork-host:6868   # remote server, every client

It drops the per-client skill (canonical copies in deploy/skills/) into the client's live skill dir and, for Claude Code, merges the mcpServers.cowork entry into ~/.claude.json without disturbing your other servers. Copy-pasteable per-client configs are below.

Using Docker (0.0.0.0) or a remote hub? Add "headers": { "Authorization": "Bearer YOUR_COWORK_API_KEY" } (or --header "Authorization: Bearer $COWORK_API_KEY" for claude mcp add). Local loopback (127.0.0.1) Node.js hubs need no API key.

Claude Code

One-command CLI setup:

# Local Node.js hub
claude mcp add --transport http cowork http://localhost:6868/mcp

# Docker / remote hub (with API key)
claude mcp add --transport http cowork http://localhost:6868/mcp \
  --header "Authorization: Bearer $COWORK_API_KEY"

Or add to ~/.claude.json (user) / .mcp.json (project):

{
  "mcpServers": {
    "cowork": {
      "type": "http",
      "url": "http://localhost:6868/mcp"
    }
  }
}

Then in Claude Code, verify with claude mcp list and call:

Use the cowork MCP tools: register_agent, create_task, get_roster, etc.

Cursor

Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project root):

{
  "mcpServers": {
    "cowork": {
      "url": "http://localhost:6868/mcp",
      "headers": {
        "Authorization": "Bearer ${env:COWORK_API_KEY}"
      }
    }
  }
}

(Omit headers for a local loopback Node.js hub, or use the npx -y mcp-remote bridge snippet in docs/mcp-setup.md#2-cursor.)

Cline

Add to cline_mcp_settings.json (Cline panel β†’ MCP Servers β†’ Configure MCP Servers):

{
  "mcpServers": {
    "cowork": {
      "url": "http://localhost:6868/mcp",
      "type": "streamableHttp",
      "headers": {
        "Authorization": "Bearer YOUR_COWORK_API_KEY"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

(Omit headers for a local loopback Node.js hub; see docs/mcp-setup.md#3-cline-vs-code-extension for OS paths and npx bridge options.)

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json (Windsurf Settings β†’ Cascade β†’ MCP Servers β†’ View raw config):

{
  "mcpServers": {
    "cowork": {
      "serverUrl": "http://localhost:6868/mcp",
      "headers": {
        "Authorization": "Bearer ${env:COWORK_API_KEY}"
      }
    }
  }
}

(Use "url" instead of "serverUrl" on older Windsurf builds, omit headers for a local loopback Node.js hub, or use the npx bridge in docs/mcp-setup.md#4-windsurf-cascade.)

Antigravity (AGY)

Add to your AGY MCP settings:

{
  "mcpServers": {
    "cowork": {
      "url": "http://localhost:6868/mcp"
    }
  }
}

agy quota meter / token refresh. To mint Antigravity access tokens, the usage probe and deploy/remote-agent-client.mjs need Google OAuth client values. These are the public values that ship with the agy and Gemini CLIs. They are not committed. Copy .env.example to ~/.cowork/oauth-clients.env, fill it in, and run chmod 600. Alternatively, export the same variables in the service environment; process env takes precedence. If no values are set, the agy meter only works while a cached CLI access token is still valid.

Hermes Agent

Configure the MCP endpoint in Hermes:

{
  "mcp_endpoints": {
    "cowork": "http://localhost:6868/mcp"
  }
}

Any MCP-Compatible Client

The server speaks standard MCP over Streamable HTTP. Any client that supports MCP can connect to http://localhost:6868/mcp.


Task Execution β€” the Dispatcher

The server includes a dispatcher that turns queued tasks into real agent runs. Output becomes the task result; the full transcript is saved as result.md in the task's artifacts dir.

Every task lands in the Task Inbox, tagged with the division/agent that ran it and the agent it ran on, with its output artifacts attached and filterable by status (done Β· in-progress Β· pending Β· wait-input Β· failed).

Task Inbox β€” tasks tagged with division/agent, agent, and downloadable artifacts

Two-stage routing

An unassigned task is routed in two stages by an orchestrator/classifier agent (default qwen3.8-27b via Hermes, orchestration.classifier):

  1. Division β€” pick 1 of 19 divisions (testing, engineering, security, …). With orchestration.workRoles.enabled the same reply also names a work role (mechanical, feature, bug-fix, perf-issue, research, prose, hardest), which sets the task's context.tier and context.thinking unless the task set them (thinking is capped by workRoles.budget: small = medium, medium = high, large = xhigh, unlimited = max).
  2. Persona β€” pick 1 of ~285 personas in that division. The chosen persona's .md file becomes the system prompt. If the router names no persona (empty reply, classifier off), a keyword matcher (core/persona-match.ts) picks one; if the reply can't be parsed at all, the task goes to classifier.fallbackRole (generalist).

A persona shapes the prompt only; the agent that runs it comes from the fallback chain (below). Skip the router by targeting directly: context.persona: "<persona-slug>" or a special-executor name. Tag a task manual to never auto-execute.

A task pinned to an agent (context.agent) skips agent selection. If that agent runs a small model (≀ 70B parameters, parsed from the model id, e.g. qwen3.8-27b) and the task has no persona, the router still runs first so the pinned agent gets a persona. Override per agent with orchestration.agents.<id>.personaRouting: "always" | "never".

Executors: special roles + personas

  • Special executors (config.json β†’ orchestration.roleChains) β€” only orchestrator, generalist, video; each is {description, agents: [...]} with its own chain. video runs the ComfyUI LTX pipeline (deploy/video-pipeline.sh; LTX only β€” never Wan/Hunyuan/SVD).
  • Personas β€” the ~285 personas from the installed persona-pack integrations (default: msitarzewski/agency-agents, cloned under paths.integrations, default /data/cowork/integrations/), grouped into 19 divisions. They have no chain of their own: per-division and per-persona chains were removed on 2026-11-13, and divisionChains / personaChains in an old config are ignored.

Agent fallback chains (GET /api/chains)

  • Global default β€” orchestration.defaultChain; drag-reorder in the Routing view (PUT /api/chains/default).
  • Tier lists β€” orchestration.tiers.<mechanical|standard|judgment> (GET /api/chains/tiers, PUT /api/chains/tier/:tier). A task with a context.tier (set by hand or by its work role) tries its tier's agents first, then the default chain.
  • Special executors β€” orchestration.roleChains.<role>.agents (/api/roles-config/:name).

A chain runs top β†’ bottom: the task runs on chain[0]; on failure the dispatcher hands over to chain[1], then [2]… recording the failed agent on the task each attempt, until success or the chain is exhausted. Pin a single task to one agent with context.agent: "<id>".

The Routing view edits the special-executor chains, the tier lists and the default chain: drag to reorder or οΌ‹ add agent…. Changes apply live, with no restart.

Routing view β€” special executors and agent fallback chains, editable inline

Vocabulary

TermMeaningWhere you see it
AgentOne model on one CLI on one machine: the thing that runs a task. Example: local-cc-opus-5-5.orchestration.agents, context.agent, /api/agents, Agents page
ThinkingHow hard an agent reasons on a run. A parameter of the run, never part of an agent id.context.thinking, agents.<id>.thinking, orchestration.defaultThinking
PersonaA roster specialist the run takes on. It shapes the prompt, not the agent choice. Example: engineering-sre.context.persona, get_roster, persona-pack integrations
Work roleThe kind of work the router judged a task to be; sets its tier + thinking. Example: bug-fix.orchestration.workRoles, context.tier
RoleA named chain of agents for a built-in job (orchestrator, generalist, video).orchestration.roleChains, Routing page
WorkerA connected client that registers agents and claims their tasks./api/workers, Workers page, register_agent

register_agent, deregister_agent and their agent_id / agent_name arguments keep their names so connected clients don't break: agent_id is the worker's registration id, not an id from agents.

Thinking level

Agent ids no longer carry a level: local-agy-gemini-3.8-flash replaces the -high, -medium and -low variants. A run's level comes from the first of these that is set:

  1. the task's context.thinking
  2. the agent's thinking
  3. orchestration.defaultThinking
  4. medium

Levels are low, medium, high, xhigh and max. Set one on the New task, Edit, Re-run, Reassign and Continue dialogs, per agent on the Agents page, or through the API:

curl -X POST "$COWORK/api/inbox" -H 'Content-Type: application/json' -d '{
  "title": "...", "description": "...", "from": {"platform": "cli", "agent": "me"}, "to": {},
  "context": {"agent": "local-cc-opus-5-5", "thinking": "high"}
}'
curl -X PATCH "$COWORK/api/agents/local-cc-opus-5-5/thinking" -H 'Content-Type: application/json' -d '{"thinking": "high"}'
execHow the level is applied
claude--effort <level>
codex-c model_reasoning_effort="<level>" (max runs as xhigh)
agymodel slug <model>-<level> (xhigh and max run as high; gpt-oss-120b only has medium)
hermes--reasoning <level>, only when a level was set explicitly (xhigh and max run as high)
dsh, ollama, scriptno reasoning control, so the level is ignored

Upgrading from the old naming

A hub upgraded from the brain naming migrates itself: on start, the server detects the old config shape, backs up the config and state to backups/agent-naming-boot-*.tar.gz next to the config, and runs scripts/migrate-agent-naming.mjs before loading anything. So git pull && deploy/redeploy.sh is enough. Local clients still on cowork-local-brain@ keep working under that unit; deploy/cutover-agent-naming.sh moves them to cowork-local-agent@.

Clients on the old contract keep working: the hub translates their old field names at the door (server/legacy-aliases.json, read only by server/src/legacy-wire.ts) and answers with agent_aliases so they can update. GET /api/legacy-wire counts how often that still happens. Once it stays at zero, delete those two files.

Agents β€” named execution identities (model Γ— platform Γ— location)

config.json β†’ orchestration.agents (GET /api/agents) names each agent a chain can reference. The Agents view lists every registered agent β€” its platform (claude / agy / hermes), underlying model, location, and whether it was auto-registered by a connecting client β€” with one-click deregister:

Agents view β€” every registered execution identity, model, and location

AliasLocationRuns
local-hermes-qwen3.8-27blocalHermes on that model
local-dsh-qwen3-8-27blocalDeepSeek Harness (dsh) on that model
local-cc-opus-5-5 / -sonnet-5-5 / -fable-5-1localClaude Code on that model
local-agy-* / local-comfy-ltxlocalAntigravity/Gemini / ComfyUI-LTX video
local-codex-gpt-6-luna / -gpt-5-6-terra / -gpt-5-6-luna / -defaultremoteCodex on this host, claimed by the codex client
local-script-eval-harnesslocalThe eval-prompt-change harness (exec: script)
remote-ai-code-gen-cc-*remoteClaude Code on the ai-code-gen machine
remote-<host>-cc-sonnet-5-5remoteClaude Code on another machine

This table is an example. Read the live set with GET /api/agents.

Agent ids carry the model version (local-cc-opus-5-5, not local-cc-opus) so the model an agent runs is readable from its id; only -default agents, which follow the account default, are unversioned.

Naming convention β€” the prefix names the machine, location names the runner. The local-/remote- id prefix says which machine the agent executes on: local- = this host (it can see /home/wayne, ~/.priv, the GPU), remote- = another machine (remote-<host>-…). The separate location field says who starts it: local = the dispatcher spawns it, remote = a client claims it from the inbox. The two usually agree, but not always β€” local-codex-* runs on this host yet has location: remote because the codex client claims its tasks. Code must read location, never infer it from the prefix. DeepSeek agents are retired β€” any id matching /deepseek/i is scrubbed from the registry on load (see DENYLISTED_AGENT_RE), so never put deepseek in a new id.

Renamed ids keep working. AGENT_ID_ALIASES in server/src/config.ts (plus an optional orchestration.agentAliases in config) maps retired ids to their canonical id. Old ids in an on-disk config, a task's context.agent pin, or a client's registration all resolve to the canonical agent. A client that still declares an old id keeps receiving its tasks under that id (clientId on the agent), until it re-declares the canonical one. Renames (2026-10-07, and codex again on 2026-11-03):

Retired idCanonical id
local-ha-qwen3-8-27b, local-ha-qwen38-27b, local-ha-qwen3.8-27blocal-hermes-qwen3.8-27b
remote-codex-default / -gpt-5-6-terra / -gpt-5-6-luna / -gpt-6-lunalocal-codex-default / -gpt-5-6-terra / -gpt-5-6-luna / -gpt-6-luna (2026-11-03: the prefix names the machine, so the 10-07 local-codex-* β†’ remote-codex-* rename was reversed)
remote-ai-code-gen-cc-opus / -sonnet / -fableremote-ai-code-gen-cc-opus-4-8 / -sonnet-5 / -fable-5

Local agents the dispatcher spawns here. Remote agents it leaves pending and publishes the agent id onto the task's context.agent so that machine's client can discover and claim it (the client filters list_inbox for tasks whose context.agent is one of its own ids). If no client claims a remote rung within orchestration.remoteGraceMs (default 60 s), the dispatcher advances to the next agent in the chain, so a clientless remote rung never stalls a task.

Artifacts work for both: local agents save files to $COWORK_ARTIFACTS_DIR (the dispatcher collects them from disk); remote agents save to the same env dir and the client uploads each file via POST /api/artifacts/:taskId/:file. Either way they land in artifacts/<task-id>/ and become downloadable from the Inbox. Outputs (the task's final deliverables) go in the outputs/ subfolder ($COWORK_OUTPUTS_DIR; remote clients upload via POST /api/outputs/:taskId/:file) and get their own OUTPUTS section on the card, after RESULT and before ARTIFACTS.

Input files flow the other way β€” a person attaches files for the agent to read. Attach them on any Inbox card ("οΌ‹ Attach files"); they are stored under inputs/<task-id>/ and mirrored onto context.inputFiles. The dispatcher points a local agent at their absolute paths in the prompt; a remote agent client downloads them (GET /api/inputs/:taskId) before running and lists their local paths in the prompt. Inputs survive a re-run.

Failed tasks & re-run. When a task exhausts its whole fallback chain (every agent failed verification) it finishes flagged failed: true. The Inbox groups these under a red "failed" filter (kept out of the green "done" count) and offers a confirm-gated ↻ Re-run that resets the task to pending from the top of its chain (POST /api/inbox/:id/rerun) β€” preserving its brief and attached inputs.

Auto-registered agents (clients-capability protocol)

A connecting MCP client DECLARES the agents it can run via the register_agent tool's agents field; the server auto-adds them to the registry (marked dynamic, owned by that client). One machine can offer several models at once. Auto-registered agents persist and are removed only by deregister_agent or the Agents view (never on heartbeat timeout); removal cascades out of the default chain, every tier list, and every special role. Manage all of this from the dashboard's Agents and Routing views.

Wiring a remote agent machine

deploy/remote-agent-client.mjs is a zero-dependency (Node 18+) Cowork MCP client that does exactly that loop. Its header comment documents every env var.

Quickest β€” run it directly (foreground; good for a first test). One agent:

git clone <cowork-repo-url> cowork   # the git remote your hub was installed from
COWORK_URL=http://<cowork-host>:6868 EXEC=claude MODEL=claude-sonnet-5-5 \
  AGENT_ID=remote-<host>-cc-sonnet-5-5 \
  node cowork/deploy/remote-agent-client.mjs

Several agents from one machine (declares them all; each becomes a targetable agent):

COWORK_URL=http://<cowork-host>:6868 EXEC=claude HOST=<host> \
  AGENTS='[{"id":"remote-<host>-cc-opus-5-5","model":"claude-opus-5-5"},
           {"id":"remote-<host>-cc-sonnet-5-5","model":"claude-sonnet-5-5"}]' \
  node cowork/deploy/remote-agent-client.mjs

As a boot service (recommended for permanent machines):

mkdir -p ~/.config/cowork-remote-agent
cp cowork/deploy/remote-agent-client.env.example ~/.config/cowork-remote-agent/aicodegen.env
# edit: COWORK_URL, AGENTS (or AGENT_ID), EXEC, HOST, COWORK_CLIENT_JS
cp cowork/deploy/cowork-remote-agent@.service ~/.config/systemd/user/
systemctl --user daemon-reload && systemctl --user enable --now cowork-remote-agent@aicodegen

It connects to COWORK_URL/mcp, register_agents (declaring its AGENTS, which auto-register into the registry), then polls and claims only tasks whose context.agent is one of its agent ids, runs the matching EXEC/MODEL, and complete_tasks with its result and uploaded artifacts β€” appearing in Workers like any other client. Flexible: the same script serves any agent by changing env only. Scalable: add machines/agents by adding <name>.env files; claims are atomic (single-process compare-and-set) so even multiple clients on the same agent id never double-run a task β€” first claim wins.

Every connected client shows up live in the Workers view β€” grouped by platform, listing the agents it offers, its idle/busy state, and a per-session tally of how many tasks each agent has run vs. submitted:

Workers view β€” local agent usage meters, live MCP clients, and per-agent invocation counters

The always-on coordinator agent shown in Workers as cowork/orchestrator polls the inbox, two-stage-routes unassigned tasks, reclaims orphans, and dispatches; transient per-task workers appear as e.g. testing / Workflow Optimizer Β· local-hermes-qwen3.8-27b or video Β· local-comfy-ltx while running.

CEO flow: tell Hermes (e.g. via Discord) an idea β†’ Hermes creates ONE task with context.persona: "orchestrator" β†’ the orchestrator decomposes it into subtasks via POST /api/inbox β†’ each subtask is two-stage-routed (persona + work role) and runs on its tier/default chain β†’ results and artifacts appear live on the dashboard.

LLM classifier β€” no task left behind

An unassigned task (e.g. a free-text idea filed straight from Discord) no longer stalls: the dispatcher runs the two-stage LLM router (default qwen3.8-27b via Hermes, orchestration.classifier in config.json) that reads the task, picks a division (plus a work role), then a persona, and the task dispatches normally on its tier/default chain. Tag a task manual to skip both routing and dispatch.

Stale-claim reclaim

orchestration.staleClaimMs (code default 0 = off; the template config.json sets 10 min) reclaims any in-progress task whose claiming agent has disappeared β€” a crashed/exited live agent or a dispatcher killed mid-run β€” back to pending so the work is retried. A task still owned by a heartbeating agent is never touched.

Documentation truncated β€” see the full README on GitHub.

Reviews

No reviews yet

Be the first to review this server!