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

- **GitHub URL**: https://github.com/ThinkWatchProject/ThinkWatch-Lite
- **Official Docs / Website**: https://thinkwat.ch/lite/
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A (80/100 · Maintenance 35/35 · Adoption 5/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v2026.12.2 (2026-12-02) — https://github.com/ThinkWatchProject/ThinkWatch-Lite/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Self-Hosted, API
- **Momentum**: 1,000 ★ total (+35 24h / +49 7d) · 8 forks
- **Topics**: `ai-gateway`, `anthropic`, `claude-code`, `codex`, `cost-monitoring`, `cost-tracking`, `cross-platform`, `linux`, `llm-cost`, `llm-gateway`, `llm-observability`, `llm-proxy`
- **When to Use**: Best for: Developers and small teams running several AI clients on workstations who frequently switch upstreams and want request-level cost tracing and configurable relay protections. Skip if: A stable direct connection already meets your needs, you need offline model inference, or your primary requirement is an organization-wide gateway with centrally managed access and retention policies.

## Overview
```text
### Architecture & Core Mechanics
ThinkWatch Lite separates the desktop management interface from the request gateway. The frontend uses TypeScript and React, with Vite configuration, a Tauri native project under `src-tauri/`, and CodeMirror YAML tooling in the dependency set. The desktop package bundles ThinkWatch Core as `twcore`; Lite can also connect to a compatible remote Core. Core forwards requests to configured upstreams, so the desktop package is a gateway, not a model runtime.

The client-facing endpoint stays in place as upstream and model selections change. Client integration varies: Lite can write supported clients' configurations after previewing the changes and backing up the originals, while clients such as Cursor and Continue use manual instructions. Codex also consumes a native remote model catalog, which lets model and alias changes propagate through a catalog refresh rather than through another config rewrite.

### Key Capabilities & Differentiators
Managed setup covers Claude Code, Claude Desktop, Codex, opencode, Zed, Aider, and other clients. Lite records the route and cost for each request. For upstreams serving the same model, it flags discrepancies in model names returned in answers, reported input usage, or prompt-cache reads, and shows the supporting evidence and sample size. These signals can guide investigation; they do not establish which model actually ran.

Before forwarding, enabled privacy rules can replace matching API keys, private keys, JWTs, and other sensitive values with placeholders. The content filter can remove instructions concealed with invisible characters, reject detected prompt injection, or apply configured text replacements. On the response path, Dangerous commands can cut off selected tool calls before the client executes them. These protections start in Monitor, so detection and notification are not the same as enforcement.

### Trade-offs & Limitations
Compared with direct provider connections, Lite centralizes upstream switching and per-request visibility, but puts another process on the request path and creates local state to manage, including configuration, keys, and request history. It sends no telemetry; configured upstreams still receive inference traffic. Monitor mode does not block or redact, and even enforced rules cover only what they detect. Test enforcement on real workflows rather than assuming it is safe to send sensitive data through an untrusted relay.

Compared with a server-first gateway, Lite's clearest advantage is workstation integration: preview, backup, and restoration make client changes easier to reverse. A remote Core is supported, but version matching adds upgrade coordination. The MIT license permits commercial use and redistribution subject to its notice requirements; it does not address upstream data handling or local retention. The Windows portable build stores keys and history next to the executable, so folder permissions and backups matter.

### Hardware & Deployment Guide
The distribution includes Core. Packaged options cover macOS 12+ on Apple silicon via Homebrew or DMG, Windows 10 21H2+ on x64 and ARM64 via installers or portable ZIPs, and Linux x86_64 and aarch64 via AppImage or an install script. Winget is also available on Windows. Apple and Microsoft do not sign the app, so factor in the first-launch step on those platforms. Windows portable mode needs a writable `data` directory beside the executable.

For source development, run `pnpm install`, `bash src-tauri/scripts/fetch-core.sh`, and `pnpm tauri dev` in a Tauri development environment. The fetch script puts the Core release pinned by `Cargo.lock` in `src-tauri/resources/`. The v2026.11.24 release bundled Core 0.100.0 and required the matching version for remote connections. The November 25 release improved alias workflows; v2026.12.2 added upstream list reordering and extra JSON fields for outbound generation requests. Local deployment does not imply offline inference: configured external upstreams still require connectivity.
```

## Key Capabilities
```text
- Runtime split: a React/TypeScript Tauri desktop app bundles ThinkWatch Core; Lite can also connect to a compatible remote Core.
- Client onboarding: previews configuration changes, backs up the originals, and supports restoration; Codex refreshes models and aliases through its native remote catalog.
- Request tracing: records route and cost per request and shows sample sizes alongside cross-upstream anomalies.
- Relay controls: matching secrets can be replaced before forwarding, and selected dangerous tool calls can be blocked before execution; rules start in Monitor.
- Provider configuration: aliases can group upstream models, with a preview of which model each upstream receives; v2026.12.2 adds extra JSON fields to outgoing generation requests.
```

## Quick Start / Clone
```bash
pnpm install
bash src-tauri/scripts/fetch-core.sh
pnpm tauri dev
```
