Docs · Guide

fx on any model

fx (fx.sh, from Vercel Labs, not the JSON viewer of the same name) keeps its settings in ~/.fx/settings.json: provider is the provider it talks to (gateway, codex, grok or one of your own), models each provider's model, and providers the providers of your own. packinggoods adds itself there as the provider packinggoods, so fx runs on any model in packinggoods: DeepSeek, GLM, Kimi, Qwen, Claude or a ChatGPT subscription.

Set up fx

  1. Add a provider in packinggoodsAdd an API key on the Providers page, or sign in to a subscription.
  2. Pick a model for fx on the Agents pagePick one via packinggoods. packinggoods finds fx by its ~/.fx folder, not the fx command, as the name is a common one.
  3. Restart fxfx reads its settings at start-up.
Terminal
packinggoods fx deepseek/deepseek-v4-pro

settings.json

With one of packinggoods's models picked, packinggoods sets provider to packinggoods and models.packinggoods to the model, such as deepseek/deepseek-v4-pro, and writes providers.packinggoods: the openai-chat-completions protocol, the gateway's /v1 as base_url, and auth none, so no key. In fx the model reads packinggoods/deepseek/deepseek-v4-pro.

Terminal
// ~/.fx/settings.json
{
  "provider": "packinggoods",
  "models": { "packinggoods": "deepseek/deepseek-v4-pro" },
  "providers": {
    "packinggoods": {
      "protocol": "openai-chat-completions",
      "base_url": "http://127.0.0.1:3425/v1",
      "auth": { "type": "none" },
      "tool_choice_mode": "send",
      "model_metadata": {
        "deepseek/deepseek-v4-pro": { "supports_tool_use": true, "supports_vision": …, "context_window": …, "max_output_tokens": … }
      }
    }
  }
}

fx sends no effort to a provider of your own, so there is no effort to pick. An fx in WSL is set up the same way, its base_url the gateway as that distro reaches it.

The model list

fx's model picker lists model_metadata: packinggoods's catalog, each model marked as taking tools, with whether it takes images, its context window and its output limit. fx refuses an output limit that isn't below the context window, so packinggoods leaves such a limit out. fx takes at most 256 models and refuses the whole settings file past that, so packinggoods writes at most 256, the model in use first so it is never the one cut. When the catalog changes, packinggoods brings the list up to date while fx is connected.

What you set yourself

A provider in fx can have a reviewer_model, the model its auto permission mode asks. packinggoods doesn't write one, and one you set stays. packinggoods writes tool_choice_mode send, and omit stays when you turn it to that. The protocol, address, auth and model_metadata are packinggoods's; auth is written whole, as fx refuses an env beside type none.

Restarting fx

fx reads its settings at start-up. When fx is running as the model changes, packinggoods says to restart open fx sessions.

Switching back

Picking one of fx's own models removes providers.packinggoods and models.packinggoods, and provider when it is packinggoods, so fx is back on the provider it talks to without packinggoods: Vercel's AI Gateway when none was set. The model goes into that provider's models; default removes it, leaving fx on its own default.

Terminal
packinggoods fx default

FAQ

Which fx is this?

Vercel Labs' coding agent fx (fx.sh), with its settings in ~/.fx. The JSON viewer named fx is another program.

Does fx need an API key for packinggoods?

No. packinggoods's provider in fx has auth none and talks to the gateway on this computer.

Why does fx list at most 256 of packinggoods's models?

fx refuses the whole settings file when model_metadata holds more than 256, so packinggoods writes at most 256, the model in use first.

Which provider does fx use after switching back?

The one it talks to without packinggoods; Vercel's AI Gateway when none was set.

More agents on the same models: Aside on any model, Ante on any model, omp on any model and Grok App on any model. Something fails? See Fixing common errors, or ask on Discord.