Skip to main content

AI-powered screen time tracker with intelligent activity analysis and MCP server for AI assistants. Install: pip install telos-tracker && telos setup

Project description

Client

Python desktop application with a terminal UI. Distributed via PyPI as telos-tracker.

Install: pip install telos-tracker && telos setup && telos

What It Does

  • Captures screenshots every 30 seconds
  • Analyzes them with Gemini Vision AI to determine what you're working on
  • Stores structured insights locally in SQLite (screenshots are deleted immediately)
  • Shows a terminal dashboard with timeline, heatmaps, focus scores, and AI chat
  • Syncs data to Firestore for daily email reports (cloud mode)
  • Runs as a background service or interactive TUI

Two modes:

  • Cloud mode -- 7-day free trial, then $3/month. No API key needed.
  • BYOK mode -- Free forever. Bring your own Gemini API key.

Project Structure

client/
├── main.py                    # Entry point (dev), CLI commands, onboarding flow
├── mcp_server.py              # MCP server for Claude Desktop / Cursor
├── service.py                 # Windows background service daemon
├── service_macos.py           # macOS LaunchAgent service
├── core/
│   ├── analyzer.py            # Gemini Vision API integration
│   ├── backend_client.py      # Backend API client (cloud mode)
│   ├── capture.py             # Screenshot capture + activity monitoring
│   ├── daily_aggregator.py    # Daily summary generation, productivity scoring
│   ├── dashboard_server.py    # Local web dashboard (Flask, localhost:5555)
│   ├── database.py            # SQLite operations
│   ├── email_reporter.py      # Legacy email reporter (SMTP)
│   ├── fallback_handler.py    # Backend → local Gemini → offline fallback
│   ├── firebase_auth.py       # Firebase authentication
│   ├── firestore_sync.py      # Background sync: SQLite → Firestore
│   ├── goal_manager.py        # Analysis goals management
│   ├── onboarding.py          # First-run state management
│   ├── query_engine.py        # AI chat engine
│   ├── session_builder.py     # Group captures into work sessions
│   └── trial_manager.py       # Trial period tracking
├── tui/
│   ├── app.py                 # Main Textual TUI application
│   ├── screens/               # All TUI screens (dashboard, timeline, chat, etc.)
│   ├── widgets/               # Custom widgets (heatmap, waveform, breakdown)
│   ├── workers/               # Background workers (capture, sync, email)
│   └── models/                # TUI state management
├── utils/
│   ├── config_manager.py      # YAML config loading and saving
│   ├── hash_utils.py          # Perceptual hashing for duplicate detection
│   ├── prompt_loader.py       # AI prompt template loading
│   └── sentry_utils.py        # Sentry error tracking
├── telos_tracker/
│   ├── __init__.py            # Package version
│   └── cli.py                 # CLI entry point (telos command)
├── prompts/                   # AI prompt templates (editable)
│   ├── screenshot_analysis.txt
│   ├── session_enrichment.txt
│   ├── daily_summary.txt
│   └── ai_chat_system.txt
├── pyproject.toml             # PyPI package config
├── requirements.txt           # Python dependencies
├── publish.ps1                # Windows PyPI publish script
├── publish.sh                 # Linux/macOS PyPI publish script
├── build_installer.py         # Windows executable builder (PyInstaller)
├── build_macos.py             # macOS .app bundle builder
└── config.yaml.example        # Configuration template

Local Development

cd client
pip install -r requirements.txt
python main.py setup           # Interactive setup wizard
python main.py                 # Launch TUI

Other commands:

python main.py test            # Test capture loop
python main.py stats           # Show statistics
python main.py service-console # Run as background daemon

TUI Keyboard Shortcuts

Key Screen
D Dashboard
T Timeline
S Summary
A AI Chat
C Settings
E Email settings (from settings)
G Goals
H Help
Q Quit

Configuration

Created by telos setup at ~/.telos/config.yaml. Key settings:

Setting Default Description
capture.interval_seconds 30 Screenshot interval
capture.idle_threshold 300 Seconds before marking idle
backend.enabled true (cloud) Use cloud backend for analysis
backend.url Cloud Run URL Backend API endpoint
email.enabled true Daily email reports
email.send_time 21:00 When to send daily report

Publishing to PyPI

# Automated (handles version bump, build, upload, tag)
.\publish.ps1 0.2.7 "Description of changes"

# Manual
python -m build
twine upload dist/*

Building Desktop Apps

python build_installer.py      # Windows → dist/Telos.exe
python build_macos.py          # macOS → dist/Telos.app

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

telos_tracker-0.2.7.tar.gz (365.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

telos_tracker-0.2.7-py3-none-any.whl (217.4 kB view details)

Uploaded Python 3

File details

Details for the file telos_tracker-0.2.7.tar.gz.

File metadata

  • Download URL: telos_tracker-0.2.7.tar.gz
  • Upload date:
  • Size: 365.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for telos_tracker-0.2.7.tar.gz
Algorithm Hash digest
SHA256 bb92f43288eb1b5230a0d42a7737595c5a3e27e8e445968dc232c264ddd8e829
MD5 7ce5b120057bb0ba1f47f651056b4d85
BLAKE2b-256 c04336ef384343180c3700c58770c70f9677ccd3f06b4c1a4d924997613ab780

See more details on using hashes here.

File details

Details for the file telos_tracker-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: telos_tracker-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 217.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for telos_tracker-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 695167a5bab03c36782070c55376d66f5e2dcdd4be8724f19e21bf700f28b255
MD5 f8736494e98803df5970718bcf3f2d8b
BLAKE2b-256 cee1e911920175004a9e2d3b496d5f7b9c2460db33860ce6147e15c63d21a420

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page