Local development¶
Minimal workflow for hacking on Guardian server and agents.
Server¶
cd server
pip install -r requirements.txt
export AGENT_TOKEN="$(openssl rand -hex 32)"
export TZ=UTC
export TIMEKPR_SERVER_VERSION=v0.0.0-dev
export TIMEKPR_AGENT_WS_URL=ws://127.0.0.1:5000/ws
python app.py
Second terminal:
Default login: admin / admin. Approve devices at /admin/devices.
Debug agent¶
Delete debug-agent.json to simulate a new device.
Rust agent (Linux)¶
Requires TimeKpr-nExT D-Bus on the target machine for full enforcement.
Android¶
cd android-agent
cp app/google-services.json.example app/google-services.json # optional FCM
./gradlew assembleDebug
Docs site¶
Toolchain notes¶
- Python 3.12+ for local dev; Docker images may use newer Python
- Rust 1.85+ required (edition 2024 manifest)
- Android SDK + JDK 17 for Gradle builds