Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

spell out that the curl auth argument is shell text, not a header value

[._.]/ Adam Eivye20118ad07b7
diff --git a/server/lib/agentApiToken.js b/server/lib/agentApiToken.js
index 5c495bd496..3b811e4eab 100644
--- a/server/lib/agentApiToken.js
+++ b/server/lib/agentApiToken.js
@@ -12,7 +12,10 @@
export const AGENT_API_TOKEN_ENV = 'PORTOS_API_TOKEN';
/**
- * Attached to every agent-facing `curl` against this install's own API.
+ * Attached to every agent-facing `curl` against this install's own API. It is
+ * SHELL text, not a value: `${VAR:-}` is parameter expansion, so it is only
+ * meaningful inside a command a shell runs — never pass it to an HTTP client
+ * as a header string.
*
* Emitted unconditionally: a prompt is built without asking whether the
* instance password is set, an install with auth OFF ignores the empty bearer