#8575: feat: add HEYGEN_API_KEY to expected shell environment variables
stale
Cluster:
GitHub Copilot Enhancements
## Summary
Adds `HEYGEN_API_KEY` to the list of expected shell environment variables that OpenClaw auto-imports during onboarding.
HeyGen builds the world's leading avatars and video agent. Users who want avatars for their claws or have the ability for their claws to generate videos would greatly benefit from having this integration.
This allows users who have their HeyGen API key set in their shell profile (`.bashrc`, `.zshrc`, etc.) to have it automatically detected and imported, similar to ElevenLabs and other provider API keys.
## Changes
- Added `HEYGEN_API_KEY` to `SHELL_ENV_EXPECTED_KEYS` in `src/config/io.ts`
## Test plan
- [x] Verified the key is added in the correct location (after `ELEVENLABS_API_KEY`)
- [x] Manual test: Set `HEYGEN_API_KEY` in shell profile, run onboarding, verify it's imported
---
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
Adds `HEYGEN_API_KEY` to `SHELL_ENV_EXPECTED_KEYS` in `src/config/io.ts`, which is passed into `loadShellEnvFallback(...)` during onboarding/config loading. This lets OpenClaw automatically detect/import a HeyGen key from the user’s shell environment alongside other provider keys (e.g., ElevenLabs) when shell env fallback is enabled.
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with minimal risk.
- Change is a single additive constant entry in an existing allowlist used for shell env import; no control flow or parsing behavior changes, and the new key matches the established naming pattern.
- No files require special attention
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#12059: feat(agents): Add Azure AI Foundry credential support
by lisanyambere · 2026-02-08
71.9%
#21216: feat(models): add apiKeyHelper for dynamic API key resolution
by chrisvanbuskirk · 2026-02-19
70.6%
#11938: feat: support ANTHROPIC_AUTH_TOKEN environment variable
by EricMymj · 2026-02-08
70.3%
#13505: feat(copilot): add GitHub Enterprise Cloud (GHE.com) support for Co...
by kryptus47 · 2026-02-10
70.0%
#11300: feat(exec): make shell configurable via tools.exec.shell
by imjszhang · 2026-02-07
69.4%
#8137: feat: openclaw-env hardened sandbox generator (MVP)
by krahimov · 2026-02-03
68.6%
#13079: feat: Add OpenAI-compatible API option to CLI for self-hosted models
by MikeWang0316tw · 2026-02-10
68.6%
#7133: feat: Automated Docker setup with environment-based configuration
by synetalsolutions · 2026-02-02
68.6%
#7295: feat(provider) Add Key-less AI Integration via Puter
by ProgrammerIn-wonderland · 2026-02-02
68.3%
#17916: [ fix ] : correct config directory path during onboarding
by Dijo-404 · 2026-02-16
68.3%