
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
@vantio/agent-sdk
Advanced tools
Vantio Optics Node SDK — shield() for Sight Loop observe. Metadata only; no prompts. Upgrade path to Gate and Phantom Engine.
Vantio is the infrastructure control layer for autonomous AI. This package is Vantio Optics Observe for Node: a trace ID around your agent. It does not wrap fetch by itself — Node wrap lives in @vantio/cli (vantio run).
Optics does not block on its own. Gate enforces rules on the wrapped path. Phantom Engine is runtime protection on enrolled Linux.
npm install @vantio/agent-sdk
import { shield } from "@vantio/agent-sdk";
await shield(async () => {
await runMyLLMAgent();
});
Wrap your agent in shield(). Vantio generates a trace ID and propagates it through async hops — without reading your prompts. Node LLM wrap (fetch, undici, http/https, …) is vantio run from @vantio/cli, not this package.
shield(callback, options?) — trace contextimport { shield } from "@vantio/agent-sdk";
const result = await shield(async () => {
return await runMyAgent();
});
// With options:
await shield(async () => { ... }, {
traceId: "custom-uuid", // optional — generated if omitted
});
withVantio() is an alias for shield() — use either.
reportAnomaly(event, opts?) — send metadata to Gate ingestimport { shield, reportAnomaly } from "@vantio/agent-sdk";
await shield(async () => {
await runMyAgent();
await reportAnomaly({
target_host: "api.openai.com",
bytes_severed: 14382,
// VantioActionTaken: "OBSERVED" | "ALLOWED" | "REDACTED" | "BLOCKED_HOST" | "BLOCKED_SIZE" | "BLOCKED_SPEND"
action_taken: "BLOCKED_HOST",
pid: process.pid,
});
});
Requires VANTIO_CLOUD_INGEST=true and VANTIO_API_KEY to be set. Non-fatal — telemetry failures never crash your agent.
Enforcement policy is served by the Vantio Pro control plane; the SDK applies it locally — Vantio is not a network proxy. The SDK ships two building blocks so you can fetch and enforce that policy yourself.
fetchPolicy(apiKey, opts?) — load the cloud-managed policyimport { fetchPolicy, type VantioPolicy } from "@vantio/agent-sdk";
const policy: VantioPolicy = await fetchPolicy(process.env.VANTIO_API_KEY!);
// { enforce, redact_pii, pii_types, allowed_hosts,
// blocked_hosts, max_request_bytes, spend_cap_usd }
GETs /api/v1/config with the x-vantio-identity header. Fails open: on any error — network failure, non-2xx, malformed body, or timeout — it returns a permissive copy of DEFAULT_POLICY so an unreachable control plane can never block your agent. Options: ingestUrl, timeoutMs (default 5000), signal.
redactPII(text, piiTypes?) — strip PII locallyimport { redactPII } from "@vantio/agent-sdk";
const { text, redactions } = redactPII("ssn 123-45-6789, mail a@b.com");
// text → "ssn [VANTIO_REDACTED:SSN], mail [VANTIO_REDACTED:EMAIL]"
// redactions → ["ssn", "email"]
A pure, side-effect-free function — nothing ever leaves your process. Supports ssn, email, credit_card, and phone (defaults to all four), using the same patterns and [VANTIO_REDACTED:LABEL] tokens as the CLI interceptor.
The VantioActionTaken union ("OBSERVED" | "ALLOWED" | "REDACTED" | "BLOCKED_HOST" | "BLOCKED_SIZE" | "BLOCKED_SPEND") is also exported for typing your own enforcement reporting.
getCurrentTraceId() — read the active trace IDimport { getCurrentTraceId } from "@vantio/agent-sdk";
await shield(async () => {
const id = getCurrentTraceId(); // always defined inside shield()
console.log(`Trace: ${id}`);
});
getCurrentTraceId(); // undefined — outside shield() frame
| Variable | Description |
|---|---|
VANTIO_API_KEY | Gate API key from a trial (hello@vantio.ai) or Stripe once live — /dashboard redirects to docs |
VANTIO_INGEST_URL | Ingest endpoint (default: https://vantio.ai) |
VANTIO_CLOUD_INGEST | Set to true to enable cloud routing |
VANTIO_AUDIT_MODE | Set to 1 to flag events as audit mode |
No code changes for Node — use the CLI:
npx @vantio/cli run node agent.js
Python needs vantio-agent-sdk on that interpreter. Prefixing vantio run python does not intercept by itself.
What never gets captured: prompts, completions, or any content from your requests.
FAQs
Vantio Optics Node SDK — shield() for Sight Loop observe. Metadata only; no prompts. Upgrade path to Gate and Phantom Engine.
We found that @vantio/agent-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.