cd /news/ai-tools/how-i-gave-claude-cookie-tools-a-pub… · home topics ai-tools article
[ARTICLE · art-134832] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=· neutral

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

A developer launched claudecookie.com, a browser-based toolset that converts Claude session cookies between formats such as cookies.txt, Cookie-Editor JSON, Puppeteer, and the ~/.claude/.credentials.json file Claude Code reads. The site exposes three of its utilities as public, keyless JSON APIs over HTTPS with CORS set to wildcard, including convert, check, and credential endpoints, with per-IP rate limits and a Retry-After header on 429 responses. The developer notes the project is not made by or endorsed by Anthropic and warns users to treat live session cookies like passwords.

by read1 min views1 publishedSep 19, 2026

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:

cookies.txt, Cookie-Editor JSON, Puppeteer format, key-value or a raw Cookie header into each other. Runs entirely in your browser; the paste never leaves your device.~/.claude/.credentials.json Claude Code actually reads. Every one of those three exists as a public JSON API. No API key, CORS is *, everything over HTTPS:

curl https://claudecookie.com/api/v1/convert \
  -H "Content-Type: application/json" \
  -d '{"input":"sessionKey=sk-ant-sid01-...","target":"cookie-editor"}'

curl https://claudecookie.com/api/v1/check \
  -H "Content-Type: application/json" \
  -d '{"cookie":"sessionKey=sk-ant-sid01-..."}'

curl https://claudecookie.com/api/v1/credential \
  -H "Content-Type: application/json" \
  -d '{"cookie":"sessionKey=sk-ant-sid01-..."}'

Batch check accepts up to 10 cookies in one request ({"cookies": ["...", "..."]}).

Route Budget
All /api/v1/* 10 req/s per IP (burst 20)
POST /convert 60/min per IP
POST /check 20/min per IP
POST /credential 5/min and 20/hour per IP; 3/hour per sessionKey

A 429 response carries a Retry-After header in seconds.

examples/curl.sh, examples/check.py, examples/convert.mjs) It does not log you out, and it does not rotate your cookie on purpose. Treat a live session cookie like a password: only paste a session you control.

The site also has Russian and Chinese versions. Not made by or endorsed by Anthropic.

If you end up using the API, tell me what is missing. The whole point of publishing it with no keys is that agents and scripts can just call it.

── more in #ai-tools 4 stories · sorted by recency
── more on @claude code 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/how-i-gave-claude-co…] indexed:0 read:1min 2026-09-19 ·