Skip to content

SDK and package reference

Packages

Instruments Python (pip install) JavaScript (npm install / npx) Endpoint type Guide
Claude Code anosys-claude-code anosys-sdk-claude-code Claude Code & Codex CLI Claude Code
Codex CLI anosys-codex anosys-sdk-codex Claude Code & Codex CLI Codex CLI
Antigravity anosys-antigravity anosys-sdk-antigravity Claude Code & Codex CLI Antigravity
OpenAI SDK anosys-sdk-openai anosys-sdk-openai OpenTelemetry / AI Agents OpenAI
OpenAI Agents SDK anosys-sdk-openai-agents anosys-sdk-openai-agents OpenTelemetry / AI Agents OpenAI
Anthropic SDK anosys-sdk-anthropic anosys-sdk-anthropic OpenTelemetry / AI Agents Anthropic
Claude Agent SDK anosys-sdk-claude-agents anosys-sdk-claude-agents OpenTelemetry / AI Agents Claude Agent SDK
Your own functions anosys-sdk-core anosys-sdk-openai (anosysLogger) OpenTelemetry / AI Agents Send any data

Python packages need Python 3.10 or later. The coding-tool packages install a command-line tool with the same name as the Python package (anosys-claude-code, anosys-codex, anosys-antigravity). With Node.js, run them through npx -y <package> <command>.

Source code: github.com/Anosys-AI/anosys-sdk.

Environment variables

App SDKs (OpenAI, Anthropic, Claude Agent SDK, core)

Variable Required What it does
ANOSYS_API_KEY Yes Your Anosys API key
ANOSYS_API_URL No Send to a different ingestion URL
ANOSYS_LOG_LEVEL No JavaScript only: debug, info, warn (default), error or silent
ANOSYS_ENCRYPTION_KEY No Passphrase for encrypting content fields. See Security and data controls.
ANOSYS_ENCRYPTED_COLUMNS No Comma-separated list of fields to encrypt instead of the default content fields

Coding-tool hooks (Claude Code, Codex, Antigravity)

The installers set these for you.

Variable What it does
ANOSYS_HOOK_APIKEY API key (Codex and Antigravity also read ANOSYS_API_KEY)
ANOSYS_HOOK_ENDPOINT_URL Send to a different ingestion URL
REDACTION true to redact prompts, responses and code before sending
ANOSYS_HOOK_DRY_RUN true to print payloads instead of sending them
ANOSYS_ENCRYPTION_KEY Passphrase for encrypting content fields
CODEX_HOME Codex only: Codex folder if not ~/.codex