Skip to content
Back to skills

Doppler Secrets

ASecurity

Use when setting up Doppler as secrets source of truth, syncing Doppler to fnox/Keychain, bulk importing/exporting secrets, validating Doppler vs fnox parity, or troubleshooting Doppler CLI issues in this mise+chezmoi dev environment.

  • 30 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 8, 2026
ai-agentsgoshellbash

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill doppler-secrets --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Doppler Secrets?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Doppler Secrets
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-doppler-secrets/badge)](https://www.skillsdirectory.com/skills/majiayu000-doppler-secrets)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: doppler-secrets
description: Use when setting up Doppler as secrets source of truth, syncing Doppler to fnox/Keychain, bulk importing/exporting secrets, validating Doppler vs fnox parity, or troubleshooting Doppler CLI issues in this mise+chezmoi dev environment.
---

# Doppler Secrets Management

Doppler is the cloud source of truth. fnox/Keychain is the local runtime cache.

## Architecture

```
Doppler (project: dotfiles, config: dev)
  -> uv run mde-py secrets sync
    -> fnox/Keychain (local cache)
      -> mise (_.fnox-env = { tools = true })
        -> env vars -> .mcp.json / tools
```

New secrets go to Doppler first. `secrets sync` pulls them to fnox/Keychain.

## Setup

```bash
# Install (via mise or brew)
doppler login
doppler projects create dotfiles
doppler setup --project dotfiles --config dev
```

## Adding a New Secret

```bash
# CORRECT: Add to Doppler first (source of truth)
doppler secrets set NEW_KEY --project dotfiles --config dev
# Then sync to local cache
uv run mde-py secrets sync

# WRONG: Adding to fnox directly (bypasses source of truth)
fnox set NEW_KEY --provider keychain --global
```

## Bulk Import (fnox -> Doppler, one-time migration)

```bash
uv run mde-py secrets export-to-doppler
# Reads fnox list, pushes each to Doppler
# Validates parity after export
```

## Sync (Doppler -> fnox/Keychain)

```bash
uv run mde-py secrets sync
# Downloads from Doppler, updates fnox/Keychain entries
# Existing _.fnox-env chain then loads them into mise
```

## Validation

```bash
uv run mde-py secrets validate
# Compares Doppler vs fnox, reports mismatches
```

## Critical Gotcha: --command Flag

```bash
# CORRECT: variables expand AFTER Doppler injects
doppler run --command='echo $SECRET_KEY'

# WRONG: shell expands $SECRET_KEY BEFORE Doppler -> empty
doppler run -- echo $SECRET_KEY
```

## chezmoi Integration

In `~/.config/chezmoi/chezmoi.toml`:
```toml
[doppler]
project = "dotfiles"
config = "dev"
```

Then in chezmoi templates:
```
{{ doppler "SECRET_NAME" }}
{{ dopplerProjectJson.SECRET_NAME }}
```

## Common Mistakes

| Mistake | Fix |
|---------|-----|
| Adding secret to fnox instead of Doppler | Add to Doppler first, then sync |
| Using `doppler run -- echo $VAR` | Use `doppler run --command='echo $VAR'` |
| Forgetting --project/--config flags | Run `doppler setup` in project dir first |
| Not running sync after adding to Doppler | Run `uv run mde-py secrets sync` |
| Storing Doppler token in plaintext | Use `fnox set DOPPLER_TOKEN --provider keychain --global` |

## Offline Mode

Doppler creates an encrypted fallback at `~/.config/doppler/fallback.json`.
fnox/Keychain also retains synced values. Both work offline.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.