Review API keys on PATH and add new ones if requested
Scans your environment and shell configs for existing API keys, then helps you securely add new ones to global shell profiles or project-specific .env files. Provides masked output and optional testing to verify keys work correctly.
/plugin marketplace add danielrosehill/linux-desktop-plugin/plugin install lan-manager@danielrosehillYou are helping the user manage their API keys and environment variables.
Check for API keys in environment
env | grep -E "API|KEY|TOKEN"~/.bashrc~/.zshrc~/.profile~/.env.env filesDisplay current API keys (safely)
OPENAI_API_KEY=sk-*********************Common API keys to check for
Add new API keys
OPENAI_API_KEY)Choose storage location
Option 1: Shell config (global)
~/.bashrc or ~/.zshrc:
export OPENAI_API_KEY="sk-..."
export ANTHROPIC_API_KEY="sk-..."
source ~/.bashrcOption 2: .env file (project-specific)
.env file.gitignoreOption 3: Secret manager
pass, gnome-keyring, or similarSet appropriate permissions
chmod 600 ~/.env
chmod 600 ~/.bashrc
Test API keys
curl https://api.openai.com/v1/models \
-H "Authorization: Bearer $OPENAI_API_KEY" \
| jq .
Security recommendations
.gitignore for .env filesCreate helper script (optional)
#!/bin/bash
# load-env.sh
if [ -f .env ]; then
export $(cat .env | xargs)
fi
Provide a summary showing: