macOS Setup

Deploy Locus agents on macOS with LaunchAgent services.

This guide covers deploying Locus agents on macOS with LaunchAgent services for background execution.


Requirements

  • macOS 12 (Monterey) or later

  • 2 GB+ disk space

  • Internet access for package installation


Automated Setup

Run the installer and follow the interactive prompts:

curl -fsSL https://locusai.dev/install.sh | bash

The script will guide you through configuring:

Setting
Description
Required

Repository URL

GitHub repository to clone

Yes

Branch

Branch to checkout (default: main)

No

Locus API Key

Your Locus API key

No

GitHub Token

GitHub personal access token

No

Telegram Bot Token

Token from @BotFather

No

Telegram Chat ID

Chat ID for authorization

No

Press Enter to skip any optional field.

chevron-rightNon-interactive usage (for scripted/automated deployments)hashtag

You can pass all parameters as flags to skip the interactive prompts:


What the Script Does

  1. Homebrew — Installs if not present

  2. Dependencies — Git, jq, and build tools via Homebrew

  3. Node.js — Installs via nvm

  4. Bun — Installs the Bun runtime

  5. GitHub CLI — Installs and authenticates gh

  6. Claude CLI — Installs Anthropic's Claude agent

  7. Locus CLI — Installs @locusai/cli globally

  8. Locus Telegram — Installs @locusai/telegram globally

  9. Clone repository — Clones your project to ~/locus-workspace/

  10. Initialize Locus — Runs locus init and locus config setup

  11. Telegram LaunchAgent — Creates macOS service for the bot

  12. Locus Agent LaunchAgent — Creates macOS service for the agent


LaunchAgent Services

Two LaunchAgents are created in ~/Library/LaunchAgents/:

Telegram Bot

Locus Agent


Logs

Logs are stored in ~/locus-workspace/logs/:

circle-info

LaunchAgents start automatically on login and restart on failure.


Manual Setup

chevron-rightStep-by-step manual setuphashtag

Last updated