Skip to content

chuccp/claude-code-switch

Repository files navigation

Claude Code Switch

GitHub release GitHub downloads GitHub stars License Platform .NET C#

简体中文 | 繁體中文 | English

A cross-platform desktop application based on Avalonia UI.

Download

Download the latest version from GitHub Releases.

Note for Mac and Linux users:

  • Linux: Run chmod +x claude-code-switch to grant execute permission.
  • macOS: The app is packaged as a .app bundle. On first launch, you may need to go to System Preferences > Privacy & Security and click "Open Anyway" to allow the app to run.

Screenshots

Application Screenshot

Tech Stack

  • .NET 10.0
  • Avalonia UI 11.1.3 - Cross-platform UI framework
  • Avalonia ReactiveUI - Reactive UI pattern
  • Tomlyn - TOML configuration file parsing

Features

  • 🎨 Fluent Design Theme - Modern UI style
  • 🌙 Dark/Light Theme Switch - Theme switching support
  • 📱 Cross-platform Support - Windows, Linux, macOS
  • 🔧 Configurable Window Settings - Customizable window size and position

Project Structure

claude-code-switch/
├── Controls/          # Custom controls
├── Converters/        # Data converters
├── Models/            # Data models
├── Services/          # Service layer
├── Theme/             # Theme styles
├── ViewModels/        # View models
├── Views/             # View pages
└── Program.cs         # Application entry point

Requirements

  • .NET 10.0 SDK
  • IDE with Avalonia UI support (Visual Studio, Rider, or VS Code)

Build & Run

# Restore dependencies
dotnet restore

# Build project
dotnet build

# Run application
dotnet run --project claude-code-switch/claude-code-switch.csproj

Configuration

The application uses appl.toml for configuration:

debug_mode = false
theme = "Dark"
[window]
width = 800
height = 600
x = 1320
y = 594
[dialog]
width = 700
height = 550

License

This project is licensed under the MIT License. See LICENSE file for details.

About

Claude Code API Switcher | 可视化 Claude Code API 切换工具 Beautiful Fluent UI • One-click switch multiple providers/models (Anthropic + proxies) • Cross-platform (Win/Linux/macOS) 漂亮 Fluent 界面 • 一键切换多家模型/API • 全平台支持 No more manual config edits! | 告别手动改配置!

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors