Installation
Install
Section titled “Install”npm install -g @eyes4ai/cliGlobal setup (recommended)
Section titled “Global setup (recommended)”Configures all your repos at once. Run this once:
eyes4ai install --globalThis does four things:
- Writes Codex OTel config to
~/.codex/config.toml - Writes Claude Code OTel config to
~/.claude/settings.json - Installs a global Git post-commit hook via
core.hooksPath - Starts the OTel ingestion server as a background daemon (auto-starts on boot)
Every repo you work in will now record AI activity and commit correlations automatically. The server runs in the background — you never have to start it manually.
Per-repo setup
Section titled “Per-repo setup”If you prefer to enable eyes4ai for specific repos only:
cd /path/to/your/repoeyes4ai installThis writes config files into the repo’s .codex/, .claude/, and .git/hooks/ directories.
Custom port
Section titled “Custom port”The OTel ingestion server defaults to port 4318. To use a different port:
eyes4ai install --global 4319What gets created
Section titled “What gets created”| File | Purpose |
|---|---|
~/.codex/config.toml (global) or .codex/config.toml (local) | Codex OTel exporter config |
~/.claude/settings.json (global) or .claude/settings.json (local) | Claude Code OTel env vars |
~/.eyes4ai/hooks/post-commit (global) or .git/hooks/post-commit (local) | Git commit recording hook |
~/Library/LaunchAgents/com.eyes4ai.server.plist (macOS) | Daemon auto-start config |
~/.config/systemd/user/com.eyes4ai.server.service (Linux) | Daemon auto-start config |
Background server
Section titled “Background server”The global install automatically sets up a background daemon:
- macOS: a
launchdagent that starts on login and restarts on failure - Linux: a
systemduser service that starts on login and restarts on failure
Logs are written to ~/.eyes4ai/logs/.
If you need to start the server manually (e.g., for local-only installs):
eyes4ai serveUninstalling
Section titled “Uninstalling”To stop and remove the background daemon:
eyes4ai uninstallThis removes the daemon config. Tool configs and git hooks are left in place — remove them manually if needed.