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

@agentproto/inference-endpoint

Latest version: v1.0.8

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: agentiknet
11 Stars
0 Forks
9 Versions
2.9K Downloads
TypeScript Repo language

Scan summary

@agentproto/inference-endpoint was last scanned on 28 Nov 2026 at version 1.0.8. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 9 versions; the latest 4 were published within 6 days (23–28 Nov 2026).
  • Findings: No rules fired in version 1.0.8.
  • Downloads: 2,928 downloads.

Versions

9 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.8 LATEST 28 Nov 2026 No rules fired
1.0.7 27 Nov 2026 No rules fired
1.0.6 24 Nov 2026 No rules fired
1.0.5 23 Nov 2026 Not shown
1.0.4 17 Nov 2026 Not shown

No rules fired in 1.0.8

Findings

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

README

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

@agentproto/inference-endpoint

A lightweight multi-surface LLM proxy gateway. It exposes three API surfaces from a single port:

  • POST /v1/messages — Anthropic Messages compatibility. Claude-shaped model aliases are supported only through an explicit local compatibility pack.
  • POST /v1/chat/completions — OpenAI Chat Completions compatibility with transparent provider/model routing.
  • POST /v1/responses — OpenAI Responses API facade for Codex custom providers.

Requests are fanned out to upstream providers — Moonshot, OpenRouter, ZAI/Zhipu, Groq, xAI, direct OpenAI, Nebius AI Studio, a self-hosted "forge" server for fine-tunes, and any number of named local/LAN model servers (Ollama, llama-server, vLLM, …, configured from ~/.agentproto/llm-endpoints.json) — using provider-native model references. The proxy also handles Anthropic↔OpenAI schema translation, per-provider tool caps, orphaned-tool-call repair, and thinking-block stripping where needed.

  • Package: @agentproto/inference-endpoint
  • Entry: src/cli.ts → start() in src/index.ts
  • Default port: 18090 (override with LLM_ENDPOINT_PORT, or PORT)

Credentials this proxy handles

Read this before pointing the proxy at anything you care about. The package ships no credentials — every key below is one you supply — but it is a credential-forwarding component, so its handling rules are part of its contract.

  • Per-provider API keys resolve from one env var each (resolveSecretKeys), or from ~/.agentproto/providers.json. They are injected at proxy boot and never logged.
  • Anthropic subscription OAuth tokens (sk-ant-oat…) are supported as an alternative to an API key on the anthropic upstream. When one is resolved, the proxy sends Authorization: Bearer <oat> plus anthropic-beta: oauth-2025-04-20 and anthropic-version: 2023-06-01. This path is fail-closed: an OAuth credential is only ever sent to the anthropic upstream, and every other route 401s rather than leaking it to a third-party provider. Batch creation also refuses an OAuth token outright, because the Anthropic Batches API only accepts API keys.
  • A stored OAuth token works while it is valid. The proxy does not yet drive a self-refreshing source (source: "claude-code-oauth") to re-mint an expired one.
  • KeychainStore is macOS-only; elsewhere the proxy falls back to the per-provider env key.

Fronting a personal Claude subscription through a shared gateway may not be compatible with your Anthropic plan's terms — that is a question about your deployment, not about this package. If you expose the proxy beyond localhost, read Securing a public deployment first: the access gate is off by default.


Quick start (client config)

Point any Anthropic- or OpenAI-compatible client at the proxy:

Setting Value
Base URL http://localhost:18090/v1 (local), or your own public origin + /v1
API key The proxy injects the real upstream key server-side, so the client key is never your provider key. If the inbound access gate is enabled, send one of its tokens as the bearer; if it is not, any non-empty value passes.

The client asks for a model by its provider-transparent reference (provider/model, e.g. moonshot/kimi-k2.7-code, openai/gpt-4.1); the proxy routes it to the right upstream endpoint.


Model catalog

Transparent routing (provider/model)

On the OpenAI surfaces (/v1/chat/completions and /v1/responses) the model field is parsed as provider/model:

Provider Example reference Upstream endpoint
Moonshot moonshot/kimi-k2.7-code api.moonshot.ai/v1/chat/completions
OpenRouter openrouter/anthropic/claude-3-5-sonnet-20241022 openrouter.ai/api/v1/chat/completions
Requesty requesty/sference/thinkingcap-qwen3.6-27b router.requesty.ai/v1/chat/completions
ZAI zai/glm-5.2 open.bigmodel.cn/api/paas/v4/chat/completions
Groq groq/llama-3.3-70b-versatile api.groq.com/openai/v1/chat/completions
xAI xai/grok-4.5 api.x.ai/v1/chat/completions
OpenAI openai/gpt-4.1 api.openai.com/v1/chat/completions
Forge (self-hosted) forge/my-lora-v3 $FORGE_BASE_URL/chat/completions
Nebius AI Studio nebius/meta-llama/Llama-3.1-8B-Instruct api.studio.nebius.com/v1/chat/completions (or $NEBIUS_BASE_URL)

