OpenAI Tunnel Client

Developer toolsAgent frameworks and SDKs

Customer-run client for Secure MCP Tunnel: connect private or localhost MCP servers to ChatGPT, Codex, the Responses API, and AgentKit without exposing them to the public internet.

Your AI app calls the OpenAI Tunnel Client MCP server, which does the developer tools and agent frameworks and SDKs work and sends the result back to the chat.

About OpenAI Tunnel Client

OpenAI Tunnel Client is the official MCP server from openai, filed in our directory under developer tools and agent frameworks and sdks. Customer-run client for Secure MCP Tunnel: connect private or localhost MCP servers to ChatGPT, Codex, the Responses API, and AgentKit without exposing them to the public internet.

At a glance

Publisher
openai, the company behind the product
Runs
See the README for setup
Written in
Go
License
Apache-2.0
GitHub stars
670

How to set up OpenAI Tunnel Client

  1. Follow the install steps in the OpenAI Tunnel Client README; it is written in Go, so have that toolchain ready.
  2. Check the OpenAI Tunnel Client README for keys or settings; the registry lists none that OpenAI Tunnel Client requires.
  3. Add OpenAI Tunnel Client to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the OpenAI Tunnel Client tools to confirm the connection.
  5. Run one read-only task with OpenAI Tunnel Client first, and keep your app asking before each tool call until the results look right.

OpenAI Tunnel Client compared with similar servers

  • Lemma Platform by lemma-work has fewer GitHub stars than OpenAI Tunnel Client (664 against 670); OpenAI Tunnel Client is official while Lemma Platform is a community server, and both run locally.
  • Client CLI by adhikasp has more GitHub stars than OpenAI Tunnel Client (675 against 670); OpenAI Tunnel Client is official while Client CLI is a community server, and both run locally.
  • Home Assistant Vibecode Agent by Coolver has fewer GitHub stars than OpenAI Tunnel Client (663 against 670); OpenAI Tunnel Client is official while Home Assistant Vibecode Agent is a community server, and both run locally.

Before you connect OpenAI Tunnel Client

  • Give OpenAI Tunnel Client its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each OpenAI Tunnel Client tool call until you trust what it does with them.
  • Treat text that OpenAI Tunnel Client fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for OpenAI Tunnel Client on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for OpenAI Tunnel Client

How marketing and sales teams put OpenAI Tunnel Client to work, by company size. Pick the size closest to yours and start OpenAI Tunnel Client on one use case.

Small business

  • A small business with a developer can use OpenAI Tunnel Client to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask OpenAI Tunnel Client to explain and fix a marketing site issue without context switching between tools.
  • A small business with a developer can use OpenAI Tunnel Client to build one focused agent, such as lead follow-up, without a big platform.
  • OpenAI Tunnel Client runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use OpenAI Tunnel Client to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect OpenAI Tunnel Client to keep scripts and automations documented and versioned as they change.
  • Growth engineering teams can use OpenAI Tunnel Client to build agents that combine CRM, analytics and content tools behind one workflow.
  • Start OpenAI Tunnel Client on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out OpenAI Tunnel Client with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on OpenAI Tunnel Client so web and marketing engineering share one reviewed way of working with AI.
  • Enterprises can build on OpenAI Tunnel Client with their own identity, policy and evaluation layers, so agents meet the same bar as other software.
  • Because OpenAI Tunnel Client comes from openai, the company behind the product, it follows that product's own auth and permissions, which security teams usually prefer.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

OpenAI Tunnel Client README

From openai/tunnel-client on GitHub, shared under its Apache-2.0 license. Images are left out; the original has them.

README.md

Secure MCP Tunnel client

tunnel-client is the customer-run agent behind Secure MCP Tunnel. It connects a private or localhost MCP (Model Context Protocol) server to ChatGPT, Codex, the Responses API, and AgentKit through an OpenAI-hosted MCP tunnel endpoint, while keeping the MCP server off the public internet.

This CLI and its Go SDK run beside your private MCP server. Applications call the OpenAI-hosted /v1/mcp/{tunnel_id} endpoint through their MCP transport; the runtime receives those requests and delivers responses. The poll/response endpoints are the runtime's queue protocol for client implementers. See the architecture for the request flow and the protocol when building a compatible runtime.

Use it when:

  • You have an MCP server on a laptop, VM, Kubernetes cluster, or private network and need an OpenAI-hosted product to reach it.
  • Security will not approve a new inbound firewall rule or public endpoint for the MCP server.
  • You want an operator-visible daemon with /healthz, /readyz, /metrics, and /ui before a connector or API call depends on it.

If you searched for "secure MCP tunnel", "MCP tunnel ChatGPT", "connect local MCP server to ChatGPT", "connect local MCP server to Codex", "localhost to ChatGPT", or "Codex local MCP", start with tunnel-client help quickstart, then read the onboarding guide below.

Start Here

  • Selecting a regional control-plane endpoint? Use --control-plane.residency, CONTROL_PLANE_RESIDENCY, or YAML control_plane.residency. See the endpoint catalog and mTLS settings. Endpoint selection is independent of regional Tunnel service availability.
  • Need the shortest working path from localhost or a private MCP server to ChatGPT or Codex? Start with docs/onboarding.md.
  • Need the customer-shareable network and trust-boundary story? Read docs/architecture.md.
  • Need roles, groups, tunnel IDs, or API keys? Read docs/permissions.md.
  • Need Docker, Kubernetes, or VM deployment guidance? Read docs/deployment/overview.md.
  • Need to debug readiness, connector discovery, or OAuth? Read docs/troubleshooting.md.
  • Building a compatible client in another language? Read docs/protocol.md and use docs/openapi.json. Optional client features use the common X-Tunnel-Client-Capabilities header.
  • Upgrading for server-directed polling placement? Read the routing correction and activation notes. Supporting clients work with existing services immediately; corrections are enabled separately after client release. No configuration change is needed.
  • Using MCP timing or distributed tracing? Read the timing release and rollback guidance. Trace forwarding is disabled by default; opt in with --mcp.forward-trace-context to carry W3C trace context in MCP params._meta over stdio and Streamable HTTP. Opt-in local span export uses --tracing.enabled --tracing.file=/private/new-trace.jsonl. Complete traces require compatible service queue handoff and caller parent propagation first.
  • Forwarding the original HTTP request ID? MCP HTTP forwarding is enabled by default. Use --forward-request-id=mcp,harpoon to include Harpoon REST requests, --forward-request-id=mcp,oauth to include eligible queued OAuth discovery requests, or --forward-request-id=none to disable automatic forwarding. The same setting is available as FORWARD_REQUEST_ID or top-level YAML forward_request_id; see request ID forwarding.
  • Using a namespaced tunnel ID? Preserve the full ID returned by the service. The client accepts legacy IDs and aliases with a four-character namespace; see tunnel identifiers.
  • Embedding an MCP server directly in a Go process? Use the Go SDK with the MCP SDK's in-memory transport; see examples/go-sdk-inmemory.

Try the embedded demo

With a runtime API key and tunnel ID, run the built-in server_info, echo, and uppercase tools without a separate MCP server:

export CONTROL_PLANE_API_KEY="sk-..."
export CONTROL_PLANE_TUNNEL_ID="tunnel_0123456789abcdef0123456789abcdef"
tunnel-client run --embedded-stateless-mcp-stub --health.listen-addr 127.0.0.1:0

--embedded-stateless-mcp-stub uses stateless MCP handling even when a client sends initialize and notifications/initialized. It issues no MCP session ID, and these demo tools do not require MCP session affinity between processes. OAuth and application state have separate requirements.

--embedded-mcp-stub keeps its existing compatibility behavior: legacy initialization and session requests use stateful handling; self-contained modern discovery and tool requests use stateless handling. Choose one embedded mode per run. Both share the embedded listen-address, Unix-socket, server-name, and server-version options; see embedded demo configuration for defaults and target conflicts.

Embed as a Go SDK

The module can run in the same process as a Go MCP server. The MCP server does not need to bind a port or use stdio: give the server side of an in-memory MCP transport pair to your server and the client side to tunnelclient.New.

