The connector runs in the customer's network. It opens an outbound WSS connection to Guild and forwards HTTP requests to configured local services. The connector does not run agents or resolve integration credentials.
Guild keeps integration code, credential resolution, and access checks. Integration credentials pass through the tunnel in request headers or bodies.
The connector has a fixed ceiling of 4,096 concurrent requests per tunnel. Guild
controls the operating limit within that ceiling. Routine limit changes do not
require a connector restart. Older max_in_flight configuration values are
accepted but ignored.
Memory admission is automatic on Linux. The connector reads its container memory
limit and usage, reserves space for active calls, and refuses new work with
connector_busy before acknowledgement or local forwarding when the budget is
full. Active streams and tunnel control messages continue. No memory tuning
field is required. See Memory protection.
- As an account admin, open Settings → Private connectors. Create a connector for the account.
- Download
connector.json. The destination fields are an optional helper for the initial file. Start with one service or edit the file on your host later; you do not need a full inventory of services or API endpoints. - Create and download the enrollment token separately. New tokens last three days. Keep the token out of Git, deployment files, and Helm values.
- Download the Compose bundle or Helm chart from
Releases.
Follow the attached
INSTALL.md. No repository checkout or source build is required. Add at least one destination before startup. Startup enrolls, saves the identity, and opens the tunnel. See Deployment for details. - Connect the integration's credentials in Guild. Open the credential's detail
page and select Network access → Private connector. Choose the connector
and select a target name reported by the connector, such as
foo.
Example configuration; use the control-plane URL and connector ID from the app:
{
"control_plane_url": "https://api.example.com",
"connector_id": "00000000-0000-0000-0000-000000000001",
"identity_directory": "/var/lib/guild-connector",
"destinations": {
"foo": "https://foo.internal:8443"
}
}The integration supplies the request path and query. The customer target map supplies the local scheme, host, and port. Put API path prefixes in the integration, not in the destination map.
One connector can serve many credentials, agents, and workspaces. Configure routing once per credential. Existing credential grants and defaults control access. Credential editors can select a connector; account admins manage connectors and enrollment. Enabled is an administrative setting, not a live health check.
Each connector permits up to four non-revoked tunnel identities. Pending or expired enrollments still count until revoked. Enroll each replica separately. Give each replica a private, persistent identity directory; never share or clone that directory. Its saved token is a bearer credential.
For development from a source checkout, run uv sync --locked in the repository root.
Start with the command below. Keep the token file private. Remove
the token file after successful enrollment; keep the identity directory.
uv run guild-private-connector run --config connector.json \
--enrollment-token-file /secure/path/tokenFor internal services signed by a private CA, set destination_ca to a mounted
PEM CA bundle. See Private CA setup.
To block HTTP verbs such as DELETE at the connector, configure
blocked_methods.
- REST/OpenAPI, MCP HTTP, and Guild HTTP tools can use the connector when their
credential selects a private route. Raw SQL/TCP and direct SDK connections
cannot use the HTTP tunnel. The generic HTTP tool supports
fetch, not backgroundfetch_async. - Guild handles OAuth flows and LLM orchestration. The connector can carry their HTTP traffic to configured internal services.
- No redirects, environment proxies, or cookies retained between requests. Target names cannot override the customer's configured host.
- Ordinary responses are buffered. Guild can request streamed responses, including SSE, for a call. The connector forwards raw response bytes without parsing events. Repeated-header fidelity is not supported. Buffered responses use a 16 MiB encoded frame; streamed responses use 64 KiB chunks and a 64 MiB total byte limit.
- The 25-second start deadline covers dispatch and acknowledgement. After that, the integration's HTTPX phase timeouts apply, not a total execution timeout.
- Disabled, deleted, or unavailable private routes do not fall back to direct access. Uncertain requests are not replayed. Cancellation cannot undo a write.
- Streaming calls require tunnel protocol 4.
- Target discovery uses tunnel protocol 5. Guild requests target names over the existing connection. The connector never sends destination URLs in this reply. The connector negotiates protocol 5 with a compatible gateway. With a protocol-4 gateway, forwarding and streaming continue, but target discovery is unavailable. Discovery is also unavailable when the response exceeds 2,048 targets or 4 MiB encoded. The connector logs the target count and encoded size without target names or URLs. Existing forwarding and streaming continue.
- Connection flow: follow one request.
- Architecture: components, trust, and failure behavior.
- Enrollment: identity storage, renewal, and revocation.
Client tests, from the repository root:
uv sync --locked
uv run --frozen python -m unittest discover -s tests -vRun packaging checks with:
uv run --frozen python -m unittest discover -s packaging_tests -vClient tests alone do not verify live forwarding. Test a configured destination through a Guild integration after deployment.
The guild-customer-connector and guild-customer-connector-health commands
remain as aliases for existing deployments. New deployment files use the private
connector commands.