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

iai-mcp: Local daemon gives Claude persistent memory across sessions with 99% recall
iai-mcp is an open-source local daemon that captures every Claude conversation, organizes it into three memory tiers, and feeds context back on new sessions. Achieves >99% verbatim recall, retrieval under 100ms, and session-start cost under 3,000 tokens.

Chrome Extension Adds Live Preview to Claude Code Web
A Chrome extension called Claude Code Preview adds live preview functionality to Claude Code Web, similar to Lovable and other 'vibecoding' sites, allowing side-by-side viewing of deployments.

Automating Datadog Alert Triage with Claude Code and MCP
A developer built a system using Claude Code skills and Datadog's MCP server to automatically check monitoring alerts, classify issues, and open fix PRs via cron job. The setup takes about 30 minutes and runs parallel AI agents in isolated worktrees.

nah: A context-aware permission guard for Claude Code
nah is a PreToolUse hook that intercepts every tool call in Claude Code, classifying commands by action type like filesystem_read or git_history_rewrite and applying policies based on context. It runs a deterministic classifier in milliseconds with optional LLM escalation for ambiguous cases.