Skip to content

Business operating system for Claude Code — 57 skills, 21 agents, smart daemon. Unified inbox (WhatsApp/Email/Slack/Telegram), autonomous PR merge, full-AWS monitoring, revenue (Stripe+RevenueCat), e-commerce (Shopify), marketing (Klaviyo/Meta/GA4), voice (Bland/ElevenLabs), APM (Datadog/NewRelic/OTEL), YOLO mode.

chore(pocket-watcher): move POCKET_API_KEY to /etc/pocket/secrets.env (EnvironmentFile) (#311)

Aurora Capital8bb02c25573a
diff --git a/claude-ops/.gitignore b/claude-ops/.gitignore
index 90f4c5a1..5d8f493b 100644
--- a/claude-ops/.gitignore
+++ b/claude-ops/.gitignore
@@ -2,6 +2,12 @@ node_modules/
.env
.env.*
!templates/**/.env.example
+!scripts/systemd/secrets.env.example
+
+# Pocket pipeline secrets — installed at /etc/pocket/secrets.env mode 600
+# root-owned. Never check this file (or any copy of it) into the repo.
+secrets.env
+pocket-secrets.env
.DS_Store
*.swp
*.swo
diff --git a/claude-ops/scripts/systemd/pocket-watcher.service b/claude-ops/scripts/systemd/pocket-watcher.service
index 540c8804..f4881098 100644
--- a/claude-ops/scripts/systemd/pocket-watcher.service
+++ b/claude-ops/scripts/systemd/pocket-watcher.service
@@ -7,9 +7,19 @@ Wants=network-online.target
Type=oneshot
User=__USER__
WorkingDirectory=__HOME__
+# Secrets (POCKET_API_KEY, etc.) — see scripts/systemd/secrets.env.example.
+# This file MUST be created by the operator at /etc/pocket/secrets.env
+# with mode 600 owned by root. It is gitignored.
+EnvironmentFile=/etc/pocket/secrets.env
Environment=HOME=__HOME__
Environment=PATH=/usr/local/bin:/usr/bin:/bin
Environment=POCKET_STATE_DIR=__HOME__/.claude/state/pocket
+Environment=POCKET_MEMORY_DIR=__HOME__/.claude/projects/-__USER__/memory
+Environment=POCKET_INDEX_FILE=__HOME__/.claude/projects/-__USER__/memory/MEMORY.md
+Environment=POCKET_LOOKBACK_HOURS=24
+Environment=GIGA_SYNC=1
+Environment=GIGA_MIND=global
+Environment=GIGA_CONSOLIDATE=1
ExecStart=__HOME__/.venv-pocket/bin/python3 __HOME__/claude-ops/claude-ops/scripts/ops-cron-pocket-watcher.py
StandardOutput=append:__HOME__/.claude/state/pocket/watcher-stdout.log
StandardError=append:__HOME__/.claude/state/pocket/watcher-stderr.log
diff --git a/claude-ops/scripts/systemd/secrets.env.example b/claude-ops/scripts/systemd/secrets.env.example
new file mode 100644
index 00000000..cebb84d8
--- /dev/null
+++ b/claude-ops/scripts/systemd/secrets.env.example
@@ -0,0 +1,20 @@
+# Pocket pipeline secrets — install at /etc/pocket/secrets.env
+#
+# Operator setup:
+# sudo install -d -m 0750 -o root -g root /etc/pocket
+# sudo cp scripts/systemd/secrets.env.example /etc/pocket/secrets.env
+# sudo chmod 600 /etc/pocket/secrets.env
+# sudo chown root:root /etc/pocket/secrets.env
+# sudo $EDITOR /etc/pocket/secrets.env # fill in real values
+# sudo systemctl daemon-reload
+# sudo systemctl restart pocket-watcher
+#
+# DO NOT commit this file with real values. The real file is mode 600 and
+# loaded by systemd via EnvironmentFile= so secrets never appear in
+# `systemctl cat` or `systemctl show` output.
+
+# Pocket AI MCP — generate at https://heypocketai.com/account
+POCKET_API_KEY=<YOUR_POCKET_API_KEY>
+
+# Add other secrets below as services need them. Anything in this file
+# is loaded into the systemd unit's env via EnvironmentFile=.