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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
clarify where API-provider keys go: key status on cards, Bearer help text, no env-var trap
[._.]/ Adam Eivy433c3d152187
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex c1742c02e5..aac13dc855 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -42,6 +42,8 @@## Changed+- **API providers now make it obvious where the API key goes.** Hosted API providers like Cerebras, Grok, and NVIDIA authenticate with a single key pasted into the provider's "API Key" field — but nothing in the UI said so, and the environment-variables editor on the same form invited pasting a `CEREBRAS_API_KEY` there, where API providers never read it. Each API provider's card now shows its key status at a glance ("set", "not set — Edit this provider to paste one", or "none (local endpoint)" for Ollama/LM Studio), the API Key field explains that it is the only place an API provider reads a key from (sent as an `Authorization: Bearer` header — no environment variable involved), the env-var editor no longer offers adding variables to API providers (existing entries stay removable, with a note that they have no effect), and the Sample Providers list flags hosted API entries as needing a key after you add them.+- [issue-2773] **A scheduled Series commission now actually generates its episodes instead of leaving an empty series.** When the Creative Director plans a Series commission, it first creates the series (which mints a fresh id) and then has to run that new series' autopilot — but until now the plan couldn't refer to an id that didn't exist yet when the plan was written, so a Series commission could only ever produce an empty shell. Plan steps can now reference a value produced by an earlier step with `{{steps.<stepId>.result.<key>}}` (e.g. `{{steps.create-series.result.id}}`), and the server resolves it at dispatch time — so the "create the series, then generate its issues/episodes" hand-off works end to end. A plan that references a step that didn't run or didn't produce the named id fails that step with a clear reason and re-plans rather than dispatching an unresolved placeholder. Existing installs pick up the planner guidance automatically on restart.- **The Cyber Muse (3D) Chief-of-Staff avatar now works with real color and a livelier "coding" state.** The rigged robot renders in its own full textures and color instead of a dark holographic silhouette with the agent-state hue painted over it — the per-state color now lives in the surrounding halo, ground glow, sparkles, and accent light, so the model reads clearly while the scene still signals what the agent is doing. And while an agent is working, the avatar no longer loops a single punch clip: it cycles a varied montage (jab → run → jump → thumbs-up → walk → celebrate) so a busy Chief of Staff looks busy. The run/walk cycles play "in place" so the avatar can't stride out of frame, and a custom GLB missing the montage clips falls back to its single base loop exactly as before.diff --git a/client/src/pages/AIProviders.jsx b/client/src/pages/AIProviders.jsxindex 8612e4f0e2..10da55dacc 100644--- a/client/src/pages/AIProviders.jsx+++ b/client/src/pages/AIProviders.jsx@@ -2,7 +2,7 @@ import { useState, useEffect, useCallback } from 'react';import toast from '../components/ui/Toast';import * as api from '../services/api';import socket from '../services/socket';-import { filterSelectableModels, filterGenerationModels, isEmbeddingModel, mergeModelLists, localBackendForProvider, modelOptionLabel, providerTypeClass, isTuiProvider, isApiProvider, isProcessProvider, isOllamaBackedProvider, isClaudeCodePlanCli, isGrokBuildCli, effectiveModelContextWindow } from '../utils/providers';+import { filterSelectableModels, filterGenerationModels, isEmbeddingModel, mergeModelLists, localBackendForProvider, modelOptionLabel, providerTypeClass, isTuiProvider, isApiProvider, isProcessProvider, isOllamaBackedProvider, isClaudeCodePlanCli, isGrokBuildCli, isLocalEndpoint, effectiveModelContextWindow } from '../utils/providers';import useLocalModels from '../hooks/useLocalModels';import EmptyState from '../components/EmptyState';import {@@ -350,6 +350,9 @@ export default function AIProviders() {{isApiProvider(provider) && (<p>Endpoint: <code className="text-gray-300">{provider.endpoint}</code></p>)}+ {isApiProvider(provider) && !isLocalEndpoint(provider.endpoint) && (+ <p className="text-port-warning">Needs an API key — after adding, use Edit to paste it</p>+ )}{filterSelectableModels(provider.models).length > 0 && (<p>Models: {filterSelectableModels(provider.models).slice(0, 3).join(', ')}{filterSelectableModels(provider.models).length > 3 ? ` +${filterSelectableModels(provider.models).length - 3}` : ''}</p>)}@@ -520,6 +523,18 @@ export default function AIProviders() {{isApiProvider(provider) && (<p className="break-words">Endpoint: <code className="text-gray-300 break-all">{provider.endpoint}</code></p>)}+ {/* API-type providers auth solely via the stored apiKey (sent as a+ Bearer header) — surface its state here so "where does the key+ go?" is answered from the card, not by spelunking the form. */}+ {isApiProvider(provider) && (+ provider.hasApiKey ? (+ <p className="text-xs">API key: <span className="text-port-success">set</span></p>+ ) : isLocalEndpoint(provider.endpoint) ? (+ <p className="text-xs">API key: <span className="text-gray-500">none (local endpoint)</span></p>+ ) : (+ <p className="text-xs">API key: <span className="text-port-warning">not set — Edit this provider to paste one</span></p>+ )+ )}{provider.models?.length > 0 && (<p>Models: {provider.models.slice(0, 3).join(', ')}{provider.models.length > 3 ? ` +${provider.models.length - 3}` : ''}</p>)}@@ -958,9 +973,19 @@ function ProviderForm({ provider, onClose, onSave, allProviders = [] }) {type="password"value={formData.apiKey}onChange={(e) => setFormData(prev => ({ ...prev, apiKey: e.target.value }))}- placeholder={provider?.hasApiKey ? 'Key set — leave blank to keep' : 'Optional'}+ placeholder={provider?.hasApiKey+ ? 'Key set — leave blank to keep'+ : isLocalEndpoint(formData.endpoint)+ ? 'Not needed for local endpoints'+ : 'Paste the key from your provider dashboard'}className="w-full px-3 py-2 bg-port-bg border border-port-border rounded-lg text-white focus:border-port-accent focus:outline-hidden"/>+ <p className="text-xs text-gray-500 mt-1">+ This field is the only place API providers read a key from — it's stored on this+ provider and sent as an <code>Authorization: Bearer</code> header on every request.+ No environment variable is involved. Hosted APIs (Cerebras, Grok, NVIDIA, …) require+ one; local backends (Ollama, LM Studio) don't.+ </p></FormField><FormField label="Custom endpoint">@@ -1237,9 +1262,18 @@ function ProviderForm({ provider, onClose, onSave, allProviders = [] }) {)}</div>- {/* Environment Variables */}+ {/* Environment Variables — consumed only when spawning CLI/TUI child+ processes; API runs never read them (auth is the API Key field).+ For API type the add-row is hidden so a key can't be "set" here by+ mistake, but existing entries stay editable/removable. */}<div className="border-t border-port-border pt-4 mt-4"><h4 className="text-sm font-medium text-gray-300 mb-3">Environment Variables</h4>+ {formData.type === 'api' && Object.entries(formData.envVars).length > 0 && (+ <p className="text-xs text-port-warning mb-2">+ API providers ignore environment variables — these entries have no effect.+ Put the key in the API Key field above.+ </p>+ )}{Object.entries(formData.envVars).length > 0 && (<div className="space-y-2 mb-3">{Object.entries(formData.envVars).map(([key, value]) => {@@ -1292,6 +1326,7 @@ function ProviderForm({ provider, onClose, onSave, allProviders = [] }) {})}</div>)}+ {formData.type !== 'api' && (<div className="flex gap-2"><inputtype="text"@@ -1338,8 +1373,11 @@ function ProviderForm({ provider, onClose, onSave, allProviders = [] }) {Add</button></div>+ )}<p className="text-xs text-gray-500 mt-2">- Environment variables passed to the CLI process (e.g., CLAUDE_CODE_USE_BEDROCK=1, AWS_PROFILE).+ {formData.type === 'api'+ ? 'Not used by API providers — auth goes in the API Key field above. Env vars only apply to CLI/TUI process providers.'+ : 'Environment variables passed to the CLI process (e.g., CLAUDE_CODE_USE_BEDROCK=1, AWS_PROFILE).'}</p></div>diff --git a/client/src/utils/providers.js b/client/src/utils/providers.jsindex 5f3b76582b..70de5c4fd5 100644--- a/client/src/utils/providers.js+++ b/client/src/utils/providers.js@@ -313,7 +313,7 @@ export const localBackendForProvider = (provider) => {};const LOCAL_ENDPOINT_RE = /^(https?:\/\/)?(localhost|127\.0\.0\.1|0\.0\.0\.0|\[?::1\]?)(:|\/|$)/i;-const isLocalEndpoint = (endpoint) =>+export const isLocalEndpoint = (endpoint) =>typeof endpoint === 'string' && LOCAL_ENDPOINT_RE.test(endpoint.trim());export const isLikelyLargeContextProvider = (provider) => {diff --git a/client/src/utils/providers.test.js b/client/src/utils/providers.test.jsindex 23948efa6e..a73c128a40 100644--- a/client/src/utils/providers.test.js+++ b/client/src/utils/providers.test.js@@ -32,6 +32,7 @@ import {isOllamaBackedProvider,isClaudeCodePlanCli,isGrokBuildCli,+ isLocalEndpoint,enabledApiProviderFilter,providerTypeClass,getProviderTimeout,@@ -130,6 +131,24 @@ describe('provider type predicates', () => {});});+describe('isLocalEndpoint', () => {+ it('matches loopback endpoints regardless of scheme/port/path', () => {+ expect(isLocalEndpoint('http://localhost:11434')).toBe(true);+ expect(isLocalEndpoint('http://127.0.0.1:1234/v1')).toBe(true);+ expect(isLocalEndpoint('https://[::1]:8080')).toBe(true);+ expect(isLocalEndpoint('localhost:11434')).toBe(true);+ });++ it('rejects hosted endpoints and non-strings', () => {+ expect(isLocalEndpoint('https://api.cerebras.ai/v1')).toBe(false);+ expect(isLocalEndpoint('https://api.openai.com/v1')).toBe(false);+ // "localhost" as a subdomain of a remote host must not count as local.+ expect(isLocalEndpoint('https://localhost.evil.com/v1')).toBe(false);+ expect(isLocalEndpoint('')).toBe(false);+ expect(isLocalEndpoint(undefined)).toBe(false);+ });+});+describe('isClaudeCodePlanCli', () => {it('matches a headless claude CLI provider on the plan', () => {expect(isClaudeCodePlanCli({ type: 'cli', command: 'claude', envVars: {} })).toBe(true);