|| Blog Post || Demo Video ||
This repository contains a context tracking system that captures screen activity, analyzes it using LLM providers, and stores the context data for further analysis. The system is designed to help users track their activities and generate summaries of their sessions. Checkout the Raycast plugin here.
-
Clone the repository:
git clone https://github.com/Pythonista7/context-tracker-backend cd context-tracker-backend
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
-
Start the server:
python server.py
-
Use the provided API endpoints to create contexts, start sessions, capture screen activity, and generate summaries.
To configure the context tracking system, you need to set up the following environment variables:
OPENAI_API_KEY
: Your OpenAI API key for accessing OpenAI's LLM services.ANTHROPIC_API_KEY
: Your Anthropic API key for accessing Anthropic's LLM services.DATABASE_URL
: The URL for your database where context data will be stored.FLASK_ENV
: The environment in which the Flask server is running (development
orproduction
).
You may need to modify constants.py to set paths and other constants as needed for your specific setup.