With pinggy.io you can share your LocalAI server from localhost with just a single command. Replace the port 8080 with the port where your server is running.
Pinggy will give you a URL like https://ranlkfsbjkxry.a.pinggy.link. Use it as the base URL for any OpenAI-compatible client, or open it in a browser for the built-in web UI.