Docs contents

Quick start

Run ShiritaiBot from source and connect your first model.

Starting with 0.4.0, ShiritaiBot is available as both a desktop app and a self-hosted instance.

Desktop app

Go to the ShiritaiBot Releases page, download the latest installer for your operating system, and run it.

Self-hosted instance

One-click install

ShiritaiBot comes with install scripts that set everything up for you.

Windows:

powershell
git clone https://github.com/ShiritaiBot-Devs/ShiritaiBot.git
cd ShiritaiBot
.\scripts\install.ps1

macOS / Linux:

bash
git clone https://github.com/ShiritaiBot-Devs/ShiritaiBot.git
cd ShiritaiBot
./scripts/install.sh

The macOS / Linux script prints English when your terminal's language (LANG or LC_ALL) is English, and Chinese otherwise. The Windows script always prints English.

Manual install: requirements

ShiritaiBot runs on Linux, macOS and Windows. Install these first:

Download and start

Open a terminal in the folder where you want the project and run the commands below. They work in Bash, zsh and PowerShell.

bash
git clone https://github.com/ShiritaiBot-Devs/ShiritaiBot.git
cd ShiritaiBot
uv sync
npm --prefix web ci
npm --prefix web run build
uv run shiritaibot run

To make the WebUI reachable from the internet, add --allowed-host <domain> to the uv run command, for example:

bash
uv run shiritaibot run --allowed-host shiritai.example.com

Once it's running, open http://127.0.0.1:8765 to reach the admin WebUI.

Sign in to the WebUI

If you started ShiritaiBot from a terminal, open the WebUI address it prints. If you open http://127.0.0.1:8765 directly, or want to reach ShiritaiBot from another computer, you need the token that ShiritaiBot generated.

Open a new terminal and run:

Terminal
uv run shiritaibot token

Paste the token into the sign-in page. If you lose it, run the command again in a new terminal.

Switch to English

ShiritaiBot starts in Simplified Chinese. Two settings switch it to English:

  1. The WebUI: open the language menu in the top bar, or on the sign-in page, and choose English. This only changes the WebUI in this browser.
  2. The bot: go to Settings → General → Language and set Bot language to English. The bot then replies, sends notifications and shows /help in English.

To switch a single chat instead, send /lang en in it. Languages explains all the options.

Next steps

Continue with whatever you need: