← Back to Skills Marketplace
Anthropic Chat
by
liutao0401-afk
· GitHub ↗
· v1.0.0
· MIT-0
226
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install anthropic-chat
Description
Interact directly with Claude via Anthropic Messages API using your own API key to send and receive natural language tasks and responses.
README (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 写一首关于月亮的诗"
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install anthropic-chat - After installation, invoke the skill by name or use
/anthropic-chat - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
anthropic-chat 1.0.0 初始发布
- 新增通过 Anthropic Messages API 与 Claude 进行对话的能力
- 支持自定义 Anthropic API key(ANTHROPIC_API_KEY 环境变量)
- 可通过自然语言任务调用 Claude(支持模型选择)
- 无需额外认证流程,直接使用用户 API key
Metadata
Frequently Asked Questions
What is Anthropic Chat?
Interact directly with Claude via Anthropic Messages API using your own API key to send and receive natural language tasks and responses. It is an AI Agent Skill for Claude Code / OpenClaw, with 226 downloads so far.
How do I install Anthropic Chat?
Run "/install anthropic-chat" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Anthropic Chat free?
Yes, Anthropic Chat is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Anthropic Chat support?
Anthropic Chat is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Anthropic Chat?
It is built and maintained by liutao0401-afk (@liutao0401-afk); the current version is v1.0.0.
More Skills