# @cubicecho/agent-router-worker > agent-router's worker program: runs a workspace's agent loops on another machine. Agent-facing docs for @cubicecho/agent-router-worker, one task or concept per page. Generated from _agents/docs/ by @cubicecho/agent-docs; edit the pages, not this file. ## Docs - [Install and run a worker](_agents/docs/01-install.md): `@cubicecho/agent-router-worker` is agent-router's worker: a program that dials a router with a worker key and runs the agent loops of the workspaces placed on it, with its own MCP servers as their tools. This page covers the command, its environment, and placing a workspace on it. - [Common mistakes with the worker](_agents/docs/common-mistakes.md): Each entry is a mistake made running a worker or building on its library, what happens, and the fix. - [Run a worker with your own loop](_agents/docs/custom-loop.md): `startWorker` runs each assignment on agent-core's `runAgentLoop`, or on the one its `runtime` names. This page covers replacing the loop, what a replacement must do, and testing one with `executeRun` and no router. - [Local servers: the tools a worker gives its runs](_agents/docs/local-servers.md): A worker's runs reach its built-in `workdir` server and each MCP server the `WORKER_CONFIG` file names. This page covers that file, the environment and folder a server starts with, how tools are named, and what `workdir` offers. ## Exports - [`@cubicecho/agent-router-worker`](types/worker/lib.d.ts): the library. The declarations it re-exports from, beside it in `types/`, carry the doc comment of every export. - `@cubicecho/agent-router-worker/package.json`: the manifest. ## Elsewhere - [The router's own pages](https://github.com/cubicecho/agent-router/tree/main/_agents/docs): its `/graphql`, `/v1`, `/mcp` and `/runs`.