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.2

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.2
File Size Uploaded Provenance Actions
tqdaemon-0.11.2.tar.gz 2.9 MB Without provenance Details for tqdaemon-0.11.2.tar.gz

Built distribution (wheel)

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

Total release size: 5.2 MB

Release files / tqdaemon-0.11.2.tar.gz

Download URL tqdaemon-0.11.2.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
4e3f1a8a6355a9766feea3ca1542719baafe0d07a04abcf79b6068d0d1a3fe9a
BLAKE2b-256 checksum
How to use checksums
0d2cba673774b8470058efa29285a1e858581e29b65de12cd0563b958f722382
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.2-py3-none-any.whl

Download URL tqdaemon-0.11.2-py3-none-any.whl
Size 2.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
cdf34205aa37c03e1bff247c092de51a63b4856b7ff5f4d5d61db74d2f4440e5
BLAKE2b-256 checksum
How to use checksums
8711d769a82af249a64e6598379cd758baee9dfcdf1cf17df3c03e55ad5bffab
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.2

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