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.

Antfly logo

Self-host Antfly

v0.2.5

Open-source search-and-inference database with built-in ML

BetaOpen SourceApache-2.0
Updated4 days ago
LanguageZig
Setup difficultyModerate
Stars
476
Ports
8080 (Public API), 4200 (Metrics/health), 9090 (MCP (commented out by default))
Docker
ghcr.io/antflydb/antfly
Install with Docker

What is Antfly?

Antfly is a Zig-based search-and-inference database that combines full-text, vector, and graph search in a single engine. It runs machine learning models locally to handle chunking, embedding, reranking, transcription, OCR, and entity extraction automatically when data is written. The engine can operate as a single .aflite file, a standalone node with hot standby, a multi-Raft cluster, or serverless over S3-compatible object storage. The Antfarm web dashboard includes interactive playgrounds for search, retrieval-augmented generation, knowledge graphs, and model testing. Authentication is handled via API keys, basic auth, and bearer tokens. Supported external model providers include Ollama, OpenAI, OpenRouter, Cohere, AWS Bedrock, Google Gemini, and Vertex AI. PostgreSQL change data capture replication mirrors tables into Antfly. Available installation methods: Docker, Docker Compose, Kubernetes, Homebrew, or direct binary download.

Should you self-host Antfly?

Antfly scores 50/100 on selfhost.directory (how scoring works) and ranks #27 of 41 in Search Engines. It has 476 GitHub stars.

It shipped 1 stable release in the past year. The latest, v0.2.5, came out on 28 September 2026.

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 Zig.

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

Features

  • ACID Transactions
  • Aggregations
  • Built-in RAG agents
  • CLI for server, tables, queries, backups, auth, model registry
  • Distributed multi-Raft cluster
  • Document TTL
  • Full-text search with highlighting
  • Graph indexes and traversal
  • Hybrid search (BM25 + dense + sparse vectors)
  • Multi-backend inference (CPU, Metal, CUDA)
  • Multimodal search (images, audio, video)
  • Object storage backend (serverless)In progress
  • PostgreSQL CDC replication
  • Reranking (cross-encoder and late-interaction)
  • Secrets Management

Antfly README

How to install Antfly

Install Antfly with Docker

Environment variables
ANTFLY_LOG_LEVEL

docker run -p 127.0.0.1:8080:8080 ghcr.io/antflydb/antfly:latest standalone --host 0.0.0.0

Runs standalone server with API on port 8080

How to configure Antfly

  • ANTFLY_INFERENCE_KERNEL_JIT_MODEoffOpt-in runtime kernel JIT for Metal and CUDA

    Opt-in runtime kernel JIT for Metal and CUDA

    values: on, off

  • ANTFLY_INFERENCE_MODELS_DIR~/.antfly/inference/modelsDirectory where inference models are stored

    Directory where inference models are stored

  • ANTFLY_LOG_LEVELinfoLog level for the Antfly server

    Log level for the Antfly server

    values: debug, info, warn, error

Antfly releases & version history

More in Vector Database

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…