Skip to content
@ThinkWatchProject

ThinkWatch

AI API and MCP gateways: ThinkWatch Enterprise for organizations, ThinkWatch Lite for individual developers, and ThinkWatch Core, the gateway engine they share.

ThinkWatch

AI API and MCP gateways

ThinkWatch Enterprise for organizations, ThinkWatch Lite for individual developers, and ThinkWatch Core, the gateway engine they share.

Website · Documentation · ThinkWatch Enterprise · ThinkWatch Lite · ThinkWatch Core


AI clients such as Claude Code, Codex and Cursor call model providers directly, each with its own API key and without a shared record of what was sent or what it cost. ThinkWatch places a gateway on that path. Each request is routed to an upstream, inspected in both directions and recorded with its cost. ThinkWatch Enterprise adds organization-wide authentication, permissions, rate limits and budgets, and passes MCP tool calls through the same gateway.

ThinkWatch Enterprise

For organizations

A self-hosted AI API and MCP gateway with a web console: virtual keys, SSO through OIDC, role-based access control, audit logs, rate limits and budgets.

Rust · React · PostgreSQL · Redis · ClickHouse
Docker Compose or Kubernetes
Business Source License 1.1

ThinkWatchProject/ThinkWatch

ThinkWatch Lite

For individual developers

A desktop app for a local AI API gateway. It shows what each request cost, where it was routed and what was redacted, and it can also connect to ThinkWatch Core running on a server.

Tauri 2 · React 19 · Rust
macOS · Windows · Linux
MIT License

ThinkWatchProject/ThinkWatch-Lite

ThinkWatch Core

For servers and for projects built on the engine

Rust crates and the twcore gateway binary. It runs inside ThinkWatch Lite, or on its own as a gateway on a Linux server.

Rust
macOS · Windows · Linux
MIT License

ThinkWatchProject/ThinkWatch-Core

Choosing a product

Requirement Product
Central control of AI access for a team or a company: keys, permissions, audit and budgets ThinkWatch Enterprise
Governance of MCP tool calls across an organization ThinkWatch Enterprise
A record of what one developer's coding agents cost and where their requests went ThinkWatch Lite
A gateway on a Linux server, managed from ThinkWatch Lite on a desktop ThinkWatch Core with ThinkWatch Lite
The routing, pricing and redaction engine as Rust crates ThinkWatch Core

ThinkWatch Enterprise

ThinkWatch Enterprise is an AI bastion host. In the way that an SSH bastion host is the single entry point for access to servers, ThinkWatch Enterprise is the single entry point for an organization's AI API requests and MCP tool calls.

                    ┌──────────────────────────────────────┐
 Claude Code ──────>│                                      │──> OpenAI
 Cursor ───────────>│    Gateway  :3000                    │──> Anthropic
 Custom Agent ─────>│    AI API + MCP Unified Proxy        │──> Google Gemini
 CI/CD Pipeline ───>│                                      │──> Azure OpenAI / AWS Bedrock
                    └──────────────────────────────────────┘
                    ┌──────────────────────────────────────┐
 Admin Browser ────>│    Console  :3001                    │
                    │    Management UI + Admin API         │
                    └──────────────────────────────────────┘
  • AI API gateway. The OpenAI Chat Completions, Anthropic Messages, OpenAI Responses and Gemini APIs on one port, in front of OpenAI, Anthropic, Google Gemini, Azure OpenAI, AWS Bedrock and OpenAI-compatible providers. Virtual API keys carry their own scopes, rotation and expiry.
  • MCP gateway. Upstream MCP servers can receive the calling user's own OAuth token or access token, stored encrypted, instead of a shared service account. Tools are namespaced per server and granted per role and per key, and every invocation is recorded in the audit log.
  • Security and compliance. Single sign-on through any OIDC provider, five built-in roles, PII redaction, and AES-256-GCM encryption of provider keys and user credentials at rest.
  • Rate limits and budgets. Sliding-window request and token limits, and daily, weekly or monthly token budgets, per user, API key, provider or MCP server, with budget alerts.
  • Observability. Audit logs of every AI request and tool call, stored in ClickHouse and optionally forwarded to syslog, Kafka or webhooks; usage and cost analytics; Prometheus metrics.

ThinkWatch Enterprise is deployed with Docker Compose or on Kubernetes with a Helm chart. The Quick Start runs it locally, and the deployment guide covers production.

