@byoky/openclaw-plugin

中文文档
1.1.2发布于 2026/11/03MITTypeScriptES Module近 30 天下载 2288

Byoky wallet provider plugin for OpenClaw — manage AI API keys from your browser wallet

原始使用文档
文档目录5 节
  1. Setup
  2. Available Providers
  3. Commands
  4. How it works
  5. License

@byoky/openclaw-plugin

OpenClaw provider plugin that routes LLM API calls through your Byoky browser wallet. API keys never leave the extension; a Claude setup token is handed to the local bridge for each request, because Anthropic needs a non-browser client for it (see the bridge README).

OpenClaw → HTTP → Bridge (localhost) → Native Messaging → Extension → LLM API

Setup

1. Install the plugin:

openclaw plugins install @byoky/openclaw-plugin

OpenClaw loads plugins from ~/.openclaw/extensions (not the global npm prefix), so use OpenClaw's own installer. It pulls @byoky/bridge in automatically, and the plugin registers the native messaging host on first auth login.

2. Connect your wallet:

openclaw models auth login --provider byoky-anthropic

This opens your browser. Unlock your Byoky wallet and approve the connection. The bridge starts automatically, and the plugin configures OpenClaw with the bridge token from ~/.byoky-bridge/token, so there's no key to paste.

3. Done. OpenClaw now routes API calls through your wallet:

# Verify the bridge is running
curl -H "x-api-key: $(cat ~/.byoky-bridge/token)" http://127.0.0.1:19283/health
# → {"status":"ok","providers":["anthropic"]}

Available Providers

The plugin registers all 15 Byoky providers with OpenClaw:

ProviderOpenClaw IDModels
Anthropicbyoky-anthropicClaude Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.1, Opus 4.7, Sonnet 4.6, Haiku 4.5
OpenAIbyoky-openaiGPT-5.5, GPT-5.4, GPT-5.4 Mini, GPT-5.4 Nano
Google Geminibyoky-geminiGemini 3.6 Flash, 3.8 Flash (2.5 Pro and 2.5 Flash for past users)
xAIbyoky-xaiGrok 3, Grok 3 Mini
DeepSeekbyoky-deepseekDeepSeek V3, R1
Mistralbyoky-mistralMistral Large
Groqbyoky-groqLlama 3.3 70B
Coherebyoky-cohereSet model manually
Perplexitybyoky-perplexitySet model manually
Together AIbyoky-togetherSet model manually
Fireworks AIbyoky-fireworksSet model manually
OpenRouterbyoky-openrouterSet model manually
Azure OpenAIbyoky-azure_openaiSet your deployment name as the model
Ollamabyoky-ollamaSet model manually
LM Studiobyoky-lm_studioSet model manually

To connect a different provider:

openclaw models auth login --provider byoky-openai
openclaw models auth login --provider byoky-gemini

Commands

The plugin adds an OpenClaw command:

/byoky    Show bridge status and connected providers

How it works

  1. The plugin registers Byoky providers in OpenClaw, each pointing to http://127.0.0.1:19283/<provider>
  2. When OpenClaw makes an API call, the request hits the local Byoky Bridge with the bridge token as its API key
  3. The bridge checks the token and relays the request to the Byoky extension via native messaging
  4. The extension injects the real API key and calls the provider API
  5. The response streams back through the same path

OpenClaw has a bridge of its own on port 19283, apart from the one byoky-bridge connect starts on 19280 for Claude Code or Hermes. Both run at once, and each keeps its own wallet session, with its own providers, spending cap and routing group.

Your API keys exist only inside the extension's encrypted local storage. Nothing passes through a Byoky-hosted service.

License

MIT

版本与发布记录

@byoky/openclaw-plugin 共发布 45 个版本,首次发布于 2026/03/22;过去 12 个月发布了 45 个版本。

版本发布日期距今
1.1.2latest2026/11/035 天前
1.1.12026/10/2614 天前
1.1.02026/10/2415 天前
0.9.122026/05/086 个月前
0.9.112026/05/086 个月前
0.9.52026/04/286 个月前

关于 @byoky/openclaw-plugin 的常见问题

@byoky/openclaw-plugin 是什么?

Byoky wallet provider plugin for OpenClaw — manage AI API keys from your browser wallet

如何安装 @byoky/openclaw-plugin?

在项目目录运行 npm install @byoky/openclaw-plugin,或使用 pnpm add / yarn add / bun add。

@byoky/openclaw-plugin 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@byoky/openclaw-plugin 支持 ESM 还是 CommonJS?

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

@byoky/openclaw-plugin 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@byoky/openclaw-plugin 可以商用吗?

@byoky/openclaw-plugin 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@byoky/openclaw-plugin 的下载量有多少?

根据 npm 官方下载统计,@byoky/openclaw-plugin 在 2026/10/09 – 2026/11/07 这 30 天内被下载 2,288 次,日均约 76 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@byoky/openclaw-plugin 还在维护吗?

最新版本 1.1.2 发布于 2026/11/03(5 天前);至今共发布 45 个版本,其中过去 12 个月发布了 45 个;首次发布于 2026/03/22。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。