{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "fuxicodex-fuxi--use-own-provider-key-and-switch-models",
 "repo": "fuxicodex/Fuxi",
 "repo_url": "https://github.com/fuxicodex/Fuxi",
 "repo_slug": "fuxicodex-fuxi",
 "title": "Run FuXi on your own provider key and switch models",
 "page_title": "How to run FuXi on your own provider key and switch models with Fuxi",
 "summary": "Connect your own API key and change models with /model to manage which provider handles your work.",
 "who": "A developer who already pays for an LLM provider and wants FuXi to use that key instead of FuXi-managed models.",
 "problem": "Teams often want to control which provider and model handle their code, and to change models without restarting their workflow.",
 "outcome": "FuXi sends requests to the provider you chose and lets you switch models in the middle of a session.",
 "steps": [
  "`fuxi init`",
  "Set your API key in `~/.fuxi/config.yaml` or as an environment variable, as described in the usage guide.",
  "`fuxi doctor`",
  "`fuxi`",
  "Type `/model` in the session to pick a different model."
 ],
 "agent_prompt": "Configure the FuXi repo at fuxicodex/Fuxi to use the API key for <provider-name> from the local environment, then start a session. Expected output: FuXi starts and answers a short test prompt using the provider you set. Verify that the request is billed to your own provider account and not to FuXi-managed models.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "The README does not list which LLM providers are supported, so check the environment variable reference before assuming your provider works.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "A FuXi account (`fuxi login`) or your own LLM provider API key",
  "A macOS, Linux, or Windows terminal",
  "A local code repository to work in"
 ],
 "risk": "dual-use",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "Your provider API key is stored in local config or an environment variable, so keep the config file out of shared repositories and logs."
  }
 ],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/fuxicodex-fuxi/use-own-provider-key-and-switch-models/",
 "md": "https://dedupedai.com/use-cases/fuxicodex-fuxi/use-own-provider-key-and-switch-models/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/fuxicodex-fuxi--use-own-provider-key-and-switch-models.json",
 "api_version": "v1"
}
