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
./scripts/start.sh start --build- 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
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
For single-tenant/self-hosted usage, you can enable strict admin-only access:
- In
config.jsonset the 2 fields below:
- Set environment variables (Docker compose already wired):
NOFX_ADMIN_PASSWORDβ admin password (plaintext; hashed on startup)
- Login at
/loginusing the admin password. All non-essential endpoints are blocked to unauthenticated users while admin mode is enabled.
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?
- π FAQ
- π¬ Telegram Community
- π GitHub Issues
{ "admin_mode": true, ... "jwt_secret": "YOUR_JWT_SCR" }