anthropicAnthropic Claude API integration ā chat completions, streaming, vision, tool use, and batch processing via the Anthropic Messages API. Generate text with Cla...
Install via ClawdBot CLI:
clawdbot install aiwithabidi/anthropicAnthropic 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
Part of the AgxntSix Skill Suite for OpenClaw agents.
š Need help setting up OpenClaw for your business? Book a free consultation
Generated Mar 1, 2026
Use the skill to power AI chatbots that handle customer inquiries with Claude's conversational abilities. It can process text and images for troubleshooting, provide consistent responses using system prompts, and integrate tool calling for real-time data lookups like order status.
Leverage Claude models to draft marketing copy, blog posts, or social media content. The streaming feature allows real-time editing, while batch processing can generate multiple pieces in bulk, and vision capabilities enable image-based content analysis.
Employ the skill with system prompts to act as a financial analyst, analyzing stock data or generating reports. Tool use can fetch live market data, and extended thinking mode helps solve complex calculations step-by-step for accurate insights.
Create an AI tutor that answers student questions across subjects using Claude's knowledge. It supports multi-turn conversations for interactive learning, processes images for diagram explanations, and uses token counting to manage response lengths.
Implement a preliminary symptom checker where users describe issues via text or upload images. The skill can analyze inputs with vision, provide general guidance using system prompts for safety, and integrate tools for appointment scheduling.
Offer a cloud-based platform where businesses subscribe to access AI-powered features like chatbots or content tools. Revenue comes from monthly or annual fees based on usage tiers, with add-ons for advanced capabilities like batch processing.
Provide consulting and development services to integrate this skill into existing systems for clients. Charge per project or hourly for customization, such as adding tool calling or optimizing streaming for real-time applications.
License the skill as a white-label product for other companies to rebrand and use in their own applications. Generate revenue through upfront licensing fees or revenue-sharing agreements based on client usage of the Anthropic API.
š¬ Integration Tip
Set the ANTHROPIC_API_KEY environment variable securely before use, and start with simple chat commands to test connectivity before adding advanced features like tool use or streaming.
Use CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
Gemini CLI for one-shot Q&A, summaries, and generation.
Research any topic from the last 30 days on Reddit + X + Web, synthesize findings, and write copy-paste-ready prompts. Use when the user wants recent social/web research on a topic, asks "what are people saying about X", or wants to learn current best practices. Requires OPENAI_API_KEY and/or XAI_API_KEY for full Reddit+X access, falls back to web search.
Check Antigravity account quotas for Claude and Gemini models. Shows remaining quota and reset times with ban detection.
Manages free AI models from OpenRouter for OpenClaw. Automatically ranks models by quality, configures fallbacks for rate-limit handling, and updates opencla...
Manages free AI models from OpenRouter for OpenClaw. Automatically ranks models by quality, configures fallbacks for rate-limit handling, and updates openclaw.json. Use when the user mentions free AI, OpenRouter, model switching, rate limits, or wants to reduce AI costs.