erlik
v3.5.9
Published
Apple Silicon (ARM64) Native Activity & Focus Intelligence Tracker for macOS
Maintainers
Readme
🐺 ERLİK — Native Mac Activity & Focus Intelligence
📸 Dashboard Preview
📖 About / Overview
ERLİK is an ultra-lightweight, privacy-first activity and focus tracking suite built purely in Swift (Apple Silicon ARM64 native) for modern software engineers, researchers, and AI builders.
Unlike heavy Python/Qt/Electron applications (like ActivityWatch or RescueTime) that consume 200MB+ RAM and constantly wake up CPU cores, ERLİK directly hooks into macOS Darwin Kernel APIs (IOHIDSystem, NSWorkspace, AppleScript). It operates at ~8 MB of RAM, produces zero CPU drain, and guarantees that 100% of telemetry stays strictly on your machine in a local SQLite database (erlik.db).
🌟 Why ERLİK?
- 🔋 Zero Battery Drain: Extremely battery-friendly for MacBook users on the go.
- 🔒 100% Privacy & Local-First: No telemetry leaves your machine. Full data ownership.
- 🤖 Autonomous AI & AGI Recognition: Automatically separates active coding time inside AI tools (Antigravity, Cursor, Claude Code, Windsurf, Hermes, Devin, etc.).
- 🌍 Trilingual Dashboard & Menubar: Instantly toggle between English (🇬🇧 EN), Turkish (🇹🇷 TR), and Dutch (🇳🇱 NL).
- 🧹 One-Click RAM & Cache Purge: Integrated companion menubar utility to free inactive memory (
purge) and clean developer disk caches (safe/all).
🌐 Official Website & Documentation
Visit the official website: https://erlik.be
⚡ Features (v3.5.6)
- Pure Apple Silicon Native (ARM64): Zero Rosetta dependencies. High-performance native Swift binary compiled specifically for Apple Silicon M-Series (M1 / M2 / M3 / M4 / M5).
- 8 MB RAM Native Footprint: Operates with near-zero CPU and zero battery drain.
- Hardware-Level AFK Detection: Real-time hardware idle counter (
IOHIDSystem) freezes activity tracking the moment you leave your keyboard/mouse. - 📋 Full-Width Native PasteApp-Inspired HUD Drawer (⌘⇧V):
- Edge-to-edge floating frosted dock tray flush against the bottom and sides of your display.
- Interactive top Pinboard pill categories (Clipboard, Fenix, todo, cursor, probex, pass, Useful Links, ai, apikey, Bank, onemli, ip, NL, tmp, barny, color palet, draft).
- Authentic card visual replica: top color header with app badge (Chrome, Telegram, Terminal), relative timestamp, notebook ruled lines text area, footer with
⌘1..⌘9quick paste, character count, and format tools. - Smart type filters (All, Code, Text, Links, Media & Files) and sensitive data masking.
- Excludes password managers, concealed data, and sensitive keychain types to prevent credential leakage.
- ☁️ Multi-Mac Cross-Device Synchronization:
- Automated dual-engine sync combining Apple iCloud Drive (
~/Library/Mobile Documents/com~apple~CloudDocs/Erlik/) with zero-config peer-to-peer Tailscale/LAN discovery bridge (erlik_sync.shauto-detecting macOS peers via Tailscale, mDNS, and LAN). - Delta updates for both heartbeats and clipboard history: items copied on your Mac mini appear on your MacBook Pro M1 and vice-versa.
- SQLite WAL mode with automated checkpoints (
PRAGMA wal_checkpoint(TRUNCATE)) and graceful shutdown flush to guarantee zero data loss.
- Automated dual-engine sync combining Apple iCloud Drive (
- 🔔 Automatic Startup Version Check & Update Modal:
- Automatically queries GitHub releases at dashboard startup.
- Displays current vs latest version, release notes, and one-click download/update button.
- 📂 Dynamic CWD & Process Project Attribution:
- Automatically resolves CLI agents (Claude Code, ZCode, OpenCodex, OpenClaw, Codex) directly to their active project folder (
cwd) rather than generic labels.
- Automatically resolves CLI agents (Claude Code, ZCode, OpenCodex, OpenClaw, Codex) directly to their active project folder (
- macOS Status Bar (Menubar) Companion:
- Real-time display:
🐺 2.1 sa | 💾 38G | 🧠 78% - 🧹 Free RAM & Purge Memory: Flushes inactive virtual memory pages.
- 🗑️ Clean System & Disk Caches: Runs modular deep cleanup (
safe/dev/ai/docker/all) to reclaim gigabytes of disk space. - Hardware Metrics Toggle: Switch between full diagnostic mode and minimal focus mode.
- Real-time display:
- Modern Responsive Glassmorphism Dashboard:
- Accessible locally at
http://localhost:5757. - Built with responsive glassmorphism, modern modals, and toast notifications.
- Interactive Chart.js timeline and doughnut category breakdown with hourly duration views.
- 20-20-20 Ergonomic wellness monitor and Pomodoro focus timer.
- Accessible locally at
- 💾 Automated Database Backup & Live Migration:
- Automated SQLite backup engine (
erlik_backup.sh&/api/backup). - 1-click binary SQLite (
.db) or human-readable.sqldump exports. - Interactive browser modal to import and migrate telemetry across Macs in real time.
- Automated SQLite backup engine (
🛠️ IDE & AGI Agents
ERLİK automatically detects and categorizes modern developer tooling and autonomous agents:
| Category | Detected Software & Agents | | :--- | :--- | | 🤖 AGI & Autonomous Agents | Antigravity, Cursor, Codex, Hermes, OpenClaw, Claude Code, Windsurf, Devin, Aider, Ollama, LM Studio, ChatGPT | | 💻 IDEs & Code Editors | VS Code, Xcode, JetBrains Suite (IntelliJ, PyCharm, WebStorm, GoLand, CLion, Rider, DataGrip), Zed, Sublime Text, Neovim, Emacs | | ⚡ Terminals & CLIs | Ghostty, iTerm2, Terminal, Warp, Alacritty, Kitty, WezTerm, Hyper, tmux | | 🎨 Design & Media | Figma, Canva, Photoshop, Illustrator, Blender, BambuStudio, Premiere, DaVinci Resolve | | 💬 Team Communication | Slack, Discord, Telegram, WhatsApp, Spark, Zoom, Teams, Messages | | 📝 Notes & Productivity | Notion, Obsidian, Linear, Apple Notes, Craft, Reminders, Excel, Word |
📊 ActivityWatch vs ERLİK
| Metric / Capability | ActivityWatch (macOS) | ERLİK (Native ARM64) | | :--- | :--- | :--- | | Architecture | Python / Qt + x86 (Rosetta overhead) | Pure Swift ARM64 Native | | RAM Usage | ~150 - 300 MB | ~8 - 15 MB | | CPU / Battery Impact | Moderate | Near Zero (Maximum Energy Efficiency) | | AGI / Agent Awareness | None (counts as generic browser/app) | Autonomous AI & Agent Specialization | | Clipboard Manager | None | Native Full-Width HUD (⌘⇧V) with Pinboards | | Multi-Mac Sync | None (siloed per device) | iCloud Drive + P2P Tailscale Sync | | macOS Menubar App | Missing / Third-party | Native Companion with RAM/Disk Cleaning | | i18n Localization | English only | English, Turkish, Dutch (Flag Selectors) | | Reporting | Requires extra modules | Built-in Digest & Webhook Dispatch |
🚀 Quick Start
1. Clone & Run
git clone https://github.com/halilertekin/erlik.git
cd erlik
./erlik.sh startOpen in your browser: http://localhost:5757
2. Service Management
./erlik.sh status # Check status of core, web UI and autostart daemon
./erlik.sh autostart # Enable launchd autostart (starts on boot, auto-recovers on crash)
./erlik.sh disable-autostart # Disable launchd autostart
./erlik.sh stop # Stop all background services🍺 Homebrew Installation
Install directly via the official tap:
brew install halilertekin/tap/erlikCurrent release: 3.5.6. The Homebrew formula, npm package, and GitHub release ship the Free edition (limited build).
The signed Mac App Store build is 3.5.4 (3504, in review) and ships the Pro edition. The command-line/Homebrew and npm distributions use 3.5.6 (Free edition — clipboard HUD and AI-agent intelligence are Pro features).
To upgrade to the latest version:
brew upgrade erlik🧹 System & Cache Cleaning CLI
ERLİK includes a modular macOS system cleaner based on clean-mac-cache:
# Safe cleanup (package managers, runtimes, temporary files)
./erlik_clean.sh safe
# Full developer and system cleanup (Xcode, Docker, AI replays, Simulators)
./erlik_clean.sh all📜 License
© 2026 2Run (Halil Ertekin). All rights reserved. Free edition distributed as a prebuilt binary; the source is private.
❤️ Sponsor ERLİK
ERLİK is free, local-first and open source. Two ways to support development:
- GitHub Sponsors — monthly, cancel any time.
- Pay any amount via Stripe (€10 preset) — direct card checkout, customer-chosen amount in EUR.
Sponsorship infrastructure
- erlik.be/sponsor redirects to the canonical GitHub Pages sponsor page.
.github/workflows/pages-gh.ymlpublisheslanding/public/after relevant pushes tomain.- The sponsor page offers only GitHub Sponsors and Stripe.