go get github.com/openai/tunnel-client
import (
    "context"

    "github.com/modelcontextprotocol/go-sdk/mcp"
    tunnelclient "github.com/openai/tunnel-client"
)

ctx := context.Background()
server := mcp.NewServer(&mcp.Implementation{Name: "my-server", Version: "1.0.0"}, nil)
serverTransport, tunnelTransport := mcp.NewInMemoryTransports()
go server.Run(ctx, serverTransport)

client, err := tunnelclient.New(tunnelclient.Config{
    TunnelID: "tunnel_0123456789abcdef0123456789abcdef",
    APIKey:   apiKey,
}, tunnelTransport)
if err != nil {
    return err
}
return client.Run(ctx)

The runnable Go SDK example registers an echo tool and connects it to the OpenAI Tunnel control plane.

If your gateway serves tunnel runtime requests under a custom path, set --control-plane.tunnel-base-path=/custom/tunnels or set Config.TunnelBasePath in the Go SDK. The default is /v1/tunnels. To send an extra header on runtime requests, pass --control-plane.extra-headers "X-Example-Header: example" or set Config.ControlPlaneExtraHeaders in the SDK. Configuration reference

Documentation Map

Install with Homebrew

On macOS, Homebrew is the supported installation path. Directly downloaded release ZIPs are not currently notarized and can be blocked by Gatekeeper. If a manually downloaded archive is blocked, do not use xattr, spctl, or Open Anyway to bypass the check; install from the official OpenAI tap instead:

brew install openai/tools/tunnel-client

Verify the installed version, then start with the guided setup:

tunnel-client --version
tunnel-client help quickstart

The Formula installs the matching tunnel-client, bundled cloudflared, and companion manifest together, while exposing only the tunnel-client command. It also installs Bash, Zsh, and Fish completions for that version. If your shell does not load them automatically, follow Homebrew's shell completion setup. For Docker, Kubernetes, or VM deployments, see docs/deployment/overview.md.

Release maintainers update the Formula and stable release catalog together.

To generate the shareable guide output locally:

make end-user-guide-screenshots
make end-user-guide-html
make end-user-guide-slides
Start at macOS login

The Homebrew Formula supports brew services. It supervises tunnel-client run using the profile at $(brew --prefix)/etc/tunnel-client.yaml, starts at login, and restarts the runtime after it exits. Installation and upgrades do not create or replace that profile.

First, select the profile you already configured. If it belongs to a managed alias, find its profile_path with tunnel-client runtimes status <alias> --json, then run tunnel-client runtimes stop <alias> before starting the service. Copy the profile to the service location, preserving your custom settings:

service_profile="$(brew --prefix)/etc/tunnel-client.yaml"
if [ -e "$service_profile" ]; then
  cp -p "$service_profile" "$service_profile.backup.$(date +%Y%m%d%H%M%S)"
fi
install -m 600 /absolute/path/to/existing-profile.yaml "$service_profile"

Use absolute paths in this profile, including paths to MCP executables, working directories, and secret files. The service includes Homebrew's bin and sbin on PATH, but does not load your interactive shell configuration. Replace shell-only env: references with persistent references such as this existing profile field:

control_plane:
  api_key: file:/Users/YOU/.config/tunnel-client/runtime.key

Store the runtime API key in that file with permissions 0600; keep its directory private too. The service definition contains the profile path, not the key. Validate the profile, then start the service as your logged-in user, without sudo:

tunnel-client doctor --profile-file "$(brew --prefix)/etc/tunnel-client.yaml"
brew services start openai/tools/tunnel-client
brew services info openai/tools/tunnel-client
tunnel-client health --url http://127.0.0.1:8080 --json

The health command above uses the default listener. If your profile configures a different health address or a health.url_file, use that address or health --url-file /absolute/path/to/health-url instead. An active service alone does not mean the tunnel is ready. Inspect $(brew --prefix)/var/log/tunnel-client.log and any log.file destination in your profile if startup fails.

Use Homebrew to manage this runtime:

