Who it is forA developer or content operator whose AI coding or chat agent needs to produce or revise images as part of a workflow, without sending files to a cloud image service.
The problemAgents can write text but cannot make or edit images, and cloud image APIs send prompts and pictures off the machine.
The outcomeAn agent that creates or edits images through Kokon, with the files written to the user's own computer.
What you need first
- Windows 10 64-bit or later, an Apple M1 or newer Mac on macOS 15 or later, or x86-64 Linux
- A graphics card with 12 GB VRAM or more (NVIDIA recommended), or an Apple Silicon Mac with 16 GB unified memory or more
- 15 GB of free disk space (25 GB recommended) and about 12 GB of model downloads on first run
- A photo to edit, or a sentence describing the image to create
Steps
- Install Kokon and finish the model setup, following the Install section of the README.
- Open the AI agents section of the Kokon README to find the MCP server and local HTTP API details (inferred: the README links to this section from its header).
- Add the Kokon MCP server to your agent's MCP configuration, using the server details from that section. (inferred, check the README)
- Restart the agent and confirm that the Kokon tools are listed.
- Ask the agent for one new image and one edit of an existing photo, then open the results in Kokon's gallery to check them.
Prompt for your agent
Using the Kokon MCP server in this repo (GabrieleLozupone/kokon), edit the image at <image path> with the instruction '<edit description>' and save the result to <output folder>. Expected output: the path of the new image file. Verify that the file exists and that its dimensions match the source image.
Caveat. The README names the MCP server and local HTTP API but does not show their setup commands or tool names in the visible text, so the agent must read the AI agents section before configuring anything.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for GabrieleLozupone/kokon and "Let an AI agent create and edit images on your machine"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer