paperclipai/paperclip · error
Login is only supported for claude_local agents
Error message
Login is only supported for claude_local agents
What it means
Capability guard on POST /agents/:id/claude-login: the interactive Claude login flow only applies to agents using the claude_local adapter, but this agent's adapterType is different, so the login attempt is rejected as unsupported for this agent.
Source
Thrown at server/src/routes/agents.ts:4954
Object.prototype.hasOwnProperty.call(patchData, "defaultEnvironmentId")
? (typeof patchData.defaultEnvironmentId === "string" ? patchData.defaultEnvironmentId : null)
: existing.defaultEnvironmentId,
{
allowedDrivers: allowedEnvironmentDriversForAgent(requestedAdapterType),
allowedSandboxProviders: allowedSandboxProvidersForAgent(requestedAdapterType),
},
);
}
const touchesProfileFields = touchesAgentProfileChangeConsentFields(patchData);
const profileOnlyChange = touchesProfileFields && Object.keys(patchData).every((key) =>
(AGENT_PROFILE_CHANGE_CONSENT_FIELDS as readonly string[]).includes(key),
);
if (profileOnlyChange) {
await assertCanApplyAgentProfileChange(req, existing);
} else {
await assertCanUpdateAgent(req, existing);
}
const actor = getActorInfo(req);
const agent = await svc.update(id, patchData, {
recordRevision: {
createdByAgentId: actor.agentId,
createdByUserId: actor.actorType === "user" ? actor.actorId : null,
source: "patch",
},
claudeLogin: {
ownerUserId: req.actor.type === "agent" ? null : (req.actor.userId ?? null),
// The apply-existing path runs only for a user actor. The owner comes
// from the actor, so an agent actor never reaches the no-claim bind.
applyExistingWithoutClaim:
req.actor.type !== "agent" && applyStoredClaudeLogin,
},
});
if (!agent) {
res.status(404).json({ error: "Agent not found" });
return;View on GitHub (pinned to 01ad858492)
Solutions
- Use the login flow only for claude_local agents; other adapters authenticate differently.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at server/src/routes/agents.ts:4400 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of paperclipai/paperclip@01ad858492 (2026-08-18).
Data as JSON: /api/errors/b3eb673f7fa20e21.
Report an issue: GitHub.