feat: skip permission prompts for claude-channels unattended use 🤖

This commit is contained in:
DannyDannyDanny 2026-04-18 22:45:03 +02:00
parent 6500ad39bf
commit 7f40280700

View file

@ -124,7 +124,9 @@ in
WorkingDirectory = "/home/danny"; WorkingDirectory = "/home/danny";
EnvironmentFile = "/etc/claude-channels/env"; EnvironmentFile = "/etc/claude-channels/env";
# claude needs a PTY; wrap with script(1). /dev/null discards the typescript. # claude needs a PTY; wrap with script(1). /dev/null discards the typescript.
ExecStart = ''${pkgs.util-linux}/bin/script -qfc "${pkgs.claude-code}/bin/claude --channels plugin:telegram@claude-plugins-official" /dev/null''; # --dangerously-skip-permissions: unattended use. Safe here because the bot
# is paired only to danny's Telegram ID (allowFrom) on a private server.
ExecStart = ''${pkgs.util-linux}/bin/script -qfc "${pkgs.claude-code}/bin/claude --channels plugin:telegram@claude-plugins-official --dangerously-skip-permissions" /dev/null'';
Restart = "always"; Restart = "always";
RestartSec = 5; RestartSec = 5;
}; };