# @beekeeperstudio/bks-ai-shell 中文文档

规范地址：https://npmcn.com/package/%40beekeeperstudio/bks-ai-shell/

版本：3\.4\.0
npm 元数据更新时间：2026-10-28T15:04:39.966Z
中文译文更新时间：2026-11-07T20:31:05.873Z
软件包许可：GPL-3\.0

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40beekeeperstudio/bks-ai-shell
原文对照：https://npmcn.com/package/%40beekeeperstudio/bks-ai-shell/?lang=original
项目主页：https://github.com/beekeeper-studio/bks-ai-shell#readme
源码仓库：https://github.com/beekeeper-studio/bks-ai-shell

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：19.6 MB，33 个文件
- 模块格式：ES Module
- TypeScript 类型：未声明
- 运行依赖：0 个
- 首次发布：2026-02-06T12:06:50.926Z
- 最新版本发布：2026-10-28T15:04:39.050Z
- 近 30 天下载量：4666（2026-10-08 至 2026-11-06，npm 官方下载统计）
- 已发布版本数：14（近 12 个月 14 个）

## 中文简介

用于分析数据库和生成查询的养蜂员工作室插件

## 安装

```sh
npm install @beekeeperstudio/bks-ai-shell
```

也可以使用：`pnpm add @beekeeperstudio/bks-ai-shell`、`yarn add @beekeeperstudio/bks-ai-shell`、`bun add @beekeeperstudio/bks-ai-shell`

## README

# AI 壳牌

请 AI 分析您的数据库并生成 SQL 查询 .

![ai-shell-demo](https://github.com/user-attachments/assets/95efa8e4-b9ce-4bff-ac11-46a960812ca8)

## 发展

```bash
# Clone the repo
git clone git@github.com:beekeeper-studio/bks-ai-shell.git

# Go to the directory
cd bks-ai-shell

# Link the directory to Beekeeper Studio plugins
ln -s $(pwd) ~/.config/beekeeper-studio/plugins/bks-ai-shell
# On Windows, replace $(pwd) with %cd%

# Install dependencies
yarn install

# Start development
yarn dev
```

最后,打开"养蜂人工作室"5.3或更新鲜(或重新启动应用程序).

## 部署

建设生产项目:

```
yarn build
```

## 安全说明

此应用程序使用 `anthropic-dangerous-direct-browser-access: true` 允许浏览器使用 Anthropic API 的头条 。 虽然这个演示是方便的,但请注意,这种方法会使你的API键暴露在生产环境中潜在的安全风险.

## 常见问题

### @beekeeperstudio/bks-ai-shell 是什么？

用于分析数据库和生成查询的养蜂员工作室插件

### 如何安装 @beekeeperstudio/bks-ai-shell？

在项目目录运行 npm install @beekeeperstudio/bks-ai-shell，或使用 pnpm add / yarn add / bun add。

### @beekeeperstudio/bks-ai-shell 支持 TypeScript 吗？

该包的 package\.json 没有声明类型入口。需要类型提示时，可以在 npm 上查找社区维护的 @types/beekeeperstudio\_\_bks-ai-shell 是否存在。

### @beekeeperstudio/bks-ai-shell 支持 ESM 还是 CommonJS？

以 ES Module 形式发布，推荐使用 import 引入。在 CommonJS 项目中，Node\.js 20\.19\+ / 22\.12\+ 可以直接 require\(\) 不含顶层 await 的 ES Module，更早的版本需要改用动态 import\(\)。

### @beekeeperstudio/bks-ai-shell 可以商用吗？

@beekeeperstudio/bks-ai-shell 使用 GPL-3\.0 许可。强 Copyleft：分发包含该代码的软件时，整个作品需以 GPL-3\.0 兼容许可开源，并附带专利与反锁定条款。仅内部使用不触发此义务。以上为概括，不构成法律意见，请以许可原文为准。

### @beekeeperstudio/bks-ai-shell 的下载量有多少？

根据 npm 官方下载统计，@beekeeperstudio/bks-ai-shell 在 2026/10/08 – 2026/11/06 这 30 天内被下载 4,666 次，日均约 156 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入，适合横向比较热度，不能直接等同于使用人数。

### @beekeeperstudio/bks-ai-shell 还在维护吗？

最新版本 3\.4\.0 发布于 2026/10/28（10 天前）；至今共发布 14 个版本，其中过去 12 个月发布了 14 个；首次发布于 2026/02/06。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

