The AWS Credential Daemon gives coding agents a credential they can use without ever handing them the keys to the kingdom. Announced as an open-source preview at re:Invent 2026 and detailed in an AWS Security Blog post on December 4, the tool, known as credsd, moves long-lived cloud credentials off the disk and behind hardware, then vends short-lived sessions to the command line, software kits, and local AI agents that ask for them. It is a small local service aimed at a large and growing problem: agents now run with the same permissions as the developer who launched them.
According to AWS, the daemon is designed for a world where an AI coding agent, a model-context server, or a throwaway install script all run under the same user account as the developer, and can therefore open the same files. The AWS Credential Daemon answers that by sealing the secret where the calling process cannot reach it.
The problem: agents run as you
Until now, the AWS command line and its software kits stored static access keys, sign-in tokens, and session caches as plain text under a hidden folder in the home directory. Only operating-system file permissions stood between those files and anything else running as the same user. That arrangement was already fragile. With AI coding agents, it became dangerous, because an agent inherits everything its developer can reach.
AWS names three risks in its announcement. First, agents carry far broader authority than any single task needs, with no access decision at the time of use and no record of who did what. Second, prompt injection through untrusted content can trick an agent into misusing those permissions or leaking keys it read from disk. Third, a single copied file can hand an attacker persistent cloud access that can be replayed later. The exposure grows further now that AWS lets customers configure extended sign-in sessions of up to 90 days for users and roles.
The concern is not theoretical. Security teams spent the past week digesting a string of agent-security stories, from a 700 million dollar acquisition aimed at agent security to a flaw in a popular AI code-review extension that left nearly a million developers exposed. The AWS Credential Daemon belongs in the same conversation, but it works at the level of the individual workstation rather than the enterprise perimeter.
How the AWS Credential Daemon seals the secret
The design inverts what a calling process ever sees. The long-lived credential stays sealed under a hardware-backed key, and the daemon serves short-lived credentials to the command line, software kits, and agents over a local socket. A process asks for credentials and gets back a session with an expiration. It never receives the secret that created that session, so it cannot mint a new one after the session dies.
The hardware backing differs by operating system. On Apple silicon Macs, the signed package keeps its master key in a data-protection keychain item that only the signed daemon application can open. On Linux, the master key lives in a TPM 2.0 chip. Refresh tokens, signing keys, and static access keys are encrypted at rest under that key, so a copied credential file is no longer a working credential.
Every request is logged locally with the caller's user id, process id, and executable path, as reported by the kernel. That audit trail is the missing piece in the first risk AWS names: when an agent does something, there is now a record of which process asked for which credential and when.
To cap what an agent can do, the daemon can also apply an inline scope-down policy at issuance, narrowing the session to the permissions a task actually needs. The same mechanism can inject third-party tokens, for example for GitHub, without exposing them in the agent's environment. The daemon can hold OAuth tokens, JSON web tokens, and static API keys as well.
What changes for developers
For developers, the commands stay the same. The daemon is integrated directly with the AWS command line in preview, and with Strands Box, the sandbox AWS built for agents. Software kits and tools can connect during the preview using the standard credential-process setting, which names an external command the CLI runs to retrieve credentials.
Moving an existing Mac or Linux workstation off plain-text files takes only a few minutes inside the AWS command line, according to the AWS Security Blog. A single install command downloads the signed platform package and registers the background service. On Linux it installs as a system service, and other users on the machine connect with a link command. From that point on, the daemon refreshes sessions in the background and vends short-lived credentials on demand.
There is one setup step that matters more than the install itself. If keys are still sitting in the plain-text credentials file or in environment variables, they take precedence and the daemon is silently ignored, according to independent setup guides published this week. Removing the old keys is part of the setup, not an optional clean-up. The daemon also works with IAM Identity Center, AWS Sign-In, IAM Roles Anywhere, and IAM user access keys, so existing sign-in methods carry over.
Preview limits worth knowing
The preview has real limits, and AWS is open about them. It runs on macOS and Linux only. Windows is not a supported production path, and neither are Intel Macs; the Mac package needs Apple silicon running macOS 11 or later. On a Linux host without a TPM chip, installation fails rather than downgrading silently. An administrator can then explicitly choose a file backend, which keeps the master key in a file with strict permissions and relies on full-disk encryption.
Some command-line workflows are available in the preview while others are still coming, and commands, configuration, socket interfaces, and on-disk formats may change before general availability. The project is open source under the Apache 2.0 licence, and AWS has published no separate price for the daemon itself.
The preview caveats are substantial, so the tool should be evaluated as one layer in a defence-in-depth design rather than a substitute for least-privilege identity rules, agent sandboxing, endpoint security, or secret rotation. But as a layer, it closes a gap that has been open since the first coding agent started reading files on a developer's laptop: the gap between operating-system user permissions and the reality of agents running as local processes. Sealing credentials in the AWS Credential Daemon stops an AI agent or a malicious script from reading long-lived tokens and static keys off the hard drive, and that is a concrete step forward for anyone who lets agents work on their machine.
Sources: AWS Builder Center, Cyber IT Sec, Logeshwaran.org, AWS Security Blog via Cybernoz.
Comments 0
No comments yet. Be the first to share your thoughts!
Leave a comment
Share your thoughts. Your email will not be published.