piagent_
← ~/map

$ cat ~/map/pi-thirdparty-model-settings.md

pi-thirdparty-model-settings

Configure pi's third-party providers in a local browser page; models appear in /model immediately.

extensions✓ Oct 22

Facts

repository
github.com/aehyok/pi-thirdparty-model-settings ↗
GitHub Stars
★ 2
Forks
0
license
MIT
npm / mo
—
last push
Oct 21, 2026

install

pi install npm:pi-thirdparty-model-settings (recommended), or pi install git:github.com/aehyok/pi-thirdparty-model-settings; for a one-off trial without saving, pi -e npm:pi-thirdparty-model-settings

## TL;DR

A pi extension whose /dsf-config command opens a local browser page for configuring third-party API providers — base URL, API key, and models over OpenAI-compatible, OpenAI Responses, Anthropic, or Gemini protocols — and writes the result into models.json so /model shows the new models immediately.

## Key points

## FAQ

Q Do I need to restart pi after saving a provider?

No. Saving refreshes only the changed provider, and the new models appear in /model immediately.

Q Where do the settings go, and can the extension clobber a broken file?

Into ~/.pi/agent/models.json (or the PI_CODING_AGENT_DIR directory), with a models.json.bak backup taken before writing; if the original file is not valid JSON, the write is refused.

Q Is my API key stored safely?

By default it is written in plaintext into models.json. To avoid that, enter an environment-variable name such as $ENV_NAME in the key field, and pi reads the variable when making requests.

Q Which pi version does it need?

pi (@earendil-works/pi-coding-agent) 1.3.0 or above.

Q Why is the command called /dsf-config?

dsf abbreviates the pinyin initials of the Chinese word for third-party (disanfang), the providers the page configures.

## References

## Related entries

## Guides

Last updated: Oct 21, 2026