claude-ai-models
v1.0.0
Published
Claude Code skill that fetches latest AI model IDs from Anthropic, OpenAI, and Google — no API keys needed
Maintainers
Readme
claude-ai-models
A Claude Code skill that fetches the latest AI model IDs from Anthropic, OpenAI, and Google — so Claude always uses up-to-date model names in your code.
No API keys needed. The skill scrapes public sources to get the latest model lists.
Why?
Claude's training data has a knowledge cutoff. When you ask it to write code calling AI APIs, it often uses outdated model IDs (e.g., gpt-4-turbo when gpt-5.2 already exists). This skill fixes that by fetching the real, current model list before writing any code.
Install
npx claude-ai-modelsThat's it. The skill is now active in Claude Code.
How it works
When Claude writes code that calls an AI API, it automatically runs a bash script that:
- Anthropic — Scrapes the official docs page for
claude-*model IDs - OpenAI — Fetches the SDK source file on GitHub (auto-generated from their OpenAPI spec — the true source of truth)
- Google — Scrapes the Gemini docs page for
gemini-*model IDs
The script does all the heavy lifting (curl + grep/sort), so Claude only receives a clean list of model IDs — minimal token usage.
Commands
npx claude-ai-models install # Install (default)
npx claude-ai-models uninstall # Remove the skill
npx claude-ai-models test # Fetch models to verify it works
npx claude-ai-models help # Show helpManual usage
You can also run the fetch script directly:
bash ~/.claude/skills/ai-models/fetch-models.sh # All providers
bash ~/.claude/skills/ai-models/fetch-models.sh --anthropic # Anthropic only
bash ~/.claude/skills/ai-models/fetch-models.sh --openai # OpenAI only
bash ~/.claude/skills/ai-models/fetch-models.sh --google # Google onlyExample output
=== LATEST AI MODELS (2026-02-08) ===
## ANTHROPIC (Claude)
claude-opus-4-6
claude-sonnet-4-5
claude-haiku-4-5
...
## OPENAI
gpt-5.2
gpt-5.1
gpt-4o
o4-mini
o3
...
## GOOGLE (Gemini)
gemini-3-pro
gemini-2.5-pro
gemini-2.5-flash
...Requirements
jq— Install withbrew install jq(macOS) orapt install jq(Linux)curl— Usually pre-installed
License
MIT
