Local server
- Linux
- Windows
On Linux, the Miru Agent serves API requests over the Unix socket The
/run/miru/miru.sock. The socket exists only on the device, so other machines cannot connect to it.Authenticate to the ServerOpening the socket is the credential. The agent accepts every request from a process that can connect to /run/miru/miru.sock.Examplelocalhost host is only the HTTP request target. curl sends the request through the socket.Granting access
- Linux
- Windows
Any access to the socket must be executed with a user who is a member of the To add the current user, use The output includes
miru group.Access to the socket is granted to the
root user, but this is not recommended for security best practices.1
Add the user to the miru group
$USER as the username.2
Sign out and sign back in
Group membership is only read when a session starts. Until you log out of your desktop or SSH session and log back in, the user still can’t access the socket.For an application that runs as a
systemd service, restart its service instead.To use the new group in the current shell without signing out, run newgrp miru. It only applies to that shell; other shells, including new ones, still need you to sign out and back in.3
Verify the group membership
miru.
