← all repositories
aurora-develop/Duck2api

Turn DuckDuckGo's free chat into your private OpenAI API

Duck2api bridges DuckDuckGo's chat models to an OpenAI-compatible API, letting you query GPT-4o-mini or Claude 3 Haiku from standard clients through a self-hosted server.

Duck2api
Not currently ranked — collecting fresh signals.
star history

What it does

Duck2api is a lightweight Go server that proxies chat requests to DuckDuckGo’s AI service and returns results through a standard OpenAI-style /v1/chat/completions endpoint. It includes a basic web interface and runs as a standalone binary or container. The goal is to let you query DuckDuckGo’s hosted models using the same client code you’d use for OpenAI.

The interesting bit

The project is essentially a protocol translator that turns a consumer web chat into a machine-readable API. That means models like GPT-4o-mini and Claude 3 Haiku become accessible from any codebase already speaking OpenAI’s JSON format, without rewriting your request logic.

Key highlights

  • OpenAI-compatible chat completions endpoint with streaming support
  • Backed by DuckDuckGo’s model menu: GPT-4o-mini, o3-mini, Claude 3 Haiku, Llama 3.3 70B, and Mixtral 8x7B (GPT-3.5 was dropped by DuckDuckGo)
  • Built-in web UI served at /web
  • Optional authorization, TLS termination, and proxy pooling via environment variables
  • Ships as a single Go binary or a Docker image

Caveats

  • DuckDuckGo officially removed GPT-3.5-Turbo support, so that model is gone for good
  • The README is almost entirely deployment commands; architectural details and error-handling behavior are left unexplained

Verdict

A handy utility if you want a self-hosted bridge to free LLMs without managing API keys or billing. Look elsewhere if you need guaranteed uptime, official model support, or anything more sophisticated than a straight chat proxy.

Frequently asked

What is aurora-develop/Duck2api?
Duck2api bridges DuckDuckGo's chat models to an OpenAI-compatible API, letting you query GPT-4o-mini or Claude 3 Haiku from standard clients through a self-hosted server.
Is Duck2api open source?
Yes — aurora-develop/Duck2api is open source, released under the MIT license.
What language is Duck2api written in?
aurora-develop/Duck2api is primarily written in Go.
How popular is Duck2api?
aurora-develop/Duck2api has 782 stars on GitHub.
Where can I find Duck2api?
aurora-develop/Duck2api is on GitHub at https://github.com/aurora-develop/Duck2api.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.