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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/aiwithabidi/anthropic🔮 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 stream "Write a short story about a robot" --model claude-sonnet-4-20250514
batch-create
Create a batch request.
python3 {baseDir}/scripts/anthropic.py batch-create requests.jsonl
batch-list
List batch jobs.
python3 {baseDir}/scripts/anthropic.py batch-list
batch-get
Get batch status.
python3 {baseDir}/scripts/anthropic.py batch-get batch_abc123
batch-results
Get batch results.
python3 {baseDir}/scripts/anthropic.py batch-results batch_abc123
count-tokens
Count tokens in a message.
python3 {baseDir}/scripts/anthropic.py count-tokens "How many tokens is this message?"
models
List available models.
python3 {baseDir}/scripts/anthropic.py models
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-aiwithabidi-anthropic": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
freshsales
Freshsales CRM integration — manage contacts, leads, deals, accounts, tasks, and sales sequences via the Freshsales API. Track deal pipelines, automate lead assignments, log activities, and generate sales reports. Built for AI agents — Python stdlib only, no dependencies. Use for sales CRM, contact management, deal tracking, pipeline reporting, and sales automation.
gemini-video-analyzer
Native video analysis using Google Gemini API. Upload and analyze video files — describe scenes, extract text/UI, answer questions about content, transcribe speech, identify objects and actions. Use when: (1) User sends a video file and wants it analyzed, (2) Video summarization or description needed, (3) Extracting text, UI elements, or information from screen recordings, (4) Answering questions about video content, (5) Comparing multiple videos, (6) Analyzing tutorials, demos, or walkthroughs.
agent-memory
Full AI agent memory stack — Mem0 unified memory engine with vector search (Qdrant) and knowledge graph (Neo4j), plus SQLite for structured data. Complete setup script and tools. Give your OpenClaw agent a real brain with semantic recall, entity relationships, and structured storage.
neon
Neon serverless Postgres — manage projects, branches, databases, roles, endpoints, and compute via the Neon API. Create database branches for development, manage connection endpoints, scale compute, and monitor usage. Built for AI agents — Python stdlib only, zero dependencies. Use for serverless Postgres, database branching, database management, development workflows, and cloud database automation.
onepassword
1Password Connect — vaults, items, secrets management for server-side applications.