Claude Code is Anthropic’s official command-line interface for Claude, providing direct AI assistance from your terminal for software development, code analysis, and programming tasks.
LLM Model
We are using the GLM-5.2 model (by Z.AI) with a 1M context window — the latest generation. The API is served through our own gateway at https://claude.matsci.dev via Sub2API.
Installation
System Requirements
OS: macOS 10.15+, Ubuntu 20.04+/Debian 10+, or Windows 10+ (with WSL/Git for Windows)
Hardware: 4GB+ RAM
Software: Node.js 18+ (for NPM installation)
Network: Internet connection required
Standard Installation
macOS Installation
Homebrew (Recommended):
brew install --cask claude-code
curl Script:
curl -fsSL https://claude.ai/install.sh | bash
Linux Installation
curl Script:
curl -fsSL https://claude.ai/install.sh | bash
Homebrew (if available):
brew install --cask claude-code
Windows Installation
PowerShell:
irm https://claude.ai/install.ps1 | iex
Command Prompt:
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
NPM Install (All Platforms)
npm install -g @anthropic-ai/claude-code
API Configuration
Claude Code uses our group’s Sub2API gateway for AI models (GLM and DeepSeek). See Model API Setup (Sub2API) for detailed instructions on getting your API key and configuring models.
Quick Configuration
After getting your API key from the Sub2API portal, add these to your ~/.bashrc or ~/.zshrc: