Skip to content

Commit 2286a95

Browse files
committed
chore(release): prepare v5.1.0
1 parent 7fdb3b1 commit 2286a95

File tree

6 files changed

+96
-34
lines changed

6 files changed

+96
-34
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,9 @@ jobs:
315315
body: |
316316
## CC Switch CLI ${{ github.ref_name }}
317317
318-
All-in-One Assistant for Claude Code, Codex & Gemini CLI
318+
All-in-One Assistant for Claude Code, Codex, Gemini, OpenCode & OpenClaw
319+
320+
New in this release: OpenClaw support, tighter upstream parity, and safer WebDAV / TUI behavior.
319321
320322
### 📦 下载 / Downloads
321323

CHANGELOG.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,50 @@ All notable changes to CC Switch CLI will be documented in this file.
77
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
88
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
99

10+
## [5.1.0] - 2026-03-20
11+
12+
### Added
13+
14+
- **OpenClaw**: Add first-class OpenClaw support with upstream-aligned provider flows, additive `~/.openclaw/openclaw.json` sync, default model management, prompt support, and dedicated TUI entries for `Env`, `Tools`, `Agents Defaults`, and config health warnings.
15+
16+
### Changed
17+
18+
- **Provider / Config**: Align OpenClaw provider boundaries, config import/update/remove behavior, and common snippet live-sync handling more closely with upstream behavior.
19+
- **Proxy**: Align Claude backend behavior with upstream and split oversized proxy modules for easier maintenance without changing the release surface.
20+
21+
### Fixed
22+
23+
- **OpenClaw / TUI**: Close remaining live-config parity gaps, improve the ratatui flow, and restore provider add/save after JSON edits.
24+
- **Terminal Compatibility**: Improve ansi256 and `TERM=*-256color` fallback behavior, including SSH xterm sessions.
25+
- **WebDAV**: Reject false-positive sync success results instead of reporting a misleading successful sync.
26+
27+
### Docs & Chore
28+
29+
- **Docs / Repo Hygiene**: Remove branch-only OpenClaw planning notes from the PR payload and ignore the superpowers docs workspace.
30+
- **Internal Refactor**: Split oversized provider, i18n, and Claude proxy modules without intended behavior changes.
31+
32+
### Commits (since v5.0.1)
33+
34+
- 1aca886 feat(openclaw): add upstream-aligned provider support
35+
- dccb70d docs: remove openclaw plan notes from pr
36+
- 5f5c0c9 refactor: split oversized modules without behavior changes
37+
- b6d6564 fix(tui): honor TERM 256color fallbacks
38+
- b42e569 test(tui): isolate test terminals from real tty
39+
- da9298e fix(tui): fallback SSH xterm sessions to ansi256
40+
- 126d082 chore(git): ignore docs superpowers workspace
41+
- 3088a6b fix(tui): unblock provider add save after JSON edits
42+
- c4409be fix(provider): align common snippets with live sync
43+
- 56f8af7 fix(proxy): align Claude backend behavior with upstream
44+
- 4a8dd7c refactor(proxy): split Claude proxy modules and tests
45+
- 078deaf feat(openclaw): align config and provider parity flows
46+
- 969dcd0 feat(openclaw): align upstream provider boundaries
47+
- c4cce7c fix(webdav): reject false-positive sync success
48+
- cdb6c5a fix(openclaw): align live-config parity and TUI behavior
49+
50+
### Thanks
51+
52+
- Thanks `@saladday` for landing OpenClaw support, tightening provider/live-config parity, and cleaning up the upstream alignment work across the proxy and TUI layers.
53+
1054
## [5.0.1] - 2026-03-15
1155

1256
### Added

README.md

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
# CC-Switch CLI
44

5-
[![Version](https://img.shields.io/badge/version-5.0.1-blue.svg)](https://github.com/saladday/cc-switch-cli/releases)
5+
[![Version](https://img.shields.io/badge/version-5.1.0-blue.svg)](https://github.com/saladday/cc-switch-cli/releases)
66
[![Platform](https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgrey.svg)](https://github.com/saladday/cc-switch-cli/releases)
77
[![Built with Rust](https://img.shields.io/badge/built%20with-Rust-orange.svg)](https://www.rust-lang.org/)
88
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
99

10-
**Command-Line Management Tool for Claude Code, Codex, Gemini & OpenCode CLI**
10+
**Command-Line Management Tool for Claude Code, Codex, Gemini, OpenCode & OpenClaw**
1111

12-
Unified management for Claude Code, Codex, Gemini, and OpenCode CLI provider configurations, MCP servers, skills, prompts, local proxy routes, and environment checks.
12+
Unified management for Claude Code, Codex, Gemini, OpenCode, and OpenClaw provider configurations, plus app-specific support for MCP servers, skills, prompts, local proxy routes, and environment checks.
1313

1414
[English](README.md) | [中文](README_ZH.md)
1515

@@ -28,11 +28,16 @@ This project is a **CLI fork** of [CC-Switch](https://github.com/farion1231/cc-s
2828

2929
---
3030

31-
## 🆕 What's New in 5.0.1
31+
## 🆕 What's New in 5.1.0
3232

33-
- Self-update now follows GitHub release metadata more closely and has a safer signed upgrade path.
34-
- The v5 TUI palette now stays readable across Apple Terminal and ansi256 compatibility modes.
35-
- Claude and Codex now warn before a first switch would overwrite an existing live config, and show a one-time common-config tip after the first real provider change.
33+
<div align="center">
34+
<h3><strong>🦞 OpenClaw (小龙虾) is now supported in CC-Switch CLI</strong></h3>
35+
</div>
36+
37+
- OpenClaw now has first-class provider support with upstream-aligned `openclaw.json` handling, default model flows, prompt support, and dedicated TUI entries for `Env`, `Tools`, `Agents Defaults`, and config health warnings.
38+
- Provider and common-snippet syncing now stay closer to upstream behavior, especially for additive live-config apps.
39+
- WebDAV now rejects false-positive sync success results instead of reporting a misleading success.
40+
- TUI compatibility is better in SSH, ansi256, and `TERM=*-256color` sessions, and provider add/save works again after JSON edits.
3641

3742
---
3843

@@ -107,8 +112,9 @@ cc-switch proxy show # Inspect proxy routes and status
107112
cc-switch --app claude provider list # Manage Claude providers
108113
cc-switch --app codex mcp sync # Sync Codex MCP servers
109114
cc-switch --app gemini prompts list # List Gemini prompts
115+
cc-switch --app openclaw provider list # Manage OpenClaw providers
110116

111-
# Supported apps: `claude` (default), `codex`, `gemini`, `open-code`
117+
# Supported apps: `claude` (default), `codex`, `gemini`, `opencode`, `openclaw`
112118
```
113119

114120
See the "Features" section for full command list.
@@ -222,9 +228,9 @@ copy target\release\cc-switch.exe C:\Windows\System32\
222228

223229
### 🔌 Provider Management
224230

225-
Manage API configurations for **Claude Code**, **Codex**, **Gemini**, and **OpenCode**.
231+
Manage API configurations for **Claude Code**, **Codex**, **Gemini**, **OpenCode**, and **OpenClaw**.
226232

227-
**Features:** One-click switching, multi-endpoint support, API key management, speed testing, stream health checks, remote model discovery.
233+
**Features:** One-click switching, multi-endpoint support, API key management, remote model discovery, and per-app diagnostics such as speed testing or stream health checks where supported.
228234

229235
```bash
230236
cc-switch provider list # List all providers
@@ -261,7 +267,7 @@ cc-switch mcp import --app claude # Import from live config
261267

262268
Manage system prompt presets for AI coding assistants.
263269

264-
**Cross-app support:** Claude (`CLAUDE.md`), Codex (`AGENTS.md`), Gemini (`GEMINI.md`), OpenCode (`AGENTS.md`).
270+
**Cross-app support:** Claude (`CLAUDE.md`), Codex (`AGENTS.md`), Gemini (`GEMINI.md`), OpenCode (`AGENTS.md`), OpenClaw (`AGENTS.md`).
265271

266272
```bash
267273
cc-switch prompts list # List prompt presets
@@ -396,7 +402,7 @@ cc-switch update --version vX.Y.Z # Update to a specific version
396402

397403
- **SQLite-backed state**: Core data lives in `~/.cc-switch/cc-switch.db`; legacy `~/.cc-switch/config.json` is kept only for older import and migration paths
398404
- **Skills SSOT**: Skill source files live in `~/.cc-switch/skills/`, while install state and app enablement stay in the database
399-
- **Safe Live Sync (Default)**: Skip writing live files for apps that haven't been initialized yet (prevents creating `~/.claude`, `~/.codex`, `~/.gemini`, or `~/.config/opencode` unexpectedly)
405+
- **Safe Live Sync (Default)**: Skip writing live files for apps that haven't been initialized yet (prevents creating `~/.claude`, `~/.codex`, `~/.gemini`, `~/.config/opencode`, or `~/.openclaw` unexpectedly)
400406
- **Atomic Writes**: Temp file + rename pattern prevents corruption
401407
- **Service Layer Reuse**: 100% reused from original GUI version
402408
- **Concurrency Safe**: RwLock with scoped guards
@@ -415,6 +421,7 @@ cc-switch update --version vX.Y.Z # Update to a specific version
415421
- Codex: `~/.codex/auth.json` (auth state), `~/.codex/config.toml` (provider/common config + MCP), `~/.codex/AGENTS.md` (prompts)
416422
- Gemini: `~/.gemini/.env` (provider env), `~/.gemini/settings.json` (settings + MCP), `~/.gemini/GEMINI.md` (prompts)
417423
- OpenCode: `~/.config/opencode/opencode.json` (providers + MCP + runtime config), `~/.config/opencode/AGENTS.md` (prompts)
424+
- OpenClaw: `~/.openclaw/openclaw.json` (providers + env/tools/agents defaults), `~/.openclaw/AGENTS.md` (prompts)
418425

419426
---
420427

@@ -425,7 +432,7 @@ cc-switch update --version vX.Y.Z # Update to a specific version
425432

426433
<br>
427434

428-
First, make sure the target CLI has been initialized at least once (i.e. its config directory exists). CC-Switch may skip live sync for uninitialized apps; you will see a warning. Run the target CLI once (e.g. `claude --help`, `codex --help`, `gemini --help`, `opencode --help`), then switch again.
435+
First, make sure the target CLI has been initialized at least once (i.e. its config directory exists). CC-Switch may skip live sync for uninitialized apps; you will see a warning. Run the target CLI once (e.g. `claude --help`, `codex --help`, `gemini --help`, `opencode --help`, `openclaw --help`), then switch again.
429436

430437
This is usually caused by **environment variable conflicts**. If you have API keys set in system environment variables (like `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`), they will override CC-Switch's configuration.
431438

@@ -459,11 +466,12 @@ This is usually caused by **environment variable conflicts**. If you have API ke
459466

460467
<br>
461468

462-
CC-Switch currently supports four AI coding assistants:
469+
CC-Switch currently supports five AI coding assistants:
463470
- **Claude Code** (`--app claude`, default)
464471
- **Codex** (`--app codex`)
465472
- **Gemini** (`--app gemini`)
466-
- **OpenCode** (`--app open-code`)
473+
- **OpenCode** (`--app opencode`)
474+
- **OpenClaw** (`--app openclaw`)
467475

468476
Use the global `--app` flag to specify which app to manage:
469477
```bash

README_ZH.md

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
# CC-Switch CLI
44

5-
[![Version](https://img.shields.io/badge/version-5.0.1-blue.svg)](https://github.com/saladday/cc-switch-cli/releases)
5+
[![Version](https://img.shields.io/badge/version-5.1.0-blue.svg)](https://github.com/saladday/cc-switch-cli/releases)
66
[![Platform](https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgrey.svg)](https://github.com/saladday/cc-switch-cli/releases)
77
[![Built with Rust](https://img.shields.io/badge/built%20with-Rust-orange.svg)](https://www.rust-lang.org/)
88
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
99

10-
**Claude Code、Codex、Gemini 与 OpenCode CLI 的命令行管理工具**
10+
**Claude Code、Codex、Gemini、OpenCodeOpenClaw 的命令行管理工具**
1111

12-
统一管理 Claude Code、Codex、Gemini 与 OpenCode CLI 的供应商配置MCP 服务器、Skills 扩展、提示词、本地代理路由和环境检查
12+
统一管理 Claude Code、Codex、Gemini、OpenCodeOpenClaw 的供应商配置,并按应用提供 MCP 服务器、Skills 扩展、提示词、本地代理路由和环境检查等能力
1313

1414
[English](README.md) | [中文](README_ZH.md)
1515

@@ -26,11 +26,16 @@
2626

2727
---
2828

29-
## 🆕 5.0.1 更新内容
29+
## 🆕 5.1.0 更新内容
3030

31-
- 自更新流程进一步对齐 GitHub Release 元数据,签名升级和安装脚本升级路径更稳妥。
32-
- v5 TUI 配色在 Apple Terminal 和 ansi256 兼容模式下保持可读且一致。
33-
- Claude 与 Codex 在第一次切换可能覆盖现有 live 配置时会先提示,并在第一次真实切换后显示一次性“通用配置”提示。
31+
<div align="center">
32+
<h3><strong>🦞 现已支持 OpenClaw(小龙虾)</strong></h3>
33+
</div>
34+
35+
- OpenClaw 现已支持一等公民级别的供应商管理,包括对齐上游的 `openclaw.json` 读写、默认模型流程、提示词支持,以及 `Env``Tools``Agents Defaults` 与健康告警的专属 TUI 入口。
36+
- 供应商与通用配置片段的同步行为进一步向上游靠拢,尤其是 additive live-config 应用。
37+
- WebDAV 现在会拒绝误报的同步成功结果,不再把失败操作显示成“成功”。
38+
- TUI 在 SSH、ansi256 和 `TERM=*-256color` 场景下更稳定,JSON 编辑后的供应商新增/保存流程也恢复正常。
3439

3540
---
3641

@@ -109,8 +114,9 @@ cc-switch proxy show # 查看代理路由和状态
109114
cc-switch --app claude provider list # 管理 Claude 供应商
110115
cc-switch --app codex mcp sync # 同步 Codex MCP 服务器
111116
cc-switch --app gemini prompts list # 列出 Gemini 提示词
117+
cc-switch --app openclaw provider list # 管理 OpenClaw 供应商
112118

113-
# 支持的应用:`claude`(默认)、`codex`、`gemini`、`open-code`
119+
# 支持的应用:`claude`(默认)、`codex`、`gemini`、`opencode`、`openclaw`
114120
```
115121

116122
完整命令列表请参考「功能特性」章节。
@@ -224,9 +230,9 @@ copy target\release\cc-switch.exe C:\Windows\System32\
224230

225231
### 🔌 供应商管理
226232

227-
管理 **Claude Code****Codex****Gemini****OpenCode** 的 API 配置。
233+
管理 **Claude Code****Codex****Gemini****OpenCode****OpenClaw** 的 API 配置。
228234

229-
**功能:** 一键切换、多端点支持、API 密钥管理、速度测试、流式健康检查、远端模型发现。
235+
**功能:** 一键切换、多端点支持、API 密钥管理、远端模型发现,以及按应用提供的速度测试、流式健康检查等诊断能力
230236

231237
```bash
232238
cc-switch provider list # 列出所有供应商
@@ -263,7 +269,7 @@ cc-switch mcp import --app claude # 从实时配置导入
263269

264270
管理 AI 编码助手的系统提示词预设。
265271

266-
**跨应用支持:** Claude (`CLAUDE.md`)、Codex (`AGENTS.md`)、Gemini (`GEMINI.md`)、OpenCode (`AGENTS.md`)。
272+
**跨应用支持:** Claude (`CLAUDE.md`)、Codex (`AGENTS.md`)、Gemini (`GEMINI.md`)、OpenCode (`AGENTS.md`)、OpenClaw (`AGENTS.md`)
267273

268274
```bash
269275
cc-switch prompts list # 列出提示词预设
@@ -398,7 +404,7 @@ cc-switch update --version vX.Y.Z # 更新到指定版本
398404

399405
- **SQLite 持久化**:核心数据存放在 `~/.cc-switch/cc-switch.db`;旧版 `~/.cc-switch/config.json` 仅保留给兼容与迁移路径使用
400406
- **Skills SSOT**:技能源文件保存在 `~/.cc-switch/skills/`,安装状态和启用状态由数据库统一记录
401-
- **安全 Live 同步(默认)**:若目标应用尚未初始化,将跳过写入 live 文件(避免意外创建 `~/.claude``~/.codex``~/.gemini``~/.config/opencode`
407+
- **安全 Live 同步(默认)**:若目标应用尚未初始化,将跳过写入 live 文件(避免意外创建 `~/.claude``~/.codex``~/.gemini``~/.config/opencode``~/.openclaw`
402408
- **原子写入**:临时文件 + 重命名模式防止损坏
403409
- **服务层复用**:100% 复用原 GUI 版本
404410
- **并发安全**:RwLock 配合作用域守卫
@@ -417,6 +423,7 @@ cc-switch update --version vX.Y.Z # 更新到指定版本
417423
- Codex: `~/.codex/auth.json`(认证状态), `~/.codex/config.toml`(供应商 / 通用配置 + MCP), `~/.codex/AGENTS.md`(提示词)
418424
- Gemini: `~/.gemini/.env`(供应商环境变量), `~/.gemini/settings.json`(设置 + MCP), `~/.gemini/GEMINI.md`(提示词)
419425
- OpenCode: `~/.config/opencode/opencode.json`(供应商 + MCP + 运行时配置), `~/.config/opencode/AGENTS.md`(提示词)
426+
- OpenClaw: `~/.openclaw/openclaw.json`(供应商 + Env/Tools/Agents Defaults), `~/.openclaw/AGENTS.md`(提示词)
420427

421428
---
422429

@@ -427,7 +434,7 @@ cc-switch update --version vX.Y.Z # 更新到指定版本
427434

428435
<br>
429436

430-
首先确认目标 CLI 已经至少运行过一次(即对应配置目录已存在)。如果应用未初始化,CC-Switch 会出于安全原因跳过写入 live 文件,并提示一条 warning。请先运行一次目标 CLI(例如 `claude --help` / `codex --help` / `gemini --help` / `opencode --help`),然后再切换一次供应商。
437+
首先确认目标 CLI 已经至少运行过一次(即对应配置目录已存在)。如果应用未初始化,CC-Switch 会出于安全原因跳过写入 live 文件,并提示一条 warning。请先运行一次目标 CLI(例如 `claude --help` / `codex --help` / `gemini --help` / `opencode --help` / `openclaw --help`),然后再切换一次供应商。
431438

432439
这通常是由**环境变量冲突**引起的。如果你在系统环境变量中设置了 API 密钥(如 `ANTHROPIC_API_KEY``OPENAI_API_KEY`),它们会覆盖 CC-Switch 的配置。
433440

@@ -461,11 +468,12 @@ cc-switch update --version vX.Y.Z # 更新到指定版本
461468

462469
<br>
463470

464-
CC-Switch 目前支持四个 AI 编程助手:
471+
CC-Switch 目前支持五个 AI 编程助手:
465472
- **Claude Code** (`--app claude`,默认)
466473
- **Codex** (`--app codex`)
467474
- **Gemini** (`--app gemini`)
468-
- **OpenCode** (`--app open-code`)
475+
- **OpenCode** (`--app opencode`)
476+
- **OpenClaw** (`--app openclaw`)
469477

470478
使用全局 `--app` 参数指定要管理的应用:
471479
```bash

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "cc-switch"
3-
version = "5.0.1"
4-
description = "All-in-One Assistant for Claude Code, Codex, Gemini & OpenCode CLI"
3+
version = "5.1.0"
4+
description = "All-in-One Assistant for Claude Code, Codex, Gemini, OpenCode & OpenClaw"
55
authors = ["Jason Young", "saladday"]
66
license = "MIT"
77
repository = "https://github.com/saladday/cc-switch-cli"

0 commit comments

Comments
 (0)