How to Install OpenClaude in 10 Minutes (Open Source Claude Code with ANY AI Model)
OpenCloud Installation and Configuration Guide
Overview of OpenCloud and Claude Code
- The source code for Claude has been leaked, leading developers on GitHub to create open-source replicas.
- OpenCloud allows integration with any model provider through the Open Router API, enhancing functionality beyond the original Claude Code.
- A new installation process is introduced due to potential copyright takedowns by Anthropic on previous repositories.
Installation Prerequisites
- Users must install Node.js and Bun; instructions are provided for Mac, Linux, and Windows systems.
- The installation begins by downloading Node.js from its official site, selecting the appropriate version for the operating system.
Setting Up OpenCloud
- After installing Node.js and Bun, users need to download the source code from a specified repository as a zip file.
- It is recommended to store the unzipped source code in a stable location (e.g., Applications folder on Mac or Program Files on Windows).
Configuring OpenCloud in VS Code
- Users should open the downloaded folder in VS Code and run specific commands (
npm install,npm run build,npm link) in the terminal to set up dependencies.
- A test folder can be created where users will configure their exports necessary for running OpenCloud.
API Key Setup with Open Router
- To use OpenRouter, an API key must be generated after funding an account; this platform aggregates various LLM model providers.
- Users need to select a model from OpenRouter; examples include Gemini Flash 3 Preview or Miniax.
Open Cloud Agent Setup and Usage
Choosing the Right Model
- The speaker suggests using affordable, open-source models like Miniax M 2.7 or GLM5 for decent performance without high costs.
- For this demonstration, the speaker opts for Gemini Flash 3 Preview as the model to be used.
Running Open Cloud Command
- After setting up, the speaker copies commands into the terminal within a designated test folder to run an Open Cloud command.
- Confirmation of successful setup is indicated by seeing "open router" and "Gemini 3 PL" in the output.
Creating a Simple Web Page
- The agent is instructed to create a simple
index.htmlweb page displaying "Hello World" without CSS.
- The agent successfully creates the webpage, confirming that it is operational and connected properly.
Configuration Variables Management
- Important configuration variables must be input each time a new instance is started since they are not saved as local environment variables.
- The speaker notes that making these configurations permanent can be complex and may not be necessary for most users.
Switching Model Providers
- To switch model providers, one must exit the current OpenCloud session and select a new model from Open Router.
- After copying the new model name, it should replace the existing model name in environment variables before restarting OpenCloud.