Agent skill · Backend & API

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.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
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.

Facts
Files in the skill folder: 2
SKILL.md size: 5 KB
Bundled scripts: none
Path: skills/ai-llm/model-provider-setup/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Overview
  2. When to Use This Skill
  3. Setup Workflow
  4. Step 1: Read Provider Configurations
  5. Step 2: Present Provider Options to User
  6. Step 3: Present Model Options for Selected Provider
  7. Step 4: Collect API Key
  8. Step 5: Update .claude/settings.local.json
  9. Step 6: Confirm Setup
  10. Adding New Providers
  11. Resources
  12. references/providers.json
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
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.

Keep going