Agent skill

Website Login

by Lakr233 in Lakr233/Cookey

A skill your agent uses whenever the user needs to log in to a website on their phone and reuse that authenticated session locally, especially for Playwright storageState JSON, cookies/localStorage…

MITAuto-check passedTesting & QA

Install Website Login

skills CLI
$ npx skills add Lakr233/Cookey --skill website-login -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Lakr233/Cookey website-login --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Lakr233/Cookey.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/website-login .claude/skills/website-login && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
website-login
GitHub stars
160
Token cost
~3.7k tokens
SKILL.md length
1,785 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses whenever the user needs to log in to a website on their phone and reuse that authenticated session locally, especially for Playwright storageState JSON, cookies/localStorage…

  • Works in 4 steps: Local environment (cookey CLI + local… → User’s iPhone (Cookey app) — The user… → Relay server — Only moves opaque… → …
  • The user needs to log in to a website on their phone and reuse that authenticated session locally
  • SKILL.md covers How it works, Install, What you export and Quick workflow (you and the…, plus 6 more sections
  • Calls npm and pip; reaches api.cookey.sh and github.com

What it does

Website Login is an agent skill from Lakr233/Cookey. Use whenever the user needs to log in to a website on their phone and reuse that authenticated session locally, especially for Playwright storageState JSON, cookies/localStorage capture, MFA, SMS codes, passkeys, or mobile-first login flows that are awkward in headless automation. You run Cookey CLI in your current environment; the user signs in on their iPhone in the Cookey app; the relay only transports encrypted blobs. Trigger even if the user asks more loosely for help logging in, reusing an authenticated…

Its SKILL.md is about 3.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Browser testing, Responsive design and Authentication. It works with Playwright. The licence is MIT.

When your agent uses it

  • The user needs to log in to a website on their phone and reuse that authenticated session locally
  • Especially for Playwright storageState JSON
  • Cookies/localStorage capture
  • Mobile-first login flows that are awkward in headless automation

Example prompts

  • “/website-login”

Requirements

  • Python 3
  • Node.js

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Local environment (cookey CLI + local daemon) — You run commands here. The CLI creates a short-lived login request, agrees cryptographic…
  2. User’s iPhone (Cookey app) — The user scans the QR or taps the HTTPS jump link. The jump page opens the cookey:// deep link into the app…
  3. Relay server — Only moves opaque encrypted blobs and request metadata. It is not trusted with plaintext cookies or credentials; design…
  4. Result — The CLI decrypts locally and writes session material under ~/.cookey/. cookey session export strips Cookey-only metadata and…

What it can do on your machine

Read from SKILL.md and the folder at commit 86de969. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm
    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.cookey.sh
    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Website Login loads about 3.7k tokens when it runs. Until then it costs about 155 tokens; SKILL.md has 1,785 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~155
When it runs · the whole SKILL.md, loaded when a task matches
~3.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Lakr233/Cookey at commit 86de969, republished under its MIT licence (© Lakr233). 1,785 words, ~3,699 tokens.

Download SKILL.mdSave it as .claude/skills/website-login/SKILL.md (or your agent's skills folder).
name
website-login
description
Use whenever the user needs to log in to a website on their phone and reuse that authenticated session locally, especially for Playwright storageState JSON, cookies/localStorage capture, MFA, SMS codes, passkeys, or mobile-first login flows that are awkward in headless automation. You run Cookey CLI in your current environment; the user signs in on their iPhone in the Cookey app; the relay only transports encrypted blobs. Trigger even if the user asks more loosely for help logging in, reusing an authenticated browser state, exporting cookies, or getting a local automation session from a phone login.

Website login

You run the Cookey CLI in your current environment. The user completes the actual website login on their iPhone inside the Cookey app’s in-app browser—never on a browser you control remotely.

How it works

Cookey splits “where login happens” from “where automation runs”:

  1. Local environment (cookey CLI + local daemon) — You run commands here. The CLI creates a short-lived login request, agrees cryptographic keys with the phone, and waits for an encrypted payload. After delivery, you export Playwright-compatible storageState JSON (cookies + origins / localStorage) for local scripts.

  2. User’s iPhone (Cookey app) — The user scans the QR or taps the HTTPS jump link. The jump page opens the cookey:// deep link into the app. The app opens the target URL in its embedded browser. The user signs in like a normal mobile session (password, OTP, authenticator app, passkeys, etc.). The app reads cookies and storage, encrypts them, and uploads ciphertext to the relay.

  3. Relay server — Only moves opaque encrypted blobs and request metadata. It is not trusted with plaintext cookies or credentials; design assumes zero-knowledge transport.

  4. Result — The CLI decrypts locally and writes session material under ~/.cookey/. cookey session export strips Cookey-only metadata and outputs the same shape Playwright expects for browser.newContext({ storageState }).

Why use this: Many real sites are easier or only possible to log into on a phone (MFA apps, SMS, mobile-only UI). Cookey turns that authenticated mobile browser state into something local Playwright can load.

Install

sh
npm install -g @cookey/cli
# or
pip install cookey

Alternatively, download prebuilt binaries:

What you export

cookey session export writes standard Playwright storageState JSON:

  • cookies
  • origins

Cookey keeps extra local metadata under ~/.cookey/; session export strips that and emits only what Playwright consumes.

Quick workflow (you and the user)

  1. You start a login request in your local environment:

    cookey request start https://example.com/login --json --qr

  2. The user scans the QR (or opens the link) on their iPhone with the Cookey app, then finishes login in the app’s browser.

  3. You export after the session is delivered:

    cookey session export --latest --out storageState.json --pretty

  4. You (or the user’s code) load it in Playwright:

ts
import { chromium } from "@playwright/test";

const browser = await chromium.launch();
const context = await browser.newContext({
  storageState: "storageState.json",
});
const page = await context.newPage();
await page.goto("https://example.com/account");

You can also pipe to a file:

cookey session export r_xxxxxxxxxxxxxxxxxxxxxx > storageState.json

Required execution order

When you start or refresh a request for the user, follow this order:

  1. Run cookey request start ... --json --qr or cookey request refresh ... --json --qr without --attach.
  2. Immediately reply to the user with the pair key, fingerprint, and QR code from the command output.
  3. Only after that reply is sent, wait for completion with cookey request status <rid> --watch or poll until the request is ready.
  4. Export the session with cookey session export.

If you skip step 2 and start waiting first, the user may never see the pair key in tool-call environments where terminal output is hidden.

What you must show the user

When you start or refresh a Cookey request for the user, paste the required values from the CLI into your reply before you wait for completion. Do not only mention that a login request was started.

  • Always include the pair key as plain text.
  • Always include the CLI fingerprint / verification string when the CLI prints it.
  • Always include the CLI-provided jump_link as a clickable HTTPS link.
  • If you render the QR code using --qr or --json --qr, always wrap the ASCII QR code in a text ... code block to prevent Markdown from destroying the line breaks. If using --json, the QR code is in the qr_text field with \n characters.
  • Do not rely on a bare cookey:// deep link as the primary user action; many chat surfaces will not expose it as a tappable link.
  • The CLI-provided jump_link is not enough by itself; still include the pair key and fingerprint alongside it.
  • If using --json, copy pair_key, cli_public_key_fingerprint, jump_link, and qr_text from the JSON output exactly.

The Cookey app on the user’s iPhone may ask them to type the pair key and confirm the fingerprint matches the terminal.

Use a reply shape like this:

  • Pair key: ABCD-1234
  • Fingerprint: xxxxxx
  • Jump link: https://...
  • QR code:
text
<ascii qr code>

Important warning about --attach

Unless your tool-call environment keeps a detached process alive (e.g. nohup or similar), do not use --attach. If the parent exits, verification can expire.

Default is detached: cookey request start / cookey request refresh spawns a background daemon and returns once the local descriptor exists. --attach blocks in the foreground until the session arrives.

For agent or tool-call environments where the user cannot directly inspect stdout, treat --attach as unsafe by default even if it technically works. It makes it too easy to block before you have echoed the pair key and fingerprint back to the user.

Command Reference

cookey request start <target_url>

Create a new login request for target_url, register it with the relay, print the pair key / jump link, and start a local waiter process.

Flags:

  • --server URL override the relay server; must be https://
  • --timeout SECONDS request lifetime in seconds; default 300, capped at 1800
  • --qr render the cookey:// deep link as a terminal QR code
  • --json emit machine-readable JSON instead of human-readable output
  • --attach wait inline instead of launching a detached daemon
  • --help print command usage

Examples:

  • cookey request start https://example.com/login
  • cookey request start https://example.com/login --qr
  • cookey request start https://example.com/login --json --qr
  • cookey request start https://example.com/login --timeout 900 --server https://api.cookey.sh
  • cookey request start https://example.com/login --json

Notes:

  • On success, the command prints a request ID (rid), pair key, jump link, and daemon PID. It also prints the CLI fingerprint / verification string when available.
  • Without --attach, the command exits as soon as the detached daemon is ready to wait for the encrypted session.
  • In agent workflows, prefer --json --qr, send the returned pair key / fingerprint / QR code to the user immediately, then watch status in a separate step.
cookey request refresh <target_url>

Create a refresh request for target_url using the latest local session for the same target as seed state.

Flags:

  • Same flags as cookey request start

Examples:

  • cookey request refresh https://example.com/login
  • cookey request refresh https://example.com/login --qr
  • cookey request refresh https://example.com/login --json --qr
  • cookey request refresh https://example.com/login --attach

Notes:

  • A previous local session for the same target is required. If none exists, Cookey returns: no previous session found for this target; run cookey request start first
  • If the stored session contains device info, Cookey includes APNs metadata so the mobile app can be nudged directly.
  • Refresh merges new cookies and local storage over the previously stored state, preserving missing values from the older session when needed.
  • If the previous session does not contain device info, refresh still works, but the user must complete the flow from QR / pair key instead of push-assisted delivery.
Show full SKILL.md (672 more words)Show less
cookey request status [rid]

Inspect local request state. If there is no local record for the requested rid, Cookey falls back to relay status using the configured default server.

Flags:

  • --latest inspect the most recently updated local request or session
  • --watch poll once per second until a terminal state is reached
  • --json emit machine-readable JSON
  • --help print command usage

Examples:

  • cookey request status
  • cookey request status r_xxxxxxxxxxxxxxxxxxxxxx
  • cookey request status --latest
  • cookey request status --latest --watch
  • cookey request status r_xxxxxxxxxxxxxxxxxxxxxx --json

Status values:

  • waiting daemon is alive and waiting for the encrypted session
  • receiving session arrived and is being decrypted / written locally
  • ready session file exists and is exportable
  • expired request lifetime ended before a usable session was written
  • orphaned daemon descriptor says the request was active, but the daemon process is gone
  • error the daemon failed while waiting, decrypting, or writing
  • missing no local or remote record was found

Notes:

  • cookey request status with no rid and no --latest returns a summary of the latest daemon and latest session.
  • --watch requires either an explicit rid or --latest.
cookey session export [rid]

Export a local session as Playwright storageState JSON.

Flags:

  • --latest export the newest local session
  • --out FILE write to FILE instead of stdout
  • --pretty pretty-print JSON with indentation
  • --help print command usage

Examples:

  • cookey session export --latest > storageState.json
  • cookey session export --latest --out storageState.json --pretty
  • cookey session export r_xxxxxxxxxxxxxxxxxxxxxx

Notes:

  • If --out is relative, it is resolved against the current working directory.
  • If the session file is missing but a daemon descriptor exists, Cookey reports the descriptor status so you can tell expired from error.
  • The exported file is suitable for Playwright's browser.newContext({ storageState }).
cookey session list

List all locally known request IDs, newest first, using the newest timestamp from either the daemon descriptor or the exported session file.

Flags:

  • --json emit machine-readable JSON
  • --help print command usage

Examples:

  • cookey session list
  • cookey session list --json
cookey session delete <rid>

Delete the local session file and daemon descriptor for rid.

Flags:

  • --json emit machine-readable JSON
  • --help print command usage

Examples:

  • cookey session delete r_xxxxxxxxxxxxxxxxxxxxxx
  • cookey session delete r_xxxxxxxxxxxxxxxxxxxxxx --json

Notes:

  • Cookey refuses to delete an active request whose daemon is still in waiting or receiving state.
cookey session clean

Delete all inactive local request/session pairs.

Flags:

  • --json emit machine-readable JSON
  • --help print command usage

Examples:

  • cookey session clean
  • cookey session clean --json

Notes:

  • Active requests are skipped instead of force-killed.
cookey config get [key]

Read configured defaults from ~/.cookey/config.json.

Supported keys:

  • default-server
  • timeout-seconds
  • session-retention-days

Aliases:

  • server -> default-server
  • timeout -> timeout-seconds
  • retention-days -> session-retention-days

Flags:

  • --json emit machine-readable JSON
  • --help print command usage

Examples:

  • cookey config get
  • cookey config get default-server
  • cookey config get timeout --json
cookey config set <key> <value>

Persist configured defaults in ~/.cookey/config.json.

Flags:

  • --json emit machine-readable JSON
  • --help print command usage

Examples:

  • cookey config set default-server https://api.cookey.sh
  • cookey config set timeout-seconds 900
  • cookey config set retention-days 30 --json

Notes:

  • default-server must parse as a relay base URL and must use https.
  • timeout-seconds must be a positive integer.
  • session-retention-days is stored in config today, but the current CLI does not automatically delete sessions based on that value. Use session clean for explicit cleanup.

Additional Behavior Details

  • Every CLI entry point bootstraps ~/.cookey/, ensures the keypair exists, ensures device ID exists, and cleans up stale daemon descriptors.
  • Request/session JSON under ~/.cookey/ is written atomically.
  • User-facing commands return exit code 0 on success and 1 on CLI/validation errors.
  • Inline daemon execution used by --attach can also return:
    • 3 when the request expires before session delivery
    • 5 when the daemon encounters a relay, decrypt, or local write failure

Suggested automation patterns (you)

Detached start + watch:

sh
cookey request start https://example.com/login --qr
cookey request status --latest --watch
cookey session export --latest --out storageState.json --pretty

JSON-first scripting (Note: If you need to show the QR code to the user while using JSON output, use --json --qr and extract the qr_text field, formatting it carefully inside a ```text block):

sh
cookey request start https://github.com/login --json --qr
cookey request status --latest --json
cookey session export --latest --out storageState.json

(Tip: When testing the login flow, avoid stateless domains like example.com which will yield an empty session. Use a real site like github.com/login or x.com/login to verify cookies and localStorage are captured correctly.)

Playwright usage:

ts
import { chromium } from "@playwright/test";

const browser = await chromium.launch();
const context = await browser.newContext({
  storageState: "storageState.json",
});

© Lakr233, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/website-login of Lakr233/Cookey.

Open the folder on GitHubat commit 86de969

Compare with similar skills

Website Login next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Website Login compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Website Login this skillLakr233/Cookey160—~3.7kAutomated safety check: PassMIT
Playwright Skilltech-leads-club/agent-skills7k—~3.6kAutomated safety check: PassCustom licence
Playwright Skilllackeyjb/playwright-skill3.2k—~1.9kAutomated safety check: PassMIT
Playwright Coretestdino-hq/playwright-skill3901 repos~1.4kAutomated safety check: PassMIT
Playwright Login Flowsandrewyng/context-hub14k—~715Automated safety check: PassMIT
Open BrowserJasonHonKL/Openbrowser114—~1.6kAutomated safety check: PassMIT

Similar skills

  • Playwright Skill

    tech-leads-club/agent-skills

    Complete browser automation with Playwright. An agent skill from tech-leads-club/agent-skills.

    7k GitHub stars~3.6k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Playwright Skill

    lackeyjb/playwright-skill

    Complete browser automation with Playwright. An agent skill from lackeyjb/playwright-skill.

    3.2k GitHub stars~1.9k tokensUpdated 8 days ago
    Testing & QAAuto-check passed
  • Playwright Core

    testdino-hq/playwright-skill

    Battle-tested Playwright patterns for writing and debugging reliable E2E, API, component, visual, accessibility, and security tests.

    390 GitHub starsUsed in 1 repo~1.4k tokens
    Testing & QAAuto-check passed
  • Playwright Login Flows

    andrewyng/context-hub

    Collects reusable Playwright patterns for logging in during end-to-end tests: password forms, OAuth redirects, saved browser state and TOTP two-factor codes.

    14k GitHub stars~715 tokensUpdated 4 mo ago
    Testing & QAAuto-check passed
  • Open Browser

    JasonHonKL/Openbrowser

    A skill your agent uses whenever the task involves browsing web pages, extracting page content, clicking forms, or completing web workflows.

    114 GitHub stars~1.6k tokensUpdated 5 mo ago
    Testing & QAAuto-check passed
  • API Testing

    petrkindlmann/qa-skills

    Test REST and GraphQL APIs with Playwright APIRequestContext, Supertest, or standalone HTTP clients.

    168 GitHub stars~2.7k tokensUpdated 4 mo ago
    Testing & QAAuto-check passed

Works with

Categories

Questions about Website Login

What does Website Login do?

A skill your agent uses whenever the user needs to log in to a website on their phone and reuse that authenticated session locally, especially for Playwright storageState JSON, cookies/localStorage…. Website Login is an agent skill from Lakr233/Cookey. Use whenever the user needs to log in to a website on their phone and reuse that authenticated session locally, especially for Playwright storageState JSON, cookies/localStorage capture, MFA, SMS codes, passkeys, or mobile-first login flows that are awkward in headless automation.

When should I use Website Login?

Website Login fits situations like: the user needs to log in to a website on their phone and reuse that authenticated session locally; especially for Playwright storageState JSON; cookies/localStorage capture; mobile-first login flows that are awkward in headless automation.

How do I install Website Login in Claude Code?

Run `npx skills add Lakr233/Cookey --skill website-login -a claude-code`. Or copy the skill folder (skills/website-login in Lakr233/Cookey) into .claude/skills/website-login in your project. Claude Code loads it when a task matches its description.

How do I install Website Login in Codex?

Run `npx skills add Lakr233/Cookey --skill website-login -a codex`. Or copy the skill folder (skills/website-login in Lakr233/Cookey) into .agents/skills/website-login in your project. Codex loads it when a task matches its description.

Can I use Website Login in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Lakr233/Cookey --skill website-login -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/website-login, .gemini/skills/website-login, .github/skills/website-login and .opencode/skills/website-login in your project.

What does Website Login need to run?

Going by SKILL.md and its folder, Website Login needs the command-line tools its instructions call (npm and pip). Our summary lists: Python 3; Node.js.

Does Website Login access the network?

SKILL.md names 2 domains. In commands or code: api.cookey.sh and github.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Website Login safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Website Login use?

Website Login is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Website Login use?

About 3.7k tokens (SKILL.md is roughly 15k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Website Login?

Skills that share tags, products or a category with Website Login: Playwright Skill (tech-leads-club/agent-skills, 7k stars), Playwright Skill (lackeyjb/playwright-skill, 3.2k stars), Playwright Core (testdino-hq/playwright-skill, 390 stars) and Playwright Login Flows (andrewyng/context-hub, 14k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Website Login?

Lakr233 (a GitHub user) maintains it in Lakr233/Cookey, which has 160 GitHub stars. The repository was last updated on June 1, 2026.

Source: Lakr233/Cookey on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.