gutsofpratik/horizon-skills/source-0df8b3d367c71ce9f4533adc
- community
Checking that the SKILL.md file is still in the repository.
Wire encrypted credentials to environment variables using the credential: convention. Use when setting up LLM provider keys (ANTHROPIC_API_KEY, OPENAI_API_KEY) or any env var that should come from encrypted credentials.
Install
npx vskill@latest install gutsofpratik/horizon-skills/source-0df8b3d367c71ce9f4533adcSKILL.md
Credentials as Environment Variables
When to Use This Skill
- Setting up
ANTHROPIC_API_KEYorOPENAI_API_KEYfrom encrypted credentials - Wiring any credential path to a
process.envvariable automatically - Migrating from plaintext
.envsecrets to encrypted credentials - Understanding why an env var is being resolved at worker startup
The credential: Convention
Any env var whose value starts with credential: is resolved from encrypted credentials at worker startup. The format is:
Example .env
Encrypted credentials (config/credentials.yml.enc)
How It Works
When the worker starts, every env var set to credential:<path> is replaced with the decrypted value at that path. By the time a workflow runs, ANTHROPIC_API_KEY holds the real key and LLM SDKs read it as usual.
Values come from the global credentials for the current environment: config/credentials/<NODE_ENV>.yml.enc when it exists, otherwise config/credentials.yml.enc. Workflow-scoped credentials are never used for env vars, so keep these paths in the global file.
Precedence Rules
Real env var values always take precedence. If ANTHROPIC_API_KEY is already set to a non-credential: value (e.g. from the shell or a CI secret), it is never overwritten:
This means you can override any credential ref at deploy time without changing files.
Setting Up the Convention
Step 1: Initialize credentials (if not done)
Step 2: Update .env
Step 3: Verify
Start the worker and look for the log line:
If the log line lists your env vars, credentials are wired correctly.
Verification Checklist
- [ ]
config/credentials.yml.enccontains the target credential paths - [ ]
.envusescredential:<path>values for the relevant env vars - [ ] Worker startup log shows
Resolved credential env varslisting the expected env vars - [ ] First LLM workflow run succeeds (confirming
ANTHROPIC_API_KEYis set correctly) - [ ] Setting a real env var in the shell overrides the credential ref
Related Skills
output-credentials-init— Create the encrypted credentials fileoutput-credentials-edit— Add/update credential valuesoutput-dev-credentials— Full credentials system reference
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/source-0df8b3d367c71ce9f4533adc/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gutsofpratik/horizon-skills/source-0df8b3d367c71ce9f4533adc)