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

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

Webhook Method

Websockets Method

WeCom Application

WeCom AI Bot

WeChat Official Account

Lark

DingTalk

Telegram

LINE

Slack

Misskey

Discord

OneBot v11

NapCat

Lagrange

Other Clients

Satori

Using LLOneBot

Using server-satori

Community-provided

Matrix

KOOK

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

Usage

WebUI

Plugins

Built-in Commands

Tool Use

Anthropic Skills

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

AI

Storage

HTML to Image

Session Control

Publish Plugin

Platform Adapter Integration

AstrBot HTTP API

AstrBot Configuration File

Others

Self-hosted HTML to Image

Open Source Summer

OSPP 2025

On this page

接入 LM Studio 使用 DeepSeek-R1 等模型 ​

LMStudio 允许在本地电脑上部署模型(需要电脑硬件配置符合要求)

下载并安装 LMStudio ​

https://lmstudio.ai/download

下载并运行模型 ​

https://lmstudio.ai/models

跟随 LMStudio 下载并运行想要的模型,如 deepseek-r1-qwen-7b:

bash
lms get deepseek-r1-qwen-7b

配置 AstrBot ​

在 AstrBot 上:

点击 配置->服务提供商配置->加号->openai

API Base URL 填写 http://localhost:1234/v1

API Key 填写 lm-studio

对于 Mac/Windows 使用 Docker Desktop 部署 AstrBot 部署的用户,API Base URL 请填写为 http://host.docker.internal:1234/v1。 对于 Linux 使用 Docker 部署 AstrBot 部署的用户,API Base URL 请填写为 http://172.17.0.1:1234/v1,或者将 172.17.0.1 替换为你的公网 IP IP(确保宿主机系统放行了 1234 端口)。

如果 LM Studio 使用了 Docker 部署,请确保 1234 端口已经映射到宿主机。

模型名填写上一步选好的

保存配置即可。

输入 /provider 查看 AstrBot 配置的模型

Edit this page on GitHub

Last updated:

Pager
PreviousOllama
Next⚙️ Agent Runners

Deployed on Rainyun Logo