Skip to content
U-C4NPublic

About

Press a key, drag a box, paste anywhere. Lightweight Windows screenshot tool with annotation, native MP4 screen recording and local MCP tools for Claude Code & Codex CLI. No cloud, no telemetry.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

PyShot

Press a key. Drag a box. Paste it anywhere.
Screenshots, annotations and native screen recording for Windows.
Runs quietly in the background. Keeps every capture on your computer.

Release v3.1.0 Windows 10 and 11 Local first MIT license

Download for Windows x64   ·   Quick start   ·   Connect AI tools   ·   Shortcuts

PyShot — capture, annotate and record locally

Quick start

  1. Download PyShot 3.1.0 for Windows x64.
  2. Extract the entire ZIP into a permanent folder. Keep PyShot.exe, the _internal folder and the other bundled files together.
  3. Double-click Launch.cmd or PyShot.exe. Press Ctrl+Shift+H, drag an area, then Ctrl+V to paste it.

The bundle includes Python and the native recorder. You do not need to install Python, Rust or FFmpeg. PyShot starts in the background; it does not open a main window.

Prefer Command Prompt? Run this one command in CMD:

curl.exe -fL https://raw.githubusercontent.com/U-C4N/PyShot/v3.1.0/install.cmd -o "%TEMP%\PyShot-install.cmd" && call "%TEMP%\PyShot-install.cmd"

The installer downloads the v3.1.0 bundle, verifies its SHA-256 checksum and installs it in %LOCALAPPDATA%\Programs\PyShot. It gracefully closes an existing PyShot process, finalizes any recording, backs up the old installation and starts the new copy. No administrator rights or separate runtime installation are needed.

To upgrade manually, quit the previous copy with Ctrl+Shift+Q before replacing its files.

Requirements: Windows 10 1903+ or Windows 11, x64. Windows N editions need Microsoft's Media Feature Pack.

What's new in 3.1.0

Choose what to record Draw before you save
PyShot recording picker with target and audio cards PyShot annotation toolbar at 200 percent scaling

Real Tk windows are shown above; the annotation editor uses sample content.

  • A redesigned recording picker. Region, screen and window cards; clear audio choices; a Refresh action for available targets; and a primary button that follows your choice.
  • A consistent SVG icon set. 25 original icons replace the annotation toolbar's mixed drawings and font symbols and carry the same visual language into recording controls.
  • An adaptive annotation toolbar. The layout switches between 2, 3, 4 and 6 columns to keep its actions reachable on short or scaled displays.
  • Clearer interaction. Tooltips identify annotation tools, 1–6 switch tools, and recording cards and buttons support Tab navigation with visible focus.

The recording engine, local MCP tools and quick screenshot workflow remain available in the same compact Windows app.

Capture a moment

Press Ctrl+Shift+H. The display under your pointer freezes and dims. Drag to capture an area, or click a window to capture its frame. A live size label helps you select the exact pixels.

Your screenshot is copied to the clipboard and saved as a lossless PNG under Desktop\Screenshots\, including redirected and OneDrive desktops. Click the confirmation toast to open the image, or right-click it to show the file in Explorer.

Built in What you get
Pixel loupe Magnified pixels with coordinates and a hex colour. Press C to copy the colour.
Window snap Capture a window's exact frame without shadow or border slivers.
Clipboard compatibility Both CF_DIB and PNG, for apps such as Outlook, Word, Gmail, Discord and Slack.
Native resolution Per-Monitor-v2 DPI awareness for sharp captures on scaled displays.
Quiet hotkeys Windows RegisterHotKey; no keyboard hook interfering with other apps' Ctrl+click or Ctrl+scroll.
Local storage No account, cloud upload or telemetry.

Draw before you save

Press T while selecting to enable annotation. The outline turns orange. Release your selection, or click a window, to open the toolbar.

Key Tool
1 Pen
2 Marker
3 Arrow
4 Rectangle
5 Text
6 Pixelate

