TetherLM
Provisions and controls an Android phone over USB/ADB as a local NPU/GPU/CPU inference sidecar, including runtime/model setup, thermal and battery monitoring, and unloading the local model server.
Provides private review of uncommitted Git diffs before commit or PR creation, returning secret-leak warnings, summaries, and suggested commit titles.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Every time Claude Code, Cursor, or Antigravity reads a production crash log or hunts through a codebase, you pay frontier API rates to upload tens of thousands of lines of noise—along with whatever API keys, JWTs, and internal URLs were sitting inside them.
Meanwhile, the Android phone sitting next to your keyboard has a dedicated NPU idling at 0%.
TetherLM connects the two over USB-C. It scrubs secrets on your machine, runs log compression, file triage, and diff review locally on your phone's NPU, and hands your cloud agent a clean, tiny summary.
Plug & Play Setup
Enable USB Debugging on your Android phone, plug it in over USB-C, and run one command:
# Auto-installs standalone ADB (if missing), phone NPU runtime, and Gemma 4 E2B:
npx tetherlm@latest initWant TetherLM wired into your editor automatically?
npx tetherlm@latest init --cursor # Writes .cursor/mcp.json
npx tetherlm@latest init --claude # Registers via `claude mcp add`Open a second terminal anytime to watch live NPU intercepts, blocked secrets, and phone thermals:
npx tetherlm@latest hudRelated MCP server: LocalForge
How It Works
Intercept & Scrub Locally: TetherLM blocks sensitive paths (
.ssh,.aws,.git,*.pem) and masks 14+ credential formats plus high-entropy strings before anything leaves your PC.Compress Over USB-C: Your phone's Qualcomm Hexagon NPU (with automatic fallback to mobile OpenCL GPU or ARM64 CPU) distills 500-line crash logs and multi-file searches into compact JSON over a
127.0.0.1USB loopback.Verify on Egress: A second scrubber pass scans the phone's output before returning it to your coding agent—guaranteeing zero secret leakage and ~98% fewer cloud input tokens.
Measured Impact (Before vs. After)
Tested on a 12-file service with 2 bugs buried inside a 500-line, secret-filled production crash log (OnePlus 15R · Snapdragon 8 Gen 5 · Gemma 4 E2B Q4_0):
Metric | Without TetherLM | With TetherLM | Why It Matters |
Cloud Input Tokens |
|
| 98.1% reduction — keeps frontier context lean and cheap |
Crash Log Tokens |
|
| 99.6% reduction — extracts structured JSON root causes |
Secrets Sent to Cloud |
|
| Blocks AWS/Stripe/Anthropic keys, JWTs, DB URIs, emails & IPs |
Phone Temp Change | — |
| Single-slot Hexagon NPU execution stays cool on your desk |
End-to-End Bug Fix |
|
| Identical fix quality at a fraction of the cloud token budget |
5 Tools Your Coding Agent Gains
MCP Tool | When Your Agent Uses It | What Returns to the Cloud |
| Diagnosing huge build, test, or prod crash logs (tails up to 5 MB) | Compact JSON array of real errors ( |
| Narrowing down 10–40 candidate files before reading full source | JSON list of only the files that actually match the bug or feature |
| Answering questions about config or internal docs without exposing keys | Concise, egress-scrubbed answer with secret categories redacted |
| Reviewing uncommitted | Secret-leak warning + clean bullet summary + commit title suggestion |
| Checking sidecar health and session savings | Phone model, NPU backend, °C, battery %, free RAM, and $ saved |
Deep Dive & Reference
Model: gemma-4-E2B-it-Q4_0.gguf (2.82 GiB, llama.cpp b12833, -p 512 -n 128 -fa 1)
Backend | Device | Prompt ( | Generation ( | Temp After |
CPU | Qualcomm Oryon (8 threads) | 547.8 tok/s | 14.81 tok/s | 28.6 °C |
GPU | Adreno 829 ( | 798.2 tok/s | 14.62 tok/s | 29.9 °C |
NPU | Hexagon | 6,094.8 tok/s | 36.55 tok/s | 29.9 °C (+0.0 °C) |
Have another Android phone? Run npx tetherlm@latest bench and add your device to the leaderboard.
Command | Description |
| Provision ADB + runtime + model on your phone and output/write MCP config. |
| Start the MCP stdio server sandboxed to |
| Live terminal dashboard for °C, battery, blocked secrets, and token savings. |
| Benchmark CPU, GPU, and NPU on your phone and print a Markdown table. |
| 6-step diagnostic check (ADB, USB auth, RAM, runtime, NPU, tunnel). |
| Unload |
Environment Variable | Default | Purpose |
|
|
|
|
| GGUF filename staged in |
|
| Context size for single-slot ( |
|
| Localhost port tunneled over USB ADB. |
| (auto) | Target a specific ADB device serial (physical USB prioritized over emulators). |
|
| Workspace sandbox root directory. |
Entity-Preserving Redaction: Repeated emails and private IPs receive consistent per-call tags (
<REDACTED_EMAIL_1>,<REDACTED_EMAIL_2>) so debugging relationships stay clear with zero PII exposure.Strict Sandbox + Symlink Resolution: Canonicalizes paths via
fs.realpathSyncand blocks..,~,.git,.ssh,.aws,.gnupg,.kube,.npmrc,*.pem,*.key,*.kdbx, and binary files.Prompt-Injection Isolation: External log and file contents are wrapped in escaped
<untrusted_data>boundaries.Designed for Your Daily Phone: Uses
-np 1single-slot KV caching (leaving 3+ GB RAM free on 12 GB phones), unloads automatically after 10 minutes idle, and trips a safety circuit breaker if battery drops below20%(unplugged) or temperature exceeds42 °C.
Read the full threat model in SECURITY.md.
License
Open-source under AGPL-3.0-only (LICENSE). Commercial licenses are available for teams and enterprises integrating TetherLM into proprietary workflows—open an issue to get in touch. Contributions welcome under CONTRIBUTING.md and CLA.md.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Let Claude, ChatGPT and other agents use your Android phone: see the screen, tap, type, open apps.
AI agents on your own iPhone or Android: run tasks in real apps, read the screen, tap and type.
Drive real devices from your AI Coding tool. Embed a client SDK (Unity, Godot, Flutter, iOS/macOS, Android, React Native, Web) in your app, then capture screenshots, traverse the UI tree, inject taps and key events, and run automated test tasks on the physical device over a secure relay.
Turns a phone into a camera+Bluetooth remote so AI assistants can see and control any PC.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables coding agents like Claude Code and Codex to offload boilerplate generation, summarization, and other bounded text tasks to local or cheap cloud LLMs, keeping the frontier agent in charge of judgment and code edits.93MIT
- FlicenseNot gradedqualityDmaintenanceEnables hybrid agentic coding by delegating token-heavy implementation, editing, and test-debug loops to local open-source models while frontier cloud models handle architecture and review, reducing premium API token usage and keeping code private.1-
- AlicenseNot gradedqualityBmaintenanceEnables Claude Code to hand off bulk, mechanical, read-heavy tasks to a local model, including agentic loops that can read, write, and run commands sandboxed at zero cloud token cost.MIT
- FlicenseNot gradedqualityAmaintenanceEnables Claude Code and other MCP clients to offload bounded work—code review, test stubs, boilerplate, commit messages, format conversion, embeddings—to a local GPU model or a cheaper cloud, OpenAI-compatible endpoint. Source files are read by the server rather than the main model, cutting token spend while the orchestrating model keeps planning and verifying.-