DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to run FuXi on your own provider key and switch models with Fuxi

Connect your own API key and change models with /model to manage which provider handles your work.

Short answer: fuxi init; then set your API key in ~/.fuxi/config.yaml or as an environment variable, as described in the usage guide; fuxi doctor. All steps.

Authorization notice. Fuxi is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.

Credentials. Your provider API key is stored in local config or an environment variable, so keep the config file out of shared repositories and logs.

Who it is forA developer who already pays for an LLM provider and wants FuXi to use that key instead of FuXi-managed models.

The problemTeams often want to control which provider and model handle their code, and to change models without restarting their workflow.

The outcomeFuXi sends requests to the provider you chose and lets you switch models in the middle of a session.

What you need first

  • 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

Steps

  1. fuxi init
  2. Set your API key in ~/.fuxi/config.yaml or as an environment variable, as described in the usage guide.
  3. fuxi doctor
  4. fuxi
  5. Type /model in the session to pick a different model.

Prompt for your agent

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.

Caveat. The README does not list which LLM providers are supported, so check the environment variable reference before assuming your provider works.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for fuxicodex/Fuxi and "Run FuXi on your own provider key and switch models"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer