A high-performance LLM inference API and Chat UI that integrates DeepSeek R1's CoT reasoning traces with Anthropic Claude models.
A high-performance LLM inference API and Chat UI that integrates DeepSeek R1's CoT reasoning traces with Anthropic Claude models.
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.
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
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:
git clone https://github.com/getasterisk/deepreasoning.git
cd deepreasoningcargo build --releaseCreate a config.toml file in the project root:
[server]
host = "127.0.0.1"
port = 3000
[pricing]
# Configure pricing settings for usage trackingSee API Docs
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())…The API supports extensive configuration through the request body:
{
"stream": false,
"verbose": false,
"system": "Optional system prompt",
"messages": [...],
"deepseek_config": {
"headers": {},
"body": {}
},
"anthropic_config": {
"headers": {},
"body": {}
}
}DeepReasoning can be self-hosted on your own infrastructure. Follow these steps:
config.tomlWe welcome contributions! Please see our Contributing Guidelines for details on:
This project is licensed under the MIT License - see the LICENSE file for details.
DeepReasoning is a free and open-source project by Asterisk. Special thanks to:
No open issues yet, or sync has not completed.