Preface¶
When building agents in DeepSeek Harness (DSH), if you want the model to “paint on demand” and have the results appear directly in the current conversation, the common approaches are hooking up a standalone image-generation service or manually copying prompts into a NovelAI-style WebUI. The pipeline is long and context gets easily broken. Below we introduce the community plugin dsh-nai-artist (maintainer xianshu-virtuous): it wires the paint tool, natural-language-to-NAI-tags translation, and a same-origin WebUI workbench into the DSH web client, displaying generated images as in-conversation cards (using the same mechanism as stickers).
What Is This¶
dsh-nai-artist is a client-side external plugin for DSH (npm package name @dsh-external/dsh-nai-artist, version 0.2.0 corresponding to the current README). In one sentence: natural language description → translated into NAI tags → calls NovelAI-family (and other models listed in the README) image generation models → images rendered into the conversation; it also provides the /nai-artist workbench for parameter fine-tuning and history management.
Directory page: SkillHub - dsh-nai-artist
Source code and documentation: GitHub - xianshu-virtuous/dsh-nai-artist
Core Features¶
The paint tool¶
Just use natural language with the model in the Harness, e.g., “draw a picture of…”. The plugin exposes the paint tool: pass in a description, and it completes the translation and image generation, with the result appearing in the conversation as a card, without leaving the current session.
WebUI Workbench¶
Two entry points:
- The paint button on the right side of the GUI input box (marked with 🎨 in the README);
- Directly access the path
/nai-artist.
The workbench supports: translation preview, manual editing of NAI tags, adjusting model/resolution/steps/seed/scale/sampler/base tags/negative prompt, initiating generation, and browsing the history gallery.
Gallery and Local Storage¶
Generated images are written to gallery/ under the plugin directory. They can be viewed and deleted in the WebUI; when the limit is exceeded, the oldest works are automatically purged.
Installation and Activation¶
The installation method in the official README targets the web profile, not commands like dsh plugin add github:.... Steps below.
- In the web profile’s
~/.dsh/profiles/web/package.json, add a local link underdependencies(modify the path according to where the plugin source is located on your machine; the README example uses a Windows path):
"@dsh-external/dsh-nai-artist": "link:F:/dsh/dsh-nai-artist"
-
Insert
cordis.patch.ymlinto the bundle section of~/.dsh/settings.yaml(or follow the DSH external plugin mounting procedure). -
Run
pnpm installand restart the DSH web process.
Runtime environment: package.json requires Node ^22.19.0 || >=24.0.0.
Configuration¶
Credentials¶
Configure the keys given in the README in ~/.dsh/.credentials.yaml (the comments explain their purposes):
IKUN_PAINT_API_KEY: sk-xxx # Image generation key (gpt-image-2 / nai-* models)
IKUN_DEEPSEEK_API_KEY: sk-xxx # Translation key (deepseek-v4-flash-tokenrhythm)
The README mentions that “three keys” need to be configured, but the same section only lists the two above; for the third type of key, refer to the latest README or source code in the repository — this article does not fabricate a name.
Service and Paint Default Parameters¶
- Service-level options go through the
llm-pi-aiplugin configuration insettings.yaml(e.g.,enabled,baseURL,translateModel,paintModels,defaultModel, etc.). - Paint default parameters (base tags, negative prompt, resolution, sampling parameters, etc.) are edited in the WebUI and saved to
<plugin home>/config.json.
Image Generation Models¶
The default generation model is nai-v5-full-limit. Selectable models in the WebUI include (per the README):
nai-v5-full、nai-v5-full-limitnai-v5-curated、nai-v5-curated-limitnai-v4.5-full、nai-v4.5-full-limitnai-v4.5-curated-limitgpt-image-2-lyc
Typical Usage¶
In-Conversation Generation¶
When chatting with the model in the web client, describe the scene in natural language and have the model call the paint tool. After the configuration and installation steps above, generated results will appear as cards in the current conversation.
Workbench Fine-Tuning¶
When you need to preview translation results, edit tags, or fix the seed/sampler, open /nai-artist or use the paint entry next to the input box, adjust in the WebUI, and then generate; history can be managed in the gallery.
Use Cases and Notes¶
Who it’s for: Developers or self-hosters already running agents in the DSH web client who want to embed NovelAI-style image generation into conversations and the same web service.
Permissions and security: The plugin runs with the permissions of the current DSH process; it reads and writes the plugin home (including gallery/ and config.json) and calls external generation/translation APIs. Before installing, please read the source code and LICENSE of the GitHub repository, and evaluate key storage and network egress policies yourself.
Ecosystem note: DSH emphasizes “everything is a plugin”; SkillHub is a community directory and has no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-nai-artist collapses “description → tags → generation → in-conversation display” into a single chain while retaining a full WebUI workbench, making it suitable for visual creation in the Harness without breaking conversation context. For details and updates, refer to the repository README:
- Directory page: https://www.skillhub.cn/plugins/xianshu-virtuous/dsh-nai-artist
- GitHub: https://github.com/xianshu-virtuous/dsh-nai-artist