Scan your whole stack
From OX Research Newsroom
Are you using infercrane?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v2.3.1
infercrane was last scanned on 30 Nov 2026 at version 2.3.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 2.3.1 LATEST | 30 Nov 2026 | No rules fired |
| 2.3.0 | 30 Nov 2026 | No rules fired |
| 2.2.0 | 29 Nov 2026 | No rules fired |
| 2.1.0 | 27 Nov 2026 | Not shown |
| 2.0.2 | 23 Nov 2026 | Not shown |
Findings for v2.3.1. 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 2.3.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Typed Python client for the InferCrane control API and OpenAI-compatible inference gateway. The package has no runtime dependencies and supports Python 3.10 or newer.
python3 -m venv .venv
.venv/bin/python -m pip install 'infercrane==2.3.1'
Run your code with .venv/bin/python, or source .venv/bin/activate first. A stock Mac has no
python command, and Homebrew's python3 refuses pip install outside a virtual environment.
Use the SDK version from the same InferCrane release as the control plane.
Name the control plane and the key in the environment. For the hosted service, create a key in the
dashboard under Settings → Keys, or with infercrane principal create:
export INFERCRANE_URL=https://api.infercrane.com
export INFERCRANE_API_KEY=YOUR_CONTROL_API_KEY
from infercrane import InferCrane
infercrane = InferCrane()
For a self-hosted or local control plane, set INFERCRANE_URL to its address instead.
The control URL comes from the first of: the base_url argument, INFERCRANE_CONTROL_URL, and
INFERCRANE_URL (the CLI reads the same two variables in the same order). An empty variable counts
as unset. With none of them, a key passed as api_key goes to the hosted service; a key from
INFERCRANE_API_KEY is refused with an error instead, because a server's environment often holds
its own operator key there. The gateway URL is gateway_url when given, otherwise the control
URL's host.
Pass base_url, gateway_url, or api_key to the constructor when environment configuration is not
appropriate. Use ca_file, cert_file, and key_file for a private CA or mutual TLS. Keep
control-plane credentials in trusted server processes.
operation = infercrane.deploy(
model="Qwen/Qwen3-8B",
name="support-production",
endpoint_name="support-production",
cloud="runpod",
gpu="L40S",
min_replicas=1,
max_replicas=2,
)
completed = infercrane.wait(operation.id, timeout=900)
print(completed.status)
print(completed.result.get("endpoint_name"))
name identifies the deployment operation. endpoint_name is the stable model alias used by the
application and defaults to name.
wait observes durable server-side work. A timeout or process exit does not cancel the operation.
Call cancel(operation.id) only when cancellation is intentional.
for event in infercrane.stream_chat(
"support-production",
[{"role": "user", "content": "Summarize the incident."}],
):
print(event, flush=True)
AsyncInferCrane provides the same common workflows for async applications.
infercrane.set_slo_policy(
"support-production",
max_ttft_p95_ms=250,
max_error_rate=0.01,
)
recommendation = infercrane.recommend("support-production")
Recommendations preserve unavailable evidence instead of inventing a metric or price.
from infercrane import APIError, OperationFailed, OperationTimeout
try:
infercrane.wait(operation.id, timeout=30)
except OperationTimeout:
print("The operation is still running.")
except OperationFailed as error:
print(error.operation)
except APIError as error:
print(error.code, error.remediation)
The ergonomic methods cover common deployment and inference workflows. infercrane.api exposes the
complete generated control API with the same authentication and error contract.
See the Python SDK guide, control API, and security guidance.
Apache-2.0
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.