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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| claudepy-0.1.2.tar.gz | 127.0 kB | Without provenance | Details for claudepy-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| claudepy-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for claudepy-0.1.2-py3-none-any.whl |
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
|
Security for ClaudePy 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.