Auto-built from https://github.com/bchhngsaygez/deepwhale
487
https://github.com/bchhngsaygez/deepwhale
English | Tiếng Việt
DeepWhale converts DeepSeek Chat's web interface into a fully OpenAI-compatible API endpoint with a built-in admin dashboard for real-time management, testing, and monitoring.
It uses browser fingerprinting via cloakbrowser (Playwright) to bypass Cloudflare and bot-detection, enabling reliable programmatic access to DeepSeek's models.
NOTE: I have no idea why this repo of mine runs perfectly—smooth as butter—on Cline, Roo Code, Continue.dev, and similar tools, yet when I switch to CLI AI agents, it absolutely refuses to work. It can't do a damn thing—creating files, writing code, making folders—nothing works. If you know how to fix this, please feel free to leave suggestions or a solution in the "Issues" section.
https://api.openai.com/v1. Works with any OpenAI client (Cline, Roo Code, Continue.dev, OpenRouter, etc.).cloakbrowser with real Chromium fingerprinting. No manual cookie extraction or CAPTCHA solving.text/event-stream and standard JSON responses. Supports auto-continue for long responses (up to 8 rounds).deepseek-reasoner emit thinking content surfaced in responses.gpt-4o, o1, qwen-plus, etc.) to a DeepSeek model.# Clone and enter the repository
git clone https://github.com/bchhngsaygez/deepwhale.git
cd deepwhale
# Create your .env file
cp .env.example .env
# Edit .env with your DeepSeek email/password
# Start with Docker Compose
docker compose up -d
Open http://localhost:5001/admin/login (default password: admin).
pip install -r requirements.txt
Download the cloakbrowser Chromium build for your platform from the CloakBrowser releases page.
# .env
[email protected]
DEEPSEEK_PASSWORD=your_password
API_KEY=sk-my-secret-key-1
PORT=5001
HOST=0.0.0.0
ADMIN_PASSWORD=admin
FLASK_SECRET=your-random-secret-here
python server.py
curl http://localhost:5001/v1/models \
-H "Authorization: Bearer sk-my-secret-key-1"
curl http://localhost:5001/v1/chat/completions \
-H "Authorization: Bearer sk-my-secret-key-1" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4-flash",
"messages": [{"role": "user", "content": "Hello!"}]
}'
| Endpoint | Method | Auth | Description |
|---|---|---|---|
/v1/models | GET | Yes | List available models |
/v1/chat/completions | POST | Yes | Chat completion (OpenAI-compatible) |
/chat/completions | POST | Yes | Alias without version prefix |
/healthz, /readyz | GET | No | Health checks |
/admin/login | GET/POST | No | Admin authentication |
/admin/dashboard | GET | Admin | Web dashboard |
/admin/api/config | GET/POST | Admin | Server configuration |
/admin/api/logs | GET | Admin | Captured logs |
/admin/api/logs/stream | GET | Admin | Live log stream (SSE) |
/admin/api/accounts-status | GET | Admin | Account authentication status |
The dashboard features five sections accessible from the sidebar:
| Section | Description |
|---|---|
| Overview | Server status, model count, account status, uptime, quick actions |
| Chat | Multi-turn dialogue with DeepSeek, model selection, thinking mode |
| Testing | Pre-built curl commands with copy buttons + interactive HTTP request builder |
| Logs | Real-time log viewer via SSE streaming, color-coded entries, auto-scroll |
| Settings | Server config (API key, port, host, admin password) and account management |
Language switching between English and Vietnamese is available in the top-right corner of the dashboard.
| Model ID | Type | Description |
|---|---|---|
deepseek-v4-flash | Default | Fast general-purpose model |
deepseek-v4-pro | Expert | Higher-quality reasoning |
deepseek-chat | Default | Legacy chat model |
deepseek-reasoner | Expert | With thinking/reasoning output |
deepseek-r1 | Expert | DeepSeek R1 (thinking enabled) |
deepseek-v3 | Default | DeepSeek V3 |
deepwhale/
├── server.py # Flask API + admin dashboard
├── deepseek_client.py # Browser session, login, API calls
├── pow_solver.py # PoW challenge solver
├── utils.py # Shared utilities (UTF-8, env loading)
├── test_client.py # End-to-end test script
├── templates/
│ ├── login.html # Admin login (dark theme, i18n)
│ └── dashboard.html # Admin dashboard (i18n EN/VI)
├── Dockerfile # Containerized deployment
├── docker-compose.yml # Docker Compose setup
├── requirements.txt # Python dependencies
├── .env.example # Environment template
└── README.md # This file
⭐If you find this repository useful, please give it a star. Thank you for using it.⭐
Content type
Image
Digest
sha256:bc26305ab…
Size
213.1 MB
Last updated
about 2 months ago
docker pull helwod/deepwhale