claude-unofficial-api  by Explosion-Scratch

JS library for Claude-2 API via Claude Web (also CLI)

created 2 years ago
739 stars

Top 47.9% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides an unofficial JavaScript API and CLI for interacting with Claude AI, targeting developers and power users who want programmatic access to Claude's conversational capabilities. It aims to offer a lightweight, isomorphic solution for starting conversations, uploading files, and managing chat history.

How It Works

The library leverages an unofficial internal API exposed by the Claude web interface, requiring a user's session key for authentication. It's built with a zero-dependency, isomorphic JavaScript approach, allowing it to run in both Node.js and browser environments, though browser usage may require a proxy to circumvent CORS issues. The core functionality revolves around initiating conversations, sending messages, and retrieving conversation details.

Quick Start & Requirements

Highlighted Details

  • Supports multiple Claude models including claude-2, claude-1.3, and claude-instant-100k.
  • Includes unit tests with 85% code coverage and 100% pass rates.
  • Offers CLI functionality for direct command-line interaction.
  • Features include starting new conversations, uploading files, and retrieving/responding to existing chats.

Maintenance & Community

The project is maintained by @Explosion-Scratch. Contributions are welcome via pull requests.

Licensing & Compatibility

The README does not specify a license. Compatibility for commercial use or closed-source linking is not addressed.

Limitations & Caveats

The project is currently non-functional due to Claude blocking non-browser traffic to its internal API. The author is seeking community assistance to find a workaround.

Health Check
Last commit

1 year ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
3 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Jeff Hammerbacher Jeff Hammerbacher(Cofounder of Cloudera), and
1 more.

chathub by chathub-dev

0.1%
10k
All-in-one chatbot client
created 2 years ago
updated 4 months ago
Feedback? Help us improve.