Credentials
macOS Keychain-based credential management. API keys stored encrypted, retrieved via the security command, never in plain text files.
Managed Services
| Service | Key Type | Status |
|---|---|---|
| GitHub | Personal Access Token | Configured |
| Anthropic | API Key | Configured |
| Vercel | Token | Configured |
| Neon | API Key | Configured |
| Stripe | Secret Key | Configured |
| Sentry | Auth Token | Planned |
| Linear | API Key | Planned |
| PostHog | API Key | Planned |
| Notion | API Key | Planned |
| Slack | Bot Token | Planned |
| Figma | Access Token | Planned |
| Resend | API Key | Planned |
| Cloudinary | API Secret | Planned |
| ImageKit | Private Key | Planned |
Commands
Check Status
credentials.sh statusShows which keys are configured and which are missing.
Set a Key
credentials.sh set GITHUB_TOKEN ghp_xxxxxxxxxxxxxStores the key in macOS Keychain under the kun service.
Get a Key
credentials.sh get GITHUB_TOKENRetrieves from Keychain — never stored in a file.
Export to Environment
credentials.sh exportExports all stored keys as environment variables for the current session.
Setup All
credentials.sh setupInteractive setup — walks through each required key.
How It Works
Storage
Keys are stored in macOS Keychain using the security command:
# Store
security add-generic-password -a "kun" -s "GITHUB_TOKEN" -w "ghp_xxx" -U
# Retrieve
security find-generic-password -a "kun" -s "GITHUB_TOKEN" -wSecurity
- Encrypted at rest by macOS Keychain
- Protected by your Mac login password
- Never written to disk in plain text
- Not committed to git
- Per-machine, not shared
Safari Password Integration
For web services that need browser login, credentials.sh can reference Safari's saved passwords:
credentials.sh login vercel
# Opens Safari to vercel.com with saved credentialsWindows Alternative
On Windows, secrets are managed via the gist-based system:
# Setup secrets from private gist
.\.claude\scripts\secrets.ps1 -GistId YOUR_GIST_IDThis downloads encrypted secrets from a private GitHub gist and configures environment variables.