Con esta guía tu Mac queda encendido todo el tiempo y, si se va la luz, vuelve a arrancar solo con Tailscale y Charly abiertos, sin que nadie toque el teclado. Así tus agentes siguen disponibles desde el iPhone aunque estés fuera de casa.
Requisitos
Un Mac de escritorio (Mac mini, Mac Studio, iMac) conectado a la corriente. En un MacBook también funciona, pero con la tapa abierta y el cargador puesto.
Tailscale instalado y con sesión iniciada en el Mac y en el iPhone.
Charly instalado en la carpeta Aplicaciones.
Una cuenta de administrador en el Mac (te pedirá la contraseña en varios pasos).
Tiempo estimado: 20 minutos, más lo que tarde el descifrado de FileVault si lo tienes activado.
Paso 1. Evitar que el Mac se duerma
Si el Mac entra en reposo, corta la red y Tailscale se desconecta. La pantalla sí puede apagarse; lo que no debe dormirse es el sistema.
Abre Ajustes del Sistema → Energía.
Activa «Evitar el reposo automático cuando la pantalla esté apagada».
Verifica con pmset -g: la línea sleep debe mostrar 0.
Paso 2. Encender solo después de un corte de luz
En Ajustes del Sistema → Energía, activa «Arrancar automáticamente después de un corte de luz».
O por Terminal:
sudo pmset -a autorestart 1
Conecta el Mac directo a la toma o a una UPS. Si usas una regleta con interruptor, debe quedar siempre encendida. El router también tiene que volver solo cuando regrese la luz.
Paso 3. Desactivar FileVault
Con FileVault activado, el Mac arranca y se queda esperando la contraseña antes de cargar macOS. Mientras nadie la escriba, no corren ni Tailscale ni Charly. Por eso hay que desactivarlo para que el Mac vuelva solo tras un corte.
Revisa el estado en Terminal:
fdesetup status
Si dice FileVault is On, ve a Ajustes del Sistema → Privacidad y seguridad → FileVault → Desactivar.
Deja el Mac conectado hasta que termine el descifrado. Cuando fdesetup status diga FileVault is Off, sigue al paso 4.
Ten en cuenta: sin FileVault, alguien que se lleve el Mac físicamente puede leer el disco. Es el compromiso normal para un equipo al que accedes remoto y que está en un lugar seguro, como tu casa.
Paso 4. Activar el inicio de sesión automático
Así el Mac entra directo a tu usuario al encender y puede abrir tus apps.
Abre Ajustes del Sistema → Usuarios y grupos.
Busca «Iniciar sesión automáticamente como», debajo de la lista de usuarios.
En el menú desplegable, elige tu usuario.
Escribe tu contraseña para confirmar.
Reinicia: si entra al escritorio sin pedir clave, quedó activado.
Si la opción aparece gris, revisa que FileVault ya esté desactivado y que tu usuario no use la contraseña de iCloud para iniciar sesión.
Paso 5. Dejar Tailscale listo
Haz clic en el icono de Tailscale en la barra de menú → Settings y activa Launch at login.
Entra a la consola de administración de Tailscale (login.tailscale.com/admin/machines), busca tu Mac, abre el menú … y elige Disable key expiry. Si no lo haces, la llave vence (por defecto a los 180 días) y el Mac se desconecta hasta que vuelvas a iniciar sesión en Tailscale.
Si puedes, conecta el Mac por cable de red en lugar de Wi-Fi.
Paso 6. Abrir Charly al iniciar sesión
Desde Ajustes
Abre Ajustes del Sistema → General → Ítems de inicio (en versiones recientes: «Ítems de inicio y extensiones»).
En «Abrir al iniciar sesión», toca +.
Ve a Aplicaciones, selecciona Charly y dale Abrir.
O por Terminal
osascript -e 'tell application "System Events" to make login item at end with properties {path:"/Applications/Charly.app", hidden:false}'
Para verificar que quedó en la lista:
osascript -e 'tell application "System Events" to get the name of every login item'
Si tu Charly tiene otro nombre en Aplicaciones, revísalo con ls /Applications | grep -i charly y ajusta la ruta.
Paso 7. Bloquear la pantalla después de arrancar (recomendado)
Con el inicio automático, quien esté frente al Mac entraría sin clave. Este paso hace que el Mac arranque, abra tus apps y luego apague la pantalla para que quede bloqueado. Tailscale y Charly siguen corriendo.
Ve a Ajustes del Sistema → Pantalla bloqueada y en «Solicitar contraseña tras apagar la pantalla» elige el tiempo que prefieras (por ejemplo, 5 minutos o Inmediatamente).
En Terminal, pega este bloque completo, desde cat hasta EOF, y presiona Enter:
Cada línea empieza con la fecha y la hora de cuando el Mac se durmió (Sleep) o despertó (Wake). Si no sale nada, el Mac no se ha dormido: bien. Si ves un Sleep reciente, revisa el paso 1.
With this guide your Mac stays on all the time and, if the power goes out, it starts again by itself with Tailscale and Charly open, without anyone touching the keyboard. Your agents stay available from your iPhone even when you're away from home.
Requirements
A desktop Mac (Mac mini, Mac Studio, iMac) plugged in. A MacBook works too, with the lid open and the charger connected.
Tailscale installed and signed in on the Mac and the iPhone.
Charly installed in the Applications folder.
An administrator account on the Mac (several steps ask for its password).
Estimated time: 20 minutes, plus however long FileVault takes to decrypt if it's on.
Step 1. Keep the Mac from sleeping
If the Mac goes to sleep, it drops the network and Tailscale disconnects. The display may turn off; what must not sleep is the system.
Open System Settings → Energy.
Turn on “Prevent automatic sleeping when the display is off”.
In System Settings → Energy, turn on “Start up automatically after a power failure”.
Or in Terminal:
sudo pmset -a autorestart 1
Plug the Mac straight into the wall or into a UPS. If you use a power strip with a switch, it must stay on. Your router also has to come back by itself when the power returns.
Step 3. Turn off FileVault
With FileVault on, the Mac starts and waits for the password before loading macOS. Until someone types it, neither Tailscale nor Charly runs. That's why it has to be off for the Mac to come back by itself after a power cut.
Check its state in Terminal:
fdesetup status
If it says FileVault is On, go to System Settings → Privacy & Security → FileVault → Turn Off.
Keep the Mac plugged in until decryption finishes. When fdesetup status says FileVault is Off, go on to step 4.
Keep in mind: without FileVault, someone who physically takes the Mac can read its disk. It's the usual trade-off for a computer you reach remotely that sits somewhere safe, like your home.
Step 4. Turn on automatic login
This way the Mac goes straight into your user when it starts and can open your apps.
Open System Settings → Users & Groups.
Find “Automatically log in as”, below the list of users.
Pick your user in the menu.
Type your password to confirm.
Restart: if it reaches the desktop without asking for a password, it's on.
If the option is greyed out, check that FileVault is already off and that your user doesn't sign in with its iCloud password.
Step 5. Get Tailscale ready
Click the Tailscale icon in the menu bar → Settings and turn on Launch at login.
Go to the Tailscale admin console (login.tailscale.com/admin/machines), find your Mac, open the … menu and choose Disable key expiry. Otherwise its key expires (after 180 days by default) and the Mac disconnects until you sign in to Tailscale again.
If you can, connect the Mac with an Ethernet cable instead of Wi-Fi.
Step 6. Open Charly at login
From Settings
Open System Settings → General → Login Items (in recent versions: “Login Items & Extensions”).
Under “Open at Login”, click +.
Go to Applications, select Charly and click Open.
Or in Terminal
osascript -e 'tell application "System Events" to make login item at end with properties {path:"/Applications/Charly.app", hidden:false}'
To check it's on the list:
osascript -e 'tell application "System Events" to get the name of every login item'
If Charly has another name in Applications, check with ls /Applications | grep -i charly and adjust the path.
Step 7. Lock the screen after starting up (recommended)
With automatic login, anyone in front of the Mac would get in without a password. This step makes the Mac start, open your apps and then turn off the display so it's locked. Tailscale and Charly keep running.
Go to System Settings → Lock Screen and under “Require password after screen saver begins or display is turned off” pick the delay you like (for example, 5 minutes or Immediately).
In Terminal, paste this whole block, from cat to EOF, and press Return:
Each line starts with the date and time the Mac went to sleep (Sleep) or woke up (Wake). If nothing shows, the Mac hasn't slept: good. If you see a recent Sleep, check step 1.