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

@spmos/local-proxy

Latest version: v0.1.4

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: spmos
2 Stars
0 Forks
3 Versions
40 Downloads
JavaScript Repo language

Scan summary

@spmos/local-proxy was last scanned on 30 Nov 2026 at version 0.1.4. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions; the latest 2 were published on 30 Nov 2026.
  • Findings: No rules fired in version 0.1.4.
  • Downloads: 40 downloads.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.4 LATEST 30 Nov 2026 No rules fired
0.1.3 30 Nov 2026 No rules fired
0.1.2 26 Aug 2026 No rules fired

No rules fired in 0.1.4

Findings

Findings for v0.1.4. 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.1.4; other versions have their own rules, not their own score.

README

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

SPM Local Proxy

SPM Local Proxy is a standalone terminal application that keeps the upstream provider credential on the user's machine while using hosted SPM memory and deterministic context compression.

Codex / Claude Code / SDK
          |
          | local harness token
          v
http://127.0.0.1:8765/v1
          |
          +-- SPM key ------> api.spmos.ai memory
          |
          +-- provider key -> configured provider Base URL

The proxy owns only the provider Base URL, provider API key, SPM key, and local listener authentication. It does not select, validate, cache, or rewrite a model. Downstream harnesses can call GET /v1/models through the proxy and send their selected model unchanged in Chat Completions, Responses, or Anthropic Messages requests.

Install

npm install --global @spmos/local-proxy
spm

The first run opens an English-only terminal wizard with blue SPM ASCII art. Provider search is derived from the models.dev models.json dataset delivered through jsDelivr, so it remains reachable in environments where models.dev cannot be fetched directly. Catalog model counts are discovery metadata only; model selection is never written to Local Proxy configuration.

Commands

spm setup
spm start
spm catalog --refresh
spm config
spm config path
spm config token
spm doctor
spm print-config codex
spm print-config claude

BYO provider configuration

The Custom BYO flow accepts:

  • HTTPS Base URL
  • OpenAI-compatible or Anthropic Messages wire API
  • bearer, x-api-key, or api-key authentication
  • API key
  • custom headers as JSON
  • query parameters as JSON

Use the literal value $API_KEY in a custom header or query parameter when the provider requires its secret outside the standard authentication header.

Secret handling

The configuration is written atomically to $SPM_CONFIG_HOME/local-proxy.json, $XDG_CONFIG_HOME/spm/local-proxy.json, or ~/.config/spm/local-proxy.json, with mode 0600 where supported. Secrets are masked by spm config and request/response bodies are never logged.

The following environment variables override stored secrets:

SPM_API_KEY
SPM_LOCAL_PROVIDER_API_KEY
SPM_LOCAL_PROXY_TOKEN

For the strongest process boundary, run the proxy in a dedicated shell or user service and remove the provider/SPM keys from the downstream harness process.

Protocol and security behavior

  • Listener binds only to 127.0.0.1, ::1, or localhost.
  • Browser Origin requests and unexpected Host values are rejected.
  • Provider endpoints must use HTTPS and resolve only to public addresses.
  • Client, edge, cookie, and SPM headers are removed before provider egress.
  • OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages are supported.
  • Codex zstd request bodies are decoded locally.
  • Provider JSON response bytes and SSE chunks are relayed without reserialization.
  • previous_response_id requests bypass recall mutation and compression.
  • If hosted recall fails, the complete original request is forwarded unchanged.

SPM still receives recall queries and memory content. This package keeps the provider credential local; it is not an offline or zero-disclosure memory mode.

Continuity and capture hygiene in 0.1.1

Version 0.1.1 adds a stricter continuity contract:

  • keep the two most recent eligible complete exchanges;
  • remove older history only when recall returns status=recalled, gate_reason=passed, and evidence from the exact removal set;
  • preserve the full request on empty, degraded, unrelated, protected-context, or provider-managed recall paths;
  • emit x-spm-continuity-state with the commit or safe-bypass reason;
  • transport source_kind and role_spans to hosted ingest while retaining a stable identity for exact repeated content.

The same release narrows streamed assistant capture to visible Chat content, Responses output_text, and Anthropic text_delta. Reasoning/thinking, tool arguments, signatures, and partial JSON are not sent to memory. These changes are covered by the repository's 32-test Local Proxy suite. The continuity gate also recognizes deterministic input identities created by 0.1.0, so an upgrade does not require old content to be re-ingested before it can prove continuity.

Tool-output elision in 0.1.2

Version 0.1.2 ports the hosted gateway's tool-output elision to the local path, across all three protocols (Chat Completions tool messages, Responses function_call_output, Anthropic tool_result blocks):

  • tool outputs older than proxy.elisionKeepRounds assistant rounds (default 4) become candidates;
  • a candidate is replaced by a bounded stub only when the identical content is already persisted in hosted SPM and extraction-ready (readiness is checked per request through the memory status tool); otherwise the full output is kept and captured in the background so a later turn can elide it;
  • Anthropic tool_use/tool_result pairing is never broken: only the block content is stubbed, and blocks carrying cache_control breakpoints are never touched;
  • responses carry x-spm-elided-items / x-spm-elided-tokens, and x-spm-continuity-state reports elided_tool_output when a request was served with stubs.

Configuration (all optional):

  • proxy.elisionEnabled (default true);
  • proxy.elisionKeepRounds (default 4);
  • proxy.elisionCaptureLimit (default 8, bounds background capture work per request).

Elision is best-effort: any readiness-check or capture failure leaves the request body untouched.

End-user partitions and live doctor in 0.1.3

Version 0.1.3 adds tenant-internal end-user partitions and a live doctor.

Partitions let one SPM key serve many end users with isolated memory spaces (the key needs the memory:partition scope):

  • spm.userPartition in the configuration (the setup wizard asks for it) sets the default partition for every memory call;
  • SPM_USER_PARTITION overrides it without editing the file;
  • the per-request header x-spm-user-partition overrides it for a single request, so one Local Proxy can serve many downstream users.

Partition values must match ^[A-Za-z0-9][A-Za-z0-9._:@-]{0,127}$ — use a stable opaque id (for example your internal user UUID), not a secret or a display name. An invalid header value fails the request closed with 400 spm_invalid_user_partition rather than silently mixing memory spaces.

spm doctor now also verifies the node.js version, that the configured port is free, and — live — that the SPM API is reachable and accepts the key, closing the "doctor passes but the live request fails" gap. spm start prints the active memory mode and partition at launch.

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 @spmos/local-proxy

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

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229