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:**
- -----
**Rules:**
1. 2.3.4.
๐ ๏ธ Installation
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
# Cross-chapter ranges
Searching
# Full text search (FTS5 BM25 Ranked)
# Search specific translation
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 | โ | varies |
Canonical USFM refs (JHN/3/16) |
โ | โ |
| Multi-translation in one call | โ | โ |
| Multi-locale ref parser | โ | โ |
| Cold start | ~50 ms (Rust) | Slower (Node/Python) |
๐ฆ 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.2.0):
- English:
KJV - Portuguese:
ONBV,BLJ,BSL,BLT,TFT
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.
License: Dual-licensed under MIT or Apache-2.0. Bible texts retain their original licenses.