# Move AWS keys out of plaintext with Credential Daemon

> credsd seals AWS keys under hardware-backed storage, vends short-lived credentials and logs which process asked.

Source: https://fullbytedeveloper.com/blog/aws-credential-daemon-credsd-setup
Published here: 2026-12-03

AWS announced a preview of AWS Credential Daemon (credsd) on 2026-12-01: an open-source local daemon that seals AWS credentials and third-party secrets under a hardware-backed key instead of plaintext files, then vends short-lived credentials to the CLI, SDKs and agents. [1][2]

Related reading: [lock Claude Code out of your .env](/blog/claude-code-env-lock) and [scan for secrets before pushing AI code](/blog/scan-secrets-before-pushing-ai-code). Browse the [Security topic](https://fullbytedeveloper.com/blog/topic/security).

## Check whether long-lived keys sit in plaintext

The AWS CLI stores long-lived access keys in `~/.aws/credentials` as plain text readable by any process running as your user. Count how many secret lines you have today:

```bash
grep -c aws_secret_access_key ~/.aws/credentials
```

A non-zero count means a coding agent on the same account can read the same file you can. credsd's design goal is to stop that pattern by sealing the long-lived secret and handing tools a short-lived session instead. [1][2]

## Install the preview on macOS or Linux

**Warning:** the README and getting-started guide label credsd a pre-release preview. Commands, the socket API and on-disk formats may change without a migration. It is not a general secret store. [2][3]

On Linux, the getting-started guide documents a system install after you download and verify a release archive: [3]

```bash
sudo install -m 0755 credsd creds /usr/local/bin/
sudo credsd install
credsd status
```

On macOS Apple Silicon, the same guide documents the official signed package from GitHub Releases, verified with the project `KEYS` file, then installed with `installer -pkg` for your user or for all users. [3] After install, open a new terminal and run `credsd status`. [3]

## Bootstrap one credential, then give agents their own

Bootstrap an IAM Identity Center credential. Replace the start URL and region with yours. [3]

```bash
creds bootstrap --credential work aws-idc-sso \
  --start-url https://myorg.awsapps.com/start \
  --sso-region us-east-1
```

Confirm with `creds list`. [3] Put credentials into a shell with `creds get` rather than sharing a static profile file: [3]

```bash
eval "$(creds get --credential work --format shell)"
```

The README says the daemon keeps a local audit log of every issuance with the kernel-verified process tree (uid, pid, executable path), and that agent tagging is heuristic and best effort. [2] To separate an agent's CloudTrail calls from yours, give the agent its own credential and IAM role. [2]

You now know whether plaintext AWS secrets sit on disk, how to install the preview and how to bootstrap a named credential without leaving the long-lived key in a shared file.

Send this to the teammate whose coding agent shares their `~/.aws/credentials` file.

## Sources

1. [AWS What's New: Credential Daemon preview (Dec 1, 2026)](https://aws.amazon.com/about-aws/whats-new/2026/12/aws-credential-daemon/)
2. [aws/credential-daemon README](https://github.com/aws/credential-daemon)
3. [credsd docs: getting started](https://github.com/aws/credential-daemon/blob/main/docs/getting-started.md)
