diff --git a/README.md b/README.md index 4fa495c6..2fd90ca8 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,11 @@ CLIProxyAPI Guides: [https://help.router-for.me/](https://help.router-for.me/) see [MANAGEMENT_API.md](https://help.router-for.me/management/api) +## Management TUI + +A terminal-based interface for managing configuration, keys/auth files, and viewing real-time logs. Run with: +`./CLIProxyAPI --tui` + ## Amp CLI Support CLIProxyAPI includes integrated support for [Amp CLI](https://ampcode.com) and Amp IDE extensions, enabling you to use your Google/ChatGPT/Claude OAuth subscriptions with Amp's coding tools: diff --git a/README_CN.md b/README_CN.md index 5c91cbdc..b377c910 100644 --- a/README_CN.md +++ b/README_CN.md @@ -64,6 +64,11 @@ CLIProxyAPI 用户手册: [https://help.router-for.me/](https://help.router-fo 请参见 [MANAGEMENT_API_CN.md](https://help.router-for.me/cn/management/api) +## 管理 TUI + +一个用于管理配置、密钥/认证文件以及查看实时日志的终端界面。使用以下命令启动: +`./CLIProxyAPI --tui` + ## Amp CLI 支持 CLIProxyAPI 已内置对 [Amp CLI](https://ampcode.com) 和 Amp IDE 扩展的支持,可让你使用自己的 Google/ChatGPT/Claude OAuth 订阅来配合 Amp 编码工具: diff --git a/internal/tui/i18n.go b/internal/tui/i18n.go index 1b54a9af..84da3851 100644 --- a/internal/tui/i18n.go +++ b/internal/tui/i18n.go @@ -3,7 +3,7 @@ package tui // i18n provides a simple internationalization system for the TUI. // Supported locales: "zh" (Chinese, default), "en" (English). -var currentLocale = "zh" +var currentLocale = "en" // SetLocale changes the active locale. func SetLocale(locale string) { diff --git a/internal/tui/usage_tab.go b/internal/tui/usage_tab.go index a40a760f..9e6da7f8 100644 --- a/internal/tui/usage_tab.go +++ b/internal/tui/usage_tab.go @@ -231,7 +231,7 @@ func (m usageTabModel) renderContent() string { apiToks := int64(getFloat(apiMap, "total_tokens")) row := fmt.Sprintf(" %-30s %10d %12s", - truncate(apiName, 30), apiReqs, formatLargeNumber(apiToks)) + truncate(maskKey(apiName), 30), apiReqs, formatLargeNumber(apiToks)) sb.WriteString(lipgloss.NewStyle().Bold(true).Render(row)) sb.WriteString("\n")