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-email-bridge): EnvironmentFile + add GOG keyring/account vars (#313)

Aurora Capital82ca99e5de28
diff --git a/claude-ops/scripts/systemd/pocket-email-bridge.service b/claude-ops/scripts/systemd/pocket-email-bridge.service
index a2b92092..64982ef3 100644
--- a/claude-ops/scripts/systemd/pocket-email-bridge.service
+++ b/claude-ops/scripts/systemd/pocket-email-bridge.service
@@ -1,11 +1,16 @@
[Unit]
Description=Pocket Email Bridge — outbound send + inbound reply parsing via Gmail
After=network-online.target
+Wants=network-online.target
[Service]
Type=oneshot
User=__USER__
WorkingDirectory=__HOME__
+# Loads GOG_KEYRING_PASSWORD + GOG_ACCOUNT (file-keyring unlock for non-
+# interactive shells) from the operator-managed secrets file. See
+# scripts/systemd/secrets.env.example for the schema.
+EnvironmentFile=/etc/pocket/secrets.env
Environment=HOME=__HOME__
Environment=PATH=/usr/local/bin:/usr/bin:/bin
Environment=POCKET_STATE_DIR=__HOME__/.claude/state/pocket
diff --git a/claude-ops/scripts/systemd/secrets.env.example b/claude-ops/scripts/systemd/secrets.env.example
index cebb84d8..a2e360ca 100644
--- a/claude-ops/scripts/systemd/secrets.env.example
+++ b/claude-ops/scripts/systemd/secrets.env.example
@@ -16,5 +16,16 @@
# Pocket AI MCP — generate at https://heypocketai.com/account
POCKET_API_KEY=<YOUR_POCKET_API_KEY>
+# gog CLI (Gmail/Calendar/Drive/etc.) file-keyring password. Set this
+# when you run `gog auth add <email> --services all-user`. Required by
+# pocket-email-bridge so the systemd-launched gog can unlock its keyring
+# in a non-interactive shell. Without it, every gog call exits with
+# `no TTY available for keyring file backend password prompt`.
+GOG_KEYRING_PASSWORD=<YOUR_GOG_KEYRING_PASSWORD>
+
+# Default Gmail account when --account is omitted. Avoids the
+# `missing --account (or set GOG_ACCOUNT, ...)` error.
+GOG_ACCOUNT=<[email protected]>
+
# Add other secrets below as services need them. Anything in this file
# is loaded into the systemd unit's env via EnvironmentFile=.