{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "jaredpalmer-kev--swap-jev-for-a-self-hosted-kev-server",
 "repo": "jaredpalmer/kev",
 "repo_url": "https://github.com/jaredpalmer/kev",
 "repo_slug": "jaredpalmer-kev",
 "title": "Point the TypeSafe SDK at your own Kev server",
 "page_title": "How to point the TypeSafe SDK at your own Kev server with Kev",
 "summary": "Keep your existing TypeSafe client code and switch its base URL to a local Kev server.",
 "who": "A team already using Jev through TypeSafe that wants a self-hosted option.",
 "problem": "Hosted decision APIs cost per call and send your data to a third party.",
 "outcome": "The same client code calling Kev locally, with the API key set to local.",
 "steps": [
  "Start a Kev server as in the quick start",
  "Create a TypeSafeClient with api_key local and base_url http://127.0.0.1:8009 as in the README",
  "Call client.system_one with your existing questions",
  "Compare answers and probabilities with your hosted results on a sample",
  "Pick a model size: Kev-4B to start, Kev-9B or Kev-27B for more accuracy"
 ],
 "agent_prompt": "Change my TypeSafe client code in <file> to use a local jaredpalmer/kev server at 127.0.0.1:8009, run 50 sample inputs through both the hosted API and Kev, and report agreement and latency.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "",
 "category": "Work and operations",
 "tags": [
  "Work and operations"
 ],
 "lang": "python",
 "requirements": [
  "Python with uv; install from source (pip install kev is a different package)",
  "A GPU (CUDA) or an Apple Silicon Mac with MLX; Kev-0.8B runs on a laptop",
  "Optional: a Modal account for fine-tuning and hosted endpoints"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/jaredpalmer-kev/swap-jev-for-a-self-hosted-kev-server/",
 "md": "https://dedupedai.com/use-cases/jaredpalmer-kev/swap-jev-for-a-self-hosted-kev-server/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/jaredpalmer-kev--swap-jev-for-a-self-hosted-kev-server.json",
 "api_version": "v1"
}
