paperclipai/paperclip · error
Config not found at .
Error message
Config not found at ${configPath}. What it means
Bootstrap guard when opening worktree storage: the given storage config file path does not exist or could not be read as a Paperclip config, so no storage backend (S3 or local) can be constructed for attachment operations.
Solutions
- Check the config path; pass --config or run from the instance directory containing the config.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at cli/src/commands/worktree.ts:428 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/262dc66f71646875.
Report an issue: GitHub.
Appendix: source
Thrown at cli/src/commands/worktree.ts:461
assertStorageCompanyPrefix(companyId, objectKey);
const { sdk, client } = await getS3Client();
await client.send(
new sdk.PutObjectCommand({
Bucket: bucket,
Key: buildS3ObjectKey(prefix, objectKey),
Body: body,
ContentType: contentType,
ContentLength: body.length,
}),
);
},
};
}
function openConfiguredStorage(configPath: string): ConfiguredStorage {
const config = readConfig(configPath);
if (!config) {
throw new Error(`Config not found at ${configPath}.`);
}
return createConfiguredStorageFromPaperclipConfig(config);
}
async function streamToBuffer(stream: NodeJS.ReadableStream): Promise<Buffer> {
const chunks: Buffer[] = [];
for await (const chunk of stream) {
chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));
}
return Buffer.concat(chunks);
}
export function isMissingStorageObjectError(error: unknown): boolean {
if (!error || typeof error !== "object") return false;
const candidate = error as { code?: unknown; status?: unknown; name?: unknown; message?: unknown };
return candidate.code === "ENOENT"
|| candidate.status === 404
|| candidate.name === "NoSuchKey"View on GitHub (pinned to 01ad858492)