falconsw

Cprov — AI skill for Claude Code

AI community

Switch Claude Code between Anthropic, Z.ai (GLM), MiniMax and any Anthropic-compatible provider.

How to install Cprov

This entry records only its repository, not the path inside it, so there is no exact command to give. Open falconsw/cprov and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Cprov does

Switch Claude Code between Anthropic, Z.ai (GLM), MiniMax and any Anthropic-compatible provider. Keys stay in your OS keychain.

Alternatives in AI

  • WindsurfAPI — Turn Windsurf / Devin Desktop's 100+ AI models (Claude, GPT, Gemini, DeepSeek, Kimi, GLM, SWE) into OpenAI-, A 3k ★
  • onWatch — Open-source Go CLI that tracks AI API quota usage across 7 providers (Synthetic, Z.ai, Anthropic, Codex, GitHu 397 ★
  • Devo — Model-neutral agent desktop/runtime for private, enterprise, and OpenAI-compatible / Anthropic-compatible mode 316 ★

README

cprov

Switch [Claude Code](https://claude.com/claude-code) between Anthropic, Z.ai (GLM), MiniMax and any Anthropic-compatible provider, without hand-editing `settings.json` or keeping API keys in plain text.

$ cprov add
? Provider Z.ai (GLM)
  Get a key here: https://z.ai/manage-apikey/apikey-list
? Z.ai (GLM) API key › ****************************
  Checking the key…
✓ Key works (glm-5.3-flash[1m], 412 ms)
? Profile name (glm) ›
✓ Profile "glm" created. Key stored in macOS Keychain.

$ cprov glm          # this terminal talks to GLM
$ cprov opus         # another terminal talks to Claude, at the same time

Install

npm install -g @falconsw/cprov

Node 18+ and Claude Code are required. No other dependencies.

How it works

  • Profiles, not file copies. A profile only stores what differs: provider, model, auth type. Plugins and everything else in your ~/.claude/settings.json stay untouched.
  • Keys in the OS keychain. macOS Keychain, Secret Service (secret-tool) on Linux, or a 0600 file as a last resort. Profile files never contain a key.
  • Per session or default.
    • cprov starts claude --settings with the key in the child's environment. Only that session is affected, so different terminals can use different providers.
    • cprov use writes the overlay into ~/.claude/settings.json (backup in settings.json.cprov-backup) with an apiKeyHelper that reads the key from the keychain, so plain claude uses it.
    • cprov use --env-key also keeps the key in settings.json env, for apps that only read that file or the session's environment (Leftover, Cost Info, limit dashboards). The choice sticks until --no-env-key; cprov doctor flags the plain-text copy while it lasts.
  • Provider catalog. Base URLs, model names, context sizes and model-picker entries come from `providers.json`. For gateways, all model tiers (Opus/Sonne