Audience: This document is designed for AI agents (Claude Code, Codex, etc.) to read and execute step-by-step. Each step includes the exact shell commands to run, expected outcomes, and error handling.
Give this instruction to your AI agent:
Fetch https://github.com/multica-ai/multica/blob/main/CLI_INSTALL.md and follow the instructions to install Multica CLI, log in, and start the daemon on this machine.
Run:
multica version- If it prints a version string (e.g.
multica v0.x.x): skip to Step 3. - If command not found: continue to Step 2.
Windows users: Skip to Option C: Windows (PowerShell) below.
Check if Homebrew is available:
which brewIf brew is found, install via Homebrew:
brew install multica-ai/tap/multicaThen verify:
multica versionIf the version prints successfully, skip to Step 3.
To upgrade later, run:
brew upgrade multica-ai/tap/multicaIf Homebrew is not available, download the binary directly.
Detect OS and architecture, then download the correct archive:
OS=$(uname -s | tr '[:upper:]' '[:lower:]') # "darwin" or "linux"
ARCH=$(uname -m) # "x86_64" or "arm64"
# Normalize architecture name
if [ "$ARCH" = "x86_64" ]; then
ARCH="amd64"
fi
# Get the latest release tag from GitHub
LATEST=$(curl -sI https://github.com/multica-ai/multica/releases/latest | grep -i '^location:' | sed 's/.*tag\///' | tr -d '\r\n')
# Download and extract
VERSION="${LATEST#v}"
curl -sL "https://github.com/multica-ai/multica/releases/download/${LATEST}/multica-cli-${VERSION}-${OS}-${ARCH}.tar.gz" -o /tmp/multica.tar.gz
tar -xzf /tmp/multica.tar.gz -C /tmp multica
sudo mv /tmp/multica /usr/local/bin/multica
rm /tmp/multica.tar.gzVerify:
multica versionIf this fails:
- Check that
/usr/local/binis in$PATH. - On Linux, you may need
chmod +x /usr/local/bin/multica. - If
sudois not available, install to a user-writable directory:mv /tmp/multica ~/.local/bin/multicaand ensure~/.local/binis in$PATH.
Run in PowerShell (no admin required):
irm https://raw.githubusercontent.com/multica-ai/multica/main/scripts/install.ps1 | iexThis downloads the latest Windows binary from GitHub Releases, installs it to %USERPROFILE%\.multica\bin\, and adds it to your user PATH.
Verify:
multica versionIf this fails:
- Restart your terminal so the updated PATH takes effect.
- If you use Scoop, the installer will use it automatically:
scoop bucket add multica https://github.com/multica-ai/scoop-bucket.git && scoop install multica - If your execution policy blocks the script:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSignedthen re-run.
Run:
multica loginImportant: This command opens a browser window for OAuth authentication. Tell the user:
"A browser window will open for Multica login. Please complete the authentication in your browser, then come back here."
Wait for the command to complete. It will automatically discover and watch all workspaces the user belongs to.
Verify:
multica auth statusExpected output should show the authenticated user and server URL.
If login fails:
- If no browser is available (headless environment), the user can generate a Personal Access Token at
https://app.multica.ai/settingsand run:multica login --token - If the server URL needs to be customized:
multica config set server_url <url>before logging in.
First, check if the daemon is already running:
multica daemon status- If status is "running": skip to Step 5.
- If status is "stopped": start it:
multica daemon startWait 3 seconds, then verify:
multica daemon statusExpected output should show running status with detected agents (e.g. claude, codex, opencode, openclaw, hermes, gemini, pi, cursor-agent).
If daemon fails to start:
- Check logs:
multica daemon logs - If a port conflict occurs, the daemon may already be running under a different profile.
- If no agents are detected, ensure at least one AI CLI (
claude,codex,opencode,openclaw,hermes,gemini,pi, orcursor-agent) is installed and on the$PATH.
Run:
multica daemon statusConfirm:
- Status is
running - At least one agent is listed (e.g.
claude,codex,opencode,openclaw,hermes,gemini,pi, orcursor-agent) - At least one workspace is being watched
If the agents list is empty, tell the user:
"The Multica daemon is running but no AI agent CLIs were detected. Please install at least one supported CLI (
claude,codex,opencode,openclaw,hermes,gemini,pi, orcursor-agent), then restart the daemon withmultica daemon stop && multica daemon start."
When all steps are complete, inform the user:
"Multica CLI is installed and the daemon is running. Agents in your workspaces can now execute tasks on this machine. You can manage workspaces with
multica workspace listand view daemon logs withmultica daemon logs -f."