{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "janhq-jan--use-jan-as-a-local-openai-api",
 "repo": "janhq/jan",
 "repo_url": "https://github.com/janhq/jan",
 "repo_slug": "janhq-jan",
 "title": "Use Jan as a local OpenAI-compatible API",
 "page_title": "How to use Jan as a local OpenAI-compatible API with Jan",
 "summary": "Turn on Jan's local server and point your scripts or apps at localhost:1337.",
 "who": "A developer who wants to test an app against a local model without paying per token.",
 "problem": "Building against a cloud API means costs and sending data out during development.",
 "outcome": "A local endpoint at localhost:1337 that apps written for the OpenAI API can call.",
 "steps": [
  "Install Jan and download a local model",
  "Enable the OpenAI-Compatible API so the local server runs at localhost:1337",
  "Point your app's OpenAI base URL at the local server",
  "Check the API Reference linked in the README for endpoints"
 ],
 "agent_prompt": "Using janhq/jan's OpenAI-compatible server at localhost:1337, change my <script or app> to call the local model <model> instead of the OpenAI API, run it, and compare the answer to the cloud version.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Beginner",
 "time": "20 minutes",
 "basis": "readme",
 "caveat": "Local models are usually weaker than frontier cloud models, so expect differences in quality.",
 "category": "Personal productivity",
 "tags": [
  "Personal productivity"
 ],
 "lang": "rust",
 "requirements": [
  "Windows 10+, macOS 13.6+ or most Linux distributions",
  "RAM for the model size: 8GB for 3B models, 16GB for 7B, 32GB for 13B on macOS",
  "To build from source: Node.js 20+, Yarn 4.5.3+, Make and Rust"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/janhq-jan/use-jan-as-a-local-openai-api/",
 "md": "https://dedupedai.com/use-cases/janhq-jan/use-jan-as-a-local-openai-api/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/janhq-jan--use-jan-as-a-local-openai-api.json",
 "api_version": "v1"
}
