With your coding agent

Coding agents

Give Codex and other local coding agents the same tools you use.

A coding agent that can run terminal commands on your Mac can use cargobay too. Set up the command and sign in yourself first for hosted work. The agent uses your saved account and repository access. To give an agent less than your whole account, give it an access key for one repository instead.

Install Cargo Bay’s skill for your agents (Codex, Claude Code, Grok Build and OpenCode), so they know how to use it:

cargobay skill install

Give your agent a starting point

Copy these instructions into your agent’s chat or project instructions. Tell it which workspace to use and what you want it to do.

Working through the CLI

Use -C to select the workspace explicitly and --json for structured results:

cargobay -C "/absolute/path/to/project" --json status
cargobay -C "/absolute/path/to/project" --json history --limit 10

Point your agent at cargobay --help and tell it which workspace to use and whether it may commit or push. JSON results go to standard output, progress goes to standard error, and exit codes indicate success or failure. Commands do not ask interactive questions except for an explicit browser login.

Several agents can work on one repository at once, each in its own workspace on its own branch: cargobay clone "Project name" ~/work/task-a --branch task-a. Bring the work together with cargobay merge task-a in the workspace on main. Commits upload as they are made, and status shows anything not yet shared.

If a command reports busy, wait for the current operation. If the connection is lost during a change, inspect status and history before retrying. An agent whose environment cannot find the command can use /usr/local/bin/cargobay or ~/.cargobay/bin/cargobay.

Cargo Bay runs on Apple Silicon Macs. A Mac without a display or browser can use the client on its own with an access key; Linux machines and CI are not supported yet.

Coordinate with file locks