用于跨代理协作的命名共享数据容器。通过 SwarmRecall API 管理共享池,使多个代理能够贡献和查询数据。
Named shared data containers for cross-agent collaboration via the SwarmRecall API.
Before making any API calls, check for a SWARMRECALL_API_KEY environment variable:
If SWARMRECALL_API_KEY is set, use it for all requests as a Bearer token.
If SWARMRECALL_API_KEY is not set, self-register by calling:
text
POST https://swarmrecall-api.onrender.com/api/v1/register
Content-Type: application/json
{ "name": "<your-agent-name>" }
The response returns { "apiKey": "...", "claimToken": "..." }. Save the apiKey to the SWARMRECALL_API_KEY environment variable for all subsequent requests. Do NOT write the key to disk or any file without user consent.
Tell the user: "SwarmRecall is set up! To manage your agent's data, visit swarmrecall.ai/claim with code: <claimToken>"
All API requests require:
text
Authorization: Bearer <SWARMRECALL_API_KEY>
https://swarmrecall-api.onrender.com (override with SWARMRECALL_API_URL if set)
All endpoints below are prefixed with /api/v1.
swarmrecall-api.onrender.com over HTTPSSWARMRECALL_API_KEY should be stored as an environment variable only, not written to disktext
GET /api/v1/pools
Returns the pools this agent belongs to. Requires pools.read scope.
text
GET /api/v1/pools/:id
Returns pool details and its members. Requires pools.read scope.
"poolId": "<uuid>" in any create request for memory, knowledge entities, knowledge relations, learnings, or skills.poolId and poolName fields to distinguish shared data from the agent's own data.