claudeers.
// Other

Claude_api

Claude_api is a Python package that provides a convenient way to interact with Claude 2 from Anthropic.

// Other[ cli ][ api ][ claude ]#claude#anthropic#anthropic-claude#claude-ai#claude-api#nlp#otherMIT$open-sourceupdated 2 months ago
Dormant
0/100
last commit almost 3 years ago
last release almost 3 years ago
releases 1
open issues 7
// star history

Install with your AI

Paste into Claude Code, Cursor, or any agent — it reads the repo and wires the tool into your project.

⚠ Unverified source (community-unclaimed, low activity) — reveal the prompt
⚠ Unverified source (community-unclaimed, low activity). Inspect the repo before letting your agent install it.

Install and set up Claude_api (pip project) into my current project.
Found on https://claudeers.com/claudeapi
Repo: https://github.com/Nipun1212/Claude_api
Homepage/docs: https://pypi.org/project/claude2/1.0.1/
Detected install method: pip → pip install claude2
Category: other. Platforms: cli, api.
Read the repo's README for exact setup and env vars, then install it and wire it into my project.

Claudeers Health Verdict:
dormant; community-verified: false. Confirm the source before running anything.
// or install directly (pip)
pip install claude2
// or clone · unverified · not recently updated
git clone https://github.com/Nipun1212/Claude_api

// compatibility

Platformscli, api
Operating systems
AI compatibilityclaude
LicenseMIT
Pricingopen-source
LanguagePython

Claude 2 API ( Unofficial )

This project provides an unofficial API for Claude AI from Anthropic, allowing users to access and interact with Claude AI and trying out experiments with the same.

image

Current Version == 1.1.5

The python package that returns response of Claude 2 through value of session cookies.

Please exercise caution and use this package responsibly.

Installation

To use the Claude AI Unofficial API, you can either clone the GitHub repository or directly download the Python file.

Terminal :

$ pip install claude2

or

Clone the repository:

git clone [https://github.com/Nipun1212/Claude_api.git]

Authentication

Warning Do not expose the _SessionKey=

  1. Visit https://claude.ai/
  2. F12 for console
  3. Session: Network → Request Header → Cookie header → Copy the value of __SessionKey= cookie.

Screenshot (8)

Note that while I referred to __SessionKey= value as an API key for convenience, it is not an officially provided API key. Cookie value subject to frequent changes. Verify the value again if an error occurs. Most errors occur when an invalid cookie value is entered.


Usage

from claude import Claude
cookie = "sessionKey=..."
claude = Claude(cookie)

After initalising the claude object, it automatically takes your most recent conversation, without facing the hassle of choosing your conversation ID, allowing you to simply chat with the model.

prompt = "Hello, Claude!"
response=claude.get_answer(prompt)
print(response)

Create New Chat

If you want to start a new convewrsation you can just run

claude.create_new_conversation()

and it automatically updates your conversation ID, allowing you yo easily chat with the model again using

prompt = "Hello, Claude!"
response=claude.get_answer(prompt)
print(response)

Disclaimer

This project provides an unofficial API for Claude AI and is not affiliated with or endorsed by Claude AI or Anthropic. Use it at your own risk. The package was created to support developers in testing functionalities due to delays in the official Claude API package. However, it should not be misused or abused. Please be cautious and refer to the Readme for more information.



Copyright (c) 2023 Nipun Bhatia

Please refer to the official Claude AI documentation[https://claude.ai/docs] for more information on how to use Claude AI.

// faq

What is Claude_api?

Claude_api is a Python package that provides a convenient way to interact with Claude 2 from Anthropic. . It is open-source on GitHub.

Is Claude_api free to use?

Claude_api is open-source under the MIT license, so it is free to use.

What category does Claude_api belong to?

Claude_api is listed under data in the Claudeers registry of Claude-compatible tools.

2 views
120 stars
unclaimed
updated 2 months ago

// embed badge

Claude_api on Claudeers
[![Claudeers](https://claudeers.com/api/badge/claudeapi.svg)](https://claudeers.com/claudeapi)

// retro hit counter

Claude_api hit counter
[![Hits](https://claudeers.com/api/counter/claudeapi.svg)](https://claudeers.com/claudeapi)

// reviews

// guestbook

0/500

// related in Other

🔓

符合nature论文学术表达和科研绘图的Skill

// otherYuan1z0825/Python36,535Apache-2.0[ claude ]
🔓

Open source Ghostty-based macOS terminal with vertical tabs and notifications for AI coding agents. Built for multitasking, organization, and programmability.

// othermanaflow-ai/Swift26,069NOASSERTION[ claude ]
🔓

Anti-AI-slop design skill for Claude Code, Cursor, and Codex.

// otherNutlope/CSS25,307MIT[ claude ]
🔓

Huashu Design · HTML-native design skill for Claude Code · Claude Code 里 HTML 原生的设计 skill · 高保真原型 / 幻灯片 / 动画 + 20 设计哲学 + 5 维评审 + MP4 导出 · Agent-agnostic

// otheralchaincyf/HTML23,151MIT[ claude ]
Connectorlinks several projects together across the ecosystem · 9 connections
→ see how Claude_api connects across the ecosystem