Skip to content
Hoody.com

Every URL in Hoody passes through one gateway. The Hoody Proxy is not a load balancer, a CDN, or a conventional reverse proxy: it is the single point that turns URL requests into container service calls, enforces security, terminates TLS, and preserves the real client IP, with no configuration on your side.

When you access a terminal, a desktop, a file, a database, or any other service in any container, the request goes through the proxy. You never interact with the proxy directly, but every request shares one protocol, one gateway, and one audit trail.


When a request arrives, the proxy does four things:

https://67e89abc123def456789abcd-890abcdef12345678901cdef-terminal-1.node-us.containers.hoody.com/api/v1/terminal/execute
└──────────┬──────────┘ └──────────┬──────────┘ └───┬───┘ └┘
Project ID Container ID Service Instance

The proxy extracts four identifiers from the hostname: project ID, container ID, service type, and instance number. The hostname itself is the route.

The container ID in the hostname identifies the container, and the service type and instance pick the service inside it. If the container is stopped or still starting, the proxy answers 503 Service Unavailable with a holding page. A hostname that maps to no container at all is a different answer: 404 with errorCode: MAPPING_NOT_FOUND.

If the container or its project has permissions configured, the proxy validates the request against every active authentication group: JWT claims, HTTP Basic credentials, client IP range, or bearer token. If no permissions are configured, the request passes; the cryptographic URL itself is the authentication.

The proxy forwards the request to the correct internal service port inside the container. Terminal requests go to port 76. Display requests go to port 3998, the centralized display server (individual display sessions are allocated from a pool starting at 4000). SQLite goes to 5. (These internal Kit ports are operator-configurable defaults and never client-visible.) Your own HTTP servers go to whatever port you specified in the URL (http-3000, http-5000).

The client never sees internal ports; every request arrives as HTTPS on port 443.

Client Request
↓
https://{projectId}-{containerId}-terminal-1.node-us.containers.hoody.com
↓
Hoody Proxy (port 443)
├─ TLS termination
├─ URL parsing → project, container, service, instance
├─ Permission check (if configured)
├─ Real IP preservation (netfilter hooks)
└─ Forward to container internal port 76
↓
Container's Terminal Service
↓
Response → Proxy → Client

The proxy terminates TLS for container URLs with per-server wildcard certificates:

*.{serverName}.containers.hoody.com # e.g. *.node-us.containers.hoody.com

This means:

  • HTTPS everywhere. Every container service URL is HTTPS, with no HTTP fallback and no mixed-content warnings.
  • No certificate management. You never generate, install, or renew a certificate.
  • Private URLs. Certificate Transparency logs only ever see the per-server wildcard name (*.node-us.containers.hoody.com); your specific container URLs are never published.
  • Custom domains. Point a CNAME to a proxy alias and Let’s Encrypt issues a certificate for it automatically.

The proxy is not limited to basic HTTP request-response; it carries the rest of the modern web stack:

The proxy negotiates the best available protocol with each client and handles the upgrade and fallback automatically. HTTP/2 multiplexing eliminates head-of-line blocking.

Terminal sessions, display streaming, and real-time services use WebSocket connections that upgrade from HTTP. The proxy handles WebSocket natively: persistent bidirectional connections run through the same URL, the same TLS certificate, and the same authentication layer as everything else.

Multiple WebSocket connections to the same service URL create multiplayer sessions automatically. When two people open the same terminal URL, each gets a WebSocket connection into the same terminal session.

The proxy is HTTP-native. Non-HTTP protocols do not pass through it:

  • UDP services (game servers, VoIP, custom UDP protocols) need direct access via IPv4 addresses or SSH
  • All proxy traffic is HTTPS over TCP (HTTP/1.1 and HTTP/2)

When traffic passes through a typical reverse proxy, the application sees the proxy’s IP address, not the client’s. The standard workaround is the X-Forwarded-For header, but applications must explicitly parse it, firewalls cannot use it, and legacy code ignores it entirely.

Hoody solves this at the kernel level. Custom netfilter hooks in the host kernel rewrite connection metadata so that traffic arriving at the container appears to originate from the real client IP. The container’s remoteAddr is the actual client address, with no headers to parse, no application changes, and no configuration.

Terminal window
# Your application sees the real client IP automatically
# No configuration needed
# Verify with a simple Node.js server
hoody terminal commands run \
--command "node -e \"
require('http').createServer((req, res) => {
res.end('Your IP: ' + req.socket.remoteAddress);
}).listen(3000);
\"" \
-c $CONTAINER_ID
# Access via the proxy: the server logs the real client IP, not the proxy IP

Every application, language, framework, firewall rule, and legacy system sees the real client IP without modification. Access control, rate limiting, geo-routing, and analytics all work as if the proxy did not exist.


Inbound access control for service URLs is enforced at the proxy: those rules live there, not in the individual services, containers, or applications. It is not the only control in the system. The daemon applies checks of its own, program confinement, host firewall rules and your application’s authorization each enforce a separate boundary.

