One-click script: install.sh
One command opens the Clauddy setup wizard. For macOS, Linux and WSL on Windows.
bash
curl -fsSL https://docs.clauddy.com/install.sh | bash -s -- --lang enWhat happens when you run it
- A menu appears. Type the number of the client you want. Several at once works too, e.g.
1 2. - If the client is not installed, the script offers to install it using that client's official method.
- It asks you to create an API key in the right group in the console. After you paste it, the script calls
/v1/modelsto validate the key and reports model count and latency. - It writes the endpoint and key into the client's config file, backing it up to a timestamped
.bakfirst. - It prints the launch command. Return to the menu for another client, or type
0to exit.
| Menu | Client | Recommended group | Writes to |
|---|---|---|---|
| 1 | Claude Code | Claude | ~/.claude/settings.json |
| 2 | Codex CLI | OpenAI | ~/.codex/config.toml |
| 3 | Gemini CLI | Gemini | ~/.gemini/.env |
| 4 | OpenClaw | Unified | ~/.clauddy/env |
| 5 | Hermes agent | Unified | ~/.clauddy/env |
| 6 | Switch language |
If validation fails
After three failed attempts the script offers "AI diagnosis": one bounded diagnostic call to the gateway using a validated key. It only prints advice and never changes anything. Most failures are a wrong group or an incompletely pasted key.
Windows users
install.sh is a Bash script. It cannot run in PowerShell or CMD.
- WSL installed: run the command above inside a WSL terminal. The script configures only the WSL environment, so run the clients inside WSL too.
- Want native Windows: use the CC Switch desktop app, or follow the Windows manual setup on each client page.
Security
- The script talks only to
api.clauddy.com. It contacts a client's official install source only after you confirm installing a missing client. If Node.js is missing it can, after confirmation, install the official LTS from nodejs.org into~/.clauddy/nodewithout touching any existing Node.js. - Every modified config file is backed up first.
- Source is public: GitHub. You can also download install.sh, read it, and run
bash install.shlocally.
Flags
Current version 0.5.2.
bash
# Chinese interface (default)
curl -fsSL https://docs.clauddy.com/install.sh | bash
# Run locally
bash install.sh [--lang zh|en] [--yes]Changing config later
Run the script again. It replaces the content between the # >>> clauddy setup >>> markers and backs up again. To edit by hand, see "Manual setup" on each client page.