You can also force the provider with ?p=<provider> and send a bare model id.

Adding an OpenAI-compatible upstream provider

forge and nebius are both configurable providers: any OpenAI-compatible upstream wired up from exactly two env vars, <PROVIDER>_BASE_URL (scheme, host, port, path prefix) and <PROVIDER>_API_KEY (sent as Authorization: Bearer <key>) — no code change needed to point either one at a different host. They differ in one way: whether the base URL has a working default.

Provider ..._BASE_URL Default when unset ..._API_KEY
forge (self-hosted) FORGE_BASE_URL (none — provider only exists once set) FORGE_API_KEY — optional; omitted entirely, no Authorization header sent, for a server with no auth (private network)
nebius (Nebius AI Studio) NEBIUS_BASE_URL https://api.studio.nebius.com/v1 NEBIUS_API_KEY — required, like every other provider (401 when missing)

Both http:// and https:// are supported, with any host/port/path prefix — unlike every fixed-hostname provider above, these two read their wire format from the env var rather than a hardcoded https:// + well-known host. An unset FORGE_BASE_URL (no default) or a malformed override on either provider makes forge/.../nebius/... requests fail with a clear 4xx, never a crash.

Both work on all three surfaces (/v1/messages, /v1/chat/completions, /v1/responses) with the same Anthropic↔OpenAI translation, streaming, and tool-cap handling as every other OpenAI-compatible provider. GET /v1/models additionally proxies GET ${FORGE_BASE_URL}/models and merges the results into the default pack's listing (ids prefixed forge/) — forge-only, since its LoRA adapters are registered on the server itself rather than known ahead of time; nebius's catalog is the well-known set of ids you already pass in.

# forge — self-hosted vLLM, no auth
curl http://localhost:18090/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{"model":"forge/my-lora-v3","messages":[{"role":"user","content":"hi"}]}'

# nebius — hosted, requires NEBIUS_API_KEY
curl http://localhost:18090/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{"model":"nebius/meta-llama/Llama-3.1-8B-Instruct","messages":[{"role":"user","content":"hi"}]}'
Named endpoints — N local/LAN model servers (~/.agentproto/llm-endpoints.json)

forge is one keyless self-hosted server. Real setups often have several — Ollama, llama-server, vLLM — each on its own host/port, possibly on another LAN machine. Named endpoints generalize forge's mechanism to N of them, configured from a JSON file instead of a pair of env vars per server:

// ~/.agentproto/llm-endpoints.json (path overridable via LLM_ENDPOINT_ENDPOINTS_FILE)
{
  "endpoints": [
    {
      "id": "bonsai",
      "kind": "openai",
      "baseUrl": "http://192.168.1.20:8081/v1",
      "apiKeyEnv": "BONSAI_API_KEY",
      "defaultRequestFields": { "chat_template_kwargs": { "enable_thinking": false } },
      "timeoutMs": { "firstTokenMs": 180000 }
    },
    { "id": "ollama", "kind": "openai", "baseUrl": "http://192.168.1.20:11434/v1", "connector": "ollama" },
    {
      "id": "lmstudio",
      "kind": "openai",
      "baseUrl": "http://127.0.0.1:1234/v1",
      "connector": "lmstudio",
      "defaultRequestFields": { "reasoning_effort": "none" }
    }
  ]
}

