Enable API / LAN (KoboldCPP)
UI labels vary by version — follow your installed KoboldCPP. Goals:
- Enable OpenAI Compatible / Chat Completions API
- Listen so LAN can reach it (not localhost-only)
- Allow the port in the firewall
Common defaults
| Item | Common value |
|---|---|
| Port | 5001 (follow launch flags / UI) |
| Base URL (for MiniTavern) | http://YOUR_PC_IP:5001/v1 |
Some builds use launch flags, e.g. (illustrative — check the current README):
bash
# Illustrative: remote access + OpenAI-compatible endpoint (exact flags follow official README)
koboldcpp --model your.gguf --host 0.0.0.0 --port 5001Local self-test
Browser or curl:
text
http://127.0.0.1:5001/v1/modelsThen LAN:
text
http://YOUR_PC_IP:5001/v1/modelsFill in MiniTavern
| Field | Value |
|---|---|
| Model platform | Custom (OpenAI) |
| Base URL | http://YOUR_PC_IP:5001/v1 |
| API Key | Usually empty or any placeholder |
| Model name | Same id as /v1/models |