A lightweight proxy that converts Anuneko services into a standard OpenAI API format.
- Full Compatibility: Supports both streaming and non-streaming OpenAI responses.
- Smart Context: Automatically manages upstream
chat_idbased on conversation history for seamless continuity. - Multi-Model: Switch between "Orange Cat" and "Exotic Shorthair" via model names.
- Access Control: Secure your proxy with custom API Keys.
-
Create a
.envfile:ANUNEKO_TOKEN=your_upstream_token PROXY_API_KEYS=["sk-your-api-key"]
-
Build and run the container:
docker build -t anuneko-proxy .docker run -d \ --name my-anuneko \ -p 8000:8000 \ --env-file .env \ anuneko-proxy
-
OR run directly:
python -m app.main
| Variable | Description | Example |
|---|---|---|
ANUNEKO_TOKEN |
Required. The x-token from Anuneko | eyJh... |
ANUNEKO_COOKIE |
Optional. Required by some accounts | session=... |
PROXY_API_KEYS |
List of valid keys for clients | ["sk-123456"] |
- Endpoint:
http://your-server-ip:8000 - API Key: The value you set in
PROXY_API_KEYS(e.g.,sk-123456). - Custom Models:
orange-cat(Default),black-cat(Exotic Shorthair).
This project is for educational and research purposes only.
- This is a third-party wrapper; no data is stored locally. All requests are forwarded upstream.
- Do not use this project for commercial or illegal purposes.
- The developers are not responsible for any account bans or damages resulting from the use of this tool.
This project is licensed under the GNU General Public License v3.0 (GPLv3).