# Repository Briefing: shengyanlin/claude-overlay
> Source: https://repoforai.com/repo/shengyanlin/claude-overlay (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/shengyanlin/claude-overlay
- **Category**: Chat UI & AI Apps (聊天界面与 AI 应用)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A+ (90/100 · Maintenance 35/35 · Adoption 15/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v1.29.1 (2026-11-30) — https://github.com/shengyanlin/claude-overlay/releases
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: CLI
- **Momentum**: 105 ★ total (+0 24h / +1 7d) · 19 forks
- **Topics**: `ai`, `ai-assistant`, `always-on-top`, `anthropic`, `claude`, `claude-agent-sdk`, `claude-code`, `desktop-app`, `developer-tools`, `llm`, `overlay`, `python`
- **When to Use**: Best for: Windows or macOS users who already use Claude Code or Codex and want to ask about an active app without switching windows or attaching screenshots by hand. Skip if: You require offline inference, cannot send screen content to a provider, or cannot deploy a local agent without first reviewing its permissions.

## Overview
```text
### Architecture & Core Mechanics
Claude Overlay is a Python/Tkinter desktop client backed by local agent CLIs. On the Claude path, the UI hands requests to claude-agent-sdk, which drives the installed and authenticated claude CLI; the CLI connects to Anthropic. Pillow ImageGrab supplies screen context as one image per monitor by default. The overlay does not call a model endpoint directly or run inference locally.

The same UI sits above two OS integration layers: win32utils.py on Windows and macutils.py on macOS. Codex is an alternate backend behind the title-bar switch and uses the user's codex CLI login. This is a launcher and frontend for existing agent runtimes, not a general-purpose model gateway. Its compatibility surface includes the desktop OS, Python dependencies, and provider CLIs.

### Key Capabilities & Differentiators
The frameless, always-on-top window collapses to an orb and can be toggled with Ctrl+Alt+Space on Windows or Option+Shift+Space on macOS. Each message can carry a fresh capture of all monitors or only the active window; automatic capture can also be disabled. Users can paste images or attach PDF, Word, and PowerPoint files.

The Claude backend can go beyond answering questions about the screen: with permissions enabled, it can change local files and run commands, including working on an open document or spreadsheet. The status line exposes model and reasoning-effort controls, and the title bar switches between Claude and Codex. Conversations survive restarts, and multiple named overlays let users keep separate tasks open.

### Trade-offs & Limitations
Compared with using an agent CLI directly, the overlay saves context switching for questions about the current app, but automatic capture makes it easier to send unrelated on-screen content. Compared with conventional chat, its local agent can take action: Claude defaults to bypassPermissions and can edit files or run commands without confirmation. For visual Q&A, start in read-only mode or set PERMISSION_MODE to plan; narrow or disable capture separately, since read-only does not stop screenshots.

Local installation avoids a separately configured API key on the Claude subscription path, but it does not keep inference or submitted context on the machine. Launch telemetry is a separate, opt-out request carrying the version, a random per-install ID, the OS build, and the Python version. DO_NOT_TRACK=1 or CLAUDE_OVERLAY_TELEMETRY=0 disables this reporting, not provider processing of chat content.

### Hardware & Deployment Guide
On Windows 10/11, clone or unpack the repository, run setup.cmd, and launch Start Claude Overlay.cmd. On macOS, run setup.command and open Claude Overlay.app; grant Screen Recording permission when prompted, then relaunch. Setup covers missing Python and the claude CLI, with Codex optional. A provider login is still required; installing the desktop client does not provide offline inference.

The dependency policy in requirements.txt uses minimum versions rather than exact pins so the SDK can track the independently updated Claude CLI. CI installs from that file on a clean runner and checks loading with preflight.py. That helps surface incompatibilities but does not make installs reproducible across dates. Version v1.29.0 added macOS support without forking the UI; v1.29.1 fixed an interactive Git prompt that could stall Windows updates when OneDrive left a folder read-only.
```

## Key Capabilities
```text
- Execution path: Tkinter → claude-agent-sdk → authenticated local claude CLI → Anthropic.
- Screen context: Pillow ImageGrab takes one image per monitor by default, with active-window capture and an Auto-shot toggle.
- Backend switching: The title bar switches between Claude and Codex using separate local CLI logins.
- Permissions: Claude defaults to bypassPermissions; use Read-only or set PERMISSION_MODE to plan for a more conservative startup.
- Session workflow: Conversations survive restarts, and multiple named overlays can run at once.
- Platform integration: win32utils.py and macutils.py support a shared UI on Windows 10/11 and macOS.
```

## Quick Start / Clone
```bash
git clone https://github.com/shengyanlin/claude-overlay.git
```
