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

Comparison of RunLobster vs Hosted OpenClaw Solutions
A developer tested RunLobster against KiwiClaw, xCloud, and self-hosted OpenClaw for 2 weeks each. RunLobster differs fundamentally as a product rather than just hosting, with 3,000 one-click integrations and memory that builds over time.

Open-source framework for persistent AI agent memory with local storage and graph-based retrieval
A developer has been building an open-source framework for persistent AI agent memory that stores data locally as Markdown files, uses wiki-links as graph edges, and implements Git for version control. The system features four-signal retrieval and graph-aware forgetting based on ACT-R cognitive science.

Yozora-fm: Interactive Anime Music Galaxy Visualization
Yozora-fm is an interactive visualization where each star represents an anime opening or ending song, with over 9,000 tracks mapped by genre and era. Users can click stars to play videos or explore the galaxy interface.

Claude Code Voice Mode: Hands-Free AI Conversations for Developers
Claude's voice mode beta lets you speak to the AI and hear responses, with hands-free and push-to-talk options. It works on web and mobile, counts toward regular usage limits, and allows switching between text and voice in the same conversation.