{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "primorlee-agent-workflow-platform--chat-with-local-model-in-awp-desktop",
 "repo": "primorLee/agent-workflow-platform",
 "repo_url": "https://github.com/primorLee/agent-workflow-platform",
 "repo_slug": "primorlee-agent-workflow-platform",
 "title": "Chat with a local model in the AWP desktop app",
 "page_title": "How to chat with a local model in the AWP desktop app with Agent Workflow Platform",
 "summary": "Connect the Electron desktop workbench to an OpenAI-compatible local endpoint and get streamed replies.",
 "who": "A developer who has a local model running and wants a real desktop chat interface with streaming, history, and session resume around it.",
 "problem": "A bare model endpoint gives no desktop UI, streaming pipeline, or persisted conversation state for a product prototype.",
 "outcome": "A streamed model reply appears in the Electron app, and the model-native session can resume after a restart.",
 "steps": [
  "Install desktop dependencies with `npm --prefix apps/desktop ci`.",
  "On macOS or Linux, launch with `AWP_AGENT_MODEL=llama3.2 npm --prefix apps/desktop run openai-compatible:electron`.",
  "On Windows PowerShell, set `$env:AWP_AGENT_MODEL='llama3.2'` and then run `npm --prefix apps/desktop run openai-compatible:electron`.",
  "Send a message in the desktop window and confirm the streamed reply renders.",
  "Restart the app and confirm the session resumes."
 ],
 "agent_prompt": "In the agent-workflow-platform repository, install the desktop app dependencies and launch the OpenAI-compatible Electron path with AWP_AGENT_MODEL set to the model name served by my local endpoint. Report whether a streamed reply appears in the window, and confirm that the conversation is still there after a restart.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "60 minutes",
 "basis": "readme",
 "caveat": "The README says the reference adapter needs an OpenAI-compatible Chat Completions endpoint, and the example model name llama3.2 is only an example you must replace with a model your endpoint actually serves.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Docker Engine or Docker Desktop with Compose, and Python 3.12, for the local round trip",
  "Node.js 22.12 or newer, for the desktop workbench",
  "A compatible Agent CLI or model endpoint, such as a local Ollama-compatible endpoint, for real model responses",
  "Python 3.10 or newer, for the standalone workflow runtime"
 ],
 "risk": "dual-use",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/primorlee-agent-workflow-platform/chat-with-local-model-in-awp-desktop/",
 "md": "https://dedupedai.com/use-cases/primorlee-agent-workflow-platform/chat-with-local-model-in-awp-desktop/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/primorlee-agent-workflow-platform--chat-with-local-model-in-awp-desktop.json",
 "api_version": "v1"
}
