Is your feature request related to a problem? Please describe.
I would like to preserve my laptop's resources by not starting the service before i need it
I'm lazy, i don't want to manually start it
I manage the service using systemd with podman
systemd offers a mechanism of "socket activation" to start a service on first connection (AFAIU)
podman have a tutorial that explain how to do it
https://github.com/podman-container-tools/podman/blob/main/docs/tutorials/socket_activation.md#socket-activation-of-containers
It works with others containers
but with LocalAI, the first resquest never ends and is never anwser
Describe the solution you'd like
I would like that LocalAI support systemd "socket activation"
I found this blog post explaining how to do it using Go
https://kilabit.info/journal/2026/systemd_socket_with_go/
but i don't know Go
Describe alternatives you've considered
- Manually start the service
- Don't use the service
- Try to optimize others programs that take of the resources
Is your feature request related to a problem? Please describe.
I would like to preserve my laptop's resources by not starting the service before i need it
I'm lazy, i don't want to manually start it
I manage the service using systemd with podman
systemd offers a mechanism of "socket activation" to start a service on first connection (AFAIU)
podman have a tutorial that explain how to do it
https://github.com/podman-container-tools/podman/blob/main/docs/tutorials/socket_activation.md#socket-activation-of-containers
It works with others containers
but with LocalAI, the first resquest never ends and is never anwser
Describe the solution you'd like
I would like that LocalAI support systemd "socket activation"
I found this blog post explaining how to do it using Go
https://kilabit.info/journal/2026/systemd_socket_with_go/
but i don't know Go
Describe alternatives you've considered