{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "gufo-org-gufo--connect-codex-to-local-qwen",
 "repo": "gufo-org/gufo",
 "repo_url": "https://github.com/gufo-org/gufo",
 "repo_slug": "gufo-org-gufo",
 "title": "Point Codex at a local Qwen model through Gufo",
 "page_title": "How to point Codex at a local Qwen model through Gufo with Gufo",
 "summary": "Set the Codex or OpenAI SDK base URL to your local Gufo server so coding sessions stay on your machine.",
 "who": "A developer who uses Codex for coding work and wants to keep code and prompts on local hardware.",
 "problem": "Coding agents normally call a hosted model API, which sends source code outside the machine.",
 "outcome": "Codex or an OpenAI SDK script sends requests to the local Qwen model, with text, function tools, and streaming working through Gufo.",
 "steps": [
  "Start the Gufo server as described in the Quickstart so it listens on port 8080.",
  "Set the API base URL for Codex or your OpenAI SDK client to `http://localhost:8080/v1`.",
  "Use the model name `Qwen3.8-27B-UD-Q8_K_XL` in the client configuration.",
  "Send a short test prompt from the client and confirm a streamed reply arrives.",
  "Read the README harness notes on Codex developer messages and prefill behavior before long sessions."
 ],
 "agent_prompt": "In the gufo repo, configure Codex to use the OpenAI-compatible base URL http://localhost:8080/v1 with model <model name>. Send one prompt asking for a one-line Python hello world and report the reply. Verify that the response is streamed and that Gufo logs show a completed request.",
 "agents": [
  "codex"
 ],
 "difficulty": "Intermediate",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "The README says Qwen with Claude Code is not supported, so this path only covers Codex and OpenAI-style clients.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "c++",
 "requirements": [
  "Linux x86-64 machine with AMD Strix Halo (gfx1151) and enough unified memory for the chosen model",
  "Podman with rootless GPU device access to /dev/kfd and /dev/dri",
  "Hugging Face CLI (hf) to download model weights",
  "Several tens of GB of free disk space for model files"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/gufo-org-gufo/connect-codex-to-local-qwen/",
 "md": "https://dedupedai.com/use-cases/gufo-org-gufo/connect-codex-to-local-qwen/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/gufo-org-gufo--connect-codex-to-local-qwen.json",
 "api_version": "v1"
}
