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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file claudecode_next-1.0.1.tar.gz.
File metadata
- Download URL: claudecode_next-1.0.1.tar.gz
- Upload date:
- Size: 31.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83bae0d55e4946be8e8d0ddeb136f8e12face5a74b666bbc4dc97c41e745aa63
|
|
| MD5 |
1f004b6e821babbc2b61cf8d9f1f12bc
|
|
| BLAKE2b-256 |
cd590feec6743ceadee76c8eafdcea48ab7d51cab775455a68b0c22ceba51ed0
|
File details
Details for the file claudecode_next-1.0.1-py3-none-any.whl.
File metadata
- Download URL: claudecode_next-1.0.1-py3-none-any.whl
- Upload date:
- Size: 32.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
400b787f72e3fa89ab75b82460bc1e3dac00b2c81b7b5e8af16ad309ebb836ea
|
|
| MD5 |
64fd3c024614b0f50805917840720373
|
|
| BLAKE2b-256 |
d59f2bea92ff5f8d598676d2b20820489c3340e803c076356067d010e1375be7
|