NovelAI OpenClaw Adaptor
Use this skill to explain how a local adaptor can bridge OpenClaw's OpenAI-style API calls to NovelAI, and how to configure OpenClaw to talk to that local endpoint.
Scope
This skill is for explanation and local configuration guidance:
- - Explain that the adaptor is a local proxy/shim, not a hosted service.
- Explain how
base_url and model names should be configured in OpenClaw. - Help the user choose a supported text model or image model.
- Describe the local commands a user may run after they have verified the package source.
Do not use this skill to:
- - Auto-install software.
- ask the user to paste secrets into chat.
- present unverified third-party packages as implicitly trusted.
Safety rules
Follow these rules whenever this skill is used:
- 1. Treat installation as optional and approval-based.
- Before suggesting installation, tell the user to verify the package source, maintainer, and repository or project page.
- Prefer local source checkout or an already-verified package source when available.
- Never ask the user to paste a NovelAI API key into chat.
- Never include secrets inline in command examples.
- If the package source cannot be verified, stop at configuration guidance and ask the user how they want to proceed.
Verification-first workflow
If the user wants to enable runtime use, follow this order:
- 1. Check whether the adaptor is already present locally or already installed.
- If it is not present, explain that the package source should be verified before any installation.
- Ask for approval before running any install command.
- After the user has verified the source and approved installation, use the package's documented install method.
- Prefer interactive or local-only credential entry during configuration.
Safe examples:
CODEBLOCK0
CODEBLOCK1
Do not use examples like:
CODEBLOCK2
If the user needs help deciding whether the package is trustworthy, suggest reviewing its repository, release history, and maintainers before installation.
Supported models
Text models:
- - INLINECODE1
- INLINECODE2
- INLINECODE3
- INLINECODE4
- INLINECODE5
- INLINECODE6
- INLINECODE7
- INLINECODE8
- INLINECODE9
Image models:
- - INLINECODE10
- INLINECODE11
- INLINECODE12
- INLINECODE13
- INLINECODE14
- INLINECODE15
When helping with setup, ask the user which model they want instead of assuming silently. If they do not care, recommend:
- - Text: INLINECODE16
- Image: INLINECODE17
OpenClaw configuration
When explaining how to connect OpenClaw to the adaptor:
- 1. Set
base_url to the local adaptor endpoint, such as http://127.0.0.1:xxxx/v1 or http://localhost:xxxx/v1. - Set the OpenClaw model name to the adaptor-exposed model the user selected.
- Clarify that credential handling belongs to the local adaptor configuration, not the chat.
- If OpenClaw insists on an API key field, explain that some clients accept a placeholder value such as
sk-local, but the real NovelAI credential should stay in the local adaptor config only.
Helpful local commands
If the user has already verified the package source and approved local usage, these commands are relevant:
CODEBLOCK3
Use novelai-config init as the normal guided setup entry point. It should collect local configuration such as:
- - UI language
- NovelAI credential through local input
- Default shim model
- Default image output directory
- Default image model
Image generation usage
Once the local adaptor is configured and running, image generation can use the normal OpenClaw or OpenAI-style prompt flow.
Example prompt:
INLINECODE23
The adaptor is responsible for translating that prompt into the format expected by NovelAI.
NovelAI OpenClaw 适配器
使用此技能解释本地适配器如何桥接OpenClaw的OpenAI风格API调用到NovelAI,以及如何配置OpenClaw与该本地端点通信。
范围
此技能用于解释和本地配置指导:
- - 解释适配器是本地代理/垫片,而非托管服务。
- 解释如何在OpenClaw中配置base_url和模型名称。
- 帮助用户选择支持的文本模型或图像模型。
- 描述用户在验证包来源后可以运行的本地命令。
请勿使用此技能:
- - 自动安装软件。
- 要求用户在聊天中粘贴密钥。
- 将未经核实的第三方包视为隐式可信。
安全规则
使用此技能时请遵循以下规则:
- 1. 将安装视为可选且需经批准。
- 在建议安装前,告知用户验证包来源、维护者以及仓库或项目页面。
- 尽可能优先使用本地源码检出或已验证的包来源。
- 切勿要求用户在聊天中粘贴NovelAI API密钥。
- 切勿在命令示例中内联包含密钥。
- 如果无法验证包来源,则停止并提供配置指导,询问用户希望如何继续。
验证优先工作流程
如果用户希望启用运行时使用,请按以下顺序操作:
- 1. 检查适配器是否已存在于本地或已安装。
- 如果不存在,解释在安装前应验证包来源。
- 在执行任何安装命令前请求批准。
- 在用户验证来源并批准安装后,使用包的文档化安装方法。
- 配置期间优先使用交互式或仅本地凭据输入。
安全示例:
bash
pip install novelai-openclaw-adaptor
bash
novelai-config init
请勿使用类似示例:
bash
novelai-config init --api-key YOURNOVELAIAPI_KEY
如果用户需要帮助判断包是否可信,建议在安装前审查其仓库、发布历史和维护者。
支持的模型
文本模型:
- - glm-4-6
- erato
- kayra
- clio
- krake
- euterpe
- sigurd
- genji
- snek
图像模型:
- - nai-diffusion-4-5-full
- nai-diffusion-4-5-curated
- nai-diffusion-4-full
- nai-diffusion-4-curated
- nai-diffusion-3
- nai-diffusion-3-furry
在帮助设置时,询问用户想要哪个模型,而非默认假设。如果用户不在意,推荐:
- - 文本:glm-4-6
- 图像:nai-diffusion-4-5-full
OpenClaw配置
在解释如何将OpenClaw连接到适配器时:
- 1. 将base_url设置为本地适配器端点,例如http://127.0.0.1:xxxx/v1或http://localhost:xxxx/v1。
- 将OpenClaw模型名称设置为用户选择的适配器暴露的模型。
- 明确凭据处理属于本地适配器配置,而非聊天。
- 如果OpenClaw要求API密钥字段,解释某些客户端接受占位值如sk-local,但真实的NovelAI凭据应仅保留在本地适配器配置中。
有用的本地命令
如果用户已验证包来源并批准本地使用,以下命令相关:
bash
novelai-config --help
novelai-shim --help
novelai-image --help
使用novelai-config init作为常规引导式设置入口点。它将收集本地配置,例如:
- - UI语言
- 通过本地输入的NovelAI凭据
- 默认垫片模型
- 默认图像输出目录
- 默认图像模型
图像生成使用
一旦本地适配器配置并运行,图像生成可以使用常规的OpenClaw或OpenAI风格提示流程。
示例提示:
1girl, solo, masterpiece, best quality, highly detailed
适配器负责将该提示转换为NovelAI期望的格式。