Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@
# Model access (required) — one vision-language model backs the whole agent.
# ---------------------------------------------------------------------------

# Select the provider used by the planner and model-consuming roles.
# Supported values: gemini, openai. Vertex AI is selected by credentials, not by this flag.
FATHOM_LLM_PROVIDER=gemini

# Direct Gemini API key. Get one from Google AI Studio and paste it here.
GEMINI_API_KEY=your-api-key-here

# Model id to drive. Set this to a model your key or project can actually access.
GEMINI_MODEL=gemini-2.5-flash

# OpenAI settings — used when FATHOM_LLM_PROVIDER=openai.
# OPENAI_API_KEY=your-openai-api-key
# OPENAI_MODEL=gpt-4.1-mini

# ---------------------------------------------------------------------------
# Vertex AI (optional) — use this instead of a direct key to run through GCP.
# Leave GEMINI_API_KEY unset when you go this route.
Expand All @@ -34,7 +42,7 @@ GEMINI_MODEL=gemini-2.5-flash
# ---------------------------------------------------------------------------

# FATHOM_ENSEMBLE_LOCALIZER=false
# FATHOM_ENSEMBLE_LOCALIZER_MEMBERS=gemini,ocr,icon
# FATHOM_ENSEMBLE_LOCALIZER_MEMBERS=vision_llm,document_ai_layout

# ---------------------------------------------------------------------------
# Priority / adaptive inference (optional) — let the model adapter shed load and
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,4 @@ research/
documents/
debugging/
tests/fixtures/
.runs/
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,20 @@ Set your model key and pick a device serial (`adb devices` prints it):
export GEMINI_API_KEY="..." # your Gemini API key
```

To run with OpenAI, install the OpenAI dependency and select the provider:

```bash
pip install -e .
export FATHOM_LLM_PROVIDER="openai"
export OPENAI_API_KEY="..."
export OPENAI_MODEL="gpt-4.1-mini"
```

Fathom maps its provider-neutral prompts, tool declarations, images, structured outputs, and usage
metrics through the OpenAI adapter. XML/accessibility grounding and the LLM-backed vision localizer
use the adapter bound to the run, so the execution path does not require Gemini. Embeddings remain
an optional provider capability and are enabled only when the selected adapter exposes one.

### CLI — the fastest way

```bash
Expand Down
Loading