session-keeper

session-keeper is a skill for Claude Code, Codex from dailyaiagents-cpu/dailyai-os. It costs 99 tokens per session (861 once invoked), scanned A, original, MIT.

A daily browser-session checker that uses Chrome to verify whether configured websites, such as LinkedIn and Reddit, are still logged in. It detects expired sessions by checking whether a site redirects to its login page.

In plain words
What is it for?
Use it to audit configured browser sessions each morning, identify logged-out accounts, and open an approval step when a session needs to be restored.
Why use it?
It catches expired logins before other automated tasks fail silently or return no results.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to audit configured browser sessions each morning, identify logged-out accounts, and open an approval step when a session needs to be restored.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dailyaiagents-cpu/dailyai-os/session-keeper
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dailyaiagents-cpu/dailyai-os --skill session-keeper
Clone the repo
git clone --depth 1 https://github.com/dailyaiagents-cpu/dailyai-os

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for session-keeper

README.md
[![agentmods](https://agentmods.dev/badge/skills/dailyaiagents-cpu/dailyai-os/session-keeper/github.svg)](https://agentmods.dev/skills/dailyaiagents-cpu/dailyai-os/session-keeper)
Your own site
<a href="https://agentmods.dev/skills/dailyaiagents-cpu/dailyai-os/session-keeper"><img src="https://agentmods.dev/badge/skills/dailyaiagents-cpu/dailyai-os/session-keeper/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for session-keeper

Your own site · 80×15
<a href="https://agentmods.dev/skills/dailyaiagents-cpu/dailyai-os/session-keeper"><img src="https://agentmods.dev/badge/skills/dailyaiagents-cpu/dailyai-os/session-keeper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 861 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00099 $0.00861
Opus 5.5 $0.00040 $0.00344
Sonnet 5.5 $0.00020 $0.00172
Haiku 4.5 $0.00010 $0.00086

Measured 2mo ago against content hash 4ac1e66c9141, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

session-keeper scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (run.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

6. For each expired: open `LOGIN_<NAME>` approval gate with the curl-PUT command Cooper taps
skills/session-keeper/SKILL.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

session-keeper

Why this exists

Sales, content, ops — every specialist that depends on a logged-in browser session breaks silently when the session expires. By the time the user sees an outage in the inbox-router or "0 leads found" in the brief, the actual problem (linkedin logged out 18h ago) is buried.

This skill audits the 3 default targets every morning and surfaces expired sessions before Cooper opens Telegram for the day.

Targets

~/.openclaw/state/session-keeper/targets.json. Initial 3:

Target URL Login URL Marker
stripe dashboard.stripe.com dashboard.stripe.com/login URL stays on /dashboard when live
linkedin linkedin.com/feed/ linkedin.com/login URL stays on /feed when live; redirects to authwall when expired
reddit reddit.com/ reddit.com/login URL stays on reddit.com/ when live

Add Stripe / Gumroad / Gmail-web by editing targets.json once Cooper has those tabs logged in on agent-chrome. URL-redirect detection is the canonical primitive — DOM selectors break on UI updates.

Procedure

bash ${OPENCLAW_HOME}/skills/session-keeper/run.sh

SESSION_KEEPER_DRYRUN=1 → scan only, no gate, no Telegram.

The bash + python flow:

  1. Read targets.json
  2. For each target: PUT /json/new? → wait 3s → GET /json → find tab by id → read final URL
  3. Match final URL against logged_in_marker.value (live) or logged_out_marker.value (expired); else "unknown"
  4. Close the spawned tab (CDP /json/close/)
  5. Write ~/.openclaw/state/session-keeper/<YYYY-MM-DD>.json with full results
  6. For each expired: open LOGIN_<NAME> approval gate with the curl-PUT command Cooper taps
  7. Telegram-summary only if expired OR unknown count > 0

Hard rules

  1. URL-redirect detection over DOM selectors. UI updates break selectors; URL paths are stable.
  2. Always close spawned tabs. Otherwise the agent-chrome instance accumulates dead tabs.
  3. Silent on all-live. Cooper doesn't need a "everything fine" message every morning.
  4. One gate per expired target per day. If yesterday's gate is still pending and target is still expired today, don't open a duplicate — extend the timeout via resolve_gate.py if needed (Cooper-side decision).
  5. Cooper-tap commands in gate evidence. The --evidence field contains the literal curl -s -X PUT ... command — Cooper copies/runs in Terminal, that opens the login tab on agent-chrome, Cooper signs in, future probes auto-flip to live.
  6. 3 default targets only. Stripe/Gumroad/Gmail-web added once Cooper has those tabs already logged in. Probing a never-logged-in service produces noise.

Read the full file on GitHub · 77 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 77 lines · 99 tokens per session scan A 4ac1e66c9141

Subscribe to this mod's changes

session-keeper is a skill published in the GitHub repository dailyaiagents-cpu/dailyai-os (0 stars, last pushed 6mo ago), licensed MIT. It adds 99 tokens to every session and 861 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

session-keeper compared with skills from other repositories

session-keeper next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
session-keeperdailyaiagents-cpu/dailyai-osSkill06mo agoMITA99Claude Code, Codex
interactive-loginyc-software/qmSkill16ktodayMITA46Claude Code, Codex
pinchtab-mcppinchtab/pinchtabSkill11k11d agoMITA52Claude Code, Codex
azure-messaging-webpubsub-javamicrosoft/skillsSkill3.2kyesterdayMITA43Claude Code
cua-driverdavidondrej/skillsSkill4.3k2d agoMITA68Claude Code, Codex
open-design-browsercompozy/compozySkill2.9ktodayMITA56Claude Code, Codex
southwestborski/travel-hacking-toolkitSkill9062d agoMITA40Claude Code