Home / Blog / Claude Code Stores OAuth Tokens in Plaintext
Tech News

Claude Code Stores OAuth Tokens in Plaintext

Claude Code Stores OAuth Tokens in Plaintext Why it matters for engineering teams.

By Dillip Chowdary • Sep 03, 2026 • Source: HN Claude/Codex/Fable

At a glance

Product
Claude Code
Version
2.1.257 (author's check)
Storage
Plaintext JSON, no encryption or keychain
File
~/.claude/.credentials.json, mode 0600
Contains
Top-level mcpOAuth object with access tokens
Published
Sep 2, 2026

The security blog Secretspec published a post detailing how the Claude Code command line tool stores sensitive OAuth tokens as unencrypted plaintext within the local directory structure. When developers authenticate their terminal tool with the cloud service, the application saves the resulting access tokens directly to the hard drive without applying any form of encryption or system keychain integration. This issue emerged on Hacker News under item id 49545023, where it

Claude Code Stores OAuth Tokens in Plaintext Sep 2, 2026 Domen Kožar Claude Code’s MCP documentation says authentication tokens are “stored securely”. On Linux, that currently means plaintext JSON protected by file permissions.

01What shipped

What shipped in Claude Code Stores OAuth Tokens in Plaintext is the version, model ID, and access path HN Claude/Codex/Fable named. Write those down before you talk about strategy. A launch without an ID or a documented switch command is still a press cycle.

The security blog Secretspec published a post detailing how the Claude Code command line tool stores sensitive OAuth tokens as unencrypted plaintext within the local directory structure. When developers authenticate their terminal tool with the cloud service, the application saves the resulting access tokens directly to the hard drive without applying any form of encryption or system keychain…

02What improved

What improved belongs in a before/after table: list price, cache-read price, benchmark, default effort, alias. Copy every number HN Claude/Codex/Fable printed.

Leave blank cells blank. Do not guess a percentage.

This issue emerged on Hacker News under item id 49545023, where it Claude Code Stores OAuth Tokens in Plaintext Sep 2, 2026 Domen Kožar Claude Code’s MCP documentation says authentication tokens are “stored securely”. On Linux, that currently means plaintext JSON protected by file permissions.

03What you gain

What you gain is the bill and the default that moved — cheaper cache, a new picker entry, a later knowledge cutoff — not a vibe. If your workload is cache-heavy, the cache line dominates; if it is output-heavy, it may not.

I checked Claude Code 2.1.257 after authenticating to several remote MCP servers. The file ~/.claude/.credentials.json had mode 0600, as it should, but it also contained a top-level mcpOAuth object with the access tokens.

Advertisement

Tech Pulse Daily

Get tomorrow's pulse first

Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.

04How to get it

Update Claude Code, then switch the session model. Copy the commands; do not invent flags.

Command
npm install -g @anthropic-ai/claude-code
claude update
claude --version
Command
/model fable
Command
claude --model fable

How to get it is a vendor command, not a paragraph that says read HN Claude/Codex/Fable. Update the CLI, switch with /model or --model, then set a default in the picker or documented config. Do not invent flags that are not in the notes.

05What to watch next

Watch the first patch, whether the alias still points at this cut, and whether a gated sibling (Mythos, preview, trusted access) is actually available to your org. Pin in staging before you change the default.

A 3–5 minute news post is a briefing, not a runbook. Keep HN Claude/Codex/Fable and the vendor's primary page in another tab, quote only what they printed, and write down the single decision this story forces (upgrade, wait, or ignore) before you Slack it to the rest of the team. If you need more than that decision, you want the primary docs or a later engineering deep-dive — not another recap of Claude Code Stores OAuth Tokens in Plaintext.

If you cannot name the surface — API, policy, model, hardware, or commercial terms — you are not ready to brief. Go back to HN Claude/Codex/Fable and the vendor page until you can. That extra ten minutes is cheaper than a wrong upgrade or a missed exposure.

If you cannot name the surface — API, policy, model, hardware, or commercial terms — you are not ready to brief. Go back to HN Claude/Codex/Fable and the vendor page until you can. That extra ten minutes is cheaper than a wrong upgrade or a missed exposure.

A 3–5 minute news post is a briefing, not a runbook. Keep HN Claude/Codex/Fable and the vendor's primary page in another tab, quote only what they printed, and write down the single decision this story forces (upgrade, wait, or ignore) before you Slack it to the rest of the team. If you need more than that decision, you want the primary docs or a later engineering deep-dive — not another recap of Claude Code Stores OAuth Tokens in Plaintext.

Dillip Chowdary

Author

Dillip Chowdary

Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.

Related on Tech Bytes

Advertisement

5-min tech signal

Weekday briefing for engineers who skip the noise.

No spam · Unsubscribe anytime

Advertisement

✈️ CareerPilot

Your AI job-search copilot

Match your resume against live Ashby, Greenhouse & Lever openings — fit scores, job-specific resume optimization and email alerts.

Find matching jobs →

Free Tools

Browse all tools →