Installation
Prerequisites
- Docker installed and running
Install
bash
curl -fsSL https://caic.xyz/install.sh | bashThe install script:
- Downloads the latest
caicandmdbinaries to~/.local/bin/ - Copies a default
config.tomlto~/.config/caic/(if not already present) - Installs and starts a system service (systemd on Linux, launchd on macOS)
After installation, caic is running on http://localhost:2242 using the current directory as root.
Set NO_SERVICE=1 to skip service installation:
bash
NO_SERVICE=1 curl -fsSL https://caic.xyz/install.sh | bashIf the GitHub release API is rate-limited, set GITHUB_TOKEN for authentication:
bash
GITHUB_TOKEN=ghp_... curl -fsSL https://caic.xyz/install.sh | bashsystemd user service (Linux)
The install script sets up the systemd service automatically. To install manually:
bash
mkdir -p ~/.config/systemd/user ~/.config/caic
cp contrib/caic.service ~/.config/systemd/user/
cp contrib/config.toml ~/.config/caic/config.toml
# Edit ~/.config/caic/config.toml
systemctl --user daemon-reload
systemctl --user enable --now caicView logs:
bash
journalctl --user -o cat -f -u caiccaic watches its own executable and config.toml for changes and restarts automatically when either is modified.
launchd user agent (macOS)
The install script sets up the launchd agent automatically. To install manually:
bash
mkdir -p ~/.config/caic
cp contrib/config.toml ~/.config/caic/config.toml
# Edit ~/.config/caic/config.toml
cp contrib/com.caic.caic.plist ~/Library/LaunchAgents/
# Edit ~/Library/LaunchAgents/com.caic.caic.plist to set the binary path.
launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.caic.caic.plistView logs:
bash
tail -f /tmp/caic.logInstall from source
Dependencies
- Go 1.25+
- Docker installed and running
Build and install
bash
go install github.com/caic-xyz/caic/backend/cmd/caic@latestWhen installing from source, copy contrib/config.toml and the service file manually. See Configuration for details.
Next steps
- Configure caic — config file, auth modes, service management
- GitHub integration — connect GitHub for automatic PR creation
- GitLab integration — connect GitLab for automatic MR creation
- Android app — build and install the companion app