diegosouzapw/OmniRoute · error · Error

openai/tunnel-client has no pinned build for

Error message

openai/tunnel-client has no pinned build for ${platform}/${arch}

What it means

Platform guard in tunnelPlatformAsset: the current platform/arch maps to no pinned tunnel-client build — only darwin, linux, win32 on arm64 or x64 are supported. Any other combination (e.g. FreeBSD, ia32) cannot download a matching openai/tunnel-client release asset; the input at fault is the host's process.platform/process.arch.

Solutions

  1. Run OmniRoute on a supported platform: macOS, Linux, or Windows with x64 or arm64
  2. Use Rosetta/x64 emulation on unsupported arch variants so process.arch reports x64
  3. Point the setup at an externally provided CDP browser endpoint instead of the local tunnel runtime where possible
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at open-sse/executors/chatgpt-web-codex/tunnelClient.ts:69 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25). Data as JSON: /api/errors/92643c50e1083540. Report an issue: GitHub.

Appendix: source

Thrown at open-sse/executors/chatgpt-web-codex/tunnelClient.ts:69

  startedAt: string;
};

function sha256(bytes: Uint8Array): string {
  return createHash("sha256").update(bytes).digest("hex");
}

export function tunnelPlatformAsset(platform = process.platform, arch = process.arch): string {
  const os =
    platform === "darwin"
      ? "darwin"
      : platform === "linux"
        ? "linux"
        : platform === "win32"
          ? "windows"
          : null;
  const cpu = arch === "arm64" ? "arm64" : arch === "x64" ? "amd64" : null;
  if (!os || !cpu) {
    throw new Error(`openai/tunnel-client has no pinned build for ${platform}/${arch}`);
  }
  return `tunnel-client-v${CHATGPT_WEB_CODEX_TUNNEL_VERSION}-${os}-${cpu}.zip`;
}

export function parseTunnelChecksum(text: string, asset: string): string {
  const entry = text
    .split(/\r?\n/)
    .map((line) => line.trim())
    .find((line) => line.endsWith(asset));
  const checksum = entry?.split(/\s+/)[0]?.toLowerCase();
  if (!checksum || !/^[a-f0-9]{64}$/.test(checksum)) {
    throw new Error(`SHA256SUMS.txt has no valid entry for ${asset}`);
  }
  return checksum;
}

async function download(url: string): Promise<Uint8Array> {
  const response = await fetch(url, { redirect: "follow" });

View on GitHub (pinned to a179ffed5b)