{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "runanywhereai-runanywhere-sdks--serve-a-local-openai-compatible-api-with-runanywhere",
 "repo": "RunanywhereAI/runanywhere-sdks",
 "repo_url": "https://github.com/RunanywhereAI/runanywhere-sdks",
 "repo_slug": "runanywhereai-runanywhere-sdks",
 "title": "Expose on device models as an OpenAI compatible API",
 "page_title": "How to expose on device models as an OpenAI compatible API with Runanywhere SDKS",
 "summary": "Install the server extra and run runanywhere serve so any OpenAI client can use local models.",
 "who": "A developer whose tools already speak the OpenAI API.",
 "problem": "Pointing existing tools at local models usually needs adapters.",
 "outcome": "A local API at 127.0.0.1:8000 with chat, embeddings and audio endpoints.",
 "steps": [
  "Install with `pip install \"runanywhere[server]\"`",
  "Start it with `runanywhere serve`",
  "Point an OpenAI client at http://localhost:8000/v1",
  "Send a chat completion with a local model name"
 ],
 "agent_prompt": "Using RunanywhereAI/runanywhere-sdks, run `pip install \"runanywhere[server]\"` and `runanywhere serve`, then call it with the OpenAI Python client using model qwen2.5-0.5b and show the reply.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "20 minutes",
 "basis": "readme",
 "caveat": "The server is for local use; do not expose it to untrusted networks.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "c++",
 "requirements": [
  "Python with pip, or npm for React Native and Web",
  "A supported device; models download on first use"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/runanywhereai-runanywhere-sdks/serve-a-local-openai-compatible-api-with-runanywhere/",
 "md": "https://dedupedai.com/use-cases/runanywhereai-runanywhere-sdks/serve-a-local-openai-compatible-api-with-runanywhere/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/runanywhereai-runanywhere-sdks--serve-a-local-openai-compatible-api-with-runanywhere.json",
 "api_version": "v1"
}
