This section contains all the documentation you need to get NOFX up and running.
Choose the method that best fits your needs:
Best for: Beginners, quick setup, production deployments
- English: docker-deploy.en.md
- 中文: docker-deploy.zh-CN.md
Pros:
- ✅ One-command setup
- ✅ All dependencies included
- ✅ Easy to update and manage
- ✅ Isolated environment
Quick Start:
cp config.json.example config.json
./start.sh start --buildBest for: Advanced users, development, custom setups
- English: pm2-deploy.en.md
- 中文: pm2-deploy.md
Pros:
- ✅ Direct process control
- ✅ Better for development
- ✅ Lower resource usage
- ✅ More flexible
Quick Start:
go build -o nofx
cd web && npm install && npm run build
pm2 start ecosystem.config.js- English: custom-api.en.md
- 中文: custom-api.md
Use custom AI models or third-party OpenAI-compatible APIs:
- Custom DeepSeek endpoints
- Self-hosted models
- Other LLM providers
Before starting, ensure you have:
- ✅ Docker 20.10+
- ✅ Docker Compose V2
- ✅ Go 1.21+
- ✅ Node.js 18+
- ✅ TA-Lib library
- ✅ PM2 (optional)
After deployment:
- Configure AI Models → Web interface at http://localhost:3000
- Set Up Exchange → Add Binance/Hyperliquid credentials
- Create Traders → Combine AI models with exchanges
- Start Trading → Monitor performance in dashboard
Before Trading:
⚠️ Test on testnet first⚠️ Start with small amounts⚠️ Understand the risks⚠️ Read Security Policy
API Keys:
- 🔑 Never commit API keys to git
- 🔑 Use environment variables
- 🔑 Restrict IP access
- 🔑 Enable 2FA on exchanges
Common Issues:
- Docker build fails → Check Docker version, update to 20.10+
- TA-Lib not found →
brew install ta-lib(macOS) orapt-get install libta-lib0-dev(Ubuntu) - Port 8080 in use → Change
API_PORTin .env file - Frontend won't connect → Check backend is running on port 8080
Need more help?