





基于 Satori,轻松支持 QQ、Telegram、Discord、飞书等主流平台,也可以随意扩展。DeepSeek、OpenAI、Anthropic、Google 等主流模型服务也同步支持。




按需搭配你的能力,无论是预设,模型,工具集,Skill,Bash 运行环境,完全由你决定。
import type { Context } from "cordis";
import { Schema } from "@chatluna/schema";
import { defineTool } from "@chatluna/tool";
export const name = "weather";
export const inject = ["tools"];
export function apply(ctx: Context) {
ctx.tools.define(
defineTool({
name: "weather_forecast",
description: "查询城市未来几天的天气",
args: Schema.object({
city: Schema.string().required(),
days: Schema.number().default(3),
}),
async run({ city, days }) {
const response = await fetch(
`https://weather.example/v1?city=${city}&days=${days}`,
);
return await response.text();
},
}),
);
}运行环境需要 Node.js 24 或更高版本。第一次运行 chatluna 会自动创建实例并启动,终端中会打印控制台的登录地址,默认为 http://127.0.0.1:5028。
在浏览器中打开它,按引导添加模型、接入聊天平台,Bot 就可用了。
目前处于封闭内测阶段,npm i -g chatluna 暂时还不能使用。想参与内测,请填写报名问卷。
npm i -g chatluna
chatlunagit clone https://github.com/ChatLunaLab/v2.git && cd v2
docker compose -f docker/compose.yml up -d chatlunagit clone https://github.com/ChatLunaLab/v2.git && cd v2
yarn install && yarn build
yarn chatluna start使用过程中遇到任何问题,都欢迎随时来社区里交流。