When you create a container, its URLs are accessible to anyone who has them. That is less dangerous than it sounds: container IDs are 24 hex characters, which means 2^96 possible combinations, so brute-forcing a container URL at one billion attempts per second would take longer than the age of the universe.

The URL itself is a cryptographic secret. Sharing it deliberately grants access; keeping it private keeps the container private.

When you need more than URL secrecy, the proxy supports layered authentication:

MethodHow it worksBest for
JWTToken with claims validationAPI consumers, AI agents
PasswordHTTP Basic Auth (username/password)Quick protection, internal tools
IP whitelistAllow specific IPs or CIDR rangesOffice access, known servers
TokenExact token from a configured header, cookie, or query parameterService-to-service communication

Permissions can be set at two levels:

  • Project level applies to every container in the project.
  • Container level applies alongside project settings; both documents govern and are evaluated together (the container default takes precedence when present).

And permissions are granular per service and instance/port. They do not distinguish read from write or view from control:

Terminal: allow all instances, deny all, or allow selected instance numbers
Files: allow all instances, deny all, or allow selected instance numbers
HTTP: allow all ports, deny all, or allow selected ports or ranges
Terminal window
# Set project-level proxy permissions (replaces the full config JSON)
# replace requires an If-Match precondition (read file_version from GET first)
#
# --groups and --permissions are both required, and each takes KEY=VALUE
# where VALUE is JSON, so one flag per group carries the nested definition.
hoody projects proxy permissions set --project $PROJECT_ID \
--if-match file:v2 \
--groups office='{"type": "ip", "range": "203.0.113.0/24"}' \
--groups ci='{"type": "token", "header": "X-CI-Token", "value": "secret-production-token"}' \
--permissions office='{"terminal": true, "files": true}' \
--permissions ci='{"terminal": true, "exec": true}' \
--default deny

Cryptographic URLs are secure but unwieldy. Proxy aliases give containers human-friendly addresses:

https://my-api.node-us.containers.hoody.com

An alias maps to a specific container and service. Multiple aliases can point to the same container. Aliases support custom domains via CNAME records with automatic SSL:

api.yourcompany.com CNAME my-api.node-us.containers.hoody.com

The proxy handles the certificate, routes the request, and enforces permissions; your only step is updating the DNS record.

Terminal window
# Create an alias for your HTTP service
hoody proxy aliases create \
--container-id $CONTAINER_ID \
--alias my-api \
--program http \
--port 3000

Each bare metal server runs its own Hoody Proxy container. The proxy is not a centralized service; it is local infrastructure on every server.

Server 1 (node-us)
└─ Hoody Proxy Container
└─ Routes to all containers on Server 1
URLs: *.node-us.containers.hoody.com
Server 2 (node-eu)
└─ Hoody Proxy Container
└─ Routes to all containers on Server 2
URLs: *.node-eu.containers.hoody.com

Running the proxy on each server has four consequences:

  • Latency: proxy and containers are on the same machine, with no extra network hop.
  • Privacy: container traffic never leaves your server; the proxy runs on your bare metal, not on Hoody’s.
  • Reliability: each server is independent, so there is no centralized proxy to fail.
  • Locality: the server name in the URL (node-us, node-eu) tells you which proxy handles it.

Cross-server communication happens via public URLs: a container on node-us calls a container on node-eu through node-eu’s proxy, with the same protocol and security as any other request.


The proxy holds its own authentication and authorization rules for URL-addressed services in one place, rather than spreading them across per-service configuration files. That one place handles:

  • Authentication: every request, service, and container
  • Authorization: per-service, per-group, per-container granularity
  • Encryption: TLS termination for all traffic
  • Logging: every request flows through one gateway
  • Rate limiting: one enforcement point for all services
  • Observation: matched HTTP requests routed through your own hoody-exec scripts with proxy hooks

Auditing inbound access means auditing the proxy configuration. A full review also covers your application’s own authorization, the container’s configuration and program confinement, egress rules, mounted storage and credentials, and the scope of management tokens. Locking down production or opening access for a demo changes this layer’s rules. A request the proxy forwards can still be refused further in, and opening access means checking those too: the daemon applies checks of its own, a sandboxed program’s ingress rules drop sources they do not list, and your application’s authorization runs last.


The rest of Hoody’s architecture depends on the proxy:

  • “Everything is a URL” works because the proxy routes every URL to the right container and service.
  • Multiplayer works because the proxy handles concurrent WebSocket connections to the same service.
  • Embeddability works because the proxy serves every service over HTTPS, which makes them safe to embed in an iframe.
  • AI access works because the proxy speaks HTTP, a protocol AI tooling already understands.
  • Custom domains work because the proxy terminates TLS and issues certificates.
  • Inbound access control works because every service URL passes through one gateway.

Without the proxy, URLs stop working, each service needs its own protocol and client (SSH, VNC, FTP, and a dozen others), and Hoody becomes an ordinary VM host. The proxy is what turns containers into URLs.


Next: Security & Permissions covers the full security model.