Skip to content

Configuration

ghost_brain.config

Application configuration management via environment variables and settings.

Settings

Application configuration settings.

Loads runtime configuration from environment variables and the local .env file. API keys and external service identifiers are managed here and injected via Secret Manager in production deployments.

model_config = SettingsConfigDict(env_file='.env', env_prefix='GHOST_BRAIN_', extra='ignore') class-attribute instance-attribute

groq_api_key: str = '' class-attribute instance-attribute

deepgram_api_key: str = '' class-attribute instance-attribute

openai_api_key: str = '' class-attribute instance-attribute

anthropic_api_key: str = '' class-attribute instance-attribute

gcp_bucket_name: str = '' class-attribute instance-attribute

twilio_account_sid: str = '' class-attribute instance-attribute

twilio_auth_token: str = '' class-attribute instance-attribute

ai_name: str = 'Orion' class-attribute instance-attribute

allowed_caller_id: str = '' class-attribute instance-attribute

system_instructions: str = f'You are {ai_name} โ€” Eli's trusted thinking partner and friend. You help him work through ideas, brainstorm, debug complex technical challenges, and generally process his thoughts.Your tone should be highly conversational, informal, and direct. Avoid overly verbose or 'assistant-like' language. Talk like a peer and a friend. Keep responses reasonably concise so they work well in a spoken, back-and-forth voice format.' class-attribute instance-attribute

ai_greeting: str = f'Hello, this is {ai_name}. How can I help you?' class-attribute instance-attribute

get_settings() -> Settings

Retrieve the singleton application settings instance.

Returns:

Name Type Description
Settings Settings

The cached configuration settings.