@quantum-ai/cc-haha
v1.0.23
Published
Claude Code opened to any LLM (OpenAI, Gemini, DeepSeek, Ollama, etc.)
Downloads
3,358
Maintainers
Readme
Claude Code Haha
Use Claude Code with any LLM — not just Claude.
OpenClaude is a fork of the Claude Code source leak (exposed via npm source maps on March 31, 2026). We added an OpenAI-compatible provider shim so you can plug in GPT-4o, DeepSeek, Gemini, Llama, Mistral, or any model that speaks the OpenAI chat completions API. It now also supports the ChatGPT Codex backend for codexplan and codexspark.
All of Claude Code's tools work — bash, file read/write/edit, grep, glob, agents, tasks, MCP — just powered by whatever model you choose.
Installation
You can install OpenClaude globally via npm:
npm install -g @quantum-ai/cc-hahaOnce installed, the cc-haha command will be available.
Alternatively, you can use npx without global installation:
npx cc-hahaQuick Start (OpenAI-Compatible Mode)
To use OpenClaude with an OpenAI-compatible provider (such as OpenAI, DeepSeek, or a local model), set the following environment variables:
# Enable OpenAI compatibility mode
set CLAUDE_CODE_USE_OPENAI=1
# Your API key (or token)
set OPENAI_API_KEY=YourTokenHere
# Base URL for the OpenAI-compatible API endpoint
set OPENAI_BASE_URL=https://api.deepseek.com/v1
# Model name to use
set OPENAI_MODEL=deepseek-chatThen run OpenClaude with a prompt:
npx cc-haha "Hello"This will send "Hello" to the configured model and display the response.
Interactive Modes
OpenClaude offers several interactive modes:
Text-based User Interface (TUI)
Launch the interactive TUI interface:
npx cc-haha --tuiCombine with YOLO mode to skip initial prompts and enter TUI immediately:
npx cc-haha --dangerously-skip-permissions --tuiYOLO Mode
YOLO mode (--dangerously-skip-permissions or --approval-mode yolo) automatically approves all actions without prompting. This is useful for automation or when you fully trust the model's decisions.
Example usage:
# YOLO mode with a prompt
npx cc-haha "Hello" --dangerously-skip-permissions
# YOLO mode with TUI (skips startup questions)
npx cc-haha --dangerously-skip-permissions --tuiWarning: YOLO mode bypasses security checks. Use with caution.
From Source
If you want to run from source (requires Bun):
git clone <repository>
cd <repository>
bun run build
node dist/index.mjs