nofx README

The project's README from github.com/NoFxAiOS/nofx. As one markdown file: README.md.

nofx — Intelligence that trades. An open trading system you run yourself.

Frontier · Get started · Documentation · Community

GitHub stars License: AGPL-3.0 Telegram community

English · 中文 · 日本語 · 한국어 · Русский · Українська · Tiếng Việt

NOFX is an open-source trading system you run on your own machine. Use Frontier to work through a trade with AI, compare entries on a chart and approve the order yourself. Use Autopilot to run a strategy continuously. Both use your configured models and exchange accounts.

Built with Vergex. AI and data access through Claw402.

Run locally

One-line install — Linux / macOS

Install and start Docker with Compose, then run:

curl -fsSL https://raw.githubusercontent.com/NoFxAiOS/nofx/main/install.sh | bash

Open http://127.0.0.1:3000 in your desktop browser.

The installer generates missing environment keys and starts NOFX using published Docker images. No Go or Node.js setup is needed. Continue with your first session, or see source builds and other options.

Frontier

A chart, a conversation and a trade you can inspect before placing it.

  1. Choose a market. Browse top-volume instruments, search native exchange symbols or use the Binance AI500 list. Stock-linked markets appear where supported by the venue.
  2. Compare ways to enter. Request market, limit, weighted ladder and TWAP plans. See entry prices, stop loss, targets, leverage, position value and estimated margin together.
  3. Review and trade. Select a plan to focus the chart. Review the current account and order details, then explicitly approve execution.
  4. Manage the position. Check live positions and exchange orders below the chart, with controls for manual entries and closing positions.

Frontier supports Binance USDT perpetuals, Hyperliquid, OKX and Bitget. You can browse public markets before connecting an execution account; trading requires a matching account. Generating a plan does not submit an order.

Entry How it works
Market Enter at the available market price after approval; the displayed entry is an estimate.
Limit Submit an entry at a chosen price.
Ladder Split the position across weighted price levels.
TWAP Release a finite sequence of orders over time, within the approved price limits.

Limit orders and scheduled slices may remain unfilled. Execution details and recovery.

Autopilot

For strategies you want to run continuously, configure a trader with a model, exchange account and strategy. Autopilot reads the market, makes decisions and routes orders through the NOFX exchange runtime. The Dashboard shows positions, performance and decision history.

Frontier requires approval for each trade. Autopilot can place trades while it is running. Starting or stopping Autopilot is a separate action.

Workspace What you do there
Config Connect models, fund the AI wallet and manage trading accounts.
Frontier Explore markets, compare entry plans and place reviewed orders.
Dashboard Follow your running traders, positions and decision history.
Strategy Configure market selection, indicators, sizing and trading instructions.
Leaderboard Compare published trader performance.

Your first session

  1. Create your local account. Sign in to the instance you just started.
  2. Set up AI in Config. Choose a model. With Claw402, create or import an AI fee wallet, save its private key and fund its address with USDC on Base. This balance pays for model and paid-data requests.
  3. Add a trading account. Connect the exchange you want to use. Check its account equity and available balance. Trading funds stay separate from your AI fee wallet.
  4. Open Frontier. Select the exchange, account and market. Generate plans, compare them on the chart and review an order when you are ready.

For continuous trading, configure and start Autopilot separately.

Updating an installer-based installation

After stopping active Autopilot traders and reviewing any running Frontier execution, run these commands from your installation directory (by default ~/nofx):

docker compose pull
docker compose up -d

Keep .env and the data/ directory when upgrading; they contain configuration, encryption material and saved application state.

After restarting, check positions and orders at the exchange and reconcile any execution marked as needing attention before placing another trade. Stopping a process does not close its positions.

Source builds and other options

Developers: build and update from source

Use this option when developing NOFX or testing source changes before published images are updated. Install Git and Docker with Compose, and start Docker:

git clone --recurse-submodules https://github.com/NoFxAiOS/nofx.git
cd nofx
./start.sh start --build

