OpenClaude-Notes

1. About

  • What is OpenClaude?

  • OpenClaude is an open-source coding-agent CLI for cloud and local model providers.

  • Use OpenAI-compatible APIs, Gemini, GitHub Models, Codex OAuth, Codex, Ollama, Atomic Chat, and other supported backends while keeping one terminal-first workflow: prompts, tools, agents, MCP, slash commands, and streaming output.

2. Prerequisites

  • Node.js

3. Installation

  1. Install

    via node.js
    npm install -g @gitlawb/openclaude@latest

4. Configuration

4.1. Ollama Provider

  • Reference this doc.

  • Create env variables:

    1. Open a CMD window

    2. Create these env variables

      Windows
      setx CLAUDE_CODE_USE_OPENAI 1
      setx OPENAI_BASE_URL http://192.168.1.53:11434/v1
      Optional
      setx OPENAI_MODEL gpt-oss:20b
    3. Close the CMD window

      Don’t launch openclaude in this CMD window. Open a new one!
    4. Open a new CMD window

    5. Launch openclaude

      openclaude