# Reload the profile/key or pick up the installed version after a brew upgrade.
brew services restart openai/tools/tunnel-client

# Stop the runtime and disable automatic login startup.
brew services stop openai/tools/tunnel-client

The service uses Homebrew's stable opt path across upgrades. The CLI's runtimes status and runtimes stop commands manage its own detached processes; they do not discover or control the Homebrew service. Do not run runtimes connect for the same tunnel while the service is active: that command writes a generated profile and starts a separate runtime. Stop the service before switching back to CLI management. Keep only one runtime active for the tunnel during the switch, especially for stdio or stateful MCP servers.

The per-user macOS service runs during your login session, not before login or after logout. Sleep suspends the Mac's work; wake allows the runtime's network retries to resume. Homebrew's launchd service restarts an exited process, but does not restart one merely because readiness fails. Start a local HTTP MCP server through its own supervisor. For a server that starts later, set mcp.startup_wait_timeout (for example, 2m) in the profile to allow startup connection retries. If that window expires, restart the service after the MCP server is available; the process can remain alive with its startup probe failed. After a server restart, check readiness and logs; existing MCP sessions may need to be initialized again. For a stdio target, the runtime owns the MCP child. Do not assume interrupted tool calls are replayed. See Supervising startup for interpreting process liveness, OAuth discovery, readiness, and polling state.

For Codex / Copilot

If you want the shortest supported path from a local or localhost MCP server to ChatGPT or Codex, start with tunnel-client help quickstart. For Codex plugin lifecycle work, use the native tunnel-client runtimes ... and tunnel-client admin-profiles ... command trees surfaced by tunnel-client help plugin.

Supervision choice:

  • Use tunnel-client run ... for a foreground daemon attached to the current terminal or supervised by the OS; see macOS login startup.
  • For a long-lived local runtime managed by Codex, prefer tunnel-client runtimes connect .... Do not use nohup or disown as the tunnel-client supervision path.
  • After runtimes connect, check tunnel-client runtimes status <alias> before reporting success. Only report success when status shows the managed runtime running with health reported. Use --json when Codex needs the explicit process_running, healthy, and ready fields.

Use these exact setup pages during first use:

  • Tunnels management and supported tunnel-client download: https://platform.openai.com/settings/organization/tunnels
  • Organization roles: https://platform.openai.com/settings/organization/people/roles
  • Organization groups: https://platform.openai.com/settings/organization/people/groups
  • Runtime API keys: https://platform.openai.com/settings/organization/api-keys
  • Admin API keys: https://platform.openai.com/settings/organization/admin-keys
  • ChatGPT connector settings: https://chatgpt.com/#settings/Connectors

Which value comes from where:

  • CONTROL_PLANE_TUNNEL_ID: create or inspect it in Tunnels management, or via tunnel-client admin tunnels create|list|get ... with OPENAI_ADMIN_KEY.
  • CONTROL_PLANE_API_KEY: create it in Runtime API keys; this is the key used by tunnel-client doctor and tunnel-client run.
  • For AWS workload identity, set CONTROL_PLANE_AWS_IDENTITY_PROVIDER_ID and CONTROL_PLANE_AWS_SERVICE_ACCOUNT_ID.
  • OPENAI_ADMIN_KEY: only for tunnel-client admin tunnels list|create|update|delete. Do not use the admin key for the long-lived daemon.

Required tunnel permissions:

  • Runtime users and the principal that creates CONTROL_PLANE_API_KEY need Tunnels Read + Use.
  • Tunnel managers need Tunnels Read + Manage, plus Use if they also run the daemon or attach ChatGPT connectors.
  • Admin-key creators need the Platform admin-key permission in addition to any tunnel permissions they need.

See docs/permissions.md for the group/role workflow and screenshots.

Binary-first flow:

tunnel-client help quickstart
tunnel-client profiles samples list
tunnel-client profiles samples show sample_mcp_enterprise_proxy
tunnel-client init --sample sample_mcp_stdio_local --profile local-stdio --tunnel-id tunnel_0123456789abcdef0123456789abcdef --mcp-command "python /path/to/server.py"
tunnel-client doctor --profile local-stdio --explain
tunnel-client run --profile local-stdio
tunnel-client run --profile-file ./profiles/local-stdio.yaml

Stdio deployment limit: run only one active tunnel-client instance per tunnel ID when using --mcp.command / MCP_COMMAND. Multiple active instances sharing that tunnel ID are not supported, including overlap during a restart. Each instance launches a separate MCP child, and initialization and later requests can reach different children. Stop the old instance before starting its replacement, or use distinct tunnel IDs for independent instances. See stdio deployment limits.

By default, tunnel-client restarts a supervised stdio child after an unexpected exit, stdout EOF, or stdin write failure. Calls in progress may fail, and legacy callers must initialize the replacement child before retrying. If your deployment uses an external process supervisor to restart the whole client, set --mcp.stdio-failure-policy=exit, MCP_STDIO_FAILURE_POLICY=exit, or YAML mcp.stdio_failure_policy: exit. That setting restores nonzero client exit on these failures; intentional shutdown still exits successfully. Remove the new flag or YAML key before downgrading to a version that does not recognize it.

Stdio initialization is checked automatically. Legacy calls require a successful initialize exchange followed by notifications/initialized; premature calls return mcp_initialization_required immediately. Self-contained MCP requests using protocol version 2026-07-28 or later pass through without a handshake. The caller owns initialization, including after child replacement. See configuration for lifecycle behavior.

If you need the tunnel id or runtime/admin keys first, open the matching URL above before running init. If your rollout has self-serve tunnel access, create the tunnel yourself in Tunnels management or with tunnel-client admin tunnels create, then export the returned id as CONTROL_PLANE_TUNNEL_ID and a separate runtime key as CONTROL_PLANE_API_KEY. Create or verify the connector from the ChatGPT settings URL above only while tunnel-client run ... is healthy, and keep the daemon running for connector discovery and every MCP call from ChatGPT.

The Platform Tunnels page download button is sourced from tunnel-service's gated tunnel metadata response. When a new public tunnel-client release becomes the supported download, update tunnel-service's hard-coded public artifact URL alongside the release handoff.

Validate a source checkout with native Go tooling:

go build ./...
go test ./...

Independent tests, subtests, and fuzz seed cases use t.Parallel(). Give each case its own mutable fixtures, and use t.Cleanup for resources shared by parallel children. Keep dependent state transitions in one test. Keep tests that mutate process-wide globals, environment variables, signals, or stdio serial.

Check concurrent execution with the race detector and shuffled test order:

go test -race -shuffle=on -count=3 ./...

The E2E and mock-server packages default to two concurrent tests to bound resource use. An explicit -parallel=N overrides that default.

SBOMs

The public repository includes deterministic six-platform dependency baselines for the full client, runtime, and runtime with Cloudflared. They inventory synthetic payloads built from declared offline source and vendor snapshots, including pinned Cloudflared module versions, purls, and CPEs. Do not hand-edit them; maintainers refresh them through the hermetic SBOM generation check when dependency inputs or a Cloudflared pin changes. The baselines are useful for dependency review and drift detection, but they do not claim that a public release ZIP contains the same bytes.

From a checkout of this public repository, verify that the mirrored baseline files match their mirrored manifest before importing them into a dependency scanner:

./scripts/verify_sbom_baselines.sh

That command proves the checkout's three baseline documents match compliance/sbom-baseline-manifest.json and parse as SPDX 2.3. It does not prove that any release archive contains those bytes.

Stable release catalog

The release catalog records GitHub's designated latest stable version and the UTC publication time of every stable version.

  1. Run make release-source-version VERSION=1.2.3 and commit the generated pending_stable entry with the source version and matching assertions. make release-tag VERSION=1.2.3 checks the stamp and prints the tag to use. Tag the reviewed public commit. The workflow rejects moved tags and checks the staged version and published history before building assets.
  2. Once the Release job publishes the stable GitHub Release, run make sync-release-catalog, then make verify-release-catalog. These commands use gh to read GitHub's latest release and every page of release history. The generated YAML replaces the pending entry with GitHub's published_at. Land it with the stable Formula handoff.
  3. The final Verify published stable release catalog job reads public master and checks the tag and dates against GitHub. If the catalog handoff is still in review, the job fails. When the change reaches master, choose Re-run failed jobs on the tag run to finish the check.

Development and RC tags preserve stable history and skip the final job. See the release guide for release notes, artifacts, and the development-version reset.

Validate a downloaded release

Releases produced by the current release workflow publish a matching SPDX 2.3 sidecar for each ZIP, embed the same sidecar in the ZIP, cover both files in SHA256SUMS.txt, and publish the workflow's signed Sigstore provenance bundle. They also publish:

  • tunnel-client-vX.Y.Z-vulnerability-report.json, generated by a checksum-pinned Grype binary from exactly 18 release-specific SPDX sidecars: three flavors across six platforms, each bound to its matching ZIP and license-report SHA256, with the exact vulnerability-database SHA256 recorded;
  • tunnel-client-vX.Y.Z.openvex.json only when the scan has findings, with every automated statement set to under_investigation rather than claiming that a finding is fixed, exploitable, or not affected; and
  • tunnel-client-vX.Y.Z-enterprise-evidence.json, which inventories the release evidence bytes, scanner/database identity, scan scope, and provenance boundary.

The vulnerability report explicitly records OCI images as not_scanned: the release contract has multi-architecture OCI index digests, not exact per-platform OCI manifest scan inputs. Every pre-bundle release artifact is covered by SHA256SUMS.txt, PUBLIC_URLS.txt, and the signed provenance bundle. The bundle is intentionally excluded from its own checksum and signature subject set. Older releases without .spdx.json sidecars cannot be archive/SBOM-validated this way; releases without a *-provenance.sigstore.json bundle cannot be provenance-validated this way. Use the release sidecar, not a checked-in baseline, to validate downloaded bytes.

From a checkout of this public repository at the matching release tag, replace the example tag and choose one of client, runtime, or runtime-cloudflared. The commands require Bash, Python 3, curl, and the GitHub CLI:

release=vX.Y.Z
platform=linux-amd64
flavor=runtime
prefix=tunnel-client-runtime
stem="${prefix}-${release}-${platform}"
base="https://github.com/openai/tunnel-client/releases/download/${release}"
bundle="tunnel-client-${release}-provenance.sigstore.json"
source_digest="$(git rev-parse HEAD)"

curl -fLO "${base}/${stem}.zip"
curl -fLO "${base}/${stem}.spdx.json"
curl -fLO "${base}/${stem}-licenses.txt"
curl -fLO "${base}/SHA256SUMS.txt"
curl -fLO "${base}/${bundle}"

gh attestation verify "${stem}.zip" \
  --bundle "${bundle}" \
  --repo openai/tunnel-client \
  --signer-workflow openai/tunnel-client/.github/workflows/release.yml \
  --source-ref "refs/tags/${release}" \
  --source-digest "${source_digest}" \
  --signer-digest "${source_digest}" \
  --predicate-type https://slsa.dev/provenance/v1 \
  --deny-self-hosted-runners
gh attestation verify "${stem}.spdx.json" \
  --bundle "${bundle}" \
  --repo openai/tunnel-client \
  --signer-workflow openai/tunnel-client/.github/workflows/release.yml \
  --source-ref "refs/tags/${release}" \
  --source-digest "${source_digest}" \
  --signer-digest "${source_digest}" \
  --predicate-type https://slsa.dev/provenance/v1 \
  --deny-self-hosted-runners
gh attestation verify "${stem}-licenses.txt" \
  --bundle "${bundle}" \
  --repo openai/tunnel-client \
  --signer-workflow openai/tunnel-client/.github/workflows/release.yml \
  --source-ref "refs/tags/${release}" \
  --source-digest "${source_digest}" \
  --signer-digest "${source_digest}" \
  --predicate-type https://slsa.dev/provenance/v1 \
  --deny-self-hosted-runners
