From 18ab895ea9f6ed31d3e6034e126b22fc3bfd5f6a Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Fri, 13 Feb 2026 14:35:20 -0600 Subject: [PATCH] store: Discord bot systemd service with environment variables --- ...rvice-with-environment-variables-d0e2e9.md | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 graph/configurations/discord-bot-systemd-service-with-environment-variables-d0e2e9.md diff --git a/graph/configurations/discord-bot-systemd-service-with-environment-variables-d0e2e9.md b/graph/configurations/discord-bot-systemd-service-with-environment-variables-d0e2e9.md new file mode 100644 index 00000000000..0aa90a0d831 --- /dev/null +++ b/graph/configurations/discord-bot-systemd-service-with-environment-variables-d0e2e9.md @@ -0,0 +1,30 @@ +--- +id: d0e2e9ab-9a46-44b3-b749-8c2a562d0a1b +type: configuration +title: "Discord bot systemd service with environment variables" +tags: [discord-bot, systemd, deployment, claude-cli, configuration, claude-coordinator] +importance: 0.7 +confidence: 0.8 +created: "2026-02-13T20:35:20.868552+00:00" +updated: "2026-02-13T20:35:20.868552+00:00" +--- + +Systemd service setup for Claude Discord Coordinator bot running as non-root user. + +Service: /etc/systemd/system/claude-coordinator.service +Key config: +- User=discord-bot (required for Claude CLI bypassPermissions) +- EnvironmentFile=/opt/projects/claude-coordinator/.env +- WorkingDirectory=/opt/projects/claude-coordinator +- Restart=always with RestartSec=10 + +Environment variables (.env): +- DISCORD_TOKEN= +- CLAUDE_CODE_OAUTH_TOKEN= + +Git credentials (~/.git-credentials): +- Format: https://cal:{GITEA_TOKEN}@git.manticorum.com +- git config --global credential.helper store + +Critical: Claude CLI requires non-root user for --permission-mode bypassPermissions +Discord tokens start with MTI..., Anthropic tokens start with sk-ant-oat01-