paperclipai/paperclip · error · ApiError
Paperclip identity response did not include companyId and ag
Error message
Paperclip identity response did not include companyId and agent id
What it means
Error "Paperclip identity response did not include companyId and agent id" thrown in paperclipai/paperclip.
Source
Thrown at packages/adapters/hermes/skills/paperclip-task-bridge/paperclip-task.mjs:169
if (text) {
try {
body = JSON.parse(text);
} catch {
body = { error: text.slice(0, 1000) };
}
}
if (!response.ok) throw new ApiError(response.status, body);
return body;
}
async function resolveIdentity(config) {
if (config.companyId && config.agentId) {
return { companyId: config.companyId, agentId: config.agentId, agent: null };
}
const agent = await apiFetch(config, "/agents/me");
const companyId = config.companyId || agent.companyId;
const agentId = config.agentId || agent.id;
if (!companyId || !agentId) throw new ApiError(500, { error: "Paperclip identity response did not include companyId and agent id" });
return { companyId, agentId, agent };
}
function issueSummary(issue) {
if (!issue || typeof issue !== "object") return issue;
return {
id: issue.id ?? null,
identifier: issue.identifier ?? null,
title: issue.title ?? null,
status: issue.status ?? null,
priority: issue.priority ?? null,
assigneeAgentId: issue.assigneeAgentId ?? null,
assigneeUserId: issue.assigneeUserId ?? null,
projectId: issue.projectId ?? null,
goalId: issue.goalId ?? null,
parentId: issue.parentId ?? null,
updatedAt: issue.updatedAt ?? null,
};View on GitHub (pinned to 120ae5428f)
Solutions
- Verify the API key belongs to a valid agent; the identity response must include companyId and agent id. Recreate the key if needed.
When it happens
Trigger: Thrown at packages/adapters/hermes/skills/paperclip-task-bridge/paperclip-task.mjs:169 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of paperclipai/paperclip@120ae5428f (2026-08-18).
Data as JSON: /api/errors/ca426b7353afa73f.
Report an issue: GitHub.