Reverse-engineered Claude Code SDK released in four languages

A developer has reverse-engineered Claude Code and rebuilt the entire SDK as single-file implementations in four programming languages. The project was created to use Claude Code's capabilities without depending on the 190MB Bun bundle or npm packages.
What was discovered
The subscription authentication protocol requires four components simultaneously:
- An OAuth token from macOS keychain
- Specific beta headers
- A billing header hidden inside the system prompt
- A browser access header
None of this authentication process is publicly documented.
Available SDKs
Node.js (claude-native.mjs)— 0 dependenciesPython (claude-native.py)— 0 dependenciesGo (claude-native.go)— 0 dependenciesRust (rust-sdk/)— uses serde + reqwest
Features included
- OAuth or API key authentication
- Full agent loop with streaming and tool use
- Built-in tools (bash, read, write, glob, grep)
- NDJSON bridge for automation (spawn as subprocess, JSON on stdin/stdout)
- Interactive REPL
- MCP server support
Usage example
The Python version can be used with:
cp claude-native.py your-project/
python3 claude-native.py -p "explain this code"
The project is MIT licensed and accepts feedback and pull requests. This type of reverse-engineering work is useful for developers who want to integrate Claude Code's capabilities into their own projects without the overhead of large dependencies.
📖 Read the full source: r/LocalLLaMA
👀 See Also

Stoa Markets: A Marketplace for GPUs and AI Servers with Verified Quotes
Stoa is a marketplace for buying and selling new and used GPUs and AI servers. It standardizes RFQs, verifies counterparties, and provides firm quotes, aiming to improve price discovery in the GPU market.

MemAware benchmark shows RAG-based agent memory fails on implicit context retrieval
The MemAware benchmark tests whether AI agents can surface relevant past context when users don't explicitly ask for it, revealing that current memory systems score only 2.8% accuracy on hard implicit queries versus 0.8% with no memory.

PayClaw Launches Sandbox for Payment MCP Server with Virtual Visa Cards
PayClaw has launched a sandbox environment for its payment MCP server, featuring merchant-locked virtual Visa cards with 15-minute expiry, MFA-gated human approval per transaction, and intent declaration before card issuance. Production cards are scheduled for March 4.

Using pre-commit to improve AI-generated code quality and security
A developer shares their pre-commit configuration for Go and Java projects, using tools like golangci-lint, govulncheck, and checkov to catch vulnerabilities and quality issues in AI-generated code before commit.