Overllm
What it does
Find the LLM/AI calls you didn't need — where plain code or a regex does the job. No model.
- Connects 在你的电脑上运行
- Account or key No key needed
- Category 开发者工具
安装
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月13日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
{ "mcpServers": { "overllm": { "command": "uvx", "args": [ "overllm" ] } } }退出 Claude 再重新打开
试一试
用 Overllm 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Overllm,或回答中出现 Overllm 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Overllm
Overllm 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 Overllm 的应用
- 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要先在电脑上安装 Python (uv)(只需一次)
- 需要先在电脑上安装 Python (uv)(只需一次)
- 需要先在电脑上安装 Python (uv)(只需一次)
B · 开发者工具 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Sentry✓ ChatGPT
- Compiler Explorer✓ ChatGPT
- GitDiagram✓ ChatGPT
可连接 Claude Code,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次)
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add --scope user overllm -- uvx overllm在 Claude Code 中输入 /mcp
应能看到 Overllm 在列表中并显示已连接
试一试
用 Overllm 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Overllm,或回答中出现 Overllm 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次)
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 Overllm 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Overllm,或回答中出现 Overllm 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次)
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 Overllm 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Overllm,或回答中出现 Overllm 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
claude mcp add --scope user overllm -- uvx overllmClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"overllm": {
"command": "uvx",
"args": [
"overllm"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"overllm": {
"command": "uvx",
"args": [
"overllm"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"overllm": {
"type": "stdio",
"command": "uvx",
"args": [
"overllm"
]
}
}
}这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月14日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 theadamdanielsson 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于4个月前
- ✓ 通过
有许可证
使用 MIT
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“开发者工具”中的其他服务器比较i
- 星标数多于此分类中其他 5886 个服务器的 81%
- 发布到注册中心的时间比此分类中其他 5886 个服务器的 19% 更新
- 基础检查结果等于或优于此分类中其他 5886 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Overllm 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于4个月前,最新版本(0.7.0)于4个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同类别的其他选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Serena MCP: the IDE for your agent
A powerful toolkit for coding, providing semantic retrieval and editing capabilities.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
overllm
Catch the LLM/AI calls you didn't need.
overllm is a small, fast linter with one job: find the places in your code where you call an AI model to do something plain code does better. You called GPT to parse a date. You called a model to extract JSON that json.loads already handles. You are paying latency, money, and nondeterminism for a regex.
It reads your code with a real parser: Python through the standard-library ast, and JavaScript and TypeScript through tree-sitter. No model runs, no network, no API key. Same code in, same result out. Fast enough for a pre-commit hook.
Cost dashboards and caches deal with calls you've already decided to make. overllm asks the earlier question — did you need the call at all — and answers it from the source, before you run anything. Everyone else lints the code the AI wrote; overllm catches where you're paying an AI to do what a library already does.
Install
pip install overllm # Python
pip install "overllm[js]" # adds JavaScript / TypeScript support
Use it
Point it at one file first, so you can see what it flags before you run it on everything:
overllm app.py # one file
overllm src/ # a folder overllm . # the whole project
It reads your code and prints what it finds. By default it writes nothing and changes nothing — the worst case of a plain run is a few lines of output. The one mode that edits files is the opt-in --fix (below), and only for the two mechanically-safe fixes.
Example output:
app.py:42:5 llm-mechanical LLM call asks the model to sort
resp = client.chat.completions.create(model="gpt-4o", messages=[...]) -> use sorted()
app.py:88:1 llm-in-loop LLM call inside a loop: one API round-trip per iteration completion(model="gpt-4o", messages=[{"role": "user", "content": f"tag {x}"}]) -> batch the inputs into a single call, cache repeated results, or use a function
2 needless LLM calls in 1 file.
It is quiet by default. Only warning and error findings show, so a clean project prints nothing and exits 0 — most codebases surface a handful or none. If it floods you, treat that as a bug and open an issue.
overllm exits non-zero when it finds something, so it gates a commit or a CI check. Pass --exit-zero to report without failing.
Your code stays on your machine
overllm is static analysis. It parses your files locally, then prints what it found. It never uploads your code, never calls an API, needs no key, and sends no telemetry — there is no model in the loop and nothing phones home. Pull your network cable and it runs exactly the same.
The core is a couple thousand lines of Python with no required dependencies, so you can read all of it before you trust it. overllm[js] adds tree-sitter to parse JavaScript and TypeScript; that is the only optional dependency.
Rules
Every rule fires only on a concrete code pattern, and every finding names the deterministic replacement. It stays silent when it is not sure.
By default overllm only raises warning and above, so it is quiet on your everyday code. static-prompt is info and stays silent unless you ask for it with --all or --min-severity info.
| Rule | Severity | Fires when | Suggests |
|---|---|---|---|
llm-mechanical | error | The prompt asks for a mechanical transform: sort, reverse, count, sum, deduplicate, change case, base64, arithmetic on literals. | the one-line stdlib equivalent |
llm-extraction | error | The prompt asks the model to extract an email, URL, date, or number. | a regex, datetime, or urllib.parse |
prompt-injection | error | Untrusted web-request input (request.args, request.json, ...) flows straight into the prompt. | keep it in a separate user message, validate it, constrain the model |
llm-in-loop | warning | An LLM call runs once per loop iteration (real N calls, not streaming). | batch, cache, or move it out of the loop |
deprecated-model | error / warning | The model id is a retired model (the call 404s) or one that is deprecated and scheduled for removal. | switch to the current model it names |
unsupported-params | warning | temperature / top_p / top_k is set on a model that rejects them — the OpenAI reasoning (o1, o3, ...) series and the newest Anthropic models. | remove the parameter; steer with the prompt instead |
json-mode-missing-json | error | response_format={"type": "json_object"} is set but the fully-static prompt never contains the word "json" — a guaranteed OpenAI 400. | add "json" to a message, or use a json_schema format |
static-prompt | info | The user prompt is a compile-time constant, no variables. The input is fixed, so the call buys nothing. | precompute or cache the result |
The last two check the call itself, not the prompt: a model id that no longer exists, or a knob the model ignores. Both are matched exactly against a known list, so a live model or alias is never flagged. The lists track provider deprecation pages and need updating over time.
It detects the OpenAI, Anthropic, Google, Mistral, Cohere, Groq, AWS Bedrock, HuggingFace, Replicate, LangChain, LiteLLM, and Ollama SDKs in Python, the Vercel AI SDK (generateText, streamText, generateObject) and the openai / anthropic node SDKs in JavaScript and TypeScript, and raw HTTP requests to those hosts. It also follows a model through LCEL composition — a chain = prompt | model | parser pipe, a bound model (.with_structured_output(...)), or an alias — so chain.invoke(...) is seen; embeddings calls (embeddings.create) count too. When a call goes through your own wrapper or a framework overllm can't see, name it in llm_calls (below).
Silence a false positive
resp = client.chat.completions.create(...) # overllm: ignore
resp = client.chat.completions.create(...) # overllm: ignore=llm-in-loop
Put # overllm: ignore-file at the top of a file to skip the whole file.
Configure
In pyproject.toml (Python 3.11+):
[tool.overllm]
ignore = ["llm-in-loop"] exclude = ["examples/", "migrations/"] llm_calls = ["myapp.llm.ask", "chat_service.complete"]
Or on the command line: --select, --ignore, --min-severity, --all, and --config PATH (exclude is config-only). Run overllm --help for the full list.
Teaching overllm your own wrapper
Most code doesn't call the SDK inline — it wraps it (def ask(prompt): client.chat.completions.create(...)). overllm follows that wrapper on its own when it lives in the same file. When the call goes through a framework, a provider layer, or a **kwargs splat, overllm can't see the SDK call, so tell it the wrapper's name in llm_calls. After that, calls to ask(...) are treated like LLM calls — it reads the prompt argument and runs the loop and cost rules. A name matches bare (ask), dotted (myapp.llm.ask), or that dotted path imported under its short name.
Adopt on an existing codebase (baseline)
Dropping overllm on an old repo gives you a wall of findings you'll never get through. Snapshot them once and have CI flag only what's new after that:
overllm . --write-baseline # writes overllm-baseline.json — commit it
overllm . --baseline # reports only findings new since the snapshot overllm . --update-baseline # ratchet: also drop entries you've since fixed
The snapshot keys each finding on rule + file + code + model, not the line number, so unrelated edits above it don't invalidate it. And it counts how many times each one shows up instead of just diffing totals, so a new bad call still trips the check even if you happened to delete an old one somewhere else.
Fix what's safe (--fix)
Two of the rules have one obvious fix, so overllm can just do it for you:
overllm . --fix # drop a sampling param the model rejects (safe)
overllm . --fix --unsafe-fixes # also swap a retired model id for its replacement overllm . --fix --diff # print the patch, don't touch anything
Plain --fix only does the safe one (unsupported-params). Swapping a model id changes what your code actually does at runtime, so that's behind --unsafe-fixes. Fixes edit the syntax tree, not the raw text, so your comments and strings are left alone, and overllm re-parses the file before saving — if the edit would break it, it's dropped. The other five rules need a human call, so it never touches them.
Pre-commit hook
In .pre-commit-config.yaml:
repos:
- repo: https://github.com/theadamdanielsson/overllm rev: v0.6.0 hooks:
- id: overllm
GitHub Action
overllm ships an Action that scans a pull request and leaves one grounded comment. It stays silent when there is nothing to say.
name: overllm
on: pull_request:
permissions: contents: read pull-requests: write
jobs: check: runs-on: ubuntu-latest steps:
- uses: actions/checkout@v4
- uses: theadamdanielsson/overllm@v1 with: paths: "."
Other output formats
overllm --format json . # machine-readable
overllm --format sarif . # upload to GitHub code scanning overllm --format github . # GitHub Actions inline annotations overllm --format markdown . # the PR-comment body
GitHub code scanning (SARIF)
overllm can output SARIF, so findings show up in the Security tab and inline on the diff. It's free on public repos:
name: overllm-scan
on: [push, pull_request] permissions: contents: read security-events: write # required to upload results jobs: scan: runs-on: ubuntu-latest steps:
- uses: actions/checkout@v4
- run: pipx run overllm . --format sarif --exit-zero > overllm.sarif
- uses: github/codeql-action/upload-sarif@v3 with: sarif_file: overllm.sarif category: overllm
Use it from an agent (MCP server)
overllm ships an MCP server, so an AI agent (Claude Desktop, Cursor, or anything that speaks MCP) can call it to audit code for needless model calls. It exposes two tools: scan_path (a file or directory on disk) and scan_code (a snippet passed inline). Both return the same findings the CLI does — the rule, the location, and the concrete replacement — and neither writes or changes anything.
Install the server variant and point your client at it (the server needs Python 3.10+; the linter itself still runs on 3.9):
pip install "overllm[mcp]"
{
"mcpServers": { "overllm": { "command": "uvx", "args": ["--from", "overllm[mcp]", "overllm-mcp"] } } }
Then ask the agent things like "scan this repo for unnecessary LLM calls" or "is this function wasting a model call?" and it gets grounded, deterministic findings instead of guessing.
Why not just use an AI code reviewer?
AI reviewers and AI-slop linters look at the code the model produced: comments, dead code, structure. None of them ask the question overllm asks, which is whether you needed the model at all. It is a different axis, and it is one plain static analysis can answer with high precision and zero cost.
Contributing
The most useful thing you can send is a false positive: a real line of code where overllm flags a call it should not. A linter is only worth running if it is right, so one concrete bad flag is worth more than a feature request. CONTRIBUTING.md covers how to report one and how to run the tests.
Past releases and what changed are in CHANGELOG.md.
License
MIT © Adam Danielsson