The startup script creates .env when needed and generates missing encryption keys. If you cloned without submodules, run git submodule update --init web/vendor/charting before building. TradingView chart assets are subject to their applicable license; see chart integration notes.

To update a source installation, stop active Autopilot traders and review running Frontier execution, then:

git pull --ff-only
git submodule update --init web/vendor/charting
./start.sh start --build
Windows, Railway and remote deployments

Windows

Use Docker Desktop and a Bash environment such as WSL2, then run the one-line installer above.

Railway

Deploy on Railway

Remote deployments

All Compose configurations (source, production and stable) bind the frontend and API to 127.0.0.1 by default. For remote access, use an SSH tunnel (ssh -N -L 3000:127.0.0.1:3000 user@your-server, then open http://127.0.0.1:3000) or an authenticated HTTPS reverse proxy. Complete first-time registration through the tunnel before allowing other users to reach the site. Do not expose an uninitialized installation publicly.

The native Go server also defaults to 127.0.0.1 (NOFX_API_BIND_ADDRESS). Docker explicitly listens on its internal interface so the frontend proxy can reach it; NOFX_BIND_ADDRESS controls the host-published ports independently.

Upgrade notice: previously published ports may become loopback-only when containers are recreated with the new Compose configuration. Set up your tunnel/HTTPS proxy first; do not restore public plaintext HTTP just to make the old URL work. NOFX_BIND_ADDRESS is an explicit override for secured network deployments. TLS must cover browser-to-proxy traffic; application field encryption (TRANSPORT_ENCRYPTION) does not protect login passwords or bearer tokens and is not a substitute for HTTPS.

Forwarded client IP headers are ignored by default. If using a reverse proxy, set NOFX_TRUSTED_PROXIES to its exact IPs/CIDRs only, and have the proxy overwrite or correctly append the real connecting client address. Never trust 0.0.0.0/0, ::/0, or a network that contains untrusted clients. Without this setting, users behind the proxy share the login throttle; authentication still works. Password changes (including CLI resets) invalidate existing sessions; sign in again afterward. Logout revocations are stored in the database and survive restarts.

This security upgrade requires a fresh web login once: old tokens without unique session IDs are rejected, preventing old in-memory logout records from being lost and sessions revived on restart. Accounts, passwords and trading records are preserved.

Development without Docker

Use the Go version specified in go.mod, Node.js 24 as used by the frontend Docker build, and TA-Lib. Initialize the charting submodule before starting the frontend. Configure the environment using .env.example.

# Backend
go build -o nofx .
./nofx

# Frontend, in a second terminal
cd web
npm ci
npm run dev

Models and data

Frontier and Autopilot reuse models configured in NOFX. Claw402 provides access to multiple models with usage settled in USDC on Base; choose the model in Config and switch it in the workspace.

Exchange prices and candles come from the selected venue. AI500 and supported holder analytics use paid Claw402 routes. Data availability depends on the market and provider: a Hyperliquid holder dataset is not a substitute for Binance, OKX or Bitget data. The activity stream shows data reads and planning progress.

AI fees, paid-data fees and exchange trading funds are separate. Model requests can incur charges even when no trade is placed.

Exchanges

Frontier currently exposes Binance, Hyperliquid, OKX and Bitget. The broader NOFX runtime also includes Bybit, Gate, KuCoin, Aster and Lighter. Available products, order types and account permissions depend on the exchange.

The links below are partner registration links that support development. Fee offers are set by each exchange.

Exchange Status Partner link
Binance ✅ Register
Bybit ✅ Register
OKX ✅ Register
Hyperliquid ✅ Register
Bitget ✅ Register
KuCoin ✅ Register
Gate ✅ Register
Aster ✅ Register
Lighter ✅ Register

How execution works

Plans and strategy decisions use the existing NOFX exchange adapters. The model does not receive wallet private keys or exchange credentials in its prompt.

Architecture

Desktop browser
  Frontier · Config · Dashboard · Strategy
                    │
                NOFX API
                    │
       ┌────────────┴────────────┐
  Frontier planning         Autopilot
  Review and approval       Strategy loop
       └────────────┬────────────┘
              Shared execution
              Exchange adapters
                    │
             Your trading accounts

Models and paid data: NOFX provider clients · Claw402
Storage: local configuration, plans and execution records
Earlier interface walkthrough

This video shows an earlier version of the interface. Navigation and visual design have since changed.

https://github.com/user-attachments/assets/3310f495-14c5-4586-a1cc-3d32e44aa505

Brand assets

Documentation

Guide Contents
Frontier Planning, live execution, data and recovery
Getting started Deployment and exchange API guides
Architecture System design and module index
Strategy module Coin selection, AI prompts and execution
FAQ Common questions
Troubleshooting Diagnosing common issues

Community

Telegram · Twitter/X · Issues · vergex.trade · Live dashboard

Contributing

Code, documentation, translations, and bug reports are all welcome — see the Contributing Guide, Code of Conduct, and Security Policy.

NOFX tracks meaningful contributions and intends to reward contributors as the ecosystem grows. Priority issues carry higher weight.

Contribution Weight
Pinned Issue PRs ★★★★★★
Code (Merged PRs) ★★★★★
Bug Fixes ★★★★
Feature Ideas ★★★
Bug Reports ★★
Documentation ★★
Contributors

Sponsors

Become a sponsor


If NOFX is useful to you, a star helps other traders find it.

Star History Chart

License

AGPL-3.0

Automated trading involves substantial risk. AI-driven strategies are experimental and can lose money. Size positions appropriately, understand each venue, and never trade funds you cannot afford to lose. Full disclaimer.

nofx (NoFxAiOS/nofx)

Searching Database…

13.4K ·GitHub
What is this?NOFX is an open-source, self-hosted AI trading terminal where a language model acts as the trading strategy, automatically trading crypto, US stocks, commodities and forex while a Go runtime enforces hard risk limits the model cannot override.
Is this a cloud service, or something I run on my own machine?It is self-hosted software that you run on your own computer or server; everything, including your exchange credentials, stays local to that machine.
How do I get it running?Install it on Linux/macOS with the provided install script (or deploy via Railway or Docker, Docker Desktop on Windows), register the first account as owner, then follow the guided launch: fund the AI fee wallet with $1+ USDC on Base, connect an exchange like Hyperliquid, deposit $12+ USDC, and start Autopilot.
Do I need my own AI model API keys to run it?You can bring your own keys for DeepSeek, OpenAI, Claude, Qwen, Gemini, Grok, Kimi or MiniMax, or skip keys entirely and pay per call through Claw402, which meters usage in USDC over the x402 protocol using only a wallet on Base.
Does the AI trade with no safety net?No — every order passes through code-enforced limits the model cannot override, including position and leverage caps, automatic stop-loss/take-profit, drawdown auto-close, trade throttling, and a safe mode that blocks new entries after repeated model failures.
Where do my exchange credentials go?They are encrypted at rest and never leave your machine, since the whole system runs locally.
What does the AGPL-3.0 license mean for me?NOFX is free and open source under AGPL-3.0, but the project is explicit that automated trading carries real financial risk and AI-driven strategies can lose money.
What markets can NOFX actually trade?Crypto perpetuals across all nine supported exchanges (Binance, Bybit, OKX, Hyperliquid, Bitget, KuCoin, Gate, Aster, Lighter), plus on Hyperliquid it also trades tokenized US stocks, commodities, indices, FX and pre-IPO perps like TSLA, NVDA, GOLD and SPX.
Can I run multiple trading strategies at once?Yes, you can run several traders side by side with different models or strategies and compare their performance on a public leaderboard ranked by realized return.
Is there an audit trail for the AI's decisions?Every decision is stored with the model's full reasoning, so no position is taken without a recorded rationale.
Can I customize how a trader behaves?The Strategy Studio lets you set style presets, coin universes, indicators, leverage, entry confidence and custom prompts for each trader.
Creator
NoFxAiOS
Size
70.4 MB
Stars
13.4K
Updated
CommitNov 04
Age
1y
Commits · 90 Days