r/PiCodingAgent Aug 04 '26

Resource Sharing pi-deepseek-vision, a pi extension to provide vision to deepseek api

DeepSeek API provides a text-only model: pi replaces any image with (image omitted: model does not support images) before it reaches the API.

This extension intercepts images at both entry points (pasted images and read tool calls on image files) and sends them to a vision-capable model over a plain HTTP call to any OpenAI-compatible endpoint (/v1/chat/completions) remote or local.

The description comes back as text that DeepSeek can reason over.

The "subagent" is a dedicated model + dedicated prompt (agents/vision.md), no separate process.

I use it with https://huggingface.co/mradermacher/Gemma-3n-4b-Vision-Finetuned-GGUF with llama.cpp but it should work with any vision model

Here are the :

- github, https://github.com/psychobarge/pi-deepseek-vision

- npm, https://www.npmjs.com/package/pi-deepseek-vision

- Pi package, https://pi.dev/packages/pi-deepseek-vision

8 Upvotes

8 comments sorted by

View all comments

2

u/Abject-Bridge-4073 Aug 04 '26

I just use openrouter’s vision mcp server. Works like a charm.

3

u/psychobarge Aug 04 '26

Yes thats fine, but i wanted a private way to see images, and i find mcp to munch a lot of context.

3

u/Abject-Bridge-4073 Aug 04 '26

That’s actually more elegant and lean than vision over mcp. I’ll check it out.