ThinkWatch Lite

ThinkWatch Lite is a desktop app that runs a local AI API gateway from the macOS menu bar, the Windows notification area or the Linux system tray. Claude Code, Codex and other clients of the Anthropic, OpenAI and Gemini APIs send their requests to the gateway, and the app records what each request cost, which upstream served it and what was redacted before it was sent.

  • Cost. Each request is priced when it completes. The default price sheet follows a public price table that is refreshed daily, and custom price sheets cover relays that charge differently. Estimated amounts are marked as estimates, and usage without a price is reported as unpriced rather than counted as zero.
  • Routing. Rules match on the model, the gateway key, the API format, the input size and the features of a request, and send it to an upstream or to a group that falls back in order, uses a selected member, takes turns, or picks the fastest or the cheapest member. Until the first byte of a response arrives, a failing upstream is replaced by the next one. Each request records the rule it matched and every upstream attempt, and a dry run evaluates the rules for a sample request without sending it.
  • Security. Five protections, each set to Off, Observe or Enforce: redaction of credentials in outgoing requests, restored in the response; inspection of the tool calls an upstream returns; detection of hidden characters; content rules; and a limit on output length. The first four are set to Observe by default and the output limit to Off. Built-in rules are listed alongside custom ones, and every match is written to the security log.
  • MCP. The MCP servers configured in each client are shown side by side and can be copied between clients or removed; each change is shown before it is written, and the original file is backed up. Client configuration, skills, hooks, slash commands, subagents and project instructions are scanned for hidden characters, prompt injection, dangerous commands and overly broad permissions.
  • Clients. Claude Code, Codex, OpenCode, Zed and Aider are pointed at the gateway from the Clients page and can be restored to their previous configuration; for Cursor, Continue and Gemini CLI, the page lists the manual steps.
  • Menu bar and notifications. On macOS the menu bar shows today's token usage and cost, and its menu lists requests in progress, the output rate and the quota of subscription accounts. On Windows and Linux the same menu opens from the tray icon. System notifications report conditions that need action, such as an exhausted subscription quota, an expired sign-in or a blocked tool call.

The interface is available in English and Simplified Chinese. It follows the system language and can be switched in Settings.

The gateway can also run on a server: ThinkWatch Lite connects to ThinkWatch Core on another machine over an encrypted control channel, using the key that twcore control-key prints on that machine. Remote connections are added in Settings › Connection. The app uses one core at a time: while it is connected to a remote core, the local core stops and its data is kept. The Clients and MCP pages continue to act on the machine the app runs on.

ThinkWatch Lite is released for macOS 12 or later on Apple silicon, Windows 10 21H2 or later on x64 and ARM64, and Linux on x86_64 and aarch64 (Ubuntu 22.04, Debian 12, Fedora 36 or later). The gateway ships inside the app, and the app updates itself; a Homebrew installation is updated through Homebrew. thinkwat.ch/lite offers downloads of the latest version for each platform. On macOS, the app can also be installed with Homebrew:

brew install --cask thinkwatchproject/tap/thinkwatch-lite

On Linux, one command installs the AppImage:

curl -fsSL https://github.com/ThinkWatchProject/ThinkWatch-Lite/releases/latest/download/install.sh | sh

The disk image, the Windows installers and the AppImages are also attached to the latest release. The Windows installers are not code-signed: when SmartScreen blocks one, choose More info, then Run anyway.

The ThinkWatch Lite overview page: tokens, cost and requests for the last seven days compared with the seven days before, a trend chart by model with periods of failures marked, and usage by model

ThinkWatch Core

ThinkWatch Core is the gateway engine: a set of Rust crates and the twcore binary built from them. It provides rule-based routing, failover between upstreams before the first byte of a response, cost accounting against a public price table that is refreshed daily, redaction of credentials in outgoing requests, and inspection of the tool calls an upstream returns. ThinkWatch Lite runs twcore as its local gateway, and twcore also runs on its own as a gateway on a server. ThinkWatch Enterprise uses three of its crates: tw-dialect for format conversion and usage parsing, tw-guard for redaction and tool-call inspection, and tw-breaker for circuit breaking.

Each release includes a twcore binary for macOS on Apple silicon, Windows on x64 and ARM64, and Linux on x86_64 and aarch64, each with a SHA-256 checksum; the Linux archives also contain the systemd unit.

