Bring Your Own Key
Why BYOK exists
Section titled “Why BYOK exists”BYOK keeps the power-user path open.
It gives you:
- direct control over your own API usage
- a cleaner cost story for advanced users
- the option to combine API.Bible with local AI through Ollama
Core environment variables
Section titled “Core environment variables”API_BIBLE_KEY=your_api_bible_key_hereOLLAMA_HOST=http://127.0.0.1:11434For the browser reader:
PUBLIC_API_BIBLE_KEY=your_public_browser_keyPUBLIC_LOGOS_API_BASE=http://localhost:8484/apiRecommended split
Section titled “Recommended split”Use this mental model:
- desktop + CLI:
API_BIBLE_KEYand local Ollama - browser reader:
PUBLIC_API_BIBLE_KEYfor direct static use, orPUBLIC_LOGOS_API_BASEfor a backend proxy - managed future tier: no key setup for the end user
Local .env example
Section titled “Local .env example”API_BIBLE_KEY=your_api_bible_key_hereOLLAMA_HOST=http://127.0.0.1:11434PUBLIC_API_BIBLE_KEY=your_public_browser_keyPUBLIC_LOGOS_API_BASE=http://localhost:8484/apiKeep private variables out of source control. The PUBLIC_ values are intentionally different because Astro bakes them into the client build.