nim-interactive-chat: Generate one-click interactive chat scripts for NVIDIA NIM models

Introduction

When running large models in NVIDIA NIM format locally via Docker, the common workflow involves pulling images, starting containers, waiting for health checks, and then writing your own client or using curl to call the OpenAI-compatible interface. Container name conflicts, sending requests before ports are ready, and scattered scripts within the project can all slow down debugging. If you want to “chat immediately like a local program after starting the service” and also want the Agent to generate startup, shutdown, and Python client scripts according to fixed specifications, you can install the community Skill nim-interactive-chat (coordinates @user_93ce1c9f/nim-interactive-chat, version 1.0.0) from SkillHub.

What is this

nim-interactive-chat is a SKILL.md instruction package designed for AI Agents: categorized as ai-agent, sourced from the community, published by user_93ce1c9f, and listed on the SkillHub page with the author as morgan. The Skill does not require an API Key configuration (tag requires_api_key=false). Its core objective is: based on the image, container name, port, and model name you provide, to have the Agent generate a set of scripts locally—startup, shutdown, and an interactive chat client based on the OpenAI-compatible API—while defining behaviors such as automatic waiting for service readiness, streaming output, and context retention.

Core Features

The following capabilities are derived from the SKILL.md description within the Skill package and will be read and executed by the Agent after installation.

  1. One-click Script Trio Generation: ~/start-<container-name>.sh, ~/stop-<container-name>.sh, ~/<container-name>-chat.py.
  2. Startup Process: Cleans up old containers before starting to avoid conflicts; waits for the health check to pass before entering the conversation.
  3. Conversation Experience: Supports streaming output via the OpenAI-compatible API; maintains multi-turn context; type exit to quit the conversation, while the container continues to run in the background.
  4. Optional Tuning: Supports setting GPU memory utilization (default 0.9).
  5. Environment Dependencies: Docker, Python 3, and the Python package openai.

Installation and Enablement

First, confirm that the SkillHub CLI is installed on your machine; if not installed, you can follow the official installation documentation to perform a full installation or install just the CLI:

command -v skillhub && skillhub --version
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

Install the Skill to the skills directory recognized by the current Agent. SkillHub requires the use of --dir; otherwise, it defaults to ./skills/ and the Agent may not be able to load it. Common paths are ~/.cursor/skills/ for Cursor; ~/.claude/skills/ for Claude Code; and ~/.codex/skills/ or .agents/skills/ under the project for Codex. Example installation command:

skillhub install nim-interactive-chat --namespace user_93ce1c9f --dir ~/.cursor/skills/

You can also ask the Agent to install @user_93ce1c9f/nim-interactive-chat by following the prompts on the SkillHub page and referencing https://skillhub.cn/install/skillhub.md. After installation, restart or refresh the Agent as required by your client to load the new Skill.

Typical Usage

The Skill defines that the Agent uses the following command format to generate scripts for you (parameters must be filled in according to your actual NIM image):

create-nim-interactive <image-name> <container-name> <port> <model-name> [gpu-memory-utilization]

Parameter meanings:

Parameter Required Description
image-name Yes Docker image name
container-name Yes Container name
port Yes Local port mapping
model-name Yes Model name used by the API
gpu-memory-utilization No GPU memory utilization, default 0.9

Official example (Qwen3.5-4B NIM image):

create-nim-interactive \
  tgcr.turing-agi.com/public/qwen/qwen3.5-4b-spark-nim:latest \
  qwen3.5-4b-nim \
  18000 \
  Qwen/Qwen3.5-4B \
  0.88

After generation, the operation methods correspond to the Skill instructions:

./start-qwen3.5-4b-nim.sh
./stop-qwen3.5-4b-nim.sh

The container name segment in the actual filename will vary with the container-name you pass in; scripts are written to the user’s home directory ~ by default.

Use Cases and Notes

Target Audience: Developers deploying NVIDIA NIM format models locally via channels like NGC, TGC, etc., who want to use a unified template to generate “startup—wait for ready—interactive chat” workflows; scenarios where Agents write scripts to reduce repetitive manual configuration.

Limitations and Notes:

  • The Skill package only contains SKILL.md and does not include a pre-compiled create-nim-interactive binary; it needs to be generated by an Agent that has loaded this Skill according to the documentation. Implementation details may vary slightly between different Agents, so you should check the script content yourself before executing it.
  • Runtime depends on whether the Docker and GPU environment meets the requirements of the NIM image; the openai package needs to be installed separately on the Python side.
  • The example images and domain names come from the Skill documentation; whether they can be pulled and whether registry login is required depends on your network and account permissions.
  • SkillHub metadata indicates that this Skill has a rating of 100000 and approximately 944 downloads (page statistics may change). Please verify the version and description on SkillHub before installation.

Conclusion

nim-interactive-chat consolidates “NIM container + OpenAI-compatible chat client” into a repeatable Agent workflow: parameterized script creation, automatic readiness detection, streaming multi-turn dialogue, and standalone shutdown scripts. If you are doing local NIM debugging in Cursor or other clients supporting SkillHub, you can install it to the corresponding skills directory as described above, and use create-nim-interactive to let the Agent generate a ready-to-use set of startup and chat scripts.

Official SkillHub Page: https://www.skillhub.cn/skills/user_93ce1c9f/nim-interactive-chat

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

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

Xiaoye