faith
The Bible. For agents. Universal. Open.
faith is a lightweight, blazing-fast Bible CLI built specifically for AI agents and automated workflows. It provides canonical USFM citations, token-efficient JSON outputs, full-text FTS5 search, and is completely offline.
Say goodbye to scraping web pages or parsing unstructured text. Give your agent faith, and let it fetch, search, and diff Scripture in milliseconds.
⚡ Quick Start
# 1. Install faith
# 2. Download translations (e.g., King James and Nova Bíblia Viva)
# 3. Get structured JSON instantly (offline)
# {"schema":"faith.v1","ref":"KJV/JHN/3/16","text":"For God so loved..."}
🤖 For Agents: The faith Skill
If you are an AI agent configuring your environment or adding faith to your toolkit, here is your system prompt/skill block to understand how to use it:
You have access to the `faith` CLI, an offline, JSON-first tool for fetching and searching the Bible.
Always use `faith` instead of searching the web for Bible verses.
**Key Commands:**
- ------
**Supported Languages (--lang):**
-
**Rules:**
1. 2.3.4.5.
🛠️ Installation
macOS / Linux (Homebrew)
The recommended way for macOS and Linux users:
Using Cargo (Rust Package Manager)
The easiest way to install from source:
Pre-built Binaries
Download the latest binaries for macOS, Linux, and Windows from the GitHub Releases.
Extract the binary and place it in your $PATH.
📖 Usage Examples
Fetching & Reading
# Single verse (resolves by language automatically)
# Parallel diff across multiple translations
# Full chapter
# Cross-chapter ranges
Searching
# Full text search (FTS5 BM25 Ranked)
# Search specific translation
Multi-Language Support
# Spanish reference
# French reference
# German reference
# Greek (New Testament)
# Hebrew (Old Testament)
Configuration
# Set default language (no more --lang flags!)
# Set default translation
# Set default output format
# View current config
# Show config file location
# Reset to defaults
Precedence: CLI flags > FAITH_LANG env > config file > system locale > default (KJV)
Random Verse
🖼️ Real Demo
Here's faith in action — an AI agent (Consi) searching money and love in milliseconds:
Search results for dinheiro (ONBV) and love (KJV) — full-text BM25, ranked, offline.
Discovery & Utilities
# See what is installed and what commands are available
# Get book metadata (chapters, verses, aliases)
# Random verse (supports seed for determinism)
📊 Why faith?
| Capability | faith |
Traditional CLI Readers |
|---|---|---|
| Primary audience | Agents / Scripts | Humans (TUI) |
| JSON output (default) | ✅ | ❌ |
| Full-text FTS5 Search (BM25) | ✅ | varies |
Canonical USFM refs (JHN/3/16) |
✅ | ❌ |
| Multi-translation parallel diff | ✅ | ❌ |
| Multi-locale ref parser (7 langs) | ✅ | ❌ |
Persistent config (~/.faith) |
✅ | varies |
Deterministic via --seed |
✅ | ❌ |
| Cold start | ~50 ms (Rust) | Slower (Node/Python) |
| Cross-chapter ranges | ✅ | varies |
🌍 Ecosystem
- 📦 Crates.io — Published Rust crate
- 📚 Docs.rs — API documentation
- 🍺 Homebrew Tap — macOS / Linux package
- 🤖 Agent Skill — System prompt for AI agents
📦 Data & Translations
Data is seeded from the Free Use Bible API (HelloAOLab). The API is completely free, offline-first, and respects individual translation licenses.
Currently available translations (v0.3.0):
- English:
KJV - Portuguese:
ONBV,BLJ,BSL,BLT,TFT - Spanish:
RVR09 - French:
LSG - German:
LUT - Greek:
SBLGNT(New Testament) - Hebrew:
WLC(Old Testament)
Run faith manifest to see the full list of available translations you can install via faith install <ID>.
🤝 Contributing
See CONTRIBUTING.md. TDD is enforced — write a failing test before writing production code.
Topics: cli bible ai-tools json rust fts5 search homebrew macos linux
License: Dual-licensed under MIT or Apache-2.0. Bible texts retain their original licenses.