Automatic CLI setup
Install the published CloudService CLI globally for a reusable cloudservice command. All client guides use this direct command, so repeated npx runs are unnecessary.
Global install
bash
npm install -g cloudservice@latest
cloudserviceFuture commands such as cloudservice doctor, cloudservice models, and cloudservice update are then available directly. See Updating the CLI for moving an existing install to the latest published version, and Removing configuration for undoing what the installer wrote.
Optional one-time run
bash
npx cloudservice@latestBoth forms run the same installer. There is no init subcommand.
What the installer does
- Prompts for a CloudService API key, or reads
CLOUDSERVICE_API_KEYin non-interactive environments. - Validates the key and its OpenAI-compatible, Claude-compatible, or combined provider scope.
- Reads the authenticated model catalog and shows only compatible client targets.
- Backs up existing client files and merges only CloudService-owned settings.
- Offers
doctorand client-specific verification after setup.
Manual setup
You do not need the CLI for a direct configuration. Use the manual client guides, including the explicitly separate no-npx guides for Claude Code and Codex.
Keep the key private
The CLI masks stored keys in its output. Do not paste a real key into a command you will share, a repository, a screenshot, or a support transcript.