From 0a555f1a31bd57e69b7444dcd244c1d4910973df Mon Sep 17 00:00:00 2001 From: cthomas Date: Fri, 27 Feb 2026 11:32:15 -0800 Subject: [PATCH] fix: correct invalid 'letta setup' command in missing API key error (#1196) --- src/agent/client.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/agent/client.ts b/src/agent/client.ts index f940113..6b0d81c 100644 --- a/src/agent/client.ts +++ b/src/agent/client.ts @@ -176,8 +176,9 @@ export async function getClient() { if (!apiKey && baseURL === LETTA_CLOUD_API_URL) { console.error("Missing LETTA_API_KEY"); console.error( - "Run 'letta setup' to configure authentication or set your LETTA_API_KEY environment variable", + "Run 'letta' to configure authentication, or set LETTA_API_KEY to your API key", ); + console.error(new Error("getClient() called without credentials").stack); process.exit(1); }