Session Persistence
Medium
- Category
- Rogue Agent
- Content
### Step 2 — Save the API key to OpenClaw config (optional; confirm first) **Only after the user confirms** they want persistent storage: read `~/.openclaw/openclaw.json`. If the file does not exist, create it as `{}`. Merge the following into the JSON (preserving any existing keys):- Confidence
- 84% confidence
- Finding
- This section instructs saving a reusable API key into a long-lived local config file, enabling later sessions and tasks to reuse the credential. Even though the skill requires explicit user confirmation and warns about sensitivity, persisted secrets increase exposure if the host, later agent runs, or the config file are compromised or over-broadly accessible.
