Skip to content
Justar96Public
forked from vercel-labs/fx

About

An fx-compatible coding agent with native CLIProxyAPI routing.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

 
 

Repository files navigation

⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣾⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⣿⣿⣷⣶⣶⣶⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣶⣿⣿⣷⣶⡶⣶⣶⣆⠀⠀⠀⣴⣶⣶⠆
⠀⣿⣿⡟⠉⠉⠻⣿⣦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⢹⣿⣿⠉⠉⠀⠘⢿⣿⣧⣀⣾⣿⡿⠃⠀
⠀⣿⣿⡇⠀⠀⠀⢻⣿⣧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⣿⡏⠀⠀⠀⠀⠀⠻⣿⣿⣿⠟⠀⠀⠀
⠀⣿⣿⡇⠀⠀⠀⢸⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⣿⠃⠀⠀⠀⠀⢠⣦⠘⢿⣿⣷⡀⠀⠀
⠀⣿⣿⡇⠀⠀⠀⢸⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿⡟⠀⠀⠀⠀⣰⣿⣿⠗⠀⠻⣿⣿⣄⠀
⠀⣿⣿⡇⠀⠀⠀⢸⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⠇⠀⠀⠀⠾⠿⠿⠋⠀⠀⠀⠘⠿⠿⠦
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀

n-fx

n-fx is fx with a custom OpenAI-compatible provider. Its adapter is built for CLIProxyAPI, and the command is installed as nfx.

Install

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.2

The installer verifies the release checksum and writes nfx to ~/.local/bin. Set NFX_INSTALL_DIR to use another directory.

Connect a provider

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 cliproxyapi

For scripts:

printf '%s\n' "$CLIPROXYAPI_API_KEY" | \
  nfx login cliproxyapi --base-url http://127.0.0.1:8317 --api-key-stdin

Set CLIPROXYAPI_BASE_URL and CLIPROXYAPI_API_KEY to override saved values. Plain HTTP is accepted only for loopback servers; remote servers require HTTPS.

Run

nfx models
nfx ask "explain this repository"
nfx

Most commands remain compatible with the fx documentation. For JSON output and automation, see the agent CLI guide.

License

Apache-2.0. Third-party licenses and attributions are listed in THIRD_PARTY_NOTICES.md.

About

An fx-compatible coding agent with native CLIProxyAPI routing.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages