PromptsApr 2, 2026·3 min read
Morphic — Open-Source AI Answer Engine
Perplexity-style AI search with generative UI. Multiple LLM and search providers. Self-hostable with Next.js. 8.7K+ stars.
TO
TokRepo精选 · Community
Quick Use
Use it first, then decide how deep to go
This block should tell both the user and the agent what to copy, install, and apply first.
```bash
git clone https://github.com/miurla/morphic.git
cd morphic
docker compose up -d
```
Open `http://localhost:3000` — your AI search engine is live.
Or for local development:
```bash
git clone https://github.com/miurla/morphic.git
cd morphic
cp .env.local.example .env.local
# Edit .env.local with your API keys
npm install
npm run dev
```
Required environment variables:
```env
OPENAI_API_KEY=sk-... # Or ANTHROPIC_API_KEY, GOOGLE_API_KEY
TAVILY_API_KEY=tvly-... # Or use SearXNG (free, self-hosted)
SEARXNG_API_URL=http://localhost:8080 # Free alternative to Tavily
DATABASE_URL=postgresql://... # For chat history
REDIS_URL=redis://localhost:6379
```
---
Intro
Morphic is an open-source AI-powered answer engine with 8,700+ GitHub stars that delivers a Perplexity-like search experience you can self-host. Built with Next.js and the Vercel AI SDK, it combines LLM providers (OpenAI, Anthropic, Google, Ollama) with search backends (Tavily, SearXNG, Brave, Exa) to generate comprehensive, cited answers with a beautiful generative UI. Features include a dynamic model selector, persistent chat history in PostgreSQL, shareable result URLs, and Docker-based one-command deployment.
Works with: OpenAI, Anthropic Claude, Google Gemini, Ollama (local), Tavily, SearXNG, Brave Search. Best for teams wanting a private, customizable AI search engine. Setup time: under 5 minutes with Docker.
---
🙏
Source & Thanks
> Created by [miurla](https://github.com/miurla). Licensed under Apache-2.0.
>
> [morphic](https://github.com/miurla/morphic) — ⭐ 8,700+
Thanks to miurla for building the best open-source alternative to Perplexity AI.
Discussion
Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.
Related Assets
OpenLIT — OpenTelemetry LLM Observability
Monitor LLM costs, latency, and quality with OpenTelemetry-native tracing. GPU monitoring and guardrails built in. 2.3K+ stars.
TokRepo精选
Agenta — Open-Source LLMOps Platform
Prompt playground, evaluation, and observability in one platform. Compare prompts, run evals, trace production calls. 4K+ stars.
TokRepo精选
Rerun — Visualize Multimodal AI Data in Real-Time
SDK for logging, storing, and visualizing 3D, images, time series, and text in real-time. Built for robotics and AI. 10K+ stars.
TokRepo精选