A high-performance LLM inference API and Chat UI that integrates DeepSeek R1's CoT reasoning traces with Anthropic Claude models.
DeepReasoning is a Rust-based inference server and chat UI that chains DeepSeek R1 and Claude together in a single API call, using R1's chain-of-thought reasoning trace as a pre-processing step before handing off to Claude 3.5 Sonnet for final response generation. The server, built with Rust 1.75+, accepts requests at a local endpoint and authenticates separately against DeepSeek and Anthropic APIs via per-request headers, meaning users supply both API keys directly rather than routing credentials through a third party. It supports both standard and streaming responses, with configuration options for custom system prompts and per-model header and body overrides via a JSON request body. The project is self-hostable using a simple `config.toml` file specifying host, port, and pricing settings. Developers who want structured reasoning from R1 paired with Claude's code generation and conversational output in one request, without stitching together two separate API clients, are the primary audience.
- ✓Open-source license (MIT)
- ✓Healthy fork ratio
- ✓Clear description
- ✓Topics declared
- ✓Mature repo (>1y old)
- ✓Documented (README)
- !Inactive (>180d)
git clone https://github.com/winfunc/deepreasoningResumen de Tools
<div align="center">
<h1>DeepReasoning 🐬🧠</h1>
<img src="frontend/public/deepreasoning.png" width="300">
Harness the power of DeepSeek R1's reasoning and Claude's creativity and code generation capabilities with a unified API and chat interface.
[](https://github.com/getasterisk/deepreasoning/blob/main/LICENSE.md)
[](https://www.rust-lang.org/)
[](https://deepreasoning.asterisk.so)
[Getting Started](#getting-started) •
[Features](#features) •
[API Usage](#api-usage) •
[Documentation](#documentation) •
[Self-Hosting](#self-hosting) •
[Contributing](#contributing)
---
> [!NOTE]
> **Disclaimer:** This project is not affiliated with, endorsed by, or sponsored by Anthropic. Claude is a trademark of Anthropic, PBC. This is an independent developer project using Claude.
</div>
## Table of Contents
- [Overview](#overview)
- [Features](#features)
- [Why R1 + Claude?](#why-r1--claude)
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Configuration](#configuration)
- [API Usage](#api-usage)
- [Basic Example](#basic-example)
- [Streaming Example](#streaming-example)
- [Configuration Options](#configuration-options)
- [Self-Hosting](#self-hosting)
- [Security](#security)
- [Contributing](#contributing)
- [License](#license)
- [Acknowledgments](#acknowledgments)
## Overview
DeepReasoning is a high-performance LLM inference API that combines DeepSeek R1's Chain of Thought (CoT) reasoning capabilities with Anthropic Claude's creative and code generation prowess. It provides a unified interface for leveraging the strengths of both models while maintaining complete control over your API keys and data.
## Features
🚀 **Zero Latency** - Instant responses with R1's CoT followed by Claude's response in a single stream, powered by a high-performance Rust API
🔒 **Private & Secure** - End-to-end security with local API key management. Your data stays private
⚙️ **Highly Configurable** - Customize every aspect of the API and interface to match your needs
🌟 **Open Source** - Free and open-source codebase. Contribute, modify, and deploy as you wish
🤖 **Dual AI Power** - Combine DeepSeek R1's reasoning with Claude's creativity and code generation
🔑 **Managed BYOK API** - Use your own API keys with our managed infrastructure for complete control
## Why R1 + Claude?
DeepSeek R1's CoT trace demonstrates deep reasoning to the point of an LLM experiencing "metacognition" - correcting itself, thinking about edge cases, and performing quasi Monte Carlo Tree Search in natural language.
However, R1 lacks in code generation, creativity, and conversational skills. Claude 3.5 Sonnet excels in these areas, making it the perfect complement. DeepReasoning combines both models to provide:
- R1's exceptional reasoning and problem-solving capabilities
- Claude's superior code generation and creativity
- Fast streaming responses in a single API call
- Complete control with your own API keys
## Getting Started
### Prerequisites
- Rust 1.75 or higher
- DeepSeek API key
- Anthropic API key
### Installation
1. Clone the repository:
```bash
git clone https://github.com/getasterisk/deepreasoning.git
cd deepreasoning
```
2. Build the project:
```bash
cargo build --release
```
### Configuration
Create a `config.toml` file in the project root:
```toml
[server]
host = "127.0.0.1"
port = 3000
[pricing]
# Configure pricing settings for usage tracking
```
## API Usage
See [API Docs](https://deepreasoning.chat)
### Basic Example
```python
import requests
response = requests.post(
"http://127.0.0.1:1337/",
headers={
"X-DeepSeek-API-Token": "<YOUR_DEEPSEEK_API_KEY>",
"X-Anthropic-API-Token": "<YOUR_ANTHROPIC_API_KEY>"
},
json={
"messages": [
{"role": "user", "content": "How many 'r's in the word 'strawberry'?"}
]
}
)
print(response.json())
```
### Streaming Example
```python
import asyncio
import json
import httpx
async def stream_response():
async with httpx.AsyncClient() as client:
async with client.stream(
"POST",
"http://127.0.0.1:1337/",
headers={
"X-DeepSeek-API-Token": "<YOUR_DEEPSEEK_API_KEY>",
"X-Anthropic-API-Token": "<YOUR_ANTHROPIC_API_KEY>"
},
json={
"stream": True,
"messages": [
{"role": "user", "content": "How many 'r's in the word 'strawberry'?"}
]
}
) as response:
response.raise_for_status()
async for line in response.aiter_lines():
if line:
if line.startswith('data: '):
data = line[6:]
try:
parsed_data = json.loads(data)
if 'content' in parsed_data:
content = parsed_data.get('content', '')[0]['text']
print(content, end='',flush=True)
else:
print(data, flush=True)
except json.JSONDecodeError:
pass
if __name__ == "__main__":
asyncio.run(stream_response())
```
## Configuration Options
The API supports extensive configuration through the request body:
```json
{
"stream": false,
"verbose": false,
"system": "Optional system prompt",
"messages": [...],
"deepseek_config": {
"headers": {},
"body": {}
},
"anthropic_config": {
"headers": {},
"body": {}
}
}
```
## Self-Hosting
DeepReasoning can be self-hosted on your own infrastructure. Follow these steps:
1. Configure environment variables or `config.toml`
2. Build the Docker image or compile from source
3. Deploy to your preferred hosting platform
## Security
- No data storage or logged
- BYOK (Bring Your Own Keys) architecture
- Regular security audits and updates
## Contributing
We welcome contributions! Please see our [Contributing Guidelines](CONTRIBUTING.md) for details on:
- Code of Conduct
- Development process
- Submitting pull requests
- Reporting issues
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE.md) file for details.
## Acknowledgments
DeepReasoning is a free and open-source project by [Asterisk](https://asterisk.so/). Special thanks to:
- DeepSeek for their incredible R1 model
- Anthropic for Claude's capabilities
- The open-source community for their continuous support
---
<div align="center">
Made with ❤️ by <a href="https://asterisk.so">Asterisk</a>
</div>Lo que la gente pregunta sobre deepreasoning
¿Qué es winfunc/deepreasoning?
+
winfunc/deepreasoning es tools para el ecosistema de Claude AI. A high-performance LLM inference API and Chat UI that integrates DeepSeek R1's CoT reasoning traces with Anthropic Claude models. Tiene 5.4k estrellas en GitHub y se actualizó por última vez 8mo ago.
¿Cómo se instala deepreasoning?
+
Puedes instalar deepreasoning clonando el repositorio (https://github.com/winfunc/deepreasoning) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar winfunc/deepreasoning?
+
Nuestro agente de seguridad ha analizado winfunc/deepreasoning y le ha asignado un Trust Score de 90/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.
¿Quién mantiene winfunc/deepreasoning?
+
winfunc/deepreasoning es mantenido por winfunc. La última actividad registrada en GitHub es de 8mo ago, con 53 issues abiertos.
¿Hay alternativas a deepreasoning?
+
Sí. En ClaudeWave puedes explorar tools similares en /categories/tools, ordenados por popularidad o actividad reciente.
Despliega deepreasoning en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/winfunc-deepreasoning)<a href="https://claudewave.com/repo/winfunc-deepreasoning"><img src="https://claudewave.com/api/badge/winfunc-deepreasoning" alt="Featured on ClaudeWave: winfunc/deepreasoning" width="320" height="64" /></a>Más Tools
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
An AI SKILL that provide design intelligence for building professional UI/UX multiple platforms
🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman
AI coding assistant skill (Claude Code, Codex, OpenCode, Cursor, Gemini CLI, and more). Turn any folder of code, SQL schemas, R scripts, shell scripts, docs, papers, images, or videos into a queryable knowledge graph. App code + database schema + infrastructure in one graph.
A light-weight and powerful meta-prompting, context engineering and spec-driven development system for Claude Code by TÂCHES.
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies