## 1、准备工作
1、一个IDE(推荐IDEA)
2、jdk环境(8以上)
3、mirai运行环境(地址: [这里](https://suihou-my.sharepoint.com/:f:/g/personal/user18_5tb_site/ErWGr97FpPVDjkboIDmDAJkBID-23ZMNbTPggGajf1zvGw?e=51NZWM))
4、下载对应的IDEA插件(地址: [这里](https://github.com/mamoe/mirai-console-intellij/releases))(如果你没有使用IDEA请跳过)
## 2、安装IDEA插件(如果你没有使用IDEA请跳过)
到上面的地址下载得到jar文件并且启动你的idea,随便打开一个项目
打开文件 => 设置 => 插件
![](https://img.kancloud.cn/d2/7f/d27fca9edb5d6a1e2724f521ad360abb_1920x1048.png)
![](https://img.kancloud.cn/9c/3f/9c3f0072e4e9477a92cdfcad9d469f83_271x377.png)
![](https://img.kancloud.cn/ee/67/ee6764bae04185696d7fa0f3e055e8c9_998x712.png)
### 自动安装
点击上方的Marketplace然后在搜索框直接输入mirai回车
然后安装即可
### 手动安装
选择齿轮图标 => 从磁盘安装插件
![](https://img.kancloud.cn/1a/97/1a972600f01e023f3d53c6bb0b8ffda0_998x712.png)
![](https://img.kancloud.cn/9e/13/9e13f5720224aeade89372fde7c7dede_203x110.png)
在这里找到你下载的jar文件并且确定
![](https://img.kancloud.cn/2c/31/2c31bf898896611482b8231c595d2964_440x519.png)
重启IDEA
![](https://img.kancloud.cn/89/9a/899ae526cf06775599569d2acfe9dcf4_998x712.png)
![](https://img.kancloud.cn/3d/b4/3db425d32817029cbc0a9d013dd8d011_377x123.png)
至此,你就可以进行Mirai插件开发了。