Skip to content

renatovaler/deepsproxy

 
 

Repository files navigation

DeepsProxy

Local proxy server that interfaces with DeepSeek using browser automation via Playwright.
Provides a REST API for chat interactions and tool execution.


Features

  • REST API endpoints for chat completion
  • Tool execution support
  • Persistent browser session with login state
  • Built with Hono and TypeScript

Prerequisites

  • Node.js v20 or later
  • Playwright browsers

Installation

npm install
npx playwright install

Configuration

Create a .env file in the project root:

PORT=3000

Usage

Login and Save Session

npm run login

Start the Server

npm start

The server runs by default at:

http://localhost:3000

Testing

npm test

API Endpoints

POST /chat

Send a chat message.

Request Body

{
  "message": "Hello, DeepSeek!",
  "tools": []
}

Response

{
  "response": "...",
  "toolCalls": []
}

Development

npm run test
npx tsx src/index.ts

Project Structure

.
├── src/
│   ├── index.ts           # Server entry
│   ├── routes/            # API routes
│   ├── services/          # DeepSeek & Playwright services
│   ├── tools/             # Tool execution
│   └── utils/             # Utilities
├── dist/                  # Compiled output
└── deepseek_profile/      # Browser profile storage

License

ISC


Disclaimer

This project is provided strictly for educational and research purposes.

The authors do not encourage or endorse:

  • Misuse
  • Unauthorized automation
  • Abuse of third-party services
  • Violations of platform Terms of Service

Users are solely responsible for how they use this software, including compliance with applicable laws, regulations, and service agreements.

This repository is intended to demonstrate concepts related to:

  • Browser automation
  • Session management
  • OpenAI-compatible runtime architectures

Use at your own risk.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 98.9%
  • Dockerfile 1.1%