Views
No views yet
┌────────────────────────────────────────────────────────────────────────────────┐
│ │
│ ██╗ ██████╗ ██████╗ ███████╗ ██████╗ ██╗ ██╗ █████╗ ██████╗ ██████╗ │
│ ██║ ██╔═══██╗██╔══██╗██╔════╝ ██╔════╝ ██║ ██║██╔══██╗██╔══██╗██╔══██╗ │
│ ██║ ██║ ██║██████╔╝█████╗ ██║ ███╗██║ ██║███████║██████╔╝██║ ██║ │
│ ██║ ██║ ██║██╔══██╗██╔══╝ ██║ ██║██║ ██║██╔══██║██╔══██╗██║ ██║ │
│ ███████╗╚██████╔╝██║ ██║███████╗ ╚██████╔╝╚██████╔╝██║ ██║██║ ██║██████╔╝ │
│ ╚══════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ │
│ │
│ Local inference for your game NPCs │
│ loreguard.com │
│ │
└────────────────────────────────────────────────────────────────────────────────┘┌─────────────────┐ wss://api.loreguard.com ┌─────────────────┐
│ Your Game │◄────────────────────────────► │ Loreguard API │
│ (NPC Dialog) │ │ (Backend) │
└─────────────────┘ └────────┬────────┘
│
│ Routes inference
│ to your worker
▼
┌─────────────────┐
│ Loreguard CLI │◄── You run this
│ (This repo) │
└────────┬────────┘
│
│ Local inference
▼
┌─────────────────┐
│ llama.cpp │
│ (Your GPU/CPU) │
└─────────────────┘pip install loreguard-cliloreguard.exe from Releases.pip install loreguard-cli1git clone https://github.com/beyond-logic-labs/loreguard-cli
2cd loreguard-cli
3pip install -e .loreguardloreguard --token lg_worker_xxx --model /path/to/model.ggufloreguard --token lg_worker_xxx --model-id qwen3-4b-instruct1export LOREGUARD_TOKEN=lg_worker_xxx
2export LOREGUARD_MODEL=/path/to/model.gguf
3loreguardloreguard --chat --token lg_worker_xxx.gguf model. Tested with the following model families:--model /path/to/model.gguf.1# Start the worker
2loreguard-cli --token $YOUR_DEV_TOKEN --model-id qwen3-4b-instruct
3
4# Your game connects to Loreguard API
5# NPC inference requests are routed to your local workerNote: Player distribution support is in development. Currently, players would need their own Loreguard account and token.
--token or LOREGUARD_TOKEN1git clone https://github.com/beyond-logic-labs/loreguard-cli
2cd loreguard-cli
3python -m venv .venv
4source .venv/bin/activate # Windows: .venv\Scripts\activate
5pip install -e ".[dev]"
6
7# Run interactive wizard
8python -m src.wizard
9
10# Run headless CLI
11python -m src.cli --help
12
13# Run tests
14pytest