A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
想知道vibe coding工具在做什么?统一的 Claude Code / OpenCode 代理服务,支持 Prompt 捕获、WebSocket PTY 终端和 Agent 执行流程可视化。
统一的 Claude Code / OpenCode 代理服务,支持 Prompt 捕获、WebSocket PTY 终端和 Agent 执行流程可视化。
跨平台:支持 Windows (winpty)、Mac/Linux (pty),自动检测系统选择 PTY 实现。
![]()
pip install flask flask-cors httpx websockets
平台依赖:
| 平台 | PTY 实现 | 额外依赖 |
|---|---|---|
| Windows | winpty | pip install pywinpty |
| Mac / Linux | 标准 pty | 无(Python 内置) |
在 ~/.claude/settings.json 中配置:
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "your-api-key",
"ANTHROPIC_BASE_URL": "https://coding.dashscope.aliyuncs.com/apps/anthropic",
"ANTHROPIC_MODEL": "qwen3.6-plus"
}
}
python unified_server.py
访问:
├── unified_server.py # 入口文件
├── terminal_ui.html # 终端 + Prompt 捕获界面
├── agent_ui.html # Agent 编程助手界面
├── server/
│ ├── __init__.py # Flask app 路由注册
│ ├── config.py # API 配置加载
│ ├── capture.py # Prompt 捕获与调试日志
│ ├── proxy.py # API 代理(Anthropic ↔ OpenAI 格式转换)
│ ├── translate.py # 翻译接口
│ ├── agent.py # Agent 工具链 + /chat SSE 端点
│ └── ws_handler.py # WebSocket PTY 处理
├── mini-cc/ # 参考的 mini-cc Agent 代码(未直接引用)
└── apps/ # 用户生成文件目录
| 组件 | Windows | Mac / Linux |
|---|---|---|
| PTY 终端 | ✅ winpty | ✅ pty (内置) |
| Claude Code | ✅ | ✅ |
| OpenCode | ✅ | ✅ |
| Agent 对话 | ✅ | ✅ |
| API 代理 | ✅ | ✅ |
浏览器 本服务 上游 API
│ │ │
│ ┌── 终端 (PTY) ──────┤ WebSocket PTY │
│ │ Claude Code ├─────► winpty/pty ──────► Claude
│ │ OpenCode │ │
│ │ │ │
│ ├── Prompt 捕获 ────┤ 拦截请求 → 记录 → 转发 ──► DashScope
│ │ │ │
│ ├── Agent 对话 ─────┤ 工具循环 → SSE 流 ───────► DashScope
│ │ │ │
│ └── API 代理 ───────┤ OpenAI ↔ Anthropic 转换 ─► DashScope
│ │ │
在 ~/.config/opencode/opencode.json 中配置 provider,baseURL 指向 DashScope:
{
"provider": {
"bailian": {
"options": {
"baseURL": "https://coding.dashscope.aliyuncs.com/apps/anthropic"
},
"models": {
"qwen3.6-plus": {}
}
}
},
"model": {
"bailian/qwen3.6-plus": "*"
}
}
{
"provider": {
"my-openai": {
"options": {
"baseURL": "http://localhost:8080/v1"
},
"models": {
"qwen3.6-plus": {}
}
}
},
"model": {
"my-openai/qwen3.6-plus": "*"
}
}
OpenAI 格式的请求会被代理自动转换为 Anthropic 格式后转发到上游。
Agent 支持 3 个工具:
每次对话包含最多 100 次迭代(工具调用循环)。执行流程以对话/迭代两级容器展示,可查看每一步的 Prompt 组装详情。
| 路径 | 方法 | 说明 |
|---|---|---|
/ | GET | 终端页面 |
/agent | GET | Agent 编程助手页面 |
/v1/messages | POST | Anthropic 格式代理 |
/v1/chat/completions | POST | OpenAI 格式代理 |
/apps/anthropic/v1/messages | POST | OpenCode 代理 |
/chat | POST | Agent SSE 流式对话 |
/captured | GET | 获取捕获的 Prompts |
/debug_logs | GET | 调试日志 |
/translate | POST | 翻译接口 |
/health | GET | 健康检查 |
1000+ skills curated from Anthropic, Vercel, Stripe, and other engineering teams
A Claude Code skill by Hao (駱君昊) that learns your Facebook voice and auto-posts to FB / IG / Threads / X with a 14-day c
Claude Code skill for YouTube creators — channel audits, video SEO, retention scripts, thumbnails, content strategy, Sho
Design enforcement with memory — keeps your UI consistent across a project