gh attestation verify SHA256SUMS.txt \
  --bundle "${bundle}" \
  --repo openai/tunnel-client \
  --signer-workflow openai/tunnel-client/.github/workflows/release.yml \
  --source-ref "refs/tags/${release}" \
  --source-digest "${source_digest}" \
  --signer-digest "${source_digest}" \
  --predicate-type https://slsa.dev/provenance/v1 \
  --deny-self-hosted-runners

./scripts/verify_release_archive.sh \
  --flavor "${flavor}" \
  --archive "${stem}.zip" \
  --sbom "${stem}.spdx.json" \
  --checksums SHA256SUMS.txt

To verify the complete release evidence set, download every asset into a clean directory and run both fail-closed contract verifiers:

mkdir release-evidence
gh release download "${release}" \
  --repo openai/tunnel-client \
  --dir release-evidence

./scripts/verify_release_provenance.sh \
  --bundle "release-evidence/${bundle}" \
  --artifact-dir release-evidence \
  --release "${release}" \
  --source-digest "${source_digest}"
./scripts/verify_release_evidence.sh \
  --artifact-dir release-evidence \
  --release "${release}" \
  --source-digest "${source_digest}"

Use prefix=tunnel-client with flavor=client, or prefix=tunnel-client-runtime-cloudflared with flavor=runtime-cloudflared. The bundle is the release workflow's signed Sigstore evidence and supports verification without GitHub attestation lookup. It is emitted after SHA256SUMS.txt is attested, so it is intentionally not listed in that checksum file; gh attestation verify checks the bundle's signature, transparency-log material, signer workflow, source ref, source digest, and subject digest. The archive verifier then fails closed when the published checksums do not match, the ZIP is too large or has unsafe, duplicate, or non-regular members, its embedded sidecar differs from the downloaded sidecar, or the SPDX SHA256 inventory does not match the extracted payload. After it passes, import the matching .spdx.json file into the dependency scanner of your choice. Runtime releases also publish a matching *-scan-manifest.json that binds scanner scope, source archives, license evidence, and the release sidecars.

For a fully disconnected verification environment, capture a trusted root from an independently trusted online environment before disconnecting:

gh attestation trusted-root > trusted_root.jsonl

Transfer that file with the release evidence and add --custom-trusted-root trusted_root.jsonl to each gh attestation verify command above. The release bundle removes the GitHub attestation API dependency; the trusted-root file removes the remaining online trust-root lookup.

Build the CLI binary from a source checkout. The Make target stamps the checkout Git SHA into the version sent in User-Agent and X-Tunnel-Client-Version:

make admin-ui
make tunnel-client
./bin/tunnel-client help quickstart

If you invoke Go directly, stamp the same metadata explicitly:

module_path="$(go list -m -f '{{.Path}}')"
git_sha="$(git rev-parse HEAD)"
mkdir -p bin

go build \
  -ldflags "-X ${module_path}/pkg/version.GitSHA=${git_sha}" \
  -o bin/tunnel-client \
  ./cmd/client

Read the rest of the OpenAI Tunnel Client README on GitHub

Questions about OpenAI Tunnel Client

What is the OpenAI Tunnel Client MCP server?

Customer-run client for Secure MCP Tunnel: connect private or localhost MCP servers to ChatGPT, Codex, the Responses API, and AgentKit without exposing them to the public internet. OpenAI Tunnel Client is published by openai, the company behind the product, on GitHub at openai/tunnel-client, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the OpenAI Tunnel Client MCP server?

OpenAI Tunnel Client doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (openai/tunnel-client). Like most servers, OpenAI Tunnel Client ends with a command or URL you paste into your AI app's MCP config.

Does OpenAI Tunnel Client need an API key?

The registry lists no required keys for OpenAI Tunnel Client. Check the OpenAI Tunnel Client README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is OpenAI Tunnel Client an official MCP server?

Yes. OpenAI Tunnel Client is published by openai, the company that makes the product it connects to, so it follows that product's own API and auth.

What license is OpenAI Tunnel Client under?

OpenAI Tunnel Client is released under the Apache-2.0 license, according to its GitHub repository. The license covers the code of OpenAI Tunnel Client; the service it connects to has its own terms.