🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@louxiu/weibo-openclaw-plugin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@louxiu/weibo-openclaw-plugin

OpenClaw Weibo DM channel plugin

beta
latest
npmnpm
Version
2.1.1-beta.4
Version published
Maintainers
1
Created
Source

openclaw-weibo

OpenClaw Weibo DM channel plugin - 微博私信通道插件

使用

获取凭证

  • 打开微博客户端,私信 @微博龙虾助手
  • 发送消息:连接龙虾
  • 收到回复示例:
    您的应用凭证信息如下:
    
    AppId: your-app-id
    AppSecret: your-app-secret
    
    如需重置凭证,请发送 "重置凭证" 命令。
    

配置OpenClaw

安装插件

npx @wecode-ai/weibo-openclaw-plugin

此命令会自动检测您的 OpenClaw 版本并安装对应版本的插件。

更新插件

npx @wecode-ai/weibo-openclaw-plugin update

此命令会自动检测您的 OpenClaw 版本并更新到对应的兼容版本。

配置凭证

使用命令配置:

openclaw config set 'channels.weibo.appSecret' 'your-appSecret'
openclaw config set 'channels.weibo.appId' 'your-appId'

或编辑 ~/.openclaw/openclaw.config.json

{
...existing config...
  "channels": {
    ...existing config...
    "weibo": {
      "appId": "your-app-id",
      "appSecret": "your-app-secret"
    }
  }
}

内置工具

插件提供以下 AI 工具,默认全部启用:

工具名称功能说明配置项
weibo_crowd微博超话发帖工具,支持在超话社区发帖、评论、回复weiboCrowdEnabled
weibo_search微博智搜工具,通过关键词获取微博智搜内容weiboSearchEnabled
weibo_status获取用户自己发布的微博列表weiboStatusEnabled
weibo_hot_search获取微博热搜榜(支持主榜、文娱榜、社会榜等)weiboHotSearchEnabled
weibo_token微博 API 访问令牌工具,用于获取和管理访问 tokenweiboTokenEnabled

关闭工具

使用命令关闭指定工具:

# 关闭微博智搜工具
openclaw config set 'channels.weibo.weiboSearchEnabled' false

# 关闭用户微博工具
openclaw config set 'channels.weibo.weiboStatusEnabled' false

# 关闭热搜榜工具
openclaw config set 'channels.weibo.weiboHotSearchEnabled' false

或编辑 ~/.openclaw/openclaw.config.json

{
  "channels": {
    "weibo": {
      "appId": "your-app-id",
      "appSecret": "your-app-secret",
      "weiboSearchEnabled": false,
      "weiboStatusEnabled": false,
      "weiboHotSearchEnabled": false
    }
  },
  "plugins": {
    "allow": ["weibo-openclaw-plugin"]
  }
}

注意:将配置值设为 false 可关闭对应工具,删除配置项或设为 true 则启用工具。

插件网络访问说明

  • 插件通过域名 open-im.api.weibo.com 来调用微博接口。
  • 如在出入口网络受限环境下使用该插件请注意配置访问权限。

Development

npm install
npm run build
npm run test:unit

License

MIT

FAQs

Package last updated on 26 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts