czpGhost

DuckAI2API — AI skill for Claude Code

AI community

OpenAI / Anthropic / Responses API server for Duck.ai — free GPT-5.6 Luna reasoning, real SSE streaming, Claude Code tool-loop.

How to install DuckAI2API

This entry records only its repository, not the path inside it, so there is no exact command to give. Open czpGhost/DuckAI2API and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What DuckAI2API does

OpenAI / Anthropic / Responses API server for Duck.ai — free GPT-5.6 Luna reasoning, real SSE streaming, Claude Code tool-loop. Cross-platform.

Alternatives in AI

  • Deepreasoning — A high-performance LLM inference API and Chat UI that integrates DeepSeek R1's CoT reasoning traces with Anthr 5.4k ★
  • Cumora — Where agent teams gather 3.2k ★
  • WindsurfAPI — Turn Windsurf / Devin Desktop's 100+ AI models (Claude, GPT, Gemini, DeepSeek, Kimi, GLM, SWE) into OpenAI-, A 3k ★

README

🦆 DuckAI2API

**Turn Duck.ai into an OpenAI / Anthropic / Responses compatible API — for free.**

[![License](https://img.shields.io/github/license/czpGhost/DuckAI2API.svg)](LICENSE) [![Stars](https://img.shields.io/github/stars/czpGhost/DuckAI2API.svg)](https://github.com/czpGhost/DuckAI2API/stargazers) [![Forks](https://img.shields.io/github/forks/czpGhost/DuckAI2API.svg)](https://github.com/czpGhost/DuckAI2API/network/members) [![Python](https://img.shields.io/badge/Python-3.10%2B-3776AB.svg)](https://www.python.org) [![Platform](https://img.shields.io/badge/Platform-Windows%20%7C%20macOS%20%7C%20Linux-2EA043.svg)](#requirements) [![Models](https://img.shields.io/badge/Models-9%20free-FF6B35.svg)](#models)

[🇨🇳 中文](./README.zh.md) · [🇬🇧 English](./README.md)


A relay that speaks **three** LLM protocols at once, backed by **Duck.ai** (`https://duck.ai/`) — no API key, no payment. Built from a js-reverse analysis of Duck.ai's live web protocol (XHR + SSE, no official API), re-verified after every major site change.

Works as a drop-in backend for **Claude Code**, the **OpenAI SDK**, and the **OpenAI Responses API**. All chat is streamed straight from Duck.ai's real SSE feed.

✨ Why

Duck.ai has **no public API**. Its chat runs over:

  • POST https://duck.ai/duckchat/api/status — fetch server_vqd_02 (X-Vqd-4 token)
  • POST https://duck.ai/duckchat/api/refs — fetch vqd (X-Vqd-4 token for chat)
  • POST https://duck.ai/duckchat/api/requests/chat with Accept: text/event-stream — SSE response

The model id is sent as `model: ""` in the JSON body. The relay maps friendly model names to these ids.

🚀 Features

Capability
🧠 9 free models GPT-5.6 Luna, GPT-5.4 (+mini), Claude Sonnet/Haiku/Opus 4.x, Mistral Small, gpt-oss 120B, Gemma 4 31B
🔌 Triple protocol /v1/chat/completions (OpenAI), /v1/messages (Anthropic), /v1/responses (OpenAI Responses)
🌊 *Real streaming