Anthropic Claude API integration — chat completions, streaming, vision, tool use, and batch processing via the Anthropic Messages API. Generate text with Cla...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install anthropic或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install anthropic⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/anthropic/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: anthropic description: "Anthropic Claude API integration — chat completions, streaming, vision, tool use, and batch processing via the Anthropic Messages API. Generate text with Claude Opus, Sonnet, and Haiku models, process images, use tool calling, and manage conversations. Built for AI agents — Python stdlib only, zero dependencies. Use for AI text generation, multimodal analysis, tool-augmented AI, batch processing, and Claude model interaction." homepage: https://www.agxntsix.ai license: MIT compatibility: Python 3.10+ (stdlib only — no dependencies) metadata: {"openclaw": {"emoji": "🔮", "requires": {"env": ["ANTHROPIC_API_KEY"]}, "primaryEnv": "ANTHROPIC_API_KEY", "homepage": "https://www.agxntsix.ai"}} ---
Anthropic Claude API integration — chat completions, streaming, vision, tool use, and batch processing via the Anthropic Messages API.
| Variable | Required | Description | |----------|----------|-------------| | ANTHROPIC_API_KEY | ✅ | API key/token for Anthropic |
# Send a message to Claude
python3 {baseDir}/scripts/anthropic.py chat "What is the meaning of life?" --model claude-sonnet-4-20250514
# Chat with system prompt
python3 {baseDir}/scripts/anthropic.py chat-system --system "You are a financial analyst" "Analyze AAPL stock"
# Analyze an image
python3 {baseDir}/scripts/anthropic.py chat-image --image photo.jpg 'What do you see in this image?'
# Stream a response
python3 {baseDir}/scripts/anthropic.py stream "Write a short story about a robot" --model claude-sonnet-4-20250514
chatSend a message to Claude.
python3 {baseDir}/scripts/anthropic.py chat "What is the meaning of life?" --model claude-sonnet-4-20250514
chat-systemChat with system prompt.
python3 {baseDir}/scripts/anthropic.py chat-system --system "You are a financial analyst" "Analyze AAPL stock"
chat-imageAnalyze an image.
python3 {baseDir}/scripts/anthropic.py chat-image --image photo.jpg 'What do you see in this image?'
streamStream a response.
python3 {baseDir}/scripts/anthropic.py stream "Write a short story about a robot" --model claude-sonnet-4-20250514
batch-createCreate a batch request.
python3 {baseDir}/scripts/anthropic.py batch-create requests.jsonl
batch-listList batch jobs.
python3 {baseDir}/scripts/anthropic.py batch-list
batch-getGet batch status.
python3 {baseDir}/scripts/anthropic.py batch-get batch_abc123
batch-resultsGet batch results.
python3 {baseDir}/scripts/anthropic.py batch-results batch_abc123
count-tokensCount tokens in a message.
python3 {baseDir}/scripts/anthropic.py count-tokens "How many tokens is this message?"
modelsList available models.
python3 {baseDir}/scripts/anthropic.py models
toolsChat with tool use.
python3 {baseDir}/scripts/anthropic.py tools --tools '[{"name":"get_weather","description":"Get weather","input_schema":{"type":"object","properties":{"location":{"type":"string"}}}}]' "What is the weather in NYC?"
thinkingExtended thinking mode.
python3 {baseDir}/scripts/anthropic.py thinking "Solve this math problem step by step: what is 123 * 456?" --budget 10000
All commands output JSON by default. Add --human for readable formatted output.
# JSON (default, for programmatic use)
python3 {baseDir}/scripts/anthropic.py chat --limit 5
# Human-readable
python3 {baseDir}/scripts/anthropic.py chat --limit 5 --human
| Script | Description | |--------|-------------| | {baseDir}/scripts/anthropic.py | Main CLI — all Anthropic operations |
This skill never stores data locally. All requests go directly to the Anthropic API and results are returned to stdout. Your data stays on Anthropic servers.
--- Built by M. Abidi | agxntsix.ai YouTube | GitHub Part of the AgxntSix Skill Suite for OpenClaw agents.
📅 Need help setting up OpenClaw for your business? Book a free consultation
安装 Anthropic 后,可以对 AI 说这些话来触发它
Send a Slack message to the #engineering channel about the deployment
Formats and sends the message with relevant context, tagging the right people
Summarize all unread messages in my inbox from today
Reads messages across connected channels and returns a prioritized summary
Draft a reply to this customer complaint and send it for review
Writes an empathetic, professional response and routes it to the approval queue
将技能文件夹放到 ~/.claude/skills/anthropic/ 目录(个人级,所有项目可用),或 .claude/skills/anthropic/(项目级)。重启 AI 客户端后,用 /anthropic 主动调用,或让 AI 根据上下文自动发现并使用。
Anthropic 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Anthropic 可免费安装使用。请查阅仓库了解许可证信息。
Anthropic Claude API integration — chat completions, streaming, vision, tool use, and batch processing via the Anthropic Messages API. Generate text with Cla...
Anthropic 属于「Communication」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。