Skip to content

Instantly share code, notes, and snippets.

@diegofcornejo
Created June 8, 2026 15:37
Show Gist options
  • Select an option

  • Save diegofcornejo/cde7b52cc2b8434a0eb220dbdc6af9be to your computer and use it in GitHub Desktop.

Select an option

Save diegofcornejo/cde7b52cc2b8434a0eb220dbdc6af9be to your computer and use it in GitHub Desktop.
Claude Code - Remote Control Service
[Unit]
Description=Claude Code Remote Control
After=network-online.target
Wants=network-online.target
[Service]
Type=forking
User=claude
WorkingDirectory=/home/claude/projects
Environment="HOME=/home/claude"
ExecStart=/usr/bin/tmux new-session -d -s claude '/bin/bash -c "echo y | /home/claude/.local/bin/claude remote-control"'
ExecStop=-/usr/bin/tmux kill-session -t claude
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment