grab-cookie

Re-auth the tools that never issue an API key, in one paste.

Two or three tools in most MSP stacks authenticate with a browser session and nothing else: an httpOnly cookie, or an opaque token parked in localStorage. About once a month the session expires, nothing announces it, and a scheduled job quietly starts returning empty results. grab-cookie turns that recovery into one DevTools paste and one command, ending in a real authenticated call that either passes or fails loudly.

It is a free, open source Claude Code Skill, contributed by BomberJacket Networks. Markdown plus four stdlib Python files: no compiled binary, no MCP server, no third-party packages.

Use connect-tool first, and this only when you cannot

If your vendor issues an API key or supports OAuth, connect-tool is the answer and this skill is the wrong tool. connect-tool handles scope changes and rotation properly, and it refuses cookie import on purpose.

A session credential makes the opposite tradeoff, deliberately and in writing:

  An API key via connect-tool A session credential via grab-cookie
What it can do Whatever scope you granted it. Whatever the logged-in account can do. It cannot be narrowed.
How you revoke it Delete the key in the vendor portal. Log the session out.
How long it lasts Until you rotate it. Weeks, typically, then it dies without warning.
When to reach for it Always, when the vendor offers it. Only when the vendor offers nothing else.

The pain is real, and refusing to cover it does not stop people doing it worse by hand - in a text file, next to the code, with no verification and no expiry warning. This skill covers the case honestly instead.

What the paste actually buys you

The capture is irreducible. Everything around it is not, and that is where the afternoon goes:

Adding a site is adding a profile, not changing code. Two annotated examples ship in profiles/.

Being honest about the edges

Install

Install the Skill, then write a profile for your site. Full steps are in the grab-cookie README on GitHub.

Then tell your agent what broke:

the reporting tool stopped pulling data again - re-auth it

It walks you through the DevTools paste, seeds the credential, rebuilds the config, and finishes with the authenticated call that proves it.

grab-cookie on GitHub →   Browse all skills →