Session Cookie Online for Openclaw

A lightweight SQLite-backed utility to persist, refresh, and serve website session cookies without full browser automation.

seanmwx
v1.0.0
Apr 1, 2026
0
809
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install cookie-alive

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install cookie-alive using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Session Cookie Online?

Session Cookie Online is a specialized utility designed for developers and AI agents who need to maintain authenticated web sessions over extended periods. Instead of relying on resource-heavy browser automation, this skill uses a deterministic HTTP keepalive approach to ensure sessions remain valid. It is a vital component for Openclaw Skills that require persistent access to authenticated endpoints by storing named session profiles in a local SQLite database.

The skill allows for the programmatic refreshing of sessions by replaying HTTP requests and merging Set-Cookie updates back into the storage. This makes it an ideal middle-layer for handing off Cookie headers or JSON cookie maps to other scripts and programs while avoiding the overhead of full browser engines.

Session Cookie Online Use Cases

  • Maintaining active login states for APIs or websites that lack long-lived tokens.
  • Sharing authenticated headers between different CLI tools or scripts within the Openclaw Skills ecosystem.
  • Automating session keepalive pings on a schedule to prevent timeout-induced logouts.
  • Managing multiple distinct session profiles for different environments or user accounts.

How Session Cookie Online Works

  1. Initialize a named profile by providing a cookie header or JSON object captured from browser devtools.
  2. Store the session data in a local SQLite database located in the user directory for persistence.
  3. Execute a refresh cycle by calling a lightweight authenticated endpoint to trigger a Set-Cookie update from the server.
  4. Retrieve the updated cookie string or metadata for use in downstream HTTP requests or external programs.
  5. Run a persistent background loop to ensure the session remains active indefinitely through scheduled pings.

Session Cookie Online Setup

To start using this skill within your Openclaw Skills environment, follow these steps:

# Upsert a new cookie profile from a header string
python scripts/cookie_alive.py upsert --profile my_session --cookie-header "session_id=xyz123" --refresh-url "https://api.example.com/me"

# Validate the stored cookie
python scripts/cookie_alive.py get --profile my_session

# Run the keepalive loop in the background
python scripts/cookie_alive.py run --profile my_session --interval 300

Session Cookie Online Data Schema & Taxonomy

The skill organizes data within SQLite databases stored in ~/.cookie_alive/. Each database maps to a specific profile name.

Attribute Description
Profile Name The unique identifier for the session (default is default).
Cookie Data Stored as either a raw header string or a structured JSON map.
Metadata Tracks last_status_code, last_refreshed_at, and interval_seconds.
Storage Path Files are saved as ~/.cookie_alive/{profile}.db.

Session Cookie Online Advanced Features

  • Deterministic HTTP keepalive requests that minimize resource consumption compared to headless browsers.
  • Metadata tracking for session health monitoring, including last response codes and refresh timestamps.
  • Multi-format output support allowing cookies to be exported as literal headers or full JSON records for Openclaw Skills integrations.
  • Support for external renewal where third-party automation tools can write updated cookies back to the SQLite store.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*