claude-unofficial-api  by Explosion-Scratch

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

Created 2 years ago
740 stars

Top 46.8% on SourcePulse

GitHubView on GitHub
1 Expert Loves This Project
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

2 years ago

Responsiveness

Inactive

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

Explore Similar Projects

Feedback? Help us improve.