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

Claude Agent Teams UI: Desktop App for Visualizing Claude Code Agent Workflows
A developer built a free, open-source desktop app that adds a visual layer to Claude Code's experimental Agent Teams feature. The app provides a real-time kanban board where tasks move automatically as agents work, plus cross-team communication, built-in review workflows, and per-task code review.

OpenClaw PARA Organization Skill Automatically Sorts Files into Projects, Areas, Resources, Archives
A developer created an OpenClaw skill that enforces the PARA method (Projects, Areas, Resources, Archives) for organizing files, automatically sorting content instead of dumping everything in the root directory.

Open-sourced self-healing skill for AI agents detects and fixes failures automatically
A new open-source skill enables AI agents to automatically detect failures, diagnose root causes, and implement fixes. It includes a failure scanner for crons, sub-agents, and deploy logs, plus a database that learns from previous fixes.

Wisepanel MCP Server Enables Multi-LLM Deliberation in Claude Code and Cursor
Wisepanel released an MCP server that runs multi-agent deliberations directly from Claude Code, Cursor, or any MCP client, using a divergent context enhancement system with ChatGPT, Claude, Gemini, and Perplexity models.