Skip to content
pleach
Operate

Air-gapped deployment

The fail-closed air-gapped enforcement the runtime ships, and what you provide for an offline install and its supply-chain review.

Air-gapped deployment means the runtime makes no outbound TCP calls to public LLM endpoints, ships no telemetry beyond the network perimeter, and installs from a private registry or vendored snapshot. This page is for regulated-environment evaluators — defense contractors, FedRAMP-bound integrators, healthcare system operators, and financial-services teams with on-prem mandates.

The runtime enforces air-gapping today. Set airGapped: true and every outbound provider URL is checked against airGappedAllowedHosts before fetch() lands — and the allowlist defaults to empty, so an air-gapped runtime with no configured host rejects every call (fail-closed). The offline install and its supply-chain evidence are covered under What you provide.

What v1 ships today

Fail-closed host enforcement. SessionRuntimeConfig.airGapped: true routes every provider URL through checkAirGappedHost, which throws AirGappedHostRejectedError for any host not in airGappedAllowedHosts. The empty default rejects all — misconfiguration surfaces at the first call, not as a silent leak.

const runtime = createSessionRuntime({
  airGapped: true,
  airGappedAllowedHosts: ["llm.internal.example.mil"],
  openrouterBaseURL: "https://llm.internal.example.mil/v1/chat/completions",
})

In-perimeter endpoint override. The runtime's internal LLM paths (memory consolidation, fact extraction, context summarizer) resolve their endpoint from config.openrouterBaseURL, then process.env.PLEACH_OPENROUTER_BASE_URL, then the public OpenRouter default. Point either at an in-perimeter gateway and those paths never reach openrouter.ai. Under airGapped: true the fallback default is blocked anyway — the override is how you give the call somewhere valid to go.

Bring-your-own provider. The AgentProvider interface is the only boundary between the runtime and an LLM call. Point it at a private-endpoint URL and no inference traffic leaves the perimeter. AnthropicSdkProvider exposes a baseURL field for this; any OpenAI-compatible in-perimeter gateway works via AiSdkProvider.

Custom provider implementations. The AgentProvider contract is stable and documented. A host that runs an in-perimeter model endpoint can implement it directly — the runtime does not require a bundled provider.

No implicit telemetry. @pleach/core contains no analytics SDK, no crash reporter, and no usage callback to a third-party SaaS endpoint. The only outbound calls the runtime makes are the ones the host configures via the provider interface.

Configurable observability destinations. @pleach/observe ships data where the host configures it to ship. For contained deployments, the destination is a private SIEM or log aggregator inside the perimeter.

Plugin interception surface. The HarnessPlugin contract lets a host inject logic at every major runtime boundary — including tool calls that would otherwise reach external endpoints. This is where you add perimeter enforcement of your own.

PII scrubbing before persistence. @pleach/compliance runs scrubbers on the persistence boundary so classified or regulated identifiers don't reach storage. Scrubbers are configurable per environment; the four bundled scrubbers (SSN, Luhn, US-DL, KeyedRegex) cover common regulated-domain patterns.

What you provide alongside it

Your duties

SBOM review. Each published @pleach/* tarball carries sbom.cdx.json (CycloneDX) and sbom.spdx.json (SPDX), generated at release from its runtime dependencies. Feed them to your SCRM review. See Supply-chain risk & SBOM.

An outbound-call inventory. List every endpoint your deployment configures (provider URLs, @pleach/observe destinations, tool endpoints) and mark which are in-perimeter. That list is the evidence your compliance reviewer signs off on.

Setup

An offline install. Mirror the @pleach/* packages and their dependencies into a private registry or a vendored node_modules snapshot, so installs never reach the public npm registry.

Verification before you mirror. Packages publish with npm provenance. Run npm audit signatures on the install you mirror, and sign your mirror under your own identity.

An endpoint on every build. Set openrouterBaseURL (or PLEACH_OPENROUTER_BASE_URL) on every runtime, air-gapped or not, so the internal LLM paths always resolve to the endpoint you chose.

Where to go next