The field names deliberately mirror openagentik/router's providers[] schema (kind, baseUrl, apiKeyEnv, defaultRequestFields, timeoutMs) so a config is portable between the two. Each entry becomes a routable provider <id>/<model> — bonsai/bonsai-27b, ollama/qwen2.5-coder — going through the exact same dispatch path as forge/nebius above: all three surfaces, Anthropic↔OpenAI translation, streaming, tool-cap handling, and GET /v1/models merging (an unreachable endpoint is skipped with a warning, never a 500 for the whole listing). forge itself keeps working unchanged — it's the implicit endpoint that FORGE_BASE_URL/FORGE_API_KEY configure; a file entry may not reuse the id "forge".

  • connector names which local/LAN runtime baseUrl points at — lmstudio, ollama, vllm, llama-server, or the generic openai-compatible fallback (see src/connectors.ts). Optional: it never affects request routing, only which connector's listModels/request quirks agentproto llm endpoints test/detect/doctor use to show loaded models and context size. An entry with no connector is treated as openai-compatible.
  • apiKeyEnv names an env var (never the key itself). Absent, or the env var unset, means the endpoint is always keyless — no Authorization header sent, same as forge with no FORGE_API_KEY.
  • defaultRequestFields is any set of top-level OpenAI-compatible request fields, merged UNDER the client's own request (a client-supplied top-level key always wins; for an object-valued key present on both sides — e.g. chat_template_kwargs — the merge goes one level deep, client sub-keys winning). It cannot set model, messages, stream, tools, or input — those would override routing/auth, not just default a parameter.
    • chat_template_kwargs is the vLLM OpenAI-compatible extension forge already documents above. Needed in practice: Qwen3.6-based models (e.g. a Bonsai-served 27B) default to a "thinking" chat template and, on a tight max_tokens budget, can spend the whole budget reasoning and return empty content — enable_thinking: false avoids that unless the caller explicitly opts back in.
    • A plain top-level field works the same way for a server that doesn't honour chat_template_kwargs or Anthropic's thinking/OpenAI's reasoning params at all: LM Studio serving prism-ml/bonsai-27b ignores both and only respects a top-level reasoning_effort: "none" to cut reasoning to 0 tokens. On the Anthropic /v1/messages surface, an explicit client thinking: {type: "enabled"} withholds a default reasoning_effort rather than forcing it off.
  • When the upstream still returns only reasoning_content (no visible content) — a model-level defect, not a config one — set LLM_ENDPOINT_PASSTHROUGH_THINKING=1 to surface it as an Anthropic thinking block instead of an empty message.
  • GET /v1/endpoints (and /endpoints) reports live health per endpoint — forge (if configured) plus every named endpoint, never nebius (a hosted provider with a well-known catalog, not a local/LAN server): {id, baseUrl (no credential), reachable, models, latencyMs}. Gated by the same access-token check as /v1/upstreams (not the /v1/models public exemption).
  • A packs.local.json route may target a named endpoint id as its provider — an id that resolves to neither a canonical upstream, forge, nebius, nor a configured endpoint is a clear load-time error instead of a confusing 400 the first time a client hits that code.
curl http://localhost:18090/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{"model":"bonsai/bonsai-27b","messages":[{"role":"user","content":"hi"}]}'

curl http://localhost:18090/v1/endpoints
Anthropic Messages surface (/v1/messages)

The default public pack lists provider-transparent model IDs (the same values you would send to the upstream provider). Real Claude model IDs are preserved only when they route to an actual Anthropic target.

If you need the claude CLI or another Anthropic-only client to accept non-Anthropic backends, either flip on the Anthropic-style format (below — works with any pack) or create a local compatibility pack (further below). Both surface equivalentClaudeName aliases that are matched only when enabled.

coding pack (curated OpenRouter coding models)

The committed coding pack is a small, production-only portfolio of coding models, all routed through OpenRouter's native Anthropic-compatible endpoint:

Code (transparent id) Tier → family
openai/gpt-5.5 extra-high → fable
anthropic/claude-opus-4.8 high → opus
deepseek/deepseek-v4-pro high → opus
anthropic/claude-sonnet-5 medium → sonnet
z-ai/glm-5.2 medium → sonnet
minimax/minimax-m3 small → haiku

Select it like any pack (X-Proxy-Pack: coding, ?pack=coding, or /v1/coding/messages). The list is curated by hand against OpenRouter's live Models API/rankings (GET https://openrouter.ai/api/v1/models?supported_parameters=tools); availability and pricing drift, so re-check before relying on a route. Anything outside the pack is still reachable via transparent openrouter/vendor/model routing.

Anthropic-style format (?format=anthropic)

Any pack can be relabeled on the fly so an Anthropic-only client gets Claude-shaped model ids — without impersonating a real Anthropic model. Send X-Proxy-Format: anthropic (or ?format=anthropic) and each route's id becomes an opaque, deterministic claude-<family>-<sha> value, where the family comes from the route's tier (extra-high→fable, high→opus, medium→sonnet, small→haiku) and the suffix is a sha of the upstream id. The real route stays as the model's display_name.

Discover the current ids, then use one as the model:

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 @agentproto/inference-endpoint

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

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

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

Frame 2085668439 (1)
Group 1261154229