← 返回 Skills 市场
Anthropic Chat
作者
liutao0401-afk
· GitHub ↗
· v1.0.0
· MIT-0
226
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install anthropic-chat
功能描述
Interact directly with Claude via Anthropic Messages API using your own API key to send and receive natural language tasks and responses.
使用说明 (SKILL.md)
anthropic-chat — Anthropic Messages API 调用
功能
直接通过 Anthropic Messages API 与 Claude 对话。
环境变量
ANTHROPIC_API_KEY— Anthropic API key(必填)
调用方式
sessions_spawn+runtime=acp,在task里写自然语言描述任务- Skill 会自动使用 Messages API 发送请求并返回结果
认证
直接使用用户已有的 API key,不需要额外认证。
示例任务
- "让 anthropic-chat 用 Claude Opus 4 解释量子纠缠"
- "调用 anthropic-chat,用 Sonnet 4 写一首关于月亮的诗"
安全使用建议
This skill appears to be intended to call Anthropic's Messages API and will send whatever API key you provide to api.anthropic.com — that is expected. Before installing or enabling it: (1) be aware the registry metadata fails to declare ANTHROPIC_API_KEY even though SKILL.md and the code require it; (2) the JavaScript contains a bug (TASK is undefined) and a stray env-var typo (ANETHROPOPIC_API_KEY) — it may crash or not use the task you supply; (3) only supply an Anthropic API key you trust to this skill and consider using a key with limited billing/permissions or monitoring; (4) request the author to (a) update the manifest to declare ANTHROPIC_API_KEY as the primary credential, (b) fix the TASK handling to accept the runtime task safely (e.g., read from an explicit input or process.argv), and (c) document ANTHROPIC_MODEL if supported. If you cannot verify these fixes, run the skill in an isolated environment or avoid installing it.
功能分析
Type: OpenClaw Skill
Name: anthropic-chat
Version: 1.0.0
The skill is a standard implementation for interacting with the Anthropic Messages API. The code in anthropic-chat.js correctly uses HTTPS to communicate with the official endpoint (api.anthropic.com) and handles the API key via environment variables. While the script contains a minor bug (the variable 'TASK' is referenced without being explicitly defined or pulled from process.env), there are no indicators of malicious intent, data exfiltration, or unauthorized access.
能力评估
Purpose & Capability
The name/description claim a simple Anthropic Messages API caller and the code implements that (posts to api.anthropic.com). However the registry metadata lists no required env vars or primary credential while SKILL.md and the script require ANTHROPIC_API_KEY — a manifest mismatch that should be resolved.
Instruction Scope
SKILL.md says provide ANTHROPIC_API_KEY and supply the natural-language task via sessions_spawn runtime task, but anthropic-chat.js expects a global TASK variable (TASK is undefined in the script). The script also reads ANTHROPIC_MODEL (not documented) and an alternate-typo env var ANTHROPOPIC_API_KEY. These mismatches are scope/implementation issues that can cause failures or unexpected behavior.
Install Mechanism
No install spec (instruction-only plus a small JS helper). Nothing is downloaded or written to the system by an installer.
Credentials
The only secrets accessed by the code are Anthropic-related env vars (ANTHROPIC_API_KEY, optional ANTHROPIC_MODEL). That is proportionate to the stated purpose. However the registry metadata does not declare the required env var(s), which is an inconsistency that could mislead users into installing without provisioning the key.
Persistence & Privilege
The skill does not request always:true, does not modify other skills/config, and has no install-time privileged operations.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install anthropic-chat - 安装完成后,直接呼叫该 Skill 的名称或使用
/anthropic-chat触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
anthropic-chat 1.0.0 初始发布
- 新增通过 Anthropic Messages API 与 Claude 进行对话的能力
- 支持自定义 Anthropic API key(ANTHROPIC_API_KEY 环境变量)
- 可通过自然语言任务调用 Claude(支持模型选择)
- 无需额外认证流程,直接使用用户 API key
元数据
常见问题
Anthropic Chat 是什么?
Interact directly with Claude via Anthropic Messages API using your own API key to send and receive natural language tasks and responses. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 226 次。
如何安装 Anthropic Chat?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install anthropic-chat」即可一键安装,无需额外配置。
Anthropic Chat 是免费的吗?
是的,Anthropic Chat 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Anthropic Chat 支持哪些平台?
Anthropic Chat 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Anthropic Chat?
由 liutao0401-afk(@liutao0401-afk)开发并维护,当前版本 v1.0.0。
推荐 Skills