1"use strict";(self.webpackChunk_deepseek_docs=self.webpackChunk_deepseek_docs||[]).push([[9841],{39115:(t,e,s)=>{s.r(e),s.d(e,{assets:()=>i,contentTitle:()=>c,default:()=>h,frontMatter:()=>o,metadata:()=>a,toc:()=>d});var r=s(80678),n=s(41759);const o={sidebar_label:"AstrBot"},c="\u63a5\u5165 AstrBot",a={id:"quick_start/agent_integrations/astrbot",title:"\u63a5\u5165 AstrBot",description:"AstrBot \u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u4e00\u7ad9\u5f0f Agent \u52a9\u624b\u3002\u5b83\u652f\u6301\u63a5\u5165 QQ\u3001\u5fae\u4fe1\u3001\u98de\u4e66\u3001Telegram \u7b49\u4e3b\u6d41\u6d88\u606f\u5e73\u53f0\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u6280\u80fd\u3001\u63d2\u4ef6\u548c MCP \u6269\u5c55\u80fd\u529b\u3002",source:"@site/i18n/zh-cn/docusaurus-plugin-content-docs/current/quick_start/agent_integrations/astrbot.md",sourceDirName:"quick_start/agent_integrations",slug:"/quick_start/agent_integrations/astrbot",permalink:"/zh-cn/quick_start/agent_integrations/astrbot",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{sidebar_label:"AstrBot"}},i={},d=[{value:"1. \u5b89\u88c5 AstrBot",id:"1-\u5b89\u88c5-astrbot",level:4},{value:"\u901a\u8fc7 uv \u5b89\u88c5 AstrBot",id:"\u901a\u8fc7-uv-\u5b89\u88c5-astrbot",level:5},{value:"\u901a\u8fc7 Docker \u5b89\u88c5 AstrBot",id:"\u901a\u8fc7-docker-\u5b89\u88c5-astrbot",level:5},{value:"2. \u914d\u7f6e AstrBot \u4e2d\u7684\u9ed8\u8ba4\u6a21\u578b",id:"2-\u914d\u7f6e-astrbot-\u4e2d\u7684\u9ed8\u8ba4\u6a21\u578b",level:4},{value:"3. \u5f00\u59cb\u4f7f\u7528",id:"3-\u5f00\u59cb\u4f7f\u7528",level:4}];function l(t){const e={a:"a",code:"code",h1:"h1",h4:"h4",h5:"h5",p:"p",pre:"pre",...(0,n.R)(),...t.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e.h1,{id:"\u63a5\u5165-astrbot",children:"\u63a5\u5165 AstrBot"}),"\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.a,{href:"https://github.com/AstrBotDevs/AstrBot",children:"AstrBot"})," \u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u4e00\u7ad9\u5f0f Agent \u52a9\u624b\u3002\u5b83\u652f\u6301\u63a5\u5165 QQ\u3001\u5fae\u4fe1\u3001\u98de\u4e66\u3001Telegram \u7b49\u4e3b\u6d41\u6d88\u606f\u5e73\u53f0\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u6280\u80fd\u3001\u63d2\u4ef6\u548c MCP \u6269\u5c55\u80fd\u529b\u3002"]}),"\n",(0,r.jsx)(e.h4,{id:"1-\u5b89\u88c5-astrbot",children:"1. \u5b89\u88c5 AstrBot"}),"\n",(0,r.jsx)(e.h5,{id:"\u901a\u8fc7-uv-\u5b89\u88c5-astrbot",children:"\u901a\u8fc7 uv \u5b89\u88c5 AstrBot"}),"\n",(0,r.jsx)(e.p,{children:"macOS \u548c Linux \u7528\u6237\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5 AstrBot\uff1a"}),"\n",(0,r.jsx)(e.pre,{children:(0,r.jsx)(e.code,{className:"language-bash",children:"curl -LsSf https://docs.astrbot.app/install.sh | bash\n"})}),"\n",(0,r.jsx)(e.p,{children:"Windows \u7528\u6237\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a"}),"\n",(0,r.jsx)(e.pre,{children:(0,r.jsx)(e.code,{className:"language-bash",children:"iwr -useb https://docs.astrbot.app/install.ps1 | iex\n"})}),"\n",(0,r.jsx)(e.p,{children:"\u7136\u540e\u521d\u59cb\u5316\u5e76\u542f\u52a8 AstrBot\uff1a"}),"\n",(0,r.jsx)(e.pre,{children:(0,r.jsx)(e.code,{className:"language-bash",children:"astrbot init # \u4ec5\u9996\u6b21\u4f7f\u7528\u65f6\u6267\u884c\uff0c\u7528\u4e8e\u521d\u59cb\u5316\u73af\u5883\u3002\u8fd9\u4e2a\u6307\u4ee4\u4f1a\u5c06 AstrBot \u5b89\u88c5\u5230\u5f53\u524d\u7ec8\u7aef\u6240\u5728\u7684\u76ee\u5f55\u3002\nastrbot run # \u542f\u52a8 AstrBot\u3002\u8fd9\u4e2a\u6307\u4ee4\u4f1a\u68c0\u6d4b\u5f53\u524d\u76ee\u5f55\u662f\u5426\u5b89\u88c5\u4e86 AstrBot\uff0c\u5982\u679c\u672a\u5b89\u88c5\u4f1a\u63d0\u793a\u4f7f\u7528 `astrbot init` \u521d\u59cb\u5316\u3002\n"})}),"\n",(0,r.jsx)(e.h5,{id:"\u901a\u8fc7-docker-\u5b89\u88c5-astrbot",children:"\u901a\u8fc7 Docker \u5b89\u88c5 AstrBot"}),"\n",(0,r.jsx)(e.p,{children:"\u9996\u5148\u514b\u9686 AstrBot \u4ed3\u5e93\uff1a"}),"\n",(0,r.jsx)(e.pre,{children:(0,r.jsx)(e.code,{className:"language-bash",children:"git clone https://github.com/AstrBotDevs/AstrBot --depth 1\ncd AstrBot\n"})}),"\n",(0,r.jsx)(e.p,{children:"\u7136\u540e\u542f\u52a8\u670d\u52a1\uff1a"}),"\n",(0,r.jsx)(e.pre,{children:(0,r.jsx)(e.code,{className:"language-bash",children:"sudo docker compose up -d\n"})}),"\n",(0,r.jsx)(e.h4,{id:"2-\u914d\u7f6e-astrbot-\u4e2d\u7684\u9ed8\u8ba4\u6a21\u578b",children:"2. \u914d\u7f6e AstrBot \u4e2d\u7684\u9ed8\u8ba4\u6a21\u578b"}),"\n",(0,r.jsx)(e.p,{children:"\u521d\u59cb\u5316\u5b8c\u6210\u540e\uff0c\u6253\u5f00 Web UI\uff1a"}),"\n",(0,r.jsx)(e.pre,{children:(0,r.jsx)(e.code,{className:"language-bash",children:"http://localhost:6185 # \u5982\u679c AstrBot \u8fd0\u884c\u5728\u670d\u52a1\u5668\u4e0a\uff0c\u5219\u8bbf\u95ee http://<server-ip>:6185\n"})}),"\n",(0,r.jsxs)(e.p,{children:["\u5728\u5de6\u4fa7\u8fb9\u680f\u8fdb\u5165 ",(0,r.jsx)(e.code,{children:"\u6a21\u578b\u63d0\u4f9b\u5546"})," \u9875\u9762\uff0c\u70b9\u51fb ",(0,r.jsx)(e.code,{children:"+ \u65b0\u589e"}),"\uff0c\u9009\u62e9 ",(0,r.jsx)(e.code,{children:"DeepSeek"}),"\uff0c\u5c06\u4f60\u7684 ",(0,r.jsx)(e.a,{href:"https://platform.deepseek.com/api_keys",children:"DeepSeek API Key"})," \u7c98\u8d34\u5230 ",(0,r.jsx)(e.code,{children:"API Key"})," \u8f93\u5165\u6846\u4e2d\uff0c\u7136\u540e\u70b9\u51fb ",(0,r.jsx)(e.code,{children:"\u4fdd\u5b58\u914d\u7f6e"}),"\u3002"]}),"\n",(0,r.jsxs)(e.p,{children:["\u63a5\u7740\u5728\u5de6\u4fa7\u8fb9\u680f\u8fdb\u5165 ",(0,r.jsx)(e.code,{children:"\u914d\u7f6e\u6587\u4ef6\uff08\u666e\u901a\u914d\u7f6e\uff09"})," \u9875\u9762\uff0c\u5c06 ",(0,r.jsx)(e.code,{children:"\u9ed8\u8ba4\u5bf9\u8bdd\u6a21\u578b"})," \u8bbe\u7f6e\u4e3a\u521a\u521a\u914d\u7f6e\u7684\u6a21\u578b\uff0c\u786e\u8ba4\u9009\u62e9\u540e\uff0c\u70b9\u51fb\u53f3\u4e0b\u89d2\u7684\u4fdd\u5b58\u6309\u94ae\u3002"]}),"\n",(0,r.jsxs)(e.p,{children:["\u5176\u4f59\u8bbe\u7f6e\uff0c\u4f8b\u5982\u6d88\u606f\u5e73\u53f0\u548c\u6280\u80fd\u7b49\uff0c\u53ef\u4ee5\u6309\u9700\u914d\u7f6e\u3002\u66f4\u591a\u4fe1\u606f\u8bf7\u53c2\u8003 ",(0,r.jsx)(e.a,{href:"https://docs.astrbot.app/",children:"AstrBot \u6587\u6863"}),"\u3002"]}),"\n",(0,r.jsx)(e.h4,{id:"3-\u5f00\u59cb\u4f7f\u7528",children:"3. \u5f00\u59cb\u4f7f\u7528"}),"\n",(0,r.jsxs)(e.p,{children:["\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684 ",(0,r.jsx)(e.code,{children:"Chat"}),"\uff0c\u8fdb\u5165 AstrBot Chat UI\u3002\u73b0\u5728\u4f60\u53ef\u4ee5\u5f00\u59cb\u4f7f\u7528 DeepSeek \u6a21\u578b\u8fdb\u884c\u5bf9\u8bdd\u3002"]}),"\n",(0,r.jsx)(e.p,{children:"\u4f60\u4e5f\u53ef\u4ee5\u914d\u7f6e\u6d88\u606f\u5e73\u53f0\uff0c\u5728\u5e38\u7528\u804a\u5929\u5e94\u7528\u4e2d\u76f4\u63a5\u4f7f\u7528 AstrBot\u3002"})]})}function h(t={}){const{wrapper:e}={...(0,n.R)(),...t.components};return e?(0,r.jsx)(e,{...t,children:(0,r.jsx)(l,{...t})}):l(t)}},41759:(t,e,s)=>{s.d(e,{R:()=>c,x:()=>a});var r=s(26166);const n={},o=r.createContext(n);function c(t){const e=r.useContext(o);return r.useMemo((function(){return"function"==typeof t?t(e):{...e,...t}}),[e,t])}function a(t){let e;return e=t.disableParentContext?"function"==typeof t.components?t.components(n):t.components||n:c(t.components),r.createElement(o.Provider,{value:e},t.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.