Vibecode Perplexity

track this build5 phases, 15 steps, beginner friendly
KINDA · weekend project
price $20/moyou'd save $240/yrbuild time multi-daycategory 🔍 ai searchreplaced by 0 people

A retrieval-plus-LLM answer engine is buildable, but Perplexity's search stack, source ranking, UX, mobile/browser surfaces, and model access make full parity hard.

the project pack5 files · written for this build, step by step
README.md
# Perplexity · indie build

A self-hosted answer engine: a SearXNG instance you control providing results, a fetcher that extracts readable text under strict caps, passage ranking, an answer step whose citations are validated against the passages that were actually retrieved, and threads with follow-up questions that carry context.

Estimated effort: **multi-day**. Work `BUILD_PLAN.md` top to bottom · every phase ends in a check that has to pass before the next one starts.

## Stack

| Part | Choice | Why |
| --- | --- | --- |
| Search | SearXNG, self-hosted, with the JSON output format enabled | a metasearch layer gives you results without a crawler, and self-hosting means no per-query bill and no rate limit that is not yours |
| Runtime | Python 3.12 with FastAPI | the work is orchestrating slow network calls, which is what async is for |
| Extraction | trafilatura | purpose-built for pulling article text out of a page, and far better than a hand-rolled tag stripper |
| Ranking | BM25 over sentence-window passages, with an optional cross-encoder reranker | start with the method that needs no model and no GPU, and measure before adding one |
| Answering | Any chat model through its API, or a local model through Ollama | the answer step is the only part that needs a large model, and it is a swappable adapter |
| Storage | SQLite with full text search | threads, cached pages and passages are all rows, and one file is the whole backup |

## Before you start

Have every one of these ready. The plan assumes them from step one.

- [ ] **Docker with Compose v2** · free for personal use; check Docker Desktop's licence if this is for a company
  - Why: Runs SearXNG. Installing SearXNG without containers is possible and is a worse afternoon.
  - Get it: Install Docker Desktop, or Docker Engine plus the compose plugin on Linux.
  - Verify: docker compose version prints v2 or higher
- [ ] **Python 3.12 or newer** · free
  - Why: Runs the pipeline.
  - Get it: python.org or your package manager, then create a virtual environment in the project directory.
  - Verify: python3 --version prints 3.12 or higher
- [ ] **A model API key, or Ollama for a local model** · pay per token; a short answer over five passages is typically well under a cent, and long threads add up faster than you expect
  - Why: The answer step needs a model. Everything before it works without one, which is useful while you are building.
  - Get it: Create an account with a provider and generate a key in their console, and set a spend limit at the same time. Or install Ollama and pull a model if you would rather pay nothing and accept weaker answers.
  - Verify: A single test completion returns text and appears in the provider usage dashboard
- [ ] **Your own SearXNG instance, not a public one** · free, but you carry the upstream engines' rate limits yourself
  - Why: Public instances block automated traffic and rate-limit, so building against one produces a system that fails as soon as it works.
  - Get it: Run the official container locally, then enable json in the search formats of settings.yml and restart.
  - Verify: curl with format=json returns JSON rather than a 403
- [ ] **Ten queries with known correct sources** · free
  - Why: Ranking changes feel better and are often worse. Without a fixed set you are tuning on vibes.
  - Get it: Write them yourself from questions you actually asked this week, and record the url that genuinely answers each. An hour of work that pays for itself in Phase 3.

## Quick start

```sh
docker run -d -p 8080:8080 -v ./searxng:/etc/searxng searxng/searxng
curl 'http://localhost:8080/search?q=test&format=json'
```

Then copy `.env.example` to `.env` and fill in the values it documents.

## Honest limits

This build deliberately does not replace:

- A web index of your own, which is the moat and stays the moat.
- Search quality tuned by a team with query logs at scale.
- Model routing and the credit allowance a subscription includes.
- Polished mobile and browser applications.
- search quality
- source ranking
- model routing
- mobile/browser apps
- publisher integrations
- speed

If one of those is essential to you, that is the reason to keep paying for Perplexity, and the README should say so rather than pretend.

$ choose a build depth, inspect the files, then open the complete pack in your agent

why people still pay

They pay because answers arrive fast with sources and fewer query-building chores.

what you lose

xsearch quality

xsource ranking

xmodel routing

xmobile/browser apps

xpublisher integrations

xspeed

share on X ↗"I just replaced Perplexity ($20/mo) with one prompt"
the escape hatch

Don't feel like building it? These folks already made it free.

KhojA personal AI that searches the web and your files; broader than Perplexity, and noticeably heavier to run.36kaug 2026open source↗VanePerplexity with the meter removed: cited answers and deep research, provided you can run one Docker stack.36kapr 2026open source↗GPT ResearcherA research agent rather than a search box; it returns cited reports and a bill from whichever model you chose.29kjul 2026open source↗

all 5 free alternatives to Perplexity →· no votes, no pay-to-list · just what's real

the numbers

Perplexity pricing

planmonthlyannual (per mo)what you get
standard$0$05 Pro Searches/day; 3 file uploads/day; 40 MB/file; practically unlimited basic searches.
pro$20$16.67Higher Pro Search and file limits; 40 MB/file.
education pro$10/user—Discounted Pro access for verified students and educators.
max$200$166.6710,000 Computer credits/month.
enterprise pro$40/user$33.33/user500 Computer credits/month; 500 files/project; 15,000 persistent files/user; 100 session uploads/week; 50 MB/file.
enterprise max$325/user$270.83/user15,000 Computer credits/month; 5,000 files/project; 50,000 persistent files/user; 1,000 session uploads/week.

free tier5 Pro Searches/day; 3 file uploads/day; 40 MB/file

billingmonthly + annual for Pro, Max, and enterprise tiers; Education Pro is monthly; enterprise seats can mix Pro and Max

hidden costsComputer credits expire at the end of each month and do not roll over. Refills and auto-refill are available; 100 credits are priced as $1. Upgrades can be prorated.

verified 2026-08-12 · source ↗

questions
Vibecode Perplexity

Kinda. The core of Perplexity is buildable in a weekend with the prompt on this page, but there are real gaps: search quality, source ranking. Read the honest list above before committing.

How much does Perplexity cost?

Perplexity costs about $20/month (Pro, checked 2026-07-30), which is $240 per year.

What do I lose by replacing Perplexity?

Honestly: search quality; source ranking; model routing; mobile/browser apps; publisher integrations; speed. If any of those are load-bearing for you, keep paying.

Is there an open-source alternative to Perplexity?

Yes: Khoj (A personal AI that searches the web and your files; broader than Perplexity, and noticeably heavier to run.) Vane (Perplexity with the meter removed: cited answers and deep research, provided you can run one Docker stack.) GPT Researcher (A research agent rather than a search box; it returns cited reports and a bill from whichever model you chose.) All 5 curated free alternatives are at vibecodeit.com/perplexity/alternatives. The prompt is for when you want it exactly your way.