360 Secure SkillHub
360 安全技能中心

pedit — AI photo editor

该 Skill 通过 MCP 调用 pedit,对照片进行图层、蒙版、混合模式、调整、克隆修复、背景移除、生成式填充/扩展、图生图、文生图和放大等编辑;默认本地运行,生成式功能可用本地模型或用户提供的 API 密钥;按步骤检查并在用户确认后导出。

分类:创作
metiutek
metiutek
热度 16.13
最近更新 2026-11-28 06:57:46

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add metiutek/pedit
兼容性
通用兼容
联网要求
不联网
数据出网
可选出网
Metadata
name
pedit
description
Edit photos with a real layered editor — layers, masks, blend modes, adjustments, background removal, generative fill and upscaling — by driving pedit over MCP. Local, or with your own API key.
version
1.0.0
metadata
{"openclaw":{"emoji":"🖼️","homepage":"https://github.com/metiutek/editorimage-ai","requires":{"bins":["uv"]},"install":[{"kind":"uv","package":"pedit-mcp[ai]","bins":["pedit","pedit-mcp"]}],"envVars":[{"name":"OPENAI_API_KEY","required":false,"description":"Optional, for generative edits with OpenAI models."},{"name":"GEMINI_API_KEY","required":false,"description":"Optional, for generative edits with Gemini."},{"name":"STABILITY_API_KEY","required":false,"description":"Optional, for Stability AI models."},{"name":"OPENROUTER_API_KEY","required":false,"description":"Optional, for models via OpenRouter."},{"name":"REPLICATE_API_TOKEN","required":false,"description":"Optional, for models on Replicate."}]}}

pedit — photo editing an agent can drive

pedit is an open-source layered image editor (a Photoshop / GIMP alternative): layers, groups, masks, clipping masks, blend modes, adjustment layers, clone stamp and healing, plus generative fill and expand, image-to-image, text-to-image, background removal and upscaling. Every operation is also an MCP tool. MIT licensed.

Use this skill when

  • the user asks to remove or replace a background, retouch, recolor or crop a photo;
  • they want something added, removed or extended in an image ("extend the sky", "remove the person");
  • they need a thumbnail, cover or social image built from layers.

Setup (once)

uv tool install "pedit-mcp[ai]"
pedit doctor                  # says what is missing and how to fix it

Register the MCP server with your agent (stdio):

{ "mcpServers": { "pedit": { "command": "pedit-mcp" } } }

To let the user watch, start the editor with pedit ui (http://127.0.0.1:8770); the running editor is itself an MCP server at http://127.0.0.1:8770/mcp/.

Generative features run locally (e.g. through a local ComfyUI) or with an API key the user provides. Never ask the user to paste keys into chat; they can set them in pedit's AI models panel or as environment variables.

How to work

  1. Open the user's image as a project; keep edits non-destructive (new layers, masks).
  2. After each step, check the result before the next one.
  3. Export only when the user confirms. The original file is never overwritten unless they ask.

By Mattia Cibin (Metiu) · source: https://github.com/metiutek/editorimage-ai