localhost (or
your internal network) and streams the reply back. Nothing ever connects
in to your network.
This is “Case 2” of the custom-model
transport options — a custom provider whose connection type is
Via Egis Connector.
How a call flows
1
The connector dials out
On start it opens one WebSocket to the Gateway, authenticates with
its
egis_conn_… token, enrolls (a stable node key), and heartbeats
every ~30s. If the connection drops it reconnects with backoff.2
A governed call arrives
Someone calls
custom-<slug>/<model> through the Gateway or SDK. The
request is governed by your policies first — PII masking, blocks,
everything — exactly as for any provider.3
The Gateway relays it down the open socket
The (possibly sanitized) request rides the connector’s existing
outbound connection. The connector forwards it to the model’s base
URL and streams
resp / chunk / end frames back.4
Response governance + audit
Response-phase policies run on the completion and the call lands on
the Requests page like any other — no indication to the caller that
the model was reached through a relay.
Run it
1
Register the model
Add a custom model with connection Via Egis Connector
(Custom models). Its base URL is where
the connector reaches the model (e.g.
http://localhost:11434/v1).2
Mint a connector token
On Model Center → LLM providers → Egis Connector, click
New token. The
egis_conn_… token is shown once — copy it.3
Start the connector next to your model
Configuration
The connector is configured entirely by environment variables.The model’s URL is not configured on the connector — it comes from
the custom model you registered, and the Gateway sends it with each
relayed request. One connector can serve every private model in your
organization.
Security model
- Outbound only. The connector opens the connection; the Gateway never initiates one. No inbound firewall rule, no exposed port.
- Scoped token. The
egis_conn_…token can do exactly one thing — enroll a connector and relay for its organization. It is not an Egis API key and can’t read or change anything on the platform. Revoke it on the connector card and the daemon is disconnected on its next reconnect. - Fail closed. If no healthy connector is registered, calls to the
private model return
egis_connector_offline(503) — never a silent fallback to a public provider. - Governance is unchanged. The request is governed before it’s relayed, so PII masking and blocks apply exactly as they do for a direct provider. The connector only moves bytes.
- Non-root, minimal image. The container runs as an unprivileged user and needs only outbound HTTPS to the Gateway and a route to your model.
Fleet status
The connector card shows, at a glance, how many connectors are online right now, how many have ever enrolled, and how many requests the fleet has relayed. Each node shows its last heartbeat and relayed count; revoke a token or remove a stale node from the same card.The Egis Connector is a hosted-Gateway feature and requires the inline
Gateway add-on. On a self-hosted control
plane it isn’t needed: the platform reaches your local models directly.
What’s next
Custom models
Register the private model the connector reaches.
Gateway overview
How inline governance works end to end.