AI tools, scored for your job
Get paid to train AI
🤝 You're in the Free & Open Source library — community-built tools you can use without paying. A different concept from our scored AI directory.
Home › Free & Open Source › Students › Farfalle
✦ Free & open sourceStudents

Farfalle

Open-source AI search engine you self-host with local or cloud LLMs, using SearXNG or paid search APIs.

Self-hosted AI search with local or cloud LLMs

Farfalle is a Perplexity-style search engine with a Next.js front end and FastAPI back end.

Free forever · open source · Apache-2.0
✓ Light setup✓ Browser-based✓ Real-time collaboration
4.6
ZEKAI
Simple self-run AI search
Free & open source · Students
Ease of setup4
Usefulness5
Maintenance2
Community7.5
★ 3,541
GITHUB
Sep 2024
UPDATED
Apache-2.0
LICENSE
🛠 Don't want to self-host? We can set it up →
⚡ Quick answer

Farfalle is an open-source AI search engine, described by its own README as a Perplexity clone. It runs local models through Ollama, any model through LiteLLM, or cloud models from OpenAI and Groq. It suits hobbyists and developers who want a simple self-run search app rather than a polished product.

Runs on
Web
Hosting
Self-host
Languages
TypeScript
License
Apache-2.0

What it is

You start the app with Docker Compose, then ask questions in the browser. It searches through SearXNG, Tavily, Serper or Bing and answers with the model you choose. An expert-search mode uses an agent that plans and executes the search, and chat history is supported.

Who it's for

It suits developers and tinkerers who want a small, readable AI search codebase to run or modify. It does not suit anyone who needs a maintained, feature-rich product, since the README's roadmap leaves chat with local files unchecked and its model list names older models.

Key features

Local model support

Run llama3, mistral, gemma or phi3 through Ollama.

Custom LLMs via LiteLLM

Connect any model LiteLLM supports.

Multiple search providers

Search through SearXNG, Tavily, Serper or Bing.

Expert search agent

An agent plans and executes the search for better results on harder questions.

Chat history

Keeps your earlier searches available.

Browser search engine

Add http://localhost:3000/?q=%s as a custom search engine in your browser.

How to start

Up and running in 3 steps

1
Install Docker, and Ollama if you want local models (download one such as llama3 and run ollama serve).
2
git clone https://github.com/rashadphz/farfalle.git, then cd farfalle and cp .env-template .env and add any API keys you want.
3
Run docker-compose -f docker-compose.dev.yaml up -d and open http://localhost:3000.
Real talk

Our honest verdict

What's great

  • Ollama support means answers can be generated without sending prompts to a cloud model.
  • SearXNG support removes the need for a paid search API.
  • The Next.js plus FastAPI split is a small codebase that is easy to read and adapt.
  • You can register it as your browser's default search engine with a single URL pattern.

Where it falls short

  • You need Docker, and Ollama with a downloaded model if you want fully local answers, so you need a machine able to run those models.
  • Roadmap item 'Chat with local files' is still unchecked, so you cannot ask questions about your own documents.
  • The README lists models such as gpt-4o, gpt-3.5-turbo and llama3, and the project page shows no releases, so expect to update configuration yourself.
  • Rate limiting uses Redis and logging uses Logfire, which adds moving parts if you deploy beyond a local trial.
Cost

Pricing & license

Farfalle is free under Apache-2.0 and its README shows no paid plan. The only cost is running it yourself, plus any cloud model or search API usage.

Paid work

Open remote AI-training roles

870 open remote AI-training roles, updated November 14, 2026; most pay $20–$170 an hour. Zekai lists them free; the application goes to the employer’s platform.

See all open roles →
Compare

Alternatives

🎁 Free & open-source alternatives
Get more

Use it, or have us set it up

📄 Free PDF: Farfalle for Students
A plain-language guide to getting your first result. Sent to your inbox.
🔔 64 people want a full video tutorial — add your vote
🛠 Don't want to set it up yourself?
We'll install, host & configure Farfalle for you — and train your team.
Get it done for you ↗
Questions

FAQ

Does Farfalle need an API key?

Not if you use Ollama with a local model. The README marks all API keys (Tavily, Serper, OpenAI, Bing, Groq) as optional.

Is there a hosted demo?

The README links farfalle.dev as a live demo that uses cloud models only.

Can I deploy it publicly?

The README shows Render for the backend and Vercel for the frontend, with NEXT_PUBLIC_API_URL pointing at the backend.

Radar

Latest AI news

✉️ The weekly free toolkit
The best new free & open-source tools for Students — one short email a week, in your language.
Free · 1 email/week · unsubscribe anytime
Get paid to train AI →

See Zekai first in Google