Skip to main content

Local-first behavioral intelligence engine with collectors, AI agent, and task executor

Project description

tethr-engine

PyPI Python License: MIT

TETHR is a local-first behavioral intelligence engine. It passively observes your devices, detects behavioral patterns without cloud processing, and serves real-time presence context to AI agents in under 300 tokens.

pip install tethr-engine
tethr start

What it does

  • Passive observation — watches active windows, typing cadence, system state via background POTS process
  • Pattern detection — identifies focus areas, app clusters, work rhythms from local data only
  • Agent-ready API/identity/context returns a compact behavioral summary, ready to inject into any system prompt
  • MCP server — native Claude Desktop integration via python -m tethr_engine.mcp_server
  • Zero cloud — everything stays on your device; Groq API used only for LLM inference calls

Quick start

pip install tethr-engine
tethr start          # first run prompts for Groq API key, then serves on :8001
tethr status         # confirm health
curl http://127.0.0.1:8001/identity/context

Full walkthrough → docs/quickstart.md


Agent integration

import requests

context = requests.get("http://127.0.0.1:8001/identity/context", timeout=3).json()["context"]
system_prompt = f"{your_base_prompt}\n\n[User context]\n{context}"

Query once per session, inject into system prompt. ~200–300 tokens.

Full guide → docs/integration.md


CLI

Command Description
tethr start Start server on localhost:8001
tethr start --host 0.0.0.0 Network accessible
tethr start --reload Dev mode
tethr status Health check
tethr version Print version

Configuring data storage

By default TETHR stores data in the package directory. To use an external drive set data_path in config.yaml:

data_path: D:\tethr-data

Or set it during first-run setup when prompted. TETHR creates the directory if it does not exist.


Links

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

tethr_engine-0.3.0.tar.gz (283.4 kB view details)

Uploaded Source

Built Distribution

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

tethr_engine-0.3.0-py3-none-any.whl (336.2 kB view details)

Uploaded Python 3

File details

Details for the file tethr_engine-0.3.0.tar.gz.

File metadata

  • Download URL: tethr_engine-0.3.0.tar.gz
  • Upload date:
  • Size: 283.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for tethr_engine-0.3.0.tar.gz
Algorithm Hash digest
SHA256 608a62423ed15ee674033abcb7b7241c7dd536b42ff7cce1158100622c056ff5
MD5 cff95b12e858c0d32c4a2b5914b0f895
BLAKE2b-256 8342d6d531de4ef519ba077fbfe8ba5f04c489ee358cacb0c09a429a1fbdb0de

See more details on using hashes here.

File details

Details for the file tethr_engine-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: tethr_engine-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 336.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for tethr_engine-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a9044b918bc86431580deaafba95ca834f0bbf027acb9a3760603a9036e9427
MD5 3ef9c08f6116e44c8f548d282e7d917a
BLAKE2b-256 93223d58cea71b345e2e4bf6fc729ef44fb3531658cfd4f0376e1ead5023b125

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