Exposing Apps on Custom Ports
In a Dev Environment you can run any app or service on any port — a FastAPI server, a dashboard, a docs site — and open it straight from your browser. No extra tools or tunnels are needed: VS Code (code-server) automatically forwards every listening port for you.
This guide is for development environments only. If you want to deploy an app for end users, use Live Apps.
Who does the forwarding?
code-server (the browser-based VS Code that runs inside your Dev Environment) provides VS Code's
built-in automatic port forwarding. It detects any port a process starts listening on inside the
pod and exposes it through its own /proxy/<port>/ endpoint — that's the Auto Forwarded entry you
see in the PORTS tab.
MINEO's proxy simply routes /dev-env/<organization>/<dev-environment>/… to code-server (running on
port 8000), keeping MINEO's authentication in front. So a request flows like this:
The forwarded URL follows this pattern:
https://<host>/dev-env/<organization>/<dev-environment>/proxy/<port>/
How to expose a port
- Open a terminal in VS Code (Terminal → New Terminal).
- Run your app bound to all interfaces (
0.0.0.0), on whatever port you like:uvicorn app:app --host 0.0.0.0 --port 8888 - Open the PORTS tab (next to the terminal). The port appears as Auto Forwarded with a
Forwarded Address — click it to open your app, or build the
/proxy/<port>/URL manually.
Bind your app to 0.0.0.0, not 127.0.0.1. If it only listens on localhost the proxy may not be able
to reach it.