If you're new to coding agents: they keep a diary, and your API keys are in it
Summary
Coding agents like Claude Code, Cursor, and Codex save session logs locally, potentially exposing sensitive data like API keys and environment variables. A developer named Ishan created an offline tool to scan and redact secrets from these logs, addressing a common security blind spot.
Similar Articles
Your AI agent's history is quietly storing the API keys you pasted into it
A developer highlights that AI agent history files store API keys pasted into prompts, and introduces an open-source CLI tool to scan and redact those secrets locally.
How are you giving coding agents access to external APIs without handing them raw secrets?
A discussion on how developers handle credentials for coding agents, exploring an approach where agents use APIs without receiving raw secrets, with injection at request time and destination restrictions. The author is building this as part of Stashbase and invites others to share their practices.
How does your agent actually get its API keys?
A developer discusses three common patterns for how coding agents obtain API keys, highlighting that agents can circumvent restrictions by being resourceful, and asks the community about their real-world setups and experiences.
Giving coding agents shell access feels insane. How are people handling secrets?
The author expresses concern about granting coding agents shell access, noting they can read sensitive files like .env and credentials, and asks the community for practical secret-handling patterns before letting agents touch real repositories.
Centralizing API keys is convenient, but should the agent ever see them?
An exploration of whether AI agents should ever directly see API credentials, inspired by the open-source OneCLI project which uses a gateway to swap placeholders for real keys, sparking a discussion on trust and security in AI tooling.