model-provider-setup
Configure Claude Code to use alternative AI model providers by setting up custom API endpoints and authentication. Use this skill when users want to switch from default Anthropic models to providers like Z.AI, OpenRouter, or other custom endpoints with compatible APIs.
npx skills add majiayu000/claude-skill-registry --skill model-provider-setup --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Model Provider Setup ## Overview This skill configures `.claude/settings.local.json` to use alternative AI model providers that offer Anthropic-compatible APIs. It guides the setup of custom base URLs, model selections, and API authentication for providers beyond the default Anthropic service. ## When to Use This Skill Use this skill when users: - Want to switch to alternative model providers (Z.AI, OpenRouter, etc.) - Need to configure custom API endpoints for Claude Code - Ask about setting up API keys for different providers - Request help configuring model provider settings ## Setup Workflow ### Step 1: Read Provider Configurations Read the provider configurations from `references/providers.json` to understand available providers, their base URLs, and supported models. The JSON structure contains: - Provider ID and display name - Description of the provider - Base URL for API requests - List of available models with IDs and descriptions ### Step 2: Present Provider Options to User Use the `AskUserQuestion` tool to present available providers to the user. Structure the question as follows: **Question format:** - Header: "Provider" - Question: "Which model provider would you li
- Overview
- When to Use This Skill
- Setup Workflow
- Step 1: Read Provider Configurations
- Step 2: Present Provider Options to User
- Step 3: Present Model Options for Selected Provider
- Step 4: Collect API Key
- Step 5: Update .claude/settings.local.json
- Step 6: Confirm Setup
- Adding New Providers
- Resources
- references/providers.json
What does the model-provider-setup skill do?
Configure Claude Code to use alternative AI model providers by setting up custom API endpoints and authentication. Use this skill when users want to switch from default Anthropic models to providers like Z.AI, OpenRouter, or other custom endpoints with compatible APIs.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill model-provider-setup --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
