OrcaCD LogoOrcaCD
Architecture

Agents

Managing agents and connecting them to the Hub

An Agent is a lightweight service that runs on the target host where your Docker containers are deployed. It connects to the Hub via WebSocket, receives deployment instructions, and reports status back. You can run multiple agents. One agent per environment, server, or cluster.

Creating an Agent

Before deploying the Agent, you need to register it in the Hub to obtain an authentication token.

  1. Navigate to the Agents page in the OrcaCD UI.
  2. Click Add Agent and give it a name (e.g., production, staging).
  3. Copy the generated AUTH_TOKEN (only shown once).

Create Agent

Deploying an Agent

Same Host as the Hub

The default docker-compose.yml includes both Hub and Agent. If you are running both on the same machine, just set the AUTH_TOKEN in your .env and restart:

docker compose up -d

Remote Host

To deploy an Agent on a separate server, copy only the Agent service definition to that machine. See installation for instructions on how to set up the Agent service.

The Agent will connect to the Hub. Once connected, its status in the Hub UI changes to Online.

The Agent needs access to the Docker socket to manage containers on the host.

Multiple Agents

You can register as many agents as you need. For example, one per environment:

Agent namePurpose
productionDeploys to the production VPS
stagingDeploys to a staging server
devLocal development environment

Each Application in OrcaCD is assigned to exactly one Agent. You can split workloads across agents freely.

Rotating an Agent Token

If a token is compromised or needs to be rotated, navigate to the Agent in the UI, open the options menu, and select Rotate Token. A new token is generated immediately and the old token becomes invalid.

Update the AUTH_TOKEN in the Agent's .env and restart it:

docker compose up -d

Agent Status

StatusMeaning
onlineAgent is connected and ready to receive deployments
offlineAgent has disconnected or has not yet connected

If an Agent is offline, deployment dispatch fails immediately and the application is marked out-of-sync with an error. Deployments are not queued or retried automatically. Trigger the deployment again once the Agent is back online.

Last updated on

On this page