返回顶部
c

copaw-api-chat

Communicate with a CoPaw instance through its HTTP API. Use when: (1) you need to inspect available CoPaw agents or chats, (2) create a chat or session and send a message via API, (3) understand CoPaw auth, scoping, or SSE behavior before integration work, (4) build wrappers, automations, or skills on top of CoPaw API.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
105
下载量
0
收藏
概述
安装方式
版本历史

copaw-api-chat

# CoPaw API Chat Use this skill to work with **CoPaw over HTTP API**, not through the web UI. ## When to use - You need to talk to a local CoPaw instance programmatically. - You need the correct sequence: **create chat/session → send message → read SSE**. - You need to understand agent scoping, auth layers, or related API groups before building automation. ## Workflow 1. Read `references/overview-auth-scoping.md` first. 2. If the task is about chatting with CoPaw, then read `references/chats-console-sse.md`. 3. If the task touches agent/model/skill/tool management, read `references/agents-models-skills-tools.md`. 4. If the task touches workspace, MCP, or cron, read `references/workspace-mcp-cron.md`. 5. If you need ready-to-run examples, read `references/practical-recipes.md`. ## Minimal practical path 1. Confirm agent id (`default` unless proven otherwise). 2. Create a chat with `POST /api/chats`. 3. Reuse the returned `session_id/user_id/channel` context. 4. Send the message with `POST /api/agents/{agentId}/console/chat`. 5. Read the response as **SSE**. ## Important rules - Do not assume stateless request/response. CoPaw is **chat/session-centric**. - Distinguish confirmed API behavior from interpretation. - Prefer agent-scoped routes (`/api/agents/{agentId}/...`) or set `X-Agent-Id` explicitly. - In the current deployment, auth may be provided by **nginx Basic Auth** even if internal CoPaw auth is off. - Treat `/api/workspace` and some `/api/agents/*/files/*` surfaces as dangerous/admin-level APIs. ## References - `references/overview-auth-scoping.md` — API surface, auth, scoping, priorities - `references/chats-console-sse.md` — chat lifecycle, session context, SSE mechanics - `references/agents-models-skills-tools.md` — management surfaces around agents/models/skills/tools - `references/workspace-mcp-cron.md` — workspace, MCP, cron boundaries and risks - `references/practical-recipes.md` — short request examples and file structure examples ## Output expectations When using this skill, answer with: - the minimal correct endpoint sequence, - the required payload shape, - auth/scoping caveats, - and only the API groups relevant to the task.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 copaw-api-chat-1776098051 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 copaw-api-chat-1776098051 技能

通过命令行安装

skillhub install copaw-api-chat-1776098051

下载 Zip 包

⬇ 下载 copaw-api-chat v0.1.0

文件大小: 5.8 KB | 发布时间: 2026-4-14 09:55

v0.1.0 最新 2026-4-14 09:55
Initial public release: generalized CoPaw HTTP API chat integration skill, removed environment-specific examples, validated packaging.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部