domdus

Agent Worker — DevOps skill for Claude Code

DevOps community

A headless coding agent in a Docker container: Cursor or Claude Code.

How to install Agent Worker

This entry records only its repository, not the path inside it, so there is no exact command to give. Open domdus/agent-worker and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agent Worker does

A headless coding agent in a Docker container: Cursor or Claude Code. You give it a task, it works in a workspace folder (files, shell, git, MCP), and returns the result, the changed files and any commits.

Alternatives in DevOps

  • Coi — Give the agent a machine 743 ★
  • Code On Incus — Give each AI agent its own isolated machine with root, Docker, and systemd 670 ★
  • Workers MCP — Talk to a Cloudflare Worker from Claude Desktop 646 ★

README

Agent Worker

A headless coding agent in a Docker container: Cursor, Claude Code or OpenAI Codex. You give it a task, it works in a workspace folder (files, shell, git, MCP), and returns the result, the changed files and any commits.

It has three ways in, all on one port and protected by one token:

Endpoint For What it is
/mcp Hermes, Claude Code, Open WebUI tools, AI Workspace, any MCP client MCP server (Streamable HTTP) with an agent_run tool
/v1 Open WebUI, any OpenAI client OpenAI-compatible chat/completions and models, so Cursor, Claude Code and Codex show up as chat models
/jobs Scripts, CI, your own apps Start a job, check it, stream its events, cancel it

It runs on the official [Cursor SDK](https://cursor.com/docs) with your own `CURSOR_API_KEY`. Usage is billed to that Cursor account. It can also run **Claude Code** (Anthropic's [Claude Agent SDK](https://pypi.org/project/claude-agent-sdk/)) with your Claude plan or an Anthropic API key: see [Claude Code](#claude-code). And it can run **OpenAI Codex** (the official [Codex SDK](https://pypi.org/project/openai-codex/)) with your ChatGPT plan or an OpenAI API key: see [OpenAI Codex](#openai-codex). Each job picks one engine.

Installation

You need Docker with Compose, and a Cursor user API key from [cursor.com/dashboard/integrations](https://cursor.com/dashboard/integrations) and/or a Claude credential (see [Claude Code](#claude-code)) and/or a ChatGPT plan or OpenAI API key (see [OpenAI Codex](#openai-codex)). The image `ghcr.io/domdus/agent-worker` is built for amd64 and arm64.

1. Make a folder with two files

mkdir agent-worker && cd agent-worker

`.env` (keep it private, it holds both secrets):

CURSOR_API_KEY=key_...
WORKER_TOKEN=          # fill with: openssl rand -hex 32
CURSOR_MODEL=composer-2.5

`docker-compose.yml`:

services:
  agent-worker:
    image: ghcr.io/domdus/agent-worker:latest   # or pin