NOFX
NOFX is an open-source, self-hosted AI trading system where you approve AI-planned trades in Frontier or run strategies continuously with Autopilot across supported crypto and linked markets.
Visit NoFxAiOS/nofxOverview
NOFX is a self-hosted trading system with two modes: Frontier, where you work through a trade with AI, compare entry plans on a chart and explicitly approve execution, and Autopilot, where a configured trader reads the market, makes decisions and routes orders while running. It uses your configured models and exchange accounts and runs locally via Docker.
Key Features
- Frontier supports AI-assisted trade planning with market, limit, weighted ladder and TWAP entries, then requires explicit approval before execution.
- Autopilot runs a configured model, exchange account and strategy continuously, with a Dashboard for positions, performance and decision history.
- Frontier exposes Binance USDT perpetuals, Hyperliquid, OKX and Bitget; the broader runtime also includes Bybit, Gate, KuCoin, Aster and Lighter.
- The installer uses published Docker images, generates missing environment keys and runs locally without Go or Node.js setup.
- Models and paid data can be accessed through Claw402, with usage settled in USDC on Base and kept separate from exchange trading funds.
- Exchange credentials are stored encrypted by the NOFX server, and the model does not receive wallet private keys or exchange credentials in its prompt.
Use Cases
- Traders who want AI-generated entry plans but want to review and approve each order before it is submitted.
- Users who want a configured strategy to run continuously under Autopilot and monitor positions, performance and decision history.
- Self-hosters who want to browse public markets and compare plans before connecting an execution account.
- Developers evaluating a local-first trading stack with Docker-based deployment and multiple supported venues.
Getting Started
- On Linux or macOS with Docker and Compose available, run the one-line install script; the installer starts Docker if needed.
- Open the local web interface at 127.0.0.1 port 3000 in a desktop browser.
- Create a local account, choose a model in Config, and if using Claw402 fund the AI fee wallet with USDC on Base.
- Add a trading account, check equity and available balance, then open Frontier to select the exchange, account and market and generate plans.
- For continuous trading, configure and start an Autopilot trader separately with a model, exchange account and strategy.
Deployment & Requirements
- The installer-based path assumes Linux or macOS with Docker and Compose; it starts Docker if needed and uses published Docker images.
- Windows deployments use Docker Desktop and a Bash environment such as WSL2.
- Remote deployments should use an SSH tunnel or an authenticated HTTPS reverse proxy; the frontend and API bind to 127.0.0.1 by default.
- For source builds, install Git and Docker with Compose; development without Docker uses the Go version in go.mod, Node.js 24 and TA-Lib.
- Keep the .env file and data directory when upgrading an installer-based installation.
Before You Adopt
- License: AGPL-3.0. Review its terms before using, modifying, or distributing the project.
- Autopilot can place trades continuously without per-trade approval while it is running.
- Limit orders and scheduled TWAP slices may remain unfilled.
- AI model requests can incur charges even if no trade is placed.
- Stopping a process does not close exchange positions.
- The project warns that automated trading and experimental AI strategies can lose money.