# mtc
**Repository Path**: cdiwit/mtc
## Basic Information
- **Project Name**: mtc
- **Description**: 跨平台终端环境变量管理器
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: main
- **Homepage**: https://www.cdiwit.com
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2026-02-01
- **Last Updated**: 2026-07-05
## Categories & Tags
**Categories**: Uncategorized
**Tags**: claude, Claude多环境, 终端多环境
## README
# MTC - Multi-Terminal Commander
跨平台终端环境变量管理器
## 功能
- 创建和管理多组环境变量配置
- 一键启动带有自定义环境变量的终端
- 支持 Windows Terminal、PowerShell、CMD 等多种终端
- 支持 Windows、Linux、macOS 跨平台运行
- 配置持久化存储
- **远程 SSH**:管理 SSH 主机与凭据,配置可选 SSH 主机+凭据(二者皆空=本地终端),
远程配置点"打开目录"可浏览远端文件(SFTP),双击文件下载并以本地默认程序打开
- 凭据(密码 / 私钥口令)保存在**系统钥匙串**(macOS Keychain / Windows 凭据管理器 / Linux libsecret),不落明文磁盘
## 截图
## 下载
预编译版本可从以下位置下载:
| 平台 | GitHub | Gitee |
|------|--------|-------|
| Windows | [MTC-Windows-Release](https://github.com/cdiwit/mtc/actions) | - |
| Linux | [MTC-Linux-Release](https://github.com/cdiwit/mtc/actions) | [MTC-Linux-Release](https://gitee.com/cdiwit/mtc/gitee-go) |
| macOS (Intel) | [MTC-macOS-x64-Release](https://github.com/cdiwit/mtc/actions) | - |
| macOS (Apple Silicon) | [MTC-macOS-ARM64-Release](https://github.com/cdiwit/mtc/actions) | - |
> **说明**: GitHub 提供全平台构建,Gitee 仅提供 Linux 构建。国内用户如需 Windows/macOS 版本请访问 GitHub。
## 构建
### 依赖
- C++17 编译器
- wxWidgets 3.2+
- nlohmann/json
- libssh2(远程 SFTP 文件浏览)
- libsecret(仅 Linux;macOS/Windows 用系统钥匙串框架)
### Windows (使用 vcpkg)
```powershell
# 安装依赖
vcpkg install wxwidgets:x64-windows-static nlohmann-json:x64-windows-static libssh2:x64-windows-static
# 构建
mkdir build && cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static
cmake --build . --config Release
```
### Linux
```bash
sudo apt-get install libwxgtk3.0-gtk3-dev nlohmann-json3-dev libssh2-1-dev libsecret-1-dev
mkdir build && cd build
cmake ..
make -j$(nproc)
```
### macOS
```bash
brew install wxwidgets nlohmann-json libssh2
mkdir build && cd build
cmake ..
make -j$(sysctl -n hw.ncpu)
```
## 使用
1. 运行 `mtc.exe`(Windows)或 `mtc`(Linux/macOS)
2. 点击"新建配置"创建环境变量组
3. 设置名称、工作目录和环境变量
4. 选择配置后点击"启动终端"
## 许可证
MIT License