Skip to content

Kitchen Intelligence

OpenCode GH-4 Candidate edited this page Dec 2, 2026 · 2 revisions

Kitchen Intelligence

Kitchen Intelligence is the optional AI layer behind SHISO, recipe generation, nutrition analysis and recipe images. It is deliberately separate from the recipe authorities: the app decides what is true, what is saved and what is calculated; AI helps interpret and propose.

Availability: AI Studio and BYOK provider credentials are part of the published v0.9.0 release. The native ChatGPT-plan connection and newer SHISO integration are on current main, not v0.9.0. AI remains optional.

AI Studio provider configuration overview

AI Studio configuration overview. No connected provider or successful inference is depicted.

AI Studio

AI Studio — presented in the app as The Codex Atelier — is the control center for the providers and models The Kitchen Codex may use.

Section Purpose
Overview Provider readiness and the current text-model selection at a glance.
Providers Choose the Text AI provider and model.
Living Library Discover models exposed by the server-owned catalog.
Image configuration Choose the Image AI provider and model.
ChatGPT plan Connect an eligible ChatGPT subscription on the native desktop app.

AI Studio stores non-secret preferences. Provider keys and account tokens are handled separately; they are never rendered into the interface.

Supported providers

The registered provider set includes:

Kind Providers
Text AI Google Gemini, OpenRouter, OpenAI, DeepSeek
Image AI Google Gemini Image, OpenRouter Image, OpenAI Image
Subscription ChatGPT plan (native desktop, experimental)

Availability is not a promise that every model works for every task. The server checks the provider, model, credential, entitlement and required capability before execution. A model that is good at chat is not automatically authorized for structured recipe generation or nutrition analysis.

Credentials

The Kitchen Codex supports two credential models.

Session-only BYOK

In the browser or standalone shell, a provider key can be supplied for the current server session. It is held in server memory, expires, can be revoked and is never persisted to browser storage or written into the Recipe Vault.

Session credentials are scoped to the exact provider:

  • A Text AI key is not silently reused for a different provider.
  • An OpenAI text key and OpenAI image key are separate unless you explicitly choose the server-side reuse action.
  • Replacing or revoking a credential invalidates capability authorization that depended on it.

Encrypted desktop storage

The native desktop app can persist BYOK credentials in an AES-256-GCM store with an Electron-protected key. When operating-system secure storage is unavailable, BYOK can remain session-only.

The native ChatGPT plan connection is stricter: its account state is stored in an encrypted Electron safeStorage envelope. If secure storage is unavailable, or only Linux basic_text obfuscation is offered, the connection fails closed. It does not fall back to plaintext or memory-only credentials.

Capability and pricing checks

Provider catalogs change. The Kitchen Codex treats capability and price as server-owned facts, not as UI suggestions.

  • Capability verification is per task. A model must be verified for the required operation, not merely shown as a text model.
  • Free, budget, paid and variable pricing is classified before an operation.
  • A free-to-paid price change blocks the operation rather than silently spending money.
  • Stale or unverified pricing blocks the operation.
  • Paid image generation requires an explicit confirmation each time.
  • One confirmation permits one provider call. There are no hidden retries, provider fallbacks or model fallbacks for that confirmed generation.
  • Verified-free recipe generation is single-attempt and terminal. A failure does not quietly become a paid request.

These rules are intentionally conservative. A failed AI action should be visible, not disguised as a different action.

The ChatGPT plan connection

The optional Sign in with ChatGPT integration is:

  • Native-only — it runs in the Electron main process.
  • Experimental and disabled by default.
  • Separate from an OpenAI API key — it uses an eligible ChatGPT Plus/Pro subscription, not separately billed API usage.
  • Fail-closed — a disconnected, expired or unentitled account shows a reconnect state. It does not fall back to Gemini or a paid API provider.
  • Restricted — OAuth tokens never enter the renderer or the Recipe Vault.

ChatGPT-plan usage remains subject to provider, licensing and commercial readiness gates.

Images: licensed search vs AI generation

The Kitchen Codex separates two image paths.

Licensed representative images

  • Search is explicit, using Openverse and Wikimedia Commons.
  • Only reusable licenses are accepted: CC0, Public Domain, CC BY and CC BY-SA.
  • Attribution and provenance are preserved.
  • Thumbnails are app-local and protected; the browser does not hotlink them.
  • A representative image may resemble the dish but is not guaranteed to depict the exact recipe.
  • Licensed search is free and does not require an image-provider key.

AI recipe images

  • Generation is explicit and never automatic.
  • The exact provider, model and truthful pricing class are disclosed.
  • Paid or variable generation requires confirmation.
  • One confirmation permits one provider call.
  • The preview is transient until you choose Use This Image and save the recipe.
  • Asset creation happens only on explicit recipe save.

Costs and availability

  • The Kitchen Codex does not include unlimited or free AI usage.
  • Provider charges are separate from The Kitchen Codex and are billed by the provider under its terms.
  • A configured key does not create product entitlement. On current main, Advanced Nutrition, for example, is a separate product tier.
  • On a public deployment protected by AI_ENDPOINT_TOKEN, the current browser client cannot attach the bearer token. Those AI calls fail closed. Use a local development configuration or the native desktop path.

Privacy boundary

  • Provider keys are server-side or in protected native storage, never in the Recipe Vault.
  • AI requests go to the provider you configured, under that provider's terms.
  • SHISO conversations are device-local; they are not synchronized to a Kitchen Codex cloud service.
  • The app does not need to upload your whole Vault to answer a question about one recipe.

See SHISO for the companion workflow and Nutrition for the Advanced Nutrition authorization model.


Related: SHISO · Nutrition · Personalization and Data · Troubleshooting

Clone this wiki locally