Local proxy server that interfaces with DeepSeek using browser automation via Playwright.
Provides a REST API for chat interactions and tool execution.
- REST API endpoints for chat completion
- Tool execution support
- Persistent browser session with login state
- Built with Hono and TypeScript
- Node.js v20 or later
- Playwright browsers
npm install
npx playwright installCreate a .env file in the project root:
PORT=3000npm run loginnpm startThe server runs by default at:
http://localhost:3000npm testSend a chat message.
{
"message": "Hello, DeepSeek!",
"tools": []
}{
"response": "...",
"toolCalls": []
}npm run test
npx tsx src/index.ts.
├── src/
│ ├── index.ts # Server entry
│ ├── routes/ # API routes
│ ├── services/ # DeepSeek & Playwright services
│ ├── tools/ # Tool execution
│ └── utils/ # Utilities
├── dist/ # Compiled output
└── deepseek_profile/ # Browser profile storageISC
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.