# 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](https://github.com/ShiritaiBot-Devs/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:

* [Python 3.12+](https://www.python.org/downloads/)
* [uv](https://docs.astral.sh/uv/getting-started/installation/), which installs the dependencies and runs the service
* [Node.js 20.19+](https://nodejs.org/en/download) and npm, which build the admin WebUI
* [Git](https://git-scm.com/downloads)

## 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](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:

```bash 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](https://shiritaibot.dev/en/docs/language) explains all the options.

## Next steps

Continue with whatever you need:

* [Set up models and routes](https://shiritaibot.dev/en/docs/models)
* [Connect QQ / NapCat](https://shiritaibot.dev/en/docs/onebot)
* [Connect Feishu / Lark](https://shiritaibot.dev/en/docs/feishu)
* [Learn about proactive behavior and tools](https://shiritaibot.dev/en/docs/agent-loop)
* [Write your first plugin](https://shiritaibot.dev/en/docs/plugins)
