FreeDeepseekAPI  by ForgetMeAI

DeepSeek Web Chat local API proxy

Created 1 month ago
252 stars

Top 99.6% on SourcePulse

GitHubView on GitHub
Project Summary

This project provides a local API proxy for DeepSeek Web Chat, enabling developers and users to integrate DeepSeek models into various applications and tools that expect OpenAI or Anthropic API formats. It targets users of Open WebUI, LiteLLM, and similar clients, offering a way to leverage DeepSeek's capabilities locally without relying on official paid APIs, supporting features like streaming and tool calling.

How It Works

The FreeDeepseekAPI runs a local server that acts as a proxy, intercepting API requests. It utilizes a user's existing DeepSeek Web Chat login session, managed through a separate Chrome profile, to interact with the DeepSeek service. This approach allows it to translate standard API calls into actions within the DeepSeek web interface, returning responses in JSON or as Server-Sent Events (SSE) for streaming.

Quick Start & Requirements

  • Primary install/run: Clone the repository, navigate into the directory, and run npm run auth followed by npm start.
  • Prerequisites: Node.js 18+ is required. A Chrome or Chromium browser is necessary for the initial authentication step.
  • Setup: The npm run auth command initiates a browser-based login flow for DeepSeek. npm start launches the proxy server, typically listening on http://localhost:9655. Headless and VPS setups are supported via environment variables like NON_INTERACTIVE=1.
  • Links: Project repository: https://github.com/ForgetMeAI/FreeDeepseekAPI

Highlighted Details

  • OpenAI-compatible API endpoints (/v1/chat/completions).
  • Anthropic Messages API shim (/v1/messages) for compatibility with Claude Code and SDKs.
  • OpenAI Responses API shim (/v1/responses).
  • Supports streaming responses via SSE chunks and non-stream JSON.
  • Handles tool calling by parsing OpenAI, Anthropic, and Responses API tool specifications.
  • Manages DeepSeek sessions per agent/user, with automatic resetting for stale or broken chains.
  • Features a multi-account pool with cooldown mechanisms to handle rate limiting and account issues.
  • Zero external Node.js dependencies.

Maintenance & Community

The project is maintained by ForgetMeAI. Community support and updates are available via their Telegram channel: https://t.me/forgetmeai.

Licensing & Compatibility

The specific open-source license is not explicitly stated in the README. The project is designed for compatibility with OpenAI SDK-style clients, LiteLLM, Hermes, Claude Code, and Open WebUI.

Limitations & Caveats

This project is explicitly labeled as an "experimental web-chat proxy" and relies on DeepSeek's internal Web API, which is subject to change without notice and may require updates to the proxy. It is not recommended for production use, with the official DeepSeek paid API being the more reliable option. Vision capabilities are currently unavailable.

Health Check
Last Commit

2 weeks ago

Responsiveness

Inactive

Pull Requests (30d)
7
Issues (30d)
1
Star History
53 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.