NovelAI shim and image CLI for OpenClaw-friendly usage.
Project description
🎨 NovelAI OpenClaw Adaptor
A seamless shim to connect NovelAI's API to OpenClaw using the OpenAI format.
"Solving the core pain point of integrating NovelAI with OpenClaw by providing a simple, OpenAI-compatible local proxy."
Quick Start · How It Works · 简体中文 · 日本語
Why NovelAI OpenClaw Adaptor? 🌟
The core pain point for many users is that NovelAI's API cannot be directly integrated into OpenClaw, as OpenClaw expects the standard OpenAI API format.
To solve this, we created a shim (adaptor) that acts as a middleman. It translates OpenAI-formatted requests from OpenClaw into NovelAI-compatible requests, and returns the generated images seamlessly.
Additionally, it supports a simplified generation method: you can just pass your prompt directly to generate images without complex configurations!
Quick Start 🚀
📥 Install:
pip install novelai-openclaw-adaptor
⚙️ Initialize config:
novelai-config init
One-line init example:
novelai-config init --language en --api-key "YOUR_NOVELAI_API_KEY" --text-model glm-4-6 --image-output-dir "./images" --image-model nai-diffusion-4-5-full --force
▶️ Start the text model shim:
novelai-shim
🖼️ Generate an image:
novelai-image --prompt "1girl, solo, masterpiece, best quality"
❓ Help:
novelai-config --help
novelai-shim --help
novelai-image --help
Connect to OpenClaw:
Tell OpenClaw directly:
Help me install novelai-openclaw-adaptor and add a new model provider "novelai": pip install novelai-openclaw-adaptor && novelai-config --help
Supported Models
Text models exposed by the shim:
glm-4-6eratokayracliokrakeeuterpesigurdgenjisnek
Image models supported by the image CLI:
nai-diffusion-4-5-fullnai-diffusion-4-5-curatednai-diffusion-4-fullnai-diffusion-4-curatednai-diffusion-3nai-diffusion-3-furry
How It Works ✨
- Local Proxy: The adaptor runs locally and provides an OpenAI-compatible endpoint (e.g.,
http://localhost:xxxx/v1). - Format Translation: When OpenClaw sends an OpenAI-style request, the adaptor translates it into NovelAI's specific parameters.
- Simple Prompting: You can simply pass the prompt string to generate images.
- Configuration: In OpenClaw, set the
base_urlto your local adaptor address, for examplehttp://127.0.0.1:11434/v1, and configure the model name as required.
License 📄
This project is released under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file novelai_openclaw_adaptor-0.1.5.tar.gz.
File metadata
- Download URL: novelai_openclaw_adaptor-0.1.5.tar.gz
- Upload date:
- Size: 22.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aada6cac4ef88018666d4e986f7bbf71d7c9426f2a5e82ad090c981fe7d354b7
|
|
| MD5 |
69d483943956896819d97c98c42e4d23
|
|
| BLAKE2b-256 |
3a559a1ee1df8958d831f7efc785a061bf529d85807d022decc4fd64b2458a8d
|
File details
Details for the file novelai_openclaw_adaptor-0.1.5-py3-none-any.whl.
File metadata
- Download URL: novelai_openclaw_adaptor-0.1.5-py3-none-any.whl
- Upload date:
- Size: 22.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63d0cd94a5a254cdeef582482d913487f39c41102435d8ac5cc328cd23b47a7b
|
|
| MD5 |
9f7159e51c1d8fd273bec8e1040999b5
|
|
| BLAKE2b-256 |
579fab1f1336c1ddcdfede18343296e56817c0a0baedd4309002379453a65c83
|