moondream-vision-zc: Running Moondream with Local Ollama to Enable Image Understanding for Agents

Introduction

To enable an Agent to “see and speak” about images in a chat, the common approach is to use cloud-based multimodal APIs: this requires configuring API keys, incurring costs, and sending images over the network. If you are already running models locally with Ollama, you might prefer to keep image understanding within 127.0.0.1:11434 and then pass the text results to the main model in the conversation. This requires a set of fixed environment steps, calling conventions, and Agent registration methods. Below is an introduction to the community Skill moondream-vision-zc (@user_543d2acf/moondream-vision-zc, v1.0.0) on SkillHub. Following the general SKILL.md conventions, it connects local Moondream to OpenClaw 2026’s multimodal plugin mechanism via the Ollama REST API and explains how to chain it with a text large language model.

What is this

moondream-vision-zc is a command type Skill: it uses Moondream deployed via local Ollama for image understanding and returns natural language descriptions to OpenClaw. You can directly send images in the chat or reference local image paths. It is published by SkillHub user user_543d2acf (page author: zhangchong), sourced from the community, categorized under design-media, and tagged with requires_api_key=false (the Skill itself does not require a third-party API Key; inference relies on local Ollama). SkillHub page statistics (based on crawled data): Rating 100000, Downloads 941, Installs 0.

Official entry points:

  • API: https://api.skillhub.cn/user_543d2acf/moondream-vision-zc
  • Page: https://www.skillhub.cn/skills/user_543d2acf/moondream-vision-zc

Currently, the package obtained from SkillHub contains only SKILL.md; scripts need to be placed into the scripts/ directory manually according to the documentation (see “Installation and Activation” below).

Core Functions

The capabilities verified based on SKILL.md are as follows:

  1. Local Inference: Via Ollama’s /api/generate, submit a base64 image and an optional prompt to the moondream model, and retrieve the text from the response field.
  2. OpenClaw Command: After registering in ~/.openclaw/config/skills.json, call it within the chat using !moondream <image_path> [prompt].
  3. Chaining with Text Models: The Moondream output can be used as context for a subsequent text model (the documentation example uses GPT‑OSS‑120B) for summarization, rewriting, etc.; the example is to run !moondream img.png to get a description, then !gpt "Based on the following description...".
  4. Performance Notes (Self-reported): Approximately 1–2 seconds per image on a standard laptop CPU; GPU acceleration is available. Single image limit is approximately 5 MB (an Ollama side limit; larger images need to be compressed first).

Installation and Activation

1. Install SkillHub CLI (if not already installed)

command -v skillhub && skillhub --version

If not installed, follow the SkillHub installation documentation to perform a full installation or just install the CLI (see https://skillhub.cn/install/skillhub.md).

2. Install the Skill to the current Agent’s skills directory

During installation, you must use --dir to point to the skills directory recognized by your current environment; otherwise, it defaults to ./skills/ and the Agent might not be able to read it. Common path examples:

  • Cursor: ~/.cursor/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project
  • Claude Code: ~/.claude/skills/
skillhub install @user_543d2acf/moondream-vision-zc --dir ~/.cursor/skills/

Replace ~/.cursor/skills/ with the directory you are actually using. After installation, the directory structure looks like .../moondream-vision-zc/SKILL.md (Coordinate @user_543d2acf/moondream-vision-zc).

3. Prepare Ollama and the Moondream model

The documentation uses Windows as an example; the core requirement is that local Ollama provides services on port 11434.

  1. Install Ollama (Windows example: winget install ollama, or download from https://ollama.com/download).
  2. Start the service (example: ollama serve).
  3. Pull the model:
ollama pull moondream
  1. Verification:
ollama run moondream "An image of a cat"

If it returns a text description, the model is available.

4. Supplement scripts and Python dependencies

The directory structure defined in SKILL.md is:

~/.openclaw/skills/moondream-vision/
├─ SKILL.md
└─ scripts/
   └─ moondream_vision.py

Save the moondream_vision.py from the documentation to the corresponding scripts/ path (content is consistent with the code embedded in the Skill: read local image, POST to http://127.0.0.1:11434/api/generate, model as moondream). When using the script, you need to:

pip install requests

If you installed it to a directory like Cursor via SkillHub, place scripts/moondream_vision.py under that Skill’s root directory, and in the OpenClaw configuration, point ${skill_dir} in the command to the actual absolute path.

5. Register the command in OpenClaw

Add the following to ~/.openclaw/config/skills.json (create it if it doesn’t exist):

{
  "name": "moondream-vision",
  "command": "python ${skill_dir}/scripts/moondream_vision.py",
  "description": "Local Moondream image understanding",
  "usage": "!moondream <image_path> [prompt]",
  "args": ["image_path", "prompt?"],
  "output": "text"
}

${skill_dir} is replaced by OpenClaw at runtime with the absolute path of this Skill’s directory. After modifying the configuration, restart or reload the Agent as required by your OpenClaw version.

Typical Usage

Command Line Script

python moondream_vision.py <image_path> [prompt]

The second parameter is an optional prompt; if omitted, prompt is an empty string.

OpenClaw Chat Example (Excerpt from SKILL.md)

User: !moondream C:\Users\Administrator\Pictures\dog.jpg
Assistant: This is a brown dog sitting on grass, looking at the camera.

User: !moondream C:\Users\Administrator\Pictures\dog.jpg "Please write a short advertising copy based on the content of this image"
Assistant: "The joy of your beloved dog, all in nature"—Let your pet run freely on lush grass and feel the vitality of life.

Combining with Text Models (Documentation Workflow)

  1. Run !moondream img.png to get the image description desc.
  2. Run !gpt "Based on the following description, write a news release:\n${desc}" (The command name depends on the GPT Skill actually registered in your OpenClaw).

Use Cases and Precautions

Who is it for

  • Users who already have or are willing to deploy Ollama locally, hoping to keep image understanding off the network and not rely on cloud vision API Keys.
  • Users of OpenClaw 2026 multimodal/command plugins who need to trigger a local vision model via !moondream in conversations.
  • Users who need a lightweight VLM (Moondream) to generate descriptions first, followed by a large-parameter text model for secondary reasoning or copywriting.

Limitations and Pitfalls

  • Platform and Paths: The example paths are for Windows; Linux/macOS users need to change them to local image paths. Ollama installation methods should follow official documentation (the Skill text mainly focuses on Windows).
  • Package Contents: The SkillHub distribution package currently only contains SKILL.md; moondream_vision.py needs to be created manually according to the documentation. Otherwise, python .../moondream_vision.py in skills.json cannot be executed.
  • Service and Network: Ensure ollama serve is running and port 11434 is not blocked by the firewall; if Ollama is not started, the HTTP call will fail immediately.
  • Empty Returns: The documentation suggests checking if prompt is empty or adding "system": "" to the payload to prevent model misinterpretation.
  • Clients like Cursor: While skillhub install can install the instructions into the Cursor skills directory, OpenClaw’s skills.json and !moondream syntax remain specific to OpenClaw. Pure Cursor users need to manually instruct the Agent to execute scripts or equivalent HTTP calls based on SKILL.md; official materials do not provide a separate built-in command name for Cursor.

Conclusion

moondream-vision-zc documents the “Ollama + Moondream + base64 calling /api/generate” workflow as a replicable Skill instruction and integrates with OpenClaw’s !moondream command and multimodal workflows. It is suitable for scenarios where you want to view images locally and then pass the results to the main conversation model. For installation and details, see SkillHub: https://www.skillhub.cn/skills/user_543d2acf/moondream-vision-zc, coordinate @user_543d2acf/moondream-vision-zc.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye