Skip to main content

ClaudePy

Claude Code rewrite by Python.

Quick Start

Install

pip install -e .

Environment Variables

Provider

OpenAI Resonse
CLAUDE_CODE_PROVIDER=openai
OPENAI_API_STYLE=responses
OPENAI_BASE_URL=http://api.hack3rx.cn
OPENAI_API_KEY=sk-xxxxxxxx
OPENAI_REASONING_EFFORT=xhigh
OpenAI ChatCompletions
CLAUDE_CODE_PROVIDER=openai
OPENAI_API_STYLE=chat_completions
OPENAI_BASE_URL=http://api.hack3rx.cn
OPENAI_API_KEY=sk-xxxxxxxx
OPENAI_REASONING_EFFORT=xhigh
Anthropic
ANTHROPIC_BASE_URL=http://api.hack3rx.cn
ANTHROPIC_AUTH_TOKEN=sk-xxxxxxxx
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1

Tool-call limits

CLAUDE_CODE_MAX_TURNS=64
CLAUDE_CODE_AGENT_MAX_TURNS=32

Token limits

CLAUDE_CODE_MAX_OUTPUT_TOKENS=64000
CLAUDE_CODE_MAX_CONTEXT_TOKENS=1000000
CLAUDE_CODE_AUTO_COMPACT_ENABLED=1
CLAUDE_CODE_AUTO_COMPACT_WINDOW=900000

Setting

~\settings.json

{
  "model": "gpt-4.5",
  "permissions": {
    "defaultMode": "acceptEdits"
  },
  "enabledPlugins": []
}

Run

claude

Release files for ClaudePy 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ClaudePy 0.1.2
File Size Uploaded
claudepy-0.1.2.tar.gz 127.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ClaudePy 0.1.2
File Interpreter ABI Platform
claudepy-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 283.9 kB

Release files / claudepy-0.1.2.tar.gz

Download URL claudepy-0.1.2.tar.gz
Size 127.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9b12bb2d389c11fba46501171da0617ef9234bb74170a18991654d71a04e968c
BLAKE2b-256 checksum
How to use checksums
7448025e667ea8470aae0ef7af1861b974e7efde3174f117ff18fa905cdb8b38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Release files / claudepy-0.1.2-py3-none-any.whl

Download URL claudepy-0.1.2-py3-none-any.whl
Size 156.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e773371a1260174108aa1bde789c0527acec2122205e7afa5d5f9eac5cceb937
BLAKE2b-256 checksum
How to use checksums
f1342b8d3d2b38037aa1affccf6290a9aa915c082c29d25be704f1141ebae25d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page