ZD

zhaohb/deskmate

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

114 stars 10 forks 质量 90 趋势 14MIT

Windows本地优先的PC活动记录器。截图、无障碍文本、界面事件、剪贴板活动和可选音频转录到本地SQLite数据库——然后显示......

概览

DeskMate 是一款桌面活动记录器。它能捕捉你的截图、屏幕文本(OCR / 辅助功能树)、键盘/鼠标/剪贴板事件,以及可选的音频转录到一个 SQLite 数据库中,然后让你通过浏览器界面、REST API 以及直接连接到 AI 编码代理(如 和)使用这些数据——这样你的助理就能搜索你的活动、提出自然语言问题,并运行自动生成的报告(参见 MCP 服务器)。 如果你只是想试试,可以按照这四个步骤操作。 你需要 。- 如果还没安装,安装时从 https://www.python.org/downloads/ 下载。- 验证:打开 PowerShell 并运行 python 版本——你应该看到 Python 3.10.x 或更高版本。 每次你打开一个新终端用 DeskMate,就把 cd 切入文件夹,再次运行 ..venv\Scripts\Activate.ps1 来激活环境。当你看到提示开头的 (.venv) 时,你就知道它成功了。 这安装了:。这对大多数人来说就足够了。(每个[...

概述(AI 翻译)

DeskMate 是一款本地优先的桌面活动记录器,适用于Windows。它能捕捉内容 你的截图、屏幕文字(OCR / 辅助功能树)、键盘/鼠标/剪贴板 事件,以及可选的音频转录到SQLite数据库在你自己的机器上, 然后你可以通过浏览器界面、REST API 和 MCP 服务器 来使用这些数据 它直接连接到像Claude Code和Cursor这样的AI编码代理—— 这样你的助理就可以搜索你的活动,提出自然语言问题,并且 运行自动生成的报表(参见MCP服务器)。

你所有的数据都保存在你自己的电脑上——没有任何数据上传到云端。


🚀 快速启动(5分钟——只要启动它)

如果你只是想试试,就按照这四个步骤操作。你不需要理解 任何低于此部分的内容。

步骤1 — 安装Python(如果你还没有的话)

你需要Python 3.10或更新。

  • 如果没安装,去拿去检查一下 安装时“将 Python 添加到 PATH”。
  • 验证:打开PowerShell并运行python --version — 你应该会看到Python 3.10.x 或者更高。

第二步 — 获取代码并创建一个隔离环境

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

DeskMate

DeskMate is a local-first desktop activity recorder for Windows. It captures your screenshots, on-screen text (OCR / accessibility tree), keyboard/mouse/clipboard events, and optional audio transcription into a SQLite database on your own machine, then lets you use that data through a browser UI, a REST API, and an MCP server that plugs straight into AI coding agents like Claude Code and Cursor — so your assistant can search your activity, ask natural-language questions, and run auto-generated reports (see MCP server). DeskMate can also read what is on your screen and suggest the next step — start a learning session, start a meeting recording, reply to an email, book a meeting room — which you confirm with one click (see Decision routing).

All your data stays on your own computer — nothing is uploaded to the cloud.


🚀 Quick Start (5 minutes — just get it running)

If you just want to try it out, follow these 4 steps. You don’t need to understand anything below this section.

Step 1 — Install Python (if you don’t have it)

You need Python 3.10 or newer.

  • If it’s not installed, get it from and check “Add Python to PATH” during installation.
  • Verify: open PowerShell and run python --version — you should see Python 3.10.x or higher.

Step 2 — Get the code and create an isolated environment

git clone 
cd deskmate

# Create an isolated Python environment (keeps your system clean)
python -m venv .venv
.\.venv\Scripts\Activate.ps1

Every time you open a new terminal to use DeskMate, cd into the folder and run .\.venv\Scripts\Activate.ps1 again to activate the environment. You’ll know it worked when you see (.venv) at the start of your prompt.

pip install -e ".[ocr-winrt,audio,vad,mcp]"

This installs: core features + built-in Windows OCR + audio transcription + voice activity detection + MCP. That’s enough for most people. (What each [...] means and what else you can add → see Install features as needed.)

Step 4 — Launch

deskmate ui

Your browser opens at http://127.0.0.1:3030/deskmate and DeskMate starts recording.

On first run it auto-creates a config and data folder under C:\Users\\.deskmate\. You’re up and running.

To stop: press Ctrl + C in the terminal where deskmate ui is running.


🧩 Install features as needed (submodule dependencies)

DeskMate splits the “heavy” features into optional modules (extras) — install only what you need, not everything at once. The install format is always:

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "deskmate": { "command": "C:/path/to/env/python.exe", "args": ["-m", "deskmate", "mcp"], "env": { "DESKMATE_API": "http://127.0.0.1:3030" } } } }