Skip to main content

Connect a third-party client to a CSGClaw Agent

Send a request to a running Agent using POST /api/v1/agents/{agent}/sessions/{session_id}/responses. The Agent runs in its configured runtime. Reuse the same session ID to continue a conversation, and set stream: true to receive server-sent events.

For a hosted Agent, use the Responses URL and credentials provided by your OpenCSG deployment. For direct access, use the instance address and follow its authentication requirements. Store service credentials in your application backend.

The full integration guide in Simplified Chinese includes JSON and streaming examples, cancellation, attachments, and interactive forms.