Run Claude Code, Anthropic's agentic coding CLI, on
Upstage Solar models. A single script points Claude Code at the Upstage API and launches it β
your shell profile and existing ~/.claude settings are left untouched.
Install
Run the one-line setup:
On first run the script reads your Upstage API key, verifies it with a test call, and launches Claude Code on Solar. It installs nothing without your confirmation.
Prerequisites
- Upstage API key β create one in the Upstage Console.
- Claude Code CLI installed. See Anthropic's installation guide.
What the script does
Finds your API key
Reads your key from the UPSTAGE_API_KEY environment variable, your saved credentials, or a
one-time masked prompt β then verifies it before launch.
The key is only ever sent to https://api.upstage.ai.
Stores it securely (optional)
If you opt in, the key is saved to your OS secret store β macOS Keychain or Linux Secret Service β or a permission-locked file. Answer no and nothing is stored.
Launches Claude Code on Solar
Starts Claude Code against Upstage Solar (default model: solar-pro4). The Solar environment
applies only to that Claude Code session.
Useful commands
The first run offers to install the script to ~/.local/bin as claude-solar. Once installed
you can use its subcommands:
What you can do next
With Claude Code running on Solar, you can drive your codebase through natural-language commands:
- Automate routine tasks β write, refactor, and fix code across your project.
- Understand code β ask Claude Code to explain complex or unfamiliar code.
- Handle git workflows β stage changes, write commit messages, and open pull requests.