ClaudeCode-Next
An unofficial CLI coding agent that runs on the Claude.ai web interface.
This tool lets you use Claude as a coding assistant from your terminal – reading files, running commands, refactoring code – without needing an API key or paying per-token. It extracts your Claude.ai session from your browser once, then works entirely from the CLI and it's completely free.
Demo
What it does
- Read/write files in your project
- Run shell commands (git, npm, tests, builds)
- Search code and refactor across multiple files
- Interactive REPL with agent mode
- Workspace-restricted operations with confirmation
How it's different
Claude Code (official) : Uses API keys, per-token billing, offers paid models like opus and fable. ClaudeCode-Next : Uses your browser session, completely free, offers models like haiku and sonnet.
Best Practices
- Use gemini pro for reasoning and use claudecode-next with --prompt flag to use claude as a slave for coding.
- Use your favourite models for whatever tasks you like but save your tokens for the tasks that require less reasoning and effort - like generating summary of a page or a document, rephrasing a text or a code, minimizing code, etc.
Installation
pip install claudecode-next
For browser automation and automated cookie extraction:
pip install "claudecode-next[browser]"
playwright install chromium
Quick Start
claudecode-next --auto-fetch
Direct Prompts
claudecode-next --prompt "Explain quantum computing in simple terms"
Specify a model:
claudecode-next --model opus --prompt "Write a high-performance HTTP server in Rust"
you may use claude as a slave using --prompt flag as discussed in this reddit post
Agent Mode
Run the autonomous coding agent on a task:
claudecode-next --agent "Refactor utils.py to use pathlib"
Credential Setup
Login via browser to capture session credentials:
claudecode-next --login
Or auto-fetch cookies from an existing Chrome session:
claudecode-next --auto-fetch
Or enter credentials manually:
claudecode-next --manual
⚠️ Disclaimer
This is an unofficial, research-grade tool. It's not endorsed by Anthropic, uses the Claude.ai web interface (which may violate ToS), and can break at any time, developers won't be responsible for any misuse and damage caused by it. Use responsibly and at your own risk.
Credits
This is fork of claude-ai-reclient. I have taken the liberty to implement agentic capabilities into it. I would like to thank the original author for providing the base code.
Metadata
Release files for claudecode-next 1.0.1
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 |
|---|---|---|---|---|
| claudecode_next-1.0.1.tar.gz | 31.2 kB | Without provenance | Details for claudecode_next-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| claudecode_next-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for claudecode_next-1.0.1-py3-none-any.whl |
Total release size: 64.1 kB
Release files / claudecode_next-1.0.1.tar.gz
| Download URL | claudecode_next-1.0.1.tar.gz |
|---|---|
| Size | 31.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83bae0d55e4946be8e8d0ddeb136f8e12face5a74b666bbc4dc97c41e745aa63
|
|
BLAKE2b-256 checksum How to use checksums |
cd590feec6743ceadee76c8eafdcea48ab7d51cab775455a68b0c22ceba51ed0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Release files / claudecode_next-1.0.1-py3-none-any.whl
| Download URL | claudecode_next-1.0.1-py3-none-any.whl |
|---|---|
| Size | 32.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
400b787f72e3fa89ab75b82460bc1e3dac00b2c81b7b5e8af16ad309ebb836ea
|
|
BLAKE2b-256 checksum How to use checksums |
d59f2bea92ff5f8d598676d2b20820489c3340e803c076356067d010e1375be7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Security for claudecode-next 1.0.1
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.