Skip to main content

tqdaemon

English | Polski | 中文 | العربية

License: MIT Python 3.12+ CI PyPI Latest tag

tqdaemon — local jobs, agents, workers

tqdaemon runs heavy jobs and AI agents on your workstation — without OOM crashes or GPU collisions. Describe each job in YAML (or tq run). A local daemon starts work only when there is enough CPU, RAM, and GPU memory. Watch progress in a web UI, the tq CLI, or from an AI coding agent (MCP).

Site: tqdaemon.dev. How it compares with cron, Celery, Slurm, Ray and others: docs/comparison.md.

Why use it

  • VRAM & RAM guardrails — live memory + historical peaks, settle windows for CUDA weight-loading, optional Ollama unload before training
  • Built for coding agents (MCP) — submit, wait, structured tq.* diagnostics
  • Workstation-native — SQLite home, web dashboard, Windows & Linux process trees, sleep prevention, cooperative checkpointing (exit 75)
  • Local-first — no cloud SaaS account, no phone-home

Architecture

  CLI / MCP / Web UI
         │
         ▼
  Daemon + SQLite  ──►  admission (CPU / RAM / VRAM)
         │                    │
         ▼                    ▼
  process tree          optional LAN workers
  (Job Object / pgid)    (lease + bundle sync)

Best start: ask your agent

Tell your coding agent (Cursor, Claude Code, …) to use tqdaemon for long jobs: wire MCP (tq mcp), submit YAML tasks (or tq run), and wait_for_task instead of blocking the chat. Drop-in skill: docs/agents/TQDAEMON_SKILL.md. Setup: docs/mcp.md.

Cursor MCP (~/.cursor/mcp.json)

{
  "mcpServers": {
    "tqdaemon": {
      "command": "tq",
      "args": ["mcp"],
      "env": {
        "TQDAEMON_HOME": "C:\\Users\\YOU\\.tqdaemon",
        "TQ_OPERATOR": "YOU"
      }
    }
  }
}

Claude Code

claude mcp add tqdaemon --scope user \
  -e TQDAEMON_HOME="$HOME/.tqdaemon" -e TQ_OPERATOR=YOU -- tq mcp

Install

Need: Python 3.12+, Git, uv.

Platforms: developed and tested on Windows 11; also verified on Linux (Ubuntu 24.04, daemon + task run, with and without an NVIDIA GPU path). On macOS the dependencies resolve (all wheels, including nvidia-ml-py, which is pure Python and only needs an NVIDIA driver when you actually have a GPU), but the daemon has not been run there yet; reports welcome.

From PyPI:

uv tool install tqdaemon    # preferred
pipx install tqdaemon
pip install tqdaemon

Or try once: uvx --from tqdaemon tq doctor. From source:

git clone https://github.com/wwylon/tqdaemon.git
cd tqdaemon
uv sync
uv run tq doctor
uv run tq start

Open http://127.0.0.1:8765. Try the sample in examples/minimal (register it as a project, then tq sync / enable / tq wait — see that folder’s README).

One-off without writing YAML first:

tq run --project myproject --ram 8 --vram 4 -- python train.py --epochs 50

Optional Windows toasts: uv sync --extra toast. Autostart: scripts/install_tq_autostart.ps1.

Docs

Audience Start here
Humans docs/README.md · Quickstart · Web UI · CLI
Agents AGENTS.md · MCP · Skill pack · Cookbook · llms.txt

Advanced: Project messages · Security & privacy · Task standards · Scheduler · Workers

Transparency

We do not phone home. Public signals are GitHub stars (badge above) and, after a PyPI release under a distinct package name, download counts you can verify yourself. Maintainers may use GitHub Traffic Insights (clones ≠ installs). Details: docs/security.md.

Not Celery, Kubernetes, or CI. Unrelated to the 2011 AMQP/Debian rojkov/taskqueue (simpletaskqueue).

License

MIT — see LICENSE · Changelog

Verify

pwsh -File scripts/ci.ps1

Or: python -m manager verify tqdaemon --tier prereq. Contract: project.manifest.yaml.

Metadata

Release files for tqdaemon 0.11.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tqdaemon 0.11.4
File Size Uploaded Provenance Actions
tqdaemon-0.11.4.tar.gz 9.3 MB Without provenance Details for tqdaemon-0.11.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tqdaemon 0.11.4
File Interpreter ABI Platform Actions
tqdaemon-0.11.4-py3-none-any.whl Python 3 none any Details for tqdaemon-0.11.4-py3-none-any.whl

Total release size: 11.6 MB

Release files / tqdaemon-0.11.4.tar.gz

Download URL tqdaemon-0.11.4.tar.gz
Size 9.3 MB
Tags Source
SHA-256 checksum
How to use checksums
9120c3f31016d798c14d1114e12df5d6c41cf3bbc827eb30ed7a60365afa2bad
BLAKE2b-256 checksum
How to use checksums
dc68f30894ac5b9e8de893ae479c13553499a909887f8d9159e94deb88eb41e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.11

Release files / tqdaemon-0.11.4-py3-none-any.whl

Download URL tqdaemon-0.11.4-py3-none-any.whl
Size 2.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
09d44f3ec19b517a53226f3bc4e358448fd1f4fd637abcd6f3f0154562aca5a0
BLAKE2b-256 checksum
How to use checksums
7b6d1780c5497e79469c87e622198bbee2dc1c771926e79362fe35b335837620
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.11

Security for tqdaemon 0.11.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page