API for Claude web service conversion
Top 75.9% on sourcepulse
This project provides an API service that wraps Claude's web interface, enabling programmatic access to its advanced features like image recognition, file uploads, and streaming responses. It targets developers and users who need to integrate Claude's capabilities into their applications, offering an OpenAI-compatible API for seamless integration.
How It Works
The service acts as a proxy, translating requests into the format understood by Claude's web service. It leverages session keys (e.g., sk-ant-sid01-*
) to authenticate with Claude. Key features like image analysis are handled by constructing multi-modal message payloads, while long context is managed by uploading exceeding content as files. The API supports streaming for real-time outputs and offers automatic conversation management.
Quick Start & Requirements
docker run ...
or docker-compose up -d
).SESSIONS
and APIKEY
environment variables or a config.yaml
file.Highlighted Details
/v1/chat/completions
).sk-ant-sid01-*
as keys.Maintenance & Community
The project is maintained by yushangxiao. Contributions are welcome via pull requests.
Licensing & Compatibility
Licensed under the MIT License. This permissive license allows for commercial use and integration into closed-source applications.
Limitations & Caveats
Free users are limited to the claude-sonnet-4-20250514
model. The project relies on reverse-engineering Claude's web service, which could be subject to change by Anthropic, potentially breaking the API.
1 month ago
Inactive