macos-keychain-secrets

Store and retrieve secrets securely using the macOS Keychain.

2|1|Updated Nov 13, 2025
One-click install
npx skills add https://github.com/AgentParadise/agentic-primitives --skill macos-keychain-secrets
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: macos-keychain-secrets
Source: https://github.com/AgentParadise/agentic-primitives/tree/main/plugins/sdlc/skills/macos-keychain-secrets
Command: npx skills add https://github.com/AgentParadise/agentic-primitives --skill macos-keychain-secrets

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Store and retrieve secrets securely on macOS to prevent sensitive values from being stored in plain text or committed to git.

Core Features & Use Cases

  • Secure secret storage and retrieval using the macOS Keychain.
  • Shell integration: export secrets to environment variables for seamless CLI workflows.
  • Use cases include managing API keys, tokens, and credentials in local development environments.

Quick Start

Run the add-secret.sh script to securely store a secret in Keychain and configure your shell environment.

Frequently Asked Questions about macos-keychain-secrets

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I securely store API keys in the macOS Keychain instead of plain text?

Secrets stored in the macOS Keychain are retrieved at runtime through secure prompts and exported to shell environment variables, allowing seamless CLI workflows without persisting credentials in plain text files.

Can I use macOS Keychain credentials directly in my shell environment?

Yes, this skill integrates macOS Keychain credentials directly into your shell environment by exporting secrets to environment variables, enabling seamless CLI workflows and local development without exposing plain text credentials.

What is the best way to manage local development secrets on macOS?

Using the macOS Keychain is a secure way to manage local development secrets, preventing API keys and credentials from leaking. It relies on the macOS security CLI to safely store and retrieve sensitive values.

Does this macOS Keychain secrets skill require any external password managers?

No external password managers are required. This skill relies entirely on the built-in macOS security CLI to validate inputs, manage credentials, and update shell configuration with safeguards.

How do I delete a secret from macOS Keychain when a credential expires?

You can securely delete an expired credential from macOS Keychain using the skill's interactive secret deletion feature, which safely removes API keys and updates your shell configuration accordingly.

When should I avoid storing secrets in plain text files for shell scripts?

You should avoid plain text files for shell secrets when there is a risk of committing them to git. Using macOS Keychain prevents credential leakage by relying on the security CLI and secure runtime prompts.