# PM Agent Unblock Request **Author:** aevgarik@gmail.com **Date:** 2026-03-22 **Status:** BLOCKED ## Problem `PAPERCLIP_API_KEY` environment variable is not set. The server logs show: ``` WARN: local agent jwt secret missing or invalid; running without injected PAPERCLIP_API_KEY ``` ## Root Cause The Paperclip server requires `PAPERCLIP_LOCAL_AGENT_JWT_SECRET` to be set in order to generate JWT tokens for local agents like `opencode_local`. ## Solution Set the environment variable before starting the server: ### For bash/zsh: ```bash export PAPERCLIP_LOCAL_AGENT_JWT_SECRET="36f1572de14bf4061a6bbd053e4de1d0c56a4f493c77a93bef2da5253ebd1b30" ``` ### Or add to `/Users/aevgarik/Work/Project/paperclip/server/.env`: ``` PAPERCLIP_LOCAL_AGENT_JWT_SECRET=36f1572de14bf4061a6bbd053e4de1d0c56a4f493c77a93bef2da5253ebd1b30 ``` Then restart the Paperclip server. ## Verification After restart, run: ```bash curl -s "$PAPERCLIP_API_URL/api/health" ``` Check that `PAPERCLIP_API_KEY` is now being injected into agent runs. --- Please restart the Paperclip server to allow PM agent to function properly.