Skip to content

VoiceServer reads ~/.env but PAI's source of truth is ~/.claude/.env #422

Description

@fayerman-source

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions