Cách lấy access pack
Mở Dashboard > Claw, chọn một instance đang chạy, bấm AgentBridge, rồi sao chép toàn bộ access pack từ modal. Gói này đã bao gồm runtime base URL, bearer token, quy ước session key và các endpoint quan trọng nhất.Token này làm được gì
Gateway token được sao chép chỉ quản lý runtime. Nó có thể đọc trạng thái runtime, gửi yêu cầu chat, nhận SSE, đọc lịch sử thread, dừng thread đang chạy và lấy media do AgentBridge trả về. Nó không thể gia hạn, rebuild, restart từ hosted control plane hay truy cập các route billing/admin của tổ chức.Quy tắc session key
Session key luôn theo định dạngagentbridge:<client_id>:<workspace_id>:<thread_id>. Hãy giữ nguyên cả ba giá trị cho cùng một thread. Nếu chuyển sang provider family khác, hãy tạo thread_id mới thay vì dùng lại thread cũ.
Các runtime endpoint chính
GET /api/statusGET /api/usage?session=<session_key>POST /api/agentbridge/chatPOST /api/agentbridge/chat/streamPOST /api/agentbridge/uploadsGET /api/agentbridge/messagesGET /api/agentbridge/events/streamPOST /api/agentbridge/stopGET /api/agentbridge/media
Prompt cho coding agent
Hãy đưa đoạn hướng dẫn ngắn này cùng với access pack cho coding agent:Use/api/agentbridge/chat/streamfirst. Keepclient_id,workspace_id, andthread_idstable for the same conversation. If you getprovider_family_conflict, create a newthread_idinstead of reusing the old one.
Lỗi thường gặp
provider_family_conflict— thread này đã có lịch sử trên provider family khác; hãy tạothread_idmới.Unauthorized— bearer token bị thiếu, hết hạn hoặc không thuộc về instance này.Instance not running— AgentBridge access pack chỉ được cấp cho instance đang chạy.