⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣾⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⣿⣿⣷⣶⣶⣶⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣶⣿⣿⣷⣶⡶⣶⣶⣆⠀⠀⠀⣴⣶⣶⠆
⠀⣿⣿⡟⠉⠉⠻⣿⣦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⢹⣿⣿⠉⠉⠀⠘⢿⣿⣧⣀⣾⣿⡿⠃⠀
⠀⣿⣿⡇⠀⠀⠀⢻⣿⣧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⣿⡏⠀⠀⠀⠀⠀⠻⣿⣿⣿⠟⠀⠀⠀
⠀⣿⣿⡇⠀⠀⠀⢸⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⣿⠃⠀⠀⠀⠀⢠⣦⠘⢿⣿⣷⡀⠀⠀
⠀⣿⣿⡇⠀⠀⠀⢸⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿⡟⠀⠀⠀⠀⣰⣿⣿⠗⠀⠻⣿⣿⣄⠀
⠀⣿⣿⡇⠀⠀⠀⢸⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⠇⠀⠀⠀⠾⠿⠿⠋⠀⠀⠀⠘⠿⠿⠦
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
n-fx is fx with a custom
OpenAI-compatible provider. Its adapter is built for
CLIProxyAPI, and the command is
installed as nfx.
Linux and macOS on x86_64 and ARM64 are supported.
curl -fsSL https://raw.githubusercontent.com/Justar96/n-fx/main/install.sh | bash -s v0.0.6-nfx.2The installer verifies the release checksum and writes nfx to
~/.local/bin. Set NFX_INSTALL_DIR to use another directory.
Start nfx and choose Custom provider during onboarding. To change it
later, enter /login, open Connections, and choose Custom provider.
The URL defaults to http://127.0.0.1:8317.
You can also configure the connection directly:
nfx login cliproxyapiFor scripts:
printf '%s\n' "$CLIPROXYAPI_API_KEY" | \
nfx login cliproxyapi --base-url http://127.0.0.1:8317 --api-key-stdinSet CLIPROXYAPI_BASE_URL and CLIPROXYAPI_API_KEY to override saved values.
Plain HTTP is accepted only for loopback servers; remote servers require HTTPS.
nfx models
nfx ask "explain this repository"
nfxMost commands remain compatible with the fx documentation. For JSON output and automation, see the agent CLI guide.
Apache-2.0. Third-party licenses and attributions are listed in THIRD_PARTY_NOTICES.md.