@QingQ77: 让 Claude Code 中的纯文本 LLM(如 DeepSeek、CodeLlama、Qwen-Coder)通过本地 Ollama 视觉模型获得视觉能力。 支持三种模式:描述剪贴板截图、截取全屏并描述、读取已保存的图片文件。 所有图像…
摘要
LocalEyes gives text-only LLMs in Claude Code (e.g., DeepSeek, CodeLlama) local vision via Ollama, enabling image description without cloud uploads. Setup takes two commands.
查看缓存全文
缓存时间: 2026/07/08 05:42
让 Claude Code 中的纯文本 LLM(如 DeepSeek、CodeLlama、Qwen-Coder)通过本地 Ollama 视觉模型获得视觉能力。
支持三种模式:描述剪贴板截图、截取全屏并描述、读取已保存的图片文件。
所有图像处理在本地完成,不上传云端,无需 API key。安装只需两条命令(ollama pull 模型 + pip install),核心脚本 vision 约 150 行。
NoPainNullGain/LocalEyes
Source: https://github.com/NoPainNullGain/LocalEyes
👁️ LocalEyes
Vision for text-only LLMs in Claude Code. Many flagship models like DeepSeek, CodeLlama, Qwen-Coder, and many other models don’t have vision. LocalEyes gives them working eyes via a local Ollama vision model. No cloud, no uploads, no API keys. Private, fast, free.
The problem
DeepSeek is brilliant at reasoning. It’s also completely blind. No screenshots, no UIs, no error dialogs — it can’t see any of it. The usual fix is uploading your images to GPT-4 or Gemini and asking a second model to describe what’s on screen. That breaks the agentic loop. It also means your screenshots are sitting on a cloud provider’s server. Neither is ideal.
LocalEyes gives text-only models local vision. Your screen stays on your machine.
Demo

DeepSeek starts blind — then LocalEyes gives it sight. The model describes the app, understands the UI, and can take its own screenshots during agentic work. All local.
Setup (2 minutes)
Prerequisites
ollama pull qwen2.5vl:7b # one-time, ~4 GB
pip install Pillow
Install
git clone https://github.com/NoPainNullGain/LocalEyes
cd LocalEyes
python install.py
Verify
# Press Win+Shift+S to screenshot something, then:
python ~/.claude/skills/local-eyes/vision.py # PowerShell / Git Bash
# Or on cmd.exe:
python %USERPROFILE%\.claude\skills\local-eyes\vision.py
Two modes
| Mode | Trigger | Command |
|---|---|---|
| You show the model | You screenshot something and ask about it | python vision.py |
| Model looks itself | Model decides it needs visual context during agentic work | python vision.py screen |
You show the model
python vision.py # describe the clipboard screenshot
python vision.py "What error is shown?" # focused question
Model looks itself (agentic mode)
python vision.py screen # capture full display
python vision.py screen "Transcribe the terminal" # focused
python vision.py screenshot.png # read a saved file
The model will use screen mode on its own during workflows — after builds, during debugging, when implementing UI from mockups. No prompt needed.
Configuration
Edit ~/.claude/skills/local-eyes/config.json:
{
"ollama_host": "http://localhost:11434",
"vision_model": "qwen2.5vl:7b",
"timeout_seconds": 120,
"temperature": 0.1
}
| Setting | Purpose |
|---|---|
ollama_host | Where Ollama runs (change for remote GPU servers) |
vision_model | Model to use — try qwen3-vl, llama3.2-vision, minicpm-v |
timeout_seconds | Max wait (increase for large images or slow GPUs) |
temperature | 0.0 = strictly factual, 1.0 = creative descriptions |
Override any setting for a single session:
PowerShell: $env:OLLAMA_VISION_MODEL = "qwen3-vl:latest"
Bash/Zsh: export OLLAMA_VISION_MODEL="qwen3-vl:latest"
Environment variables override config.json — useful for trying a new model without editing files.
How it works
┌──────────────────────────┐ ┌─────────────────────────┐
│ Claude Code │ │ Your machine (Ollama) │
│ │ │ │
│ Your model (text) │──→──→│ qwen2.5vl:7b (vision) │
│ DeepSeek / text-only │←──←──│ │
│ │ text │ "The screenshot shows │
│ "I can see that..." │ │ a terminal with..." │
└──────────────────────────┘ └─────────────────────────┘
- The model runs
python vision.py(clipboard, screen, or file) - Script captures the image, base64-encodes it
- Sent to Ollama’s local API at
localhost:11434 - Qwen2.5-VL returns a detailed text description
- The model reads the description and reasons about it
Nothing leaves your machine.
Platform support
| OS | Screen capture | Clipboard | Status |
|---|---|---|---|
| Windows 10/11 | ✓ | ✓ | Fully tested |
| macOS | ✓ | ✓ | Should work (untested) |
| Linux (X11) | ✓ | ✓ | Should work (untested) |
| Linux (Wayland) | requires scrot | ✓ | YMMV |
Troubleshooting
| Problem | Fix |
|---|---|
| “Cannot reach Ollama” | Run ollama serve in a terminal |
| “No image on clipboard” | Press Win+Shift+S to take a screenshot first |
| “Model not found” | ollama pull qwen2.5vl:7b (~4 GB one-time) |
| “Pillow is required” | pip install Pillow |
| Timeout | Increase timeout_seconds in config.json |
| First request slow | Model loads into VRAM on first call (30-60s). Subsequent calls are fast. |
Files
LocalEyes/
├── vision.py # Engine: screen capture, clipboard, Ollama API
├── SKILL.md # Instructions the model reads to use its eyes
├── config.json # User settings — edit, don't touch code
├── install.py # One-command installer
├── LICENSE # MIT
└── README.md
License
MIT © NoPainNullGain
相似文章
轻松将本地LLM接入Claude Code的方法
社区维护者将Lemonade本地LLM集成到Claude Code等CLI,让用户可在本地使用LLM。
@jianshuo: 看得见,才谈得上理解。我写了个 ccglass,npm 装上就能看到 Claude Code 背地里给大模型发了什么——系统提示词、48 个工具、token 账,全摊开。
ccglass是一个零依赖的本地日志反向代理和Web仪表盘,可以让你实时查看Claude Code等编码代理发送给大模型的系统提示、工具和token使用情况。
@TheAhmadOsman:你可以在家运行本地模型,并使用任何代理框架,如 Codex 或 Claude Code
Ahmad 构建了一个简单的工具,使 Claude Code 能与任何本地 LLM 配合使用,演示时使用了 vLLM 在 4 块 RTX 3090 上服务 GLM-4.5 Air。
@kapicode: 我一直在使用 Claude 作为“人类”来提示 @opencode 以重建参考项目,在同一测试平台上评估了四款 LLM…
一项针对四款大语言模型(Qwen、MiniMax、GLM)的评估显示,当使用 Claude 作为 Opencode 智能体工具的提示器时,一个较小的本地模型(运行在 3090 显卡上的 Qwen 27B)在代码质量与可靠性方面表现优于更大的剪枝模型。
Claude-real-video - 任何大语言模型都能观看视频
claude-real-video 是一个Python工具,通过场景检测提取关键帧,并在本地生成视频音频转录文本,使任何大语言模型都能在不经云端上传的情况下分析视频内容。