On a Linux server, one command installs the binary, a dedicated service user and the systemd unit:

curl -fsSL https://raw.githubusercontent.com/ThinkWatchProject/ThinkWatch-Core/main/scripts/install.sh | sudo sh

Running core on a server describes the configuration, the remote control port that ThinkWatch Lite connects to, and upgrades with twcore upgrade. Every field of config.yaml is described in the configuration reference.

To build twcore from source with Cargo:

cargo install --git https://github.com/ThinkWatchProject/ThinkWatch-Core --locked twcore

This builds the current main branch; --tag v<version> builds a release instead.


Repositories

Repository Contents License
ThinkWatch ThinkWatch Enterprise: the gateway server, the MCP gateway and the web console BSL 1.1
ThinkWatch-Lite ThinkWatch Lite, the desktop app for macOS, Windows and Linux MIT
ThinkWatch-Core ThinkWatch Core: the Rust crates and the twcore binary MIT
homebrew-tap The Homebrew cask for ThinkWatch Lite MIT
thinkwatch.github.io Source of thinkwat.ch

Licenses

ThinkWatch Lite and ThinkWatch Core are released under the MIT License.

ThinkWatch Enterprise is source-available under the Business Source License 1.1. Non-production use is free. Production use is free up to 10,000,000 Billable Tokens and 10,000 MCP Tool Calls per UTC calendar month; above either threshold, a commercial license is required. LICENSING.md sets out the full terms, the tiering model and the conversion of each version to GPL-2.0-or-later, and thinkwat.ch/license gives the contact for commercial licenses.

Security

Vulnerabilities are reported privately, as described in the security policy.

Pinned Loading

  1. ThinkWatch ThinkWatch Public

    Enterprise AI bastion host for secure AI API and MCP access, with unified proxying, RBAC, audit logs, rate limiting, and cost tracking across OpenAI, Anthropic, Gemini, and self-hosted LLMs.

    Rust 814 22

Repositories

Showing 6 of 6 repositories
  • ThinkWatch-Lite Public

    Desktop app for a local AI API gateway on macOS, Windows and Linux. Shows what Claude Code, Codex and other OpenAI/Anthropic clients cost, where each request was routed and what was redacted. Can also connect to ThinkWatch Core running on a server.

    ThinkWatchProject/ThinkWatch-Lite's past year of commit activity
    TypeScript 1 MIT 0 0 0 Updated Sep 26, 2026
  • homebrew-tap Public

    Homebrew cask for ThinkWatch Lite, the desktop app for a local AI API gateway, on macOS (Apple silicon).

    ThinkWatchProject/homebrew-tap's past year of commit activity
    Ruby 0 MIT 0 0 0 Updated Sep 26, 2026
  • ThinkWatch-Core Public

    Rust crates and the twcore binary for an AI API gateway: rule-based routing, failover before the first byte, cost accounting, outbound secret redaction and tool-call inspection. Runs inside ThinkWatch Lite or as a standalone gateway on a Linux server.

    ThinkWatchProject/ThinkWatch-Core's past year of commit activity
    Rust 1 MIT 0 0 0 Updated Sep 26, 2026
  • thinkwatch.github.io Public

    Source of thinkwat.ch, the official ThinkWatch website: product pages, documentation, changelog and licensing for ThinkWatch Enterprise, ThinkWatch Lite and ThinkWatch Core, in English and Simplified Chinese.

    ThinkWatchProject/thinkwatch.github.io's past year of commit activity
    TypeScript 0 0 0 0 Updated Sep 26, 2026
  • .github Public

    Organization profile for ThinkWatch: ThinkWatch Enterprise, ThinkWatch Lite and ThinkWatch Core.

    ThinkWatchProject/.github's past year of commit activity
    0 0 0 0 Updated Sep 25, 2026
  • ThinkWatch Public

    Enterprise AI bastion host for secure AI API and MCP access, with unified proxying, RBAC, audit logs, rate limiting, and cost tracking across OpenAI, Anthropic, Gemini, and self-hosted LLMs.

    ThinkWatchProject/ThinkWatch's past year of commit activity
    Rust 814 22 0 0 Updated Sep 25, 2026

People

This organization has no public members. You must be a member to see who’s a part of this organization.