Choose from six colours and turn the mouse wheel to change the current tool's size. Hold Shift while drawing a rectangle for a solid fill. Use solid blocks for sensitive text; pixelation is not guaranteed redaction.

Ctrl+Z undoes the last mark, Enter finishes, and Esc cancels. While typing text, number keys remain text, Shift+Enter adds a line, and Enter or Esc ends the current text entry. Press Enter again to finish the capture. Ctrl+Z discards unfinished text; right-click does nothing during annotation.

Pillow renders each committed mark into the image that is saved and copied. If you skip T, releasing the selection delivers the screenshot immediately.

Record video

Press Ctrl+Shift+R, choose a target and audio, then start:

Target Behaviour
Region Choose a screen, then drag the area to record.
Screen Record an entire selected display.
Window Follow one window as it moves.

Audio starts off. Choose microphone, system audio or both to include sound; the GUI uses Windows' default audio endpoints. Use Refresh if you open a new window after the picker appears. Tab moves between controls, Enter or Space activates a card or button, and Esc closes the picker.

Press Ctrl+Shift+R again to stop. PyShot writes H.264/AAC MP4 at 30 FPS using Windows Graphics Capture and Media Foundation. Videos are saved under Desktop\Screenshots\Videos.

Recording behaviour and limitations

Region selection uses physical pixels and stays within the selected monitor. Window recording follows the selected HWND; resized content fits the initial canvas without stretching. Odd dimensions are padded to even dimensions. When the screen is static, the video timeline repeats the latest image.

Only one recording runs per Windows user/session. GUI hotkeys and MCP clients share the same recording and can stop it. Pause/resume is not available.

Active recordings end in .partial.mp4. Successful finalization renames the file to .mp4. A closed target, locked desktop or lost audio device interrupts recording; PyShot reports the reason alongside any finalized output. Failed finalization retains the partial file and reports an error. A partial file is not guaranteed playable after a crash or power loss.

Connect your AI tools

PyShot provides nine local MCP tools for Codex CLI and Claude Code. From the extracted bundle folder, run:

pyshot-mcp.exe setup --clients codex,claude

Restart the client after setup. Then try:

Use PyShot to record my primary monitor without audio, stop after 10 seconds, then show frames at 0, 4 and 8 seconds.

Setup uses the installed clients' official mcp add commands, reuses an identical registration and preserves their permission settings. A customized or unrelated registration called pyshot is reported instead of overwritten. Keep the bundle at its registered path, or run setup again after moving it.

Available tools and local protocol
Tool Result
get_capabilities Version and available capture/recording features
list_displays Monitor IDs and physical coordinates
list_windows Capturable HWND IDs and titles
list_audio_devices Available microphone and system endpoints
capture_screenshot Inline preview, original PNG path and dimensions
recording_start Shared recording ID; optional audio and duration limit
recording_status State, duration and interruption/error details
recording_stop Finalized MP4 path and metadata; safe to repeat for the same ID
recording_frames Up to eight images at specified times from a completed video

MCP captures do not open selection dialogs. The broker starts automatically on the first tool call. Its named pipe accepts only the current Windows user, rejects remote clients and is isolated by session. Closing the originating MCP process finalizes its recording.

MP4 is returned as a path and metadata; use recording_frames for visual inspection. The agent's permission policy still governs tool use. This stdio server serves local MCP clients; browser ChatGPT connections are outside this release's scope. PyShot does not automate mouse or keyboard input.

See API examples and architecture.

Shortcuts

Key Where Action
Ctrl+Shift+H Anywhere Freeze the screen and start a screenshot
Ctrl+Shift+R Anywhere Choose a video target / stop the active recording
Ctrl+Shift+Q Anywhere Finalize any recording and quit PyShot
Drag / click Selection overlay Capture an area / the window under the pointer
C Selection overlay Copy the pixel colour; requires the loupe
T Selection overlay Toggle annotation mode
Esc / right-click Selection overlay Cancel the selection
1–6 Annotation, outside text entry Switch annotation tool
Mouse wheel Annotation Change the current tool's size
Shift + rectangle Annotation Draw a solid block
Ctrl+Z Annotation Undo; discard unfinished text first
Enter / Esc Annotation Finish / cancel; end the current text entry first
Shift+Enter Text entry Add a line
Tab / Shift+Tab Recording picker Move keyboard focus
Start with Windows

