selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

morphic logo

Self-host morphic

v1.9.0

AI answer engine with generative UI

ReleaseOpen SourceApache-2.0
Docker ComposeCompose file & guide
docker compose up -d
Updatedlast week
LanguageTypescript
Setup difficultyModerate
Stars
9 299
Port
3000 (Morphic web app (Next.js); host mapping 3000:3000)
Docker
ghcr.io/miurla/morphic
Search result page with the generative UI answer and cited sources

What is morphic?

morphic alternatives

Should you self-host morphic?

morphic scores 71/100 on selfhost.directory (how scoring works) and ranks #8 of 41 in Search Engines. It has 9 299 GitHub stars, +147 in the last 30 days.

It shipped 10 stable releases in the past year. The latest, v1.9.0, came out on 27 October 2026. New versions land roughly every 3 weeks.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Typescript.

Its closest alternative on selfhost.directory is SearXNG (86/100, 39 321 stars). It scores higher overall, so compare the two before you pick. See morphic vs SearXNG side by side.

Features

  • AI web search with cited answers
  • Chat History
  • File UploadDisabled unless R2/S3 variables are configured; Docker Compose does not provision storage.
  • Generative UI answers
  • Invite-only sign-up
  • LLM tracing / observabilityOff by default; traces include full prompts and completions.
  • Local-only operation
  • Model selector with multiple LLM providers
  • Multiple search modes
  • Pluggable search providers

morphic README

Morphic

An AI-powered search engine with a generative UI.

DeepWiki GitHub stars GitHub forks

Vercel OSS Program

miurla%2Fmorphic | Trendshift

Features

  • AI-powered search with grounded, cited answers
  • Generative UI — answers render rich inline components (source-credited images, grids, headings) live from a streamed JSON spec, beyond plain markdown
  • Search modes: Quick and Adaptive
  • Model selector with dynamic provider detection (OpenAI, Anthropic, Google, Ollama, Vercel AI Gateway, OpenAI-compatible providers)
  • Multiple search providers (Tavily, SearXNG, Brave, Exa)
  • Chat history stored in PostgreSQL
  • Share search results with unique URLs
  • File upload support
  • User authentication with built-in accounts (Better Auth) or Supabase Auth
  • Guest mode for anonymous usage
  • Docker deployment ready

How to install morphic

Install morphic with Docker Compose

Environment variables
OPENAI_API_KEY (or ANTHROPIC_API_KEY / GOOGLE_GENERATIVE_AI_API_KEY / AI_GATEWAY_API_KEY / OLLAMA_BASE_URL), env_file .env.local
Using Prebuilt Image (Recommended)
  1. Pull the latest image:
docker pull ghcr.io/miurla/morphic:latest
  1. Configure environment:
cp .env.local.example .env.local

Edit .env.local and set at least one AI provider API key:

OPENAI_API_KEY=your_openai_key

Other supported providers: Anthropic (ANTHROPIC_API_KEY), Google (GOOGLE_GENERATIVE_AI_API_KEY), Ollama (OLLAMA_BASE_URL), Vercel AI Gateway (AI_GATEWAY_API_KEY).

  1. Start all services:
docker compose up -d
  1. Visit http://localhost:3000 and select your model from the model selector.

To build locally instead of using the prebuilt image:

docker compose up -d --build

Compose starts PostgreSQL, Redis, SearXNG and Morphic; anonymous auth by default.

How to configure morphic

  • OPENAI_API_KEYOption 1: OpenAI Get your API key at: https://platform.openai.com/api-keys
  • ANTHROPIC_API_KEYOption 2: Anthropic Claude
  • GOOGLE_GENERATIVE_AI_API_KEYOption 3: Google Gemini
  • AI_GATEWAY_API_KEYOption 4: Vercel AI Gateway Unified API gateway for multiple providers
  • OLLAMA_BASE_URLOption 5: Ollama Run local AI models with Ollama Requires Ollama to be installed and running: https://ollama.com/

morphic releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Search Engines

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…