Skip to main content

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


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.0.tar.gz (97.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claudepy-0.1.0-py3-none-any.whl (123.9 kB view details)

Uploaded Python 3

File details

Details for the file claudepy-0.1.0.tar.gz.

File metadata

  • Download URL: claudepy-0.1.0.tar.gz
  • Upload date:
  • Size: 97.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for claudepy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a376765a3e0ca19c36f32b70308e3705ee8f87ae4cc6c2882c4fd613d0ccb9f6
MD5 8862f011ec61f13c35c5d73a209f17c7
BLAKE2b-256 0706eb0187c9a8a9d33a437fd134c2d58c17218e7b3308c4c7dd437543606702

See more details on using hashes here.

File details

Details for the file claudepy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: claudepy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 123.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for claudepy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f4c0de0dbe500b80bfadc2871e7e98e631629ecf21b36f7210703c5db5b9fff3
MD5 2d4c73ecc351aa5e5140614a967be582
BLAKE2b-256 695ed15b236e6076bd8e910cb4dfb71576178df05cb6262c5fcbfc8cad25449f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page