☕ KOPI Agent 文档

新加坡咖啡 × AI — 一行命令,装好你的AI助手

简介

KOPI Agent 是基于 Hermes Agent 深度定制的 AI 代理平台,专为新加坡及东南亚用户打造。像在咖啡摊点咖啡一样简单 — 选你的口味,一行命令装好。

☕ 为什么叫 KOPI? 在新加坡,KOPI 不只是咖啡 — 是一种文化。从 KOPI O(黑咖啡)到 KOPI Siew Dai(少糖),每种口味代表不同的浓度和甜度。KOPI Agent 也是这样:选你需要的版本,浓淡自选。

产品线

版本模型说明
KOPI O 经典MiMo v2.5 Pro经典原味,全功能版
KOPI Siew Dai 少糖MiMo v2.5 Pro轻量版,同样的模型,更简洁的配置
KOPI O FlashMiMo v2 Flash快速版,响应更快
KOPI Gau DeepSeek v4 Flash浓厚版,推理能力更强

安装

KOPI O(经典版)

curl -fsSL https://kopiaiagent.com/install.sh | bash

KOPI Siew Dai(少糖版)

curl -fsSL https://kopiaiagent.com/install-siew-dai.sh | bash
💡 安装过程 脚本会自动完成:系统检测 → 安装依赖 → Python 检查 → 克隆代码 → 创建虚拟环境 → 安装依赖 → 开通 API Key → 生成配置 → 预装 100+ 技能。最后一步配置消息平台(Telegram / WeChat)。

手动提供 API Key

curl -fsSL https://kopiaiagent.com/install.sh | KOPI_API_KEY=kp-xxx bash

系统要求

快速开始

交互式聊天

kopi

直接在终端里和 AI 对话。支持工具调用、代码执行、文件操作等。

单次提问

kopi "帮我写一个 Python 脚本,批量重命名文件"

切换模型

/model kopi-gau       # 切换到 DeepSeek 浓缩版
/model kopi-o-flash   # 切换到快速版
/model kopi-o         # 切回经典版

常用命令

命令说明
kopi启动交互式聊天
kopi gateway start启动消息网关(Telegram/WeChat)
kopi gateway stop停止消息网关
kopi doctor诊断问题
kopi setup完整设置向导
kopi logs查看日志
kopi status查看状态

聊天中命令

命令说明
/model <name>切换模型
/new新对话
/skills查看已安装技能
/memory查看记忆
/help帮助

Gateway(消息网关)

KOPI Agent 可以通过 Telegram 和 WeChat 与你交互,像聊天一样使用 AI。

Telegram 配置

  1. 在 Telegram 搜索 @BotFather
  2. 发送 /newbot 创建 Bot
  3. 复制获得的 Token
  4. 运行 kopi gateway setup 并输入 Token

systemd 服务

systemctl start kopi-gateway     # 启动
systemctl stop kopi-gateway      # 停止
systemctl status kopi-gateway    # 状态
journalctl -u kopi-gateway -f    # 日志

模型

所有模型通过 KOPI Proxy 代理,客户无需自备 API Key。

客户端模型名上游模型说明
kopi-oMiMo v2.5 Pro默认,综合能力最强
kopi-o-flashMiMo v2 Flash快速响应
kopi-siew-daiMiMo v2.5 ProSiew Dai 版默认
kopi-siew-dai-flashMiMo v2 FlashSiew Dai 快速版
kopi-gauDeepSeek v4 Flash推理能力强

技能

安装时自动预装 100+ 技能,涵盖:

类别技能数示例
核心开发15plan, debugging, TDD, code-review
GitHub6PR workflow, issues, repo management
研究6arXiv, blog monitoring, Jupyter
生产力8Google Workspace, Notion, PowerPoint
媒体5YouTube, Twitter, Spotify
创意8架构图, 漫画, 信息图, 像素画
运维5Docker, Kanban, CLI
其他50+邮件, 游戏, 智能家居, 红队测试

配置文件

配置文件位于 ~/.kopi/config.yaml

# 大模型配置
model:
  default: kopi-o              # 默认模型
  provider: custom
  base_url: https://kopiaiagent.com/kp/v1
  api_key: kp-xxxxxxxx         # 安装时自动获取
  context_length: 256000

# 代理配置
agent:
  max_turns: 90

# 终端配置
terminal:
  timeout: 180

# 显示配置
display:
  skin: default
  show_cost: true

# 内存配置
memory:
  memory_enabled: true
  user_profile_enabled: true

故障排除

安装失败

⚠️ 常见问题
  • dpkg 中断 → 运行 sudo dpkg --configure -a
  • Python 版本太低 → 脚本会自动安装 3.11+
  • 网络问题 → 确认能访问 kopiaiagent.com

API 相关

⚠️ 401 Invalid API Key
  • 检查 ~/.kopi/config.yamlapi_key 是否正确
  • 确认 base_urlhttps://kopiaiagent.com/kp/v1
  • 运行 kopi doctor 诊断

Gateway 相关

⚠️ Telegram Bot 无响应
  • 检查 systemctl status kopi-gateway
  • 查看日志 journalctl -u kopi-gateway -f
  • 确认 Bot Token 正确
✅ 获取帮助 GitHub Issues: github.com/LINYIQ66/kopi-agent