Yuyao Huang (Sam) c3741ea006 refactor(logging): 优化日志格式和内容以提高可读性
- 调整日志格式,增加模块名显示
- 将部分debug日志升级为info级别以增加可见性
- 简化日志消息,缩短显示长度
- 统一日志前缀格式
- 优化工具调用日志显示
2026-03-28 08:09:10 +08:00
2026-03-28 07:44:44 +08:00
2026-03-28 07:44:44 +08:00
2026-03-28 07:44:44 +08:00

PhoneWork

Feishu bot integration with Claude Code CLI.

Architecture

  • Agent CLI: Claude Code (print mode)
  • Chat Server: FastAPI
  • Client: Feishu bot API (long-connection)

Setup

1. Feishu App

Create app at https://open.feishu.cn:

  • Enable Bot capability
  • Enable long-connection event subscription (no public URL needed)
  • Get FEISHU_APP_ID and FEISHU_APP_SECRET

2. LLM Endpoint

Configure OpenAI-compatible endpoint:

  • OPENAI_BASE_URL
  • OPENAI_API_KEY
  • OPENAI_MODEL

3. Claude Code CLI

  • Install and authenticate claude command
  • Ensure available in PATH

4. Configuration

cp keyring.example.yaml keyring.yaml
# Edit keyring.yaml with your credentials

5. Run

pip install -r requirements.txt
python main.py

Requirements

Item Notes
Python 3.11+ Required
Feishu App Bot + long-connection enabled
OpenAI-compatible LLM API endpoint and key
Claude Code CLI Installed + authenticated
Description
No description provided
Readme 685 KiB
Languages
Python 100%