← 返回
未分类 中文

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 s...
通过HTTP API与CoPaw实例通信。使用场景:(1)需要查看可用的CoPaw智能体或对话,(2)创建对话或会话
erview erview 来源
未分类 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 397
下载
💾 2
安装
1
版本
#latest

概述

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.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-31 05:16 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 866 📥 346,839
ai-agent

self-improving agent

pskoett
记录自身发现以实现自我改进的技能
★ 4,165 📥 939,378
ai-agent

Find Skills

root
帮助用户发现和安装智能体技能,当用户询问如「如何做X」、「找X的技能」、「有能做...的吗」等问题时
★ 1,519 📥 577,409