Description
VoiceServer reads API keys from ~/.env, but PAI's documented source of truth for API keys is ~/.claude/.env:
# ~/.claude/.env header:
# PAI Environment Variables
# ==========================
# SINGLE SOURCE OF TRUTH for all API keys and authentication.
This inconsistency causes ElevenLabs voice to fail on fresh installs even when the API key is correctly configured in ~/.claude/.env.
Current Behavior
// VoiceServer/server.ts reads from:
const ENV_FILE = "$HOME/.env"
Expected Behavior
VoiceServer should read from PAI's canonical location:
const ENV_FILE = "$HOME/.claude/.env"
// Or check both with PAI location taking precedence
Workaround
Copy/symlink the key:
grep "ELEVENLABS_API_KEY" ~/.claude/.env >> ~/.env
Environment
- PAI version: v2.3.0
- Platform: Ubuntu 24.04 / WSL2
Related
This is a design inconsistency rather than a missing file. PR #416 addresses this by loading from multiple locations, but the canonical location should be documented and consistent across PAI components.
Description
VoiceServer reads API keys from
~/.env, but PAI's documented source of truth for API keys is~/.claude/.env:This inconsistency causes ElevenLabs voice to fail on fresh installs even when the API key is correctly configured in
~/.claude/.env.Current Behavior
Expected Behavior
VoiceServer should read from PAI's canonical location:
Workaround
Copy/symlink the key:
Environment
Related
This is a design inconsistency rather than a missing file. PR #416 addresses this by loading from multiple locations, but the canonical location should be documented and consistent across PAI components.