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:
git clone https://github.com/ShiritaiBot-Devs/ShiritaiBot.git
cd ShiritaiBot
.\scripts\install.ps1
macOS / Linux:
git clone https://github.com/ShiritaiBot-Devs/ShiritaiBot.git
cd ShiritaiBot
./scripts/install.shThe 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:
- Python 3.12+
- uv, which installs the dependencies and runs the service
- Node.js 20.19+ and npm, which build the admin WebUI
- Git
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.
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 runTo make the WebUI reachable from the internet, add
--allowed-host <domain>to theuv runcommand, for example: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:
uv run shiritaibot tokenPaste 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:
- 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.
- The bot: go to Settings → General → Language and set Bot language to English. The bot then replies, sends notifications and shows
/helpin English.
To switch a single chat instead, send /lang en in it. Languages explains all the options.
Next steps
Continue with whatever you need: