This guide uses Windows PowerShell.
Install Node.js 20 or newer from:
https://nodejs.org/
Then open PowerShell and check it:
node --version
npm --versionnpm install -g @gitlawb/openclaudeReplace sk-your-key-here with your real key.
$env:CLAUDE_CODE_USE_OPENAI="1"
$env:OPENAI_API_KEY="sk-your-key-here"
$env:OPENAI_MODEL="gpt-4o"
openclaude$env:CLAUDE_CODE_USE_OPENAI="1"
$env:OPENAI_API_KEY="sk-your-key-here"
$env:OPENAI_BASE_URL="https://api.deepseek.com/v1"
$env:OPENAI_MODEL="deepseek-chat"
openclaudeInstall Ollama first from:
https://ollama.com/download/windows
Then run:
ollama pull llama3.1:8b
$env:CLAUDE_CODE_USE_OPENAI="1"
$env:OPENAI_BASE_URL="http://localhost:11434/v1"
$env:OPENAI_MODEL="llama3.1:8b"
openclaudeNo API key is needed for Ollama local models.
Close PowerShell, open a new one, and try again:
openclaudeCheck the basics:
- make sure the key is real
- make sure you copied it fully
- make sure Ollama is installed
- make sure Ollama is running
- make sure the model was pulled successfully
npm install -g @gitlawb/openclaude@latestnpm uninstall -g @gitlawb/openclaudeUse: