Skip to content
AstrBot
Main Navigation HomeBlogRoadmapHTTP API

English

简体中文

English

简体中文

Toggle dark mode

Intro & DeployMessaging PlatformsAI IntegrationUsageDevelopment
Sidebar Navigation

Introduction

What is AstrBot

Community

FAQ

Deployment

Package Manager

Desktop Client

One-click Launcher

Docker

Kubernetes

BT Panel

1Panel

Manual

Other Deployments

CasaOS

Compshare GPU

Community-provided Deployment

Support Us

Messaging Platforms

Quick Start

QQ Official Bot

Websockets

Webhook

OneBot v11

WeCom Application

WeCom AI Bot

WeChat Official Account

Personal WeChat

Lark

DingTalk

Telegram

LINE

Slack

Mattermost

Misskey

Discord

KOOK

Satori

Connect Satori

Using server-satori

Community-provided

Matrix

VoceChat

AI Integration

✨ Model Providers

NewAPI

AIHubMix

PPIO Cloud

SiliconFlow

TokenPony

302.AI

Ollama

LMStudio

⚙️ Agent Runners

Built-in Agent Runner

Dify

Coze

Alibaba Bailian

DeerFlow

Usage

WebUI

CLI Commands

Plugins

Built-in Commands

Tool Use

Anthropic Skills

Computer Use

SubAgent Orchestration

Proactive Tasks

MCP

Web Search

Knowledge Base

Custom Rules

Agent Runner

Unified Webhook Mode

Auto Context Compression

Agent Sandbox

Development

Plugin Development

🌠 Getting Started

Minimal Example

Listen to Message Events

Send Messages

Plugin Configuration

Plugin Pages

Plugin Internationalization

AI

Storage

HTML to Image

Session Control

Publish Plugin

Plugin Market Specification

Versions

2026-06-27

Platform Adapter Integration

AstrBot HTTP API

AstrBot Configuration File

Others

Diagnostics

Self-hosted HTML to Image

Open Source Summer

OSPP 2025

On this page

Package Manager Deployment (uv) ​

Use uv to install and run AstrBot quickly.

Before You Start ​

If uv is not installed, install it first by following the official guide: https://docs.astral.sh/uv/

uv supports Linux, Windows, and macOS.

Important Notes ​

WARNING

AstrBot deployed via uv does not support upgrading through the WebUI. To update, run uv tool upgrade astrbot --python 3.12 from the command line.

AstrBot requires Python 3.12 or later. Use --python 3.12 to ensure that uv creates the tool environment with Python 3.12; if Python downloads are enabled, uv will download Python 3.12 automatically when it is missing.

Install and Start ​

bash
uv tool install astrbot --python 3.12
astrbot init # Only required for the first deployment
astrbot run

Install as a System Service ​

After initialization, install AstrBot as a user-level service so it starts with the user session:

bash
astrbot service install --now

The command uses the astrbot executable found on PATH (usually generated by uv tool install) and uses the current directory as the AstrBot working directory. Each platform uses its native user-level service mechanism:

  • Linux: systemd --user
  • macOS: LaunchAgent
  • Windows: Task Scheduler

To specify the AstrBot working directory or executable path explicitly:

bash
astrbot service install --workdir /path/to/astrbot-root --executable /path/to/astrbot --now

To inspect the service state and WebUI health:

bash
astrbot service status

The status output includes the service manager state, AstrBot working directory, Dashboard port, WebUI URL, WebUI accessibility, and the overall health state.

You can also manage the service lifecycle with:

bash
astrbot service start
astrbot service stop
astrbot service restart
astrbot service uninstall

To view service logs:

bash
astrbot service logs
astrbot service logs -f

On macOS and Windows, this shows stdout logs by default. To include stderr:

bash
astrbot service logs --include-stderr

To read the AstrBot application log file at data/logs/astrbot.log, enable application file logging first and restart the service:

bash
astrbot service logs enable
astrbot service restart
astrbot service logs --source app

To inspect or disable application file logging:

bash
astrbot service logs status
astrbot service logs disable
Edit this page on GitHub

Last updated:

Pager
PreviousFAQ
NextDesktop Client

Deployed on Rainyun Logo