Skip to main content

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

3Fr6DTzfquQ1cDfCx3If

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

claudecode_next-1.0.1.tar.gz (31.2 kB view details)

Uploaded Source

Built Distribution

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

claudecode_next-1.0.1-py3-none-any.whl (32.9 kB view details)

Uploaded Python 3

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

Hashes for claudecode_next-1.0.1.tar.gz
Algorithm Hash digest
SHA256 83bae0d55e4946be8e8d0ddeb136f8e12face5a74b666bbc4dc97c41e745aa63
MD5 1f004b6e821babbc2b61cf8d9f1f12bc
BLAKE2b-256 cd590feec6743ceadee76c8eafdcea48ab7d51cab775455a68b0c22ceba51ed0

See more details on using hashes here.

File details

Details for the file claudecode_next-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for claudecode_next-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 400b787f72e3fa89ab75b82460bc1e3dac00b2c81b7b5e8af16ad309ebb836ea
MD5 64fd3c024614b0f50805917840720373
BLAKE2b-256 d59f2bea92ff5f8d598676d2b20820489c3340e803c076356067d010e1375be7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page