Overview
A client-mode connector for a curated slice of the Anthropic Claude API focused on IIoT / edge ops text into Claude:
Default
BASE_ADDRESS is https://api.anthropic.com (no trailing slash). Topics use ai/anthropic/<object>/<verb>.
See the base guide: REST API Connectors.
Auth:
x-api-key: <Anthropic API key> and anthropic-version: 2023-06-01 on every request. Prefer Hub secrets (GET SECRET "ANTHROPIC_API_KEY") mapped into MQTT api_token. Never commit real sk-ant-... keys.Factory live smoke is blocked until an Anthropic API key is supplied. Point secrets / MQTT JSON at your project before production use.
Basic Syntax
AnthropicRestApi.lot in the factory package (no ADD METADATA).
Topics
Configuration
- Set
BASE_ADDRESStohttps://api.anthropic.com. - Store an Anthropic API key in Hub secrets (
ANTHROPIC_API_KEY); map into MQTTapi_token. - Always send
anthropic-version: 2023-06-01(already on every event in the template). - For shift-log summarization / tool use: publish to
ai/anthropic/messages/postwith a Messages body (model,max_tokens,messages, optionaltools). - For nightly batches: publish to
ai/anthropic/messages/batches/postwith arequestsarray of{custom_id, params}. - Use
GetModelsas a cheap auth smoke before production workloads.