From the bundle folder:

PyShot.exe --startup

A dialog adds PyShot to startup. If it is already registered, Remove completely removes the startup entry and closes the running copy. --help prints usage.

From source, use python pyshot.py --startup.

Run from source and configure

Source usage needs Python 3.11+ on Windows. These commands install the locked screenshot dependencies and launch without a console window:

git clone https://github.com/U-C4N/PyShot.git
cd PyShot
pip install -r requirements.txt
pythonw pyshot.py

Build the native helper below to enable recording. To register MCP from source:

python pyshot_mcp.py setup --clients codex,claude

Edit the constants at the top of pyshot.py, then quit with Ctrl+Shift+Q and restart. Packaged settings are baked in at build time; there is no settings window.

Constant Default Options
HOTKEY_CAPTURE "ctrl+shift+h" ctrl/shift/alt/win + a letter, digit, f1–f24 or named key such as printscreen
HOTKEY_RECORD "ctrl+shift+r" Same syntax
HOTKEY_QUIT "ctrl+shift+q" Same syntax
CAPTURE_TARGET "cursor" "cursor", "primary", "all"
CAPTURE_MODE "both" "both", "clipboard" (no file), "file" (no clipboard)
WINDOW_SNAP, LOUPE, ANNOTATE True False disables the corresponding feature

An invalid hotkey falls back to its default; the reason is written to %TEMP%\pyshot.log.

Build the standalone bundle

Use Python 3.13 x64, Rust with the MSVC toolchain, and Visual Studio C++ Build Tools with the Windows SDK:

py -3.13 -m venv .venv
.\.venv\Scripts\python.exe -m pip install --require-hashes -r requirements-dev.lock
.\scripts\build.ps1 -Python .\.venv\Scripts\python.exe

The output is dist\PyShot-3.1.0-win-x64.zip, with a windowless GUI, console MCP adapter and native recorder. Keep the complete bundle together. Cargo.lock, uv.lock and hash-locked Python requirements make dependencies reproducible.

To build only the native recorder for source usage:

cargo build --release --locked --manifest-path native/pyshot-recorder/Cargo.toml
Troubleshooting and limits
  • Launched, but no window? PyShot waits in the background for Ctrl+Shift+H. There is no tray icon. Launch it again to see its running status and shortcuts.
  • Hotkey does nothing? Another app may own it. PyShot reports conflicts in a startup toast; invalid shortcuts fall back to defaults. Check %TEMP%\pyshot.log.
  • Clipboard copy failed? Another app may hold the clipboard. With the default CAPTURE_MODE, the PNG is still saved.
  • A capture failed? Missing packages produce a message box; other errors go to %TEMP%\pyshot.log.
  • Capture limits: Windows only. Protected or DRM content may appear black. Region video stays within one monitor. A screenshot selection cannot be resized after release; annotation marks cannot be moved and there is no redo.
  • Shortcut conflicts: All three global hotkeys remain reserved while PyShot runs. Source constants can be changed if they clash with another app.
Development and validation
pip install --require-hashes -r requirements-dev.lock
pytest -q
ruff check .
cargo test --locked --manifest-path native/pyshot-recorder/Cargo.toml

CI runs Python and native tests, builds the bundle and validates its stdio protocol on windows-latest. Hardware acceptance results, remaining checks and reproducible commands are recorded in release validation.


MIT License   ·   Made by U-C4N   ·   Not affiliated with Lightshot

About

Press a key, drag a box, paste anywhere. Lightweight Windows screenshot tool with annotation, native MP4 screen recording and local MCP tools for Claude Code & Codex CLI. No cloud, no telemetry.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages