mirror of
https://github.com/musistudio/claude-code-router.git
synced 2026-01-29 22:02:05 +00:00
1000 B
1000 B
id, title, sidebar_position
| id | title | sidebar_position |
|---|---|---|
| cli/status | ccr status | 3 |
ccr status
显示 Claude Code Router 服务器的当前状态。
用法
ccr status
输出
运行中的服务器
当服务器正在运行时:
Claude Code Router 状态: 运行中
版本: 2.0.0
PID: 12345
端口: 3456
运行时间: 2小时34分钟
配置: /home/user/.claude-code-router/config.json
已停止的服务器
当服务器未运行时:
Claude Code Router 状态: 已停止
退出代码
| 代码 | 说明 |
|---|---|
| 0 | 服务器正在运行 |
| 1 | 服务器已停止 |
| 2 | 检查状态时出错 |
示例
$ ccr status
Claude Code Router 状态: 运行中
版本: 2.0.0
PID: 12345
端口: 3456
运行时间: 2小时34分钟
相关命令
- ccr start - 启动服务器
- ccr stop - 停止服务器
- ccr restart - 重启服务器