Back to Nofx

πŸš€ Getting Started with NOFX

docs/getting-started/README.md

latest3.5 KB
Original Source

πŸš€ Getting Started with NOFX

Language: English | δΈ­ζ–‡

This section contains all the documentation you need to get NOFX up and running.

πŸ“‹ Deployment Options

Choose the method that best fits your needs:

Best for: Beginners, quick setup, production deployments

Pros:

  • βœ… One-command setup
  • βœ… All dependencies included
  • βœ… Easy to update and manage
  • βœ… Isolated environment

Quick Start:

bash
cp config.json.example config.json
./scripts/start.sh start --build

πŸ€– AI Configuration

Custom AI Providers

Use custom AI models or third-party OpenAI-compatible APIs:

  • Custom DeepSeek endpoints
  • Self-hosted models
  • Other LLM providers

πŸ’³ BlockRun Wallet (Pay-per-Request, No API Key)

Access all top AI models by paying with USDC β€” no API key signup required.

ProviderGuidePayment Network
BlockRun (Base Wallet)blockrun-base-wallet.mdBase (EVM) Β· USDC
BlockRun (Solana Wallet)blockrun-sol-wallet.mdSolana Β· USDC

How it works: Each AI request automatically pays a micro-USDC fee via the x402 payment protocol. Your private key signs the payment authorization β€” no funds leave your wallet until the AI response is delivered.


πŸ”‘ Prerequisites

Before starting, ensure you have:

For Docker Method:

  • βœ… Docker 20.10+
  • βœ… Docker Compose V2

For Manual Method:

  • βœ… Go 1.21+
  • βœ… Node.js 18+
  • βœ… TA-Lib library

πŸ“š Next Steps

After deployment:

  1. Configure AI Models β†’ Web interface at http://localhost:3000
  2. Set Up Exchange β†’ Add Binance/Hyperliquid credentials
  3. Create Traders β†’ Combine AI models with exchanges
  4. Start Trading β†’ Monitor performance in dashboard

πŸ” Optional: Enable Admin Mode (Single-User)

For single-tenant/self-hosted usage, you can enable strict admin-only access:

  1. In config.json set the 2 fields below:
jsonc
{
	"admin_mode": true,
  ...
  "jwt_secret": "YOUR_JWT_SCR"
}
  1. Set environment variables (Docker compose already wired):
  • NOFX_ADMIN_PASSWORD β€” admin password (plaintext; hashed on startup)
  1. Login at /login using the admin password. All non-essential endpoints are blocked to unauthenticated users while admin mode is enabled.

⚠️ Important Notes

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

πŸ†˜ Troubleshooting

Common Issues:

  1. Docker build fails β†’ Check Docker version, update to 20.10+
  2. TA-Lib not found β†’ brew install ta-lib (macOS) or apt-get install libta-lib0-dev (Ubuntu)
  3. Port 8080 in use β†’ Change API_PORT in .env file
  4. Frontend won't connect β†’ Check backend is running on port 8080

Need more help?


← Back to Documentation Home