manage-claude-envs

Update Claude Code environment variables in env.sh with latest Anthropic model names.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/usadamasa/claude-config --skill manage-claude-envs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: manage-claude-envs
Source: https://github.com/usadamasa/claude-config/tree/main/.claude/skills/manage-claude-envs
Command: npx skills add https://github.com/usadamasa/claude-config --skill manage-claude-envs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the management of Claude Code environment variables, specifically updating model settings in env.sh to the latest versions available from Anthropic.

Core Features & Use Cases

  • Model Version Synchronization: Fetches the latest Claude model names from official Anthropic documentation.
  • Environment File Updates: Updates env.sh and env.sh.example with the newest model identifiers for various configurations (default, haiku, opus, sonnet, subagent).
  • Use Case: When Anthropic releases a new version of Claude Sonnet, you can use this Skill to automatically update your local env.sh file to use the new model, ensuring your Claude Code environment is always up-to-date without manual searching and editing.

Quick Start

Update the Claude environment variables to the latest models.

Frequently Asked Questions about manage-claude-envs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update Claude Code environment variables when Anthropic releases new models?

Updating Claude Code environment variables involves fetching the latest model names from Anthropic's official documentation and applying them to your `env.sh` file. This synchronizes configurations like `ANTHROPIC_MODEL` and subagent settings automatically.

What environment variables need to be changed to use a new Claude model version?

Key environment variables include `ANTHROPIC_MODEL`, `ANTHROPIC_DEFAULT_HAIKU_MODEL`, `ANTHROPIC_DEFAULT_OPUS_MODEL`, `ANTHROPIC_DEFAULT_SONNET_MODEL`, and `CLAUDE_CODE_SUBAGENT_MODEL`. These control default model selection and subagent behavior.

Can I automate fetching the latest Claude model names for my configuration?

Yes, you can automate fetching the latest Claude model names by retrieving data from Anthropic's official documentation. This process updates the `env.sh` and `env.sh.example` files with the newest model identifiers.

Does this environment variable update process support Vertex AI configurations?

The environment variable update process targets standard Claude Code configurations including Vertex AI environments. It ensures the `env.sh` file aligns with current model offerings for seamless integration across supported platforms.

What is the best way to synchronize `env.sh` with the latest Anthropic model offerings?

The best way to synchronize `env.sh` is to fetch the current model identifiers directly from official Anthropic documentation. This ensures your environment configuration aligns with the most recent AI capabilities without manual searching.

Why does my Claude Code subagent configuration not match the latest model release?

Your `CLAUDE_CODE_SUBAGENT_MODEL` variable may be outdated if it was not updated when new models were released. Synchronizing your `env.sh` file with the latest Anthropic documentation resolves this mismatch.