# longcatmore **Repository Path**: opencode-plugin/longcatmore ## Basic Information - **Project Name**: longcatmore - **Description**: 美团龙猫-支持多key轮询 - **Primary Language**: TypeScript - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-06-16 - **Last Updated**: 2026-07-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # opencode-longcatmore OpenCode AI 提供商插件 —— 接入美团龙猫(LongCat)API,支持多 API Key 自动轮询。 ## 特性 - 接入 LongCat API(OpenAI 兼容格式) - 多 API Key 自动轮询,提升可用额度 - 免费额度:500 万 tokens/天/账号 - 本地持久化存储 API Keys - 调试日志,方便排查问题 ## 安装 ```bash npm install npm run build ``` ## 使用 在 OpenCode 中连接提供商: ```bash opencode connect longcatmore ``` 首次连接时需输入 API Key,多个 Key 用逗号分隔。 ## API Key 获取 创建地址:https://longcat.chat/platform/api_keys 美团龙猫免费额度:500 万 tokens/天/账号,推荐 1 个账号建 1 个 API Key。 ## 日志 调试日志保存在 `%USERPROFILE%\.longcatmore\debug.log`。 启用调试: ```bash set DEBUG=1 # 或 set OPENCODE_LONGCATMORE_DEBUG=1 ``` ## 模型 | 模型 ID | 上下文 | 最大输出 | 价格 | |---------|--------|---------|------| | LongCat-2.0-Preview | 1,048,576 tokens | 131,072 tokens | 免费 | ## 项目结构 ``` longcatmore/ ├── src/ │ ├── index.ts # 插件入口:认证、多Key轮询、配置 │ ├── constants.ts # 模型定义与常量 │ ├── plugin/ │ │ ├── auth.ts # API Key 本地持久化存储 │ │ └── key-manager.ts # 多 Key 轮询管理器 │ └── utils/ │ └── debug-logger.ts # 调试日志工具 ├── package.json ├── tsconfig.json └── README.md ``` ## 开发 ```bash # 类型检查 npm run typecheck # 构建 npm run build ```