Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

anosys-sdk-claude-code

Latest version: v0.5.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: anosys-ai, moisisv-anosys
1 Stars
0 Forks
4 Versions
833 Downloads
Python Repo language

Scan summary

anosys-sdk-claude-code was last scanned on 29 Nov 2026 at version 0.5.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions; the latest was published on 29 Nov 2026.
  • Findings: No rules fired in version 0.5.0.
  • Downloads: 833 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.5.0 LATEST 29 Nov 2026 No rules fired
0.4.1 18 Nov 2026 No rules fired
0.4.0 18 Nov 2026 No rules fired
0.2.6 26 Oct 2026 Not shown

No rules fired in 0.5.0

Findings

Findings for v0.5.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.5.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

anosys-sdk-claude-code

AnoSys observability and analytics hook for Anthropic's Claude Code.

This package automatically captures Claude Code's telemetry, session turns, context sizes, and API costs, and sends them to your AnoSys workspace. It integrates directly into Claude Code's native Stop hook mechanism.

Installation

You can run the installer interactively using npx:

npx anosys-sdk-claude-code install

The installer will prompt you for:

  1. AnoSys API Key for logs: Your ingestion API key from the AnoSys Console.
  2. AnoSys API Key for OTEL (optional): Your OpenTelemetry ingestion API key from the AnoSys Console.
Headless Installation

If you prefer to install without interactive prompts, you can pass the configuration via flags:

npx anosys-sdk-claude-code install \
  --api-key "your_logs_api_key" \
  --otel-key "your_otel_api_key"

A key passed with --api-key ends up in your shell history and is visible to other users in ps. To keep it off the command line, read it from a file (first line) or from ANOSYS_API_KEY:

npx anosys-sdk-claude-code install --api-key-file ~/.config/anosys/key -y
# or
read -rs ANOSYS_API_KEY && export ANOSYS_API_KEY && npx anosys-sdk-claude-code install -y

The installer uses --api-key, then --api-key-file, then $ANOSYS_API_KEY (then the older $ANOSYS_HOOK_APIKEY), and prints only the last four characters of the key. A key taken from the environment (or, for the Python installers, a .env file) that the console resolves to another integration, such as an app-SDK key, is not saved; if the console cannot be reached it is saved with a warning.

CLI Commands

The package provides a unified CLI to manage your hook installation safely. It modifies ~/.claude/settings.json and creates automatic backups (~/.claude/settings.json.{TIMESTAMP}.bak) before any changes.

status

Check the current installation status of the AnoSys hook:

npx anosys-sdk-claude-code status
install

Installs or updates the hook in your Claude Code settings:

npx anosys-sdk-claude-code install
uninstall

Safely removes the AnoSys hook and the environment variables it added from your settings (OTel values it replaced are restored):

npx anosys-sdk-claude-code uninstall
run

This command is executed automatically by Claude Code when a turn completes. You generally do not need to run this manually:

npx anosys-sdk-claude-code run

Claude Code OTel export (--otel-key)

--otel-key also turns on Claude Code's own OpenTelemetry export (metrics, events and, in beta, traces) to AnoSys. It writes these keys to the env block of ~/.claude/settings.json: CLAUDE_CODE_ENABLE_TELEMETRY, CLAUDE_CODE_ENHANCED_TELEMETRY_BETA (traces need it), OTEL_SERVICE_NAME, OTEL_TRACES_EXPORTER, OTEL_METRICS_EXPORTER, OTEL_LOGS_EXPORTER, OTEL_EXPORTER_OTLP_PROTOCOL, OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_HEADERS and OTEL_METRICS_INCLUDE_ACCOUNT_UUID=false. Claude Code's events include your account email.

  • Scope. Since Claude Code 2.1.128, Claude Code does not pass OTEL_* variables on to the processes it starts (Bash tool, hooks, MCP servers, language servers), so your own OpenTelemetry-instrumented apps, tests and dev servers run from Claude Code do not export to AnoSys. Older versions do pass them on; the installer warns when it finds an older Claude Code (or cannot read its version). Update with claude update. CLAUDE_CODE_* and the hook's own ANOSYS_* keys are still visible to those processes.
  • Your own collector wins. If OTEL_EXPORTER_OTLP_ENDPOINT or OTEL_EXPORTER_OTLP_HEADERS already points somewhere else, the installer leaves it and does not enable the AnoSys export.
  • Exact undo. The values --otel-key replaced are recorded in ~/.claude/state/anosys_otel_env.json. npx anosys-sdk-claude-code install --no-otel (or uninstall) puts back exactly what was there and leaves any key you changed since. Installing the hook again without --otel-key leaves the OTel export as it is.
  • Trade-off. Claude Code reads the OTLP key from OTEL_EXPORTER_OTLP_HEADERS, so the key is stored in settings.json (file mode 0600, as for the hook key). Claude Code's otelHeadersHelper setting could supply it from a script instead; the installer does not use it yet.

Privacy

By default the hook sends metadata only: ids, timestamps, models, token and cost numbers, durations, tool names, and the project, branch and OS username. Prompts, answers, tool output, commands and file contents are sent only after you accept the data-collection policy:

anosys-sdk-claude-code privacy          # show the current level and where it comes from
anosys-sdk-claude-code privacy full     # read and accept the policy, then send full content
anosys-sdk-claude-code privacy off      # keep the hook installed but send nothing
anosys-sdk-claude-code doctor           # installed copies, the active hook and local files
anosys-sdk-claude-code purge            # delete the local queue and logs

The hook reads only the session that just ended, never earlier history, and its log holds ids and sizes only. The old --redaction flag and REDACTION=true still work and mean metadata. See content controls for the 10 MB request limit, retries and encryption.

How it works

When installed, this package registers a Stop hook in ~/.claude/settings.json using the {"owner": "anosys"} tag. When Claude Code finishes a turn, the hook is invoked. It reads the transcript of the session that just ended and its subagents, incrementally maps new messages using the AnoSys schemas, estimates cost using the package's pricing table (Anthropic list prices; 5-minute and 1-hour cache writes priced separately; a model not in the table gets no cost rather than another model's price), applies the collection level, and sends the results in requests under 10 MB to your AnoSys workspace.

Content controls

See the content-controls reference for encryption coverage, default columns, size limits, and limitations. Encryption is opt-in and applies to selected string fields; it does not encrypt the complete record.

Anosys.ai MCP server and skill

Let Claude Code read your Anosys.ai workspace (architecture, problems, evals, traces and read-only SQL) through the Anosys.ai MCP server, and install the anosys-platform-intelligence skill. Create an MCP key (ak_mcp_...) in the Console under My Profile → MCP Keys; your ingestion key does not work here.

export ANOSYS_MCP_API_KEY=ak_mcp_...

# Add it when you install the hook
npx -y anosys-sdk-claude-code install --api-key YOUR_INGESTION_KEY --with-mcp -y

# Or on its own
npx -y anosys-sdk-claude-code mcp install -y
npx -y anosys-sdk-claude-code mcp status
npx -y anosys-sdk-claude-code mcp uninstall

With --workspace the server goes in the project's .mcp.json, which refers to ANOSYS_MCP_API_KEY instead of storing the key, so it is safe to commit. Use --skill-only to install just the skill. All options and other tools: anosys-sdk-mcp.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm anosys-sdk-claude-code

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229