Urgent.News

What's breaking now, across thousands of outlets.

Tech

How I gave Claude cookie tools a public no-key JSON API

If you use Claude Code, you have probably hit this wall: the browser stores your login as a sessionKey cookie, but Claude Code wants ~/.claude/.credentials.json . Two different files, same login. I built claudecookie.com to bridge the gap. Three tools, one place: Converter — turn Netscape cookies.txt , Cookie-Editor JSON, Puppeteer format, key-value or a raw Cookie header into each other. Runs…

Claude Code users often encounter a problem: the browser stores their login as a sessionKey cookie, while Claude Code expects the ~/.claude/.credentials.json file. To solve this issue, claudecookie.com was created. The site provides three tools under one roof: a converter, a checker, and a credentials downloader.

The converter allows users to transform session keys into various formats, such as Netscape cookies.txt, Cookie-Editor JSON, Puppeteer format, key-value pairs, or raw Cookie headers. The checker verifies the validity of a session cookie, revealing details like the account email, plan type (Free, Pro, or Max), and remaining usage time. Finally, the credentials downloader retrieves the ~/.claude/.credentials.json file, which Claude Code utilizes.

All three tools offer public JSON APIs, requiring no API keys, CORS support, and HTTPS encryption. Users can interact with the APIs using curl commands. The converter accepts a sessionKey and target format, the checker requires a cookie, and the credentials endpoint requests a cookie as well.

The site imposes rate limits to prevent overloading: 10 requests per second per IP address (burst 20), 60 requests per minute, 20 requests per minute, and 5 requests per minute and 20 requests per hour for the respective endpoints. If users exceed these limits, they receive a 429 response with a Retry-After header in seconds.

Claudecookie.com provides machine-readable documentation in OpenAPI 3.1 format and a short agent-facing summary at https://claudecookie.com/llms.txt. Additionally, users can find copy-paste scripts in the GitHub repository (examples/curl.sh, examples/check.py, and examples/convert.mjs).

The site's functionality reads account information and plan details without logging users out or tampering with their session cookies. Users must ensure they provide their own controlled session keys, treating them as sensitive information. Claudecookie.com also offers Russian and Chinese language versions. The site was not developed by or endorsed by Anthropic, and users are encouraged to provide feedback on any missing features.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Hello dev

<!DOCTYPE html> Dragon Dog Animation <br> body {<br> margin: 0;<br> background: #111;<br> display: flex;<br> flex-direction: column;<br> align-items: center;<br> justify-content: center;<br>…

Jumia Product Analysis WithExcel Dashboards

Introduction Big E-commerce organisation like Jumia handle large datasets that are vital in the day-to-day operations. The data needs to be evaluated to make good and decisive business decisions that…

More from Saturday 19 September →