搜索

PythonReactSEOPDF
OpenClaw

anthropic

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.

aiwithabidi0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install aiwithabidi/anthropic

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

🔮 Anthropic

Anthropic Claude API integration — chat completions, streaming, vision, tool use, and batch processing via the Anthropic Messages API.

Features

  • Messages API — Claude Opus, Sonnet, Haiku completions
  • Streaming — real-time token streaming responses
  • Vision — image analysis and understanding
  • Tool use — function calling with structured output
  • System prompts — custom system instructions
  • Multi-turn conversations — context management
  • Batch API — bulk message processing
  • Token counting — estimate usage before sending
  • Extended thinking — deep reasoning mode
  • Model listing — available models and capabilities

Requirements

Variable Required Description
ANTHROPIC_API_KEY ✅ API key/token for Anthropic

Quick Start

# 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

Commands

chat

Send a message to Claude.

python3 {baseDir}/scripts/anthropic.py chat "What is the meaning of life?" --model claude-sonnet-4-20250514
chat-system

Chat with system prompt.

python3 {baseDir}/scripts/anthropic.py chat-system --system "You are a financial analyst" "Analyze AAPL stock"
chat-image

Analyze an image.

python3 {baseDir}/scripts/anthropic.py chat-image --image photo.jpg 'What do you see in this image?'
stream

Stream a response.

python3 {baseDir}/scripts/anthropic.py...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/aiwithabidi/anthropic
Version
—
Commit
f9e7b1083e96964a03be771f10cd16e38963731b
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# 🔮 Anthropic

Anthropic Claude API integration — chat completions, streaming, vision, tool use, and batch processing via the Anthropic Messages API.

## Features

- **Messages API** — Claude Opus, Sonnet, Haiku completions
- **Streaming** — real-time token streaming responses
- **Vision** — image analysis and understanding
- **Tool use** — function calling with structured output
- **System prompts** — custom system instructions
- **Multi-turn conversations** — context management
- **Batch API** — bulk message processing
- **Token counting** — estimate usage before sending
- **Extended thinking** — deep reasoning mode
- **Model listing** — available models and capabilities

## Requirements

| Variable | Required | Description |
|----------|----------|-------------|
| `ANTHROPIC_API_KEY` | ✅ | API key/token for Anthropic |

## Quick Start

```bash
# Send a message to Claude
python3 {baseDir}/scripts/anthropic.py chat "What is the meaning of life?" --model claude-sonnet-4-20250514
```

```bash
# Chat with system prompt
python3 {baseDir}/scripts/anthropic.py chat-system --system "You are a financial analyst" "Analyze AAPL stock"
```

```bash
# Analyze an image
python3 {baseDir}/scripts/anthropic.py chat-image --image photo.jpg 'What do you see in this image?'
```

```bash
# Stream a response
python3 {baseDir}/scripts/anthropic.py stream "Write a short story about a robot" --model claude-sonnet-4-20250514
```



## Commands

### `chat`
Send a message to Claude.
```bash
python3 {baseDir}/scripts/anthropic.py chat "What is the meaning of life?" --model claude-sonnet-4-20250514
```

### `chat-system`
Chat with system prompt.
```bash
python3 {baseDir}/scripts/anthropic.py chat-system --system "You are a financial analyst" "Analyze AAPL stock"
```

### `chat-image`
Analyze an image.
```bash
python3 {baseDir}/scripts/anthropic.py chat-image --image photo.jpg 'What do you see in this image?'
```

### `stream`
Stream a response.
```bash
python3 {baseDir}/scripts/anthropic.py...

相关技能

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

0protocol

0isone

Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.

OpenClaw

0x0-messenger

eijiac24

Send and receive P2P messages using disposable numbers and PINs. No servers, no accounts. Use for human notifications, approval flows, and agent-to-agent communication.