openclaw-lumecoder-auth
v0.8.0
Published
Lumecoder provider 插件(OpenClaw/Clawdbot)- 通过 Lumecoder API 访问 Gemini 模型
Maintainers
Readme
openclaw-lumecoder-auth
Lumecoder provider 插件,用于 Clawdbot / OpenClaw。
通过 Lumecoder API 访问 Gemini 模型(稳定、低延迟、适合 Agent / 长上下文场景)。
官网:https://lumecoder.com
本插件适用于 OpenClaw 生态,以下示例以 Clawdbot CLI 为例。如使用 OpenClaw,将命令中的
clawdbot替换为openclaw。
特性
- ✅ 支持 Gemini 2.5 / 3(Flash / Pro)
- ✅ Gemini 1M+ 超长上下文窗口
- ✅ OpenClaw / Clawdbot 原生 Provider
- ✅ CLI / Session / Slash Command 全支持
- ✅ 支持图像输入
快速开始
1. 安装 Clawdbot
curl -fsSL https://clawd.bot/install.sh | bash安装过程中,选择模型时选择 Skip for now。
2. 安装 Lumecoder 插件
# 安装插件
clawdbot plugins install openclaw-lumecoder-auth
# 启用插件
clawdbot plugins enable openclaw-lumecoder-auth
# 重启 gateway(插件启用后需要重启才会加载 provider)
clawdbot gateway restart3. 配置 API Key
clawdbot models auth login --provider lumecoder按提示输入你的 API Key(从 https://lumecoder.com 后台获取)。
4. 设置默认模型
clawdbot models set lumecoder-gemini/gemini-2.5-flash5. 开始使用
clawdbot agent --local --session-id test -m "你好"获取 API Key
- 访问 https://lumecoder.com
- 注册并登录账号
- 进入后台「API 密钥」菜单
- 创建新的 API Key(格式为
sk-...)
支持的模型
Gemini 模型 (lumecoder-gemini/)
| Model ID | 描述 | 适用场景 |
|----------|------|----------|
| lumecoder-gemini/gemini-2.5-flash | Gemini 2.5 Flash (1M) | 快速响应、长上下文 |
| lumecoder-gemini/gemini-3-pro-preview | Gemini 3 Pro Preview (2M) | 最强推理、超长上下文 |
切换模型
在会话中使用斜杠命令:
# 切换模型
/model lumecoder-gemini/gemini-2.5-flash
# 查看 lumecoder 所有模型
/models lumecoder-gemini
# 查看当前模型状态
/model status或使用命令行:
# Gemini 2.5 Flash(快速响应、长上下文)
clawdbot models set lumecoder-gemini/gemini-2.5-flash
# Gemini 3 Pro(最强推理、超长上下文 2M)
clawdbot models set lumecoder-gemini/gemini-3-pro-preview使用示例
# 使用默认模型
clawdbot agent --local --session-id myproject -m "分析这段代码"
# 切换到 Gemini 2.5 Flash(快速响应、长上下文)
clawdbot models set lumecoder-gemini/gemini-2.5-flash
# 切换到 Gemini 3 Pro(最强推理、超长上下文 2M)
clawdbot models set lumecoder-gemini/gemini-3-pro-preview环境变量(可选)
也可以通过环境变量设置 API Key:
export LUMECODER_API_KEY=sk-your-api-key常见问题
插件未加载
确保插件已启用并重启 gateway:
clawdbot plugins list
clawdbot plugins enable openclaw-lumecoder-auth
clawdbot gateway restartAPI Key 无效
重新配置 API Key:
clawdbot models auth login --provider lumecoder查看配置
cat ~/.clawdbot/clawdbot.json | grep -A 10 lumecoder详细安装教程
License
MIT
This is a community provider plugin, not officially affiliated with Google or OpenClaw.
