ClaudePy: high-compatibility Python rewrite of Claude Code
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
claudepy-0.1.1.tar.gz
(104.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
claudepy-0.1.1-py3-none-any.whl
(131.3 kB
view details)
File details
Details for the file claudepy-0.1.1.tar.gz.
File metadata
- Download URL: claudepy-0.1.1.tar.gz
- Upload date:
- Size: 104.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8b4db28d38488f3a9ce5d39f504b909745ae991519976a7ad519d6c3c1faa86
|
|
| MD5 |
34df3c14356c30d699c2567c79303348
|
|
| BLAKE2b-256 |
4e036bd4fd9f9f9fad8fbfda842ddd1fc4d7b78b5fc82ed198a4eea1bec0a62f
|
File details
Details for the file claudepy-0.1.1-py3-none-any.whl.
File metadata
- Download URL: claudepy-0.1.1-py3-none-any.whl
- Upload date:
- Size: 131.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4b1e9c12e9988746625f7e63f4ed6aa514f58629607545511b90f3600546c85
|
|
| MD5 |
349e6d832b261da032e5a93391836880
|
|
| BLAKE2b-256 |
cdde3bc7f880cb3788ea9b83d76baf50fb666fbc20bc15a9005331e4fb3f5859
|