Clean up plaintext API keys stored locally by AI coding assistants
11/30/2026 — 11/30, 19:20·1 sources (all)·1 reports (all)
Key takeaways
- Claude Code stores every session as plaintext transcripts in the user's home directory for 30 days, and Codex saves history files by default…
Background & analysis
On November 30, 2026, a DEV Community post flagged that AI coding assistants can leave sensitive material in plain text on users' local disks. According to the article, Claude Code stores every session as a plain-text transcript in the user's home folder and keeps it for 30 days, while Codex saves a history file by default. As a result, if an agent has ever read a .env file or printed a key, that key remains on disk. The post also cites Anthropic's own documentation, which states that Claude Code transcripts are "not encrypted at rest."
To address the issue, the author outlines a cleanup routine that takes about 10 minutes and requires no new tools: search those folders, revoke and rotate any keys found, purge the records, and then shorten how long history is retained. As of this report, the matter remains at the level of a suggested procedure; the material does not mention any vendor response or change to default settings.
AI-generated from 1 reports · updated 5 days ago
- Heat index
- 25
- All sources
- 1
- All reports
- 1
- First seen
- 5 days ago
Reports on this story headlines open the original
Claude Code keeps every session as a plain-text transcript in your home folder for 30 days, and Codex saves a history file by default, so any key an agent read from a .env file is sitting on disk. The cleanup takes about 10 minutes with no new tools: search those folders, revoke and rotate anything found, purge the files, then shorten how long history is kept.
DEV Community · AIAI score 64
Other stories people are talking about
- Heat index 880RisingOpenAI growth stalls as Nvidia delays 10-Q, sparking AI and chip stock selloff16 sources
- Heat index 830RisingMiniMax M4 scores 47 on Intelligence Index; M4.1 in development18 sources
- Heat index 665Alibaba open-sources Qwen4-35B-A3B with 1M context16 sources
- Heat index 590RisingOpenAI memo makes revenue its north-star metric ahead of IPO9 sources
- Heat index 316SurgeSamsung in talks to buy data-center cooling firm Modexus for about $15B4 sources
How is heat calculated?About the methodHide
Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.
This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.
- Surge
- Discussion rising fast
- New
- First report within 6 hours
- Rising
- Still gathering discussion

