{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "margelo-ai-chat-demo--run-margelo-chat-app-with-own-keys",
 "repo": "margelo/ai-chat-demo",
 "repo_url": "https://github.com/margelo/ai-chat-demo",
 "repo_slug": "margelo-ai-chat-demo",
 "title": "Run the Margelo chat app on a simulator with your keys",
 "page_title": "How to run the Margelo chat app on a simulator with your keys with AI Chat Demo",
 "summary": "Install the React Native chat app, add your OpenAI and Pinecone keys, and send a first streamed message.",
 "who": "A mobile developer who wants a working ChatGPT-style chat app on their own machine before changing anything, usually after finding the repo.",
 "problem": "Getting a streaming LLM chat with a retrieval tool running in React Native involves native builds, API keys, and a vector index, and it is hard to know where to start.",
 "outcome": "The app runs on an iOS simulator or Android emulator, answers general questions, and answers Margelo questions from the Pinecone knowledge base.",
 "steps": [
  "Run `cd app` and then `npm install`.",
  "Run `cp src/config.example.ts src/config.ts` and fill in your OpenAI key, Pinecone key, and index host in that file.",
  "Run `cd ios && pod install && cd ..` to install the iOS pods.",
  "Run `npm start` in one terminal to start Metro.",
  "Run `npm run ios` or `npm run android` to build and launch the app, then ask a general question and a question about Margelo."
 ],
 "agent_prompt": "Clone margelo/ai-chat-demo, go into the app folder, and set up the project following the README setup and run steps for <target platform: ios or android>. Confirm the app launches and that a Margelo question triggers the search_margelo_kb tool and returns an answer based on retrieved context.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "2 hours",
 "basis": "readme",
 "caveat": "The README calls this a demo, and it requires both an OpenAI key and a populated Pinecone index before the knowledge base tool returns useful results.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Xcode and CocoaPods for iOS, or the Android setup from the React Native environment guide",
  "Node 22.11 or newer",
  "An OpenAI API key",
  "A Pinecone API key, a populated Pinecone index, and its index host"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "The README says API keys live in the app bundle, so keep the config.ts file local and never ship it in a build meant for other people."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/margelo-ai-chat-demo/run-margelo-chat-app-with-own-keys/",
 "md": "https://dedupedai.com/use-cases/margelo-ai-chat-demo/run-margelo-chat-app-with-own-keys/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/margelo-ai-chat-demo--run-margelo-chat-app-with-own-keys.json",
 "api_version": "v1"
}
