[Integrations](https://spiral.ai/integrations) › [Gemini CLI](https://spiral.ai/integrations/gemini-cli) › [Sefaria passage text](https://spiral.ai/integrations/gemini-cli/sefaria-passage-text)

# How to Use Sefaria passage text in Gemini CLI

Fetch a cited passage from Sefaria’s Jewish library, with original text and English where available. Use it to check a quotation, read a chapter, or examine the wording behind a commentary.

|  |  |
| --- | --- |
| Model | Sefaria passage text |
| Available through | Alexandria |
| Category | Industry Data |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Sefaria passage text in Gemini CLI

- Use Sefaria passage text to retrieve Genesis 1:1-5 and populate the reading component in this project with the original text and available English.
- Use Sefaria passage text to retrieve Psalm 23 and update the project's reading view to distinguish source wording from our explanatory notes.
- Use Sefaria passage text to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Sefaria passage text and tell me what changed since last week.
- Check Sefaria passage text and summarize what you find in three bullet points.

## How to set up Sefaria passage text in Gemini CLI

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Or add it to `~/.gemini/settings.json` yourself:

```bash
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `gemini` and run:

```text
/mcp auth spiral
```

3. **Check it**: In Gemini CLI, run `/mcp`. From your shell:

```bash
gemini mcp list
```

### Use the Spiral skill

1. **Send Gemini CLI this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Sefaria passage text**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "sefaria-org/bible/get_text",
    "input": {
      "ref": "<ref>"
    }
  }'
```

Then paste one of the prompts above: Gemini CLI finds Sefaria passage text on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/gemini-cli

## Sefaria passage text tools and prices

- [Sefaria: Hebrew Bible, Jewish commentaries and links (sefaria.org) · Get text](https://spiral.ai/tools/alexandria/sefaria-org/bible/get_text) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| language | both, hebrew, english | both | both: Hebrew (or Aramaic) source and English side by side; hebrew or english: one side only. |
| max_segments | 1 to 1000 | 200 | At most this many segments; a whole book or tractate is cut here with truncated true. |
| hebrew_version |  | — | Exact Sefaria versionTitle of the Hebrew edition to use (from versions.hebrew.version_title). It is returned only if its licence permits commercial use. |
| english_version |  | — | Exact Sefaria versionTitle of the English translation to use, e.g. The Holy Scriptures: A New Translation (JPS 1917). It is returned only if its licence permits commercial use. |

## What can you do with Sefaria passage text in Gemini CLI?

Build a study screen that places a cited passage beside commentary and recorded connections. A coding agent can use Sefaria readings to populate the project and preserve the citations behind each explanation.

### Prepare a lesson on a biblical passage

Build a lesson around Genesis 1:1-5 using the passage, a named commentary, and connected sources. Give students citations for each reading and questions that distinguish the verse from its interpretation.

### Check a Torah essay's sources

Verify quoted verses and commentary against Sefaria, then inspect recorded connections for supporting passages. Flag claims that the retrieved sources do not establish.

### Compare interpretations of one verse

Find commentators connected to Genesis 1:1, retrieve selected discussions, and compare them against the verse itself. Present each interpretation with its own citation.

### Build a passage study screen

Show a cited passage, a selected commentary, and a list of recorded connections. Keep source wording and the app's explanation visually distinct.

### Prepare a weekly study handout

Use an assigned passage list to assemble readings, commentary excerpts, and connected citations for discussion. Check each edition's license before reproducing its wording.

### Trace how a passage is interpreted

Start with Exodus 12:2, inspect its recorded connections, and read selected commentary beside the biblical text. Create an annotated reading path that explains what each source contributes.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Gemini CLI guides](https://spiral.ai/integrations/gemini-cli)

## Sefaria passage text in other agents

- [Amp](https://spiral.ai/integrations/amp/sefaria-passage-text)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/sefaria-passage-text)
- [Claude](https://spiral.ai/integrations/claude-desktop/sefaria-passage-text)
- [Claude Code](https://spiral.ai/integrations/claude-code/sefaria-passage-text)
- [Cline](https://spiral.ai/integrations/cline/sefaria-passage-text)
- [Codex](https://spiral.ai/integrations/codex/sefaria-passage-text)
- [Cursor](https://spiral.ai/integrations/cursor/sefaria-passage-text)
- [Devin](https://spiral.ai/integrations/devin/sefaria-passage-text)
- [dots](https://spiral.ai/integrations/dots/sefaria-passage-text)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/sefaria-passage-text)
- [Gemini](https://spiral.ai/integrations/gemini/sefaria-passage-text)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/sefaria-passage-text)
- [goose](https://spiral.ai/integrations/goose/sefaria-passage-text)
- [Grok](https://spiral.ai/integrations/grok/sefaria-passage-text)
- [Grok Build](https://spiral.ai/integrations/grok-build/sefaria-passage-text)
- [Hermes](https://spiral.ai/integrations/hermes/sefaria-passage-text)
- [Instinct](https://spiral.ai/integrations/instinct/sefaria-passage-text)
- [Manus](https://spiral.ai/integrations/manus/sefaria-passage-text)
- [Muse](https://spiral.ai/integrations/muse/sefaria-passage-text)
- [Muse Code](https://spiral.ai/integrations/muse-code/sefaria-passage-text)
- [n8n](https://spiral.ai/integrations/n8n/sefaria-passage-text)
- [Notion](https://spiral.ai/integrations/notion/sefaria-passage-text)
- [OpenClaw](https://spiral.ai/integrations/openclaw/sefaria-passage-text)
- [opencode](https://spiral.ai/integrations/opencode/sefaria-passage-text)
- [Perplexity](https://spiral.ai/integrations/perplexity/sefaria-passage-text)
- [Raycast](https://spiral.ai/integrations/raycast/sefaria-passage-text)
- [VS Code](https://spiral.ai/integrations/vscode/sefaria-passage-text)
- [Windsurf](https://spiral.ai/integrations/windsurf/sefaria-passage-text)
- [Zapier](https://spiral.ai/integrations/zapier/sefaria-passage-text)

## More Gemini CLI guides

- [STEP Bible word occurrences](https://spiral.ai/integrations/gemini-cli/step-bible-word-occurrences)
- [Sefaria text connections](https://spiral.ai/integrations/gemini-cli/sefaria-text-connections)
- [STEP Bible tagged verses](https://spiral.ai/integrations/gemini-cli/step-bible-tagged-verses)
- [Sefaria verse commentary](https://spiral.ai/integrations/gemini-cli/sefaria-verse-commentary)
- [STEP Bible morphology explanations](https://spiral.ai/integrations/gemini-cli/step-bible-morphology-explanations)
- [StudyLight Bible reference lookup](https://spiral.ai/integrations/gemini-cli/studylight-bible-reference-lookup)

## Questions about Sefaria passage text in Gemini CLI

**Can Gemini CLI use Sefaria passage text?**

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run Sefaria passage text like any built-in tool.

**How much does Sefaria passage text cost in Gemini CLI?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini CLI plan is separate.

**Do I need an Alexandria account to use Sefaria passage text in Gemini CLI?**

No. Spiral runs Sefaria passage text on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Sefaria passage text in Gemini CLI?**

About two minutes: add the server, then sign in, then check it.

**Does Gemini CLI wait while Sefaria passage text runs?**

Sefaria passage text runs in the background. Gemini CLI starts the run, checks on it and gives you the json when it's ready.

**Does Sefaria cover more than the Hebrew Bible?**

Yes. Its library has 14 highest-level categories, including Tanakh, Talmud, and Mishnah, so its texts and connections extend beyond biblical passages.

**Is every source available in English?**

No. Sefaria can have the original text without a translation, and an available translation can cover only part of a work.

**Where do Sefaria's translations come from?**

Sefaria distinguishes two sources: community translations and printed editions. Identify which edition you are reading before comparing its wording with another translation.

**Can Sefaria's wording change between visits?**

Yes. Registered users continually update community translations, so a passage from a community edition can change.

**Do Sefaria's connections include every reference to a passage?**

The source describes these results as known connections. They show relationships recorded by Sefaria, rather than establishing an exhaustive list of everything written about a passage.

