Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

Backed by vergex.trade

NOFX — AI trading terminal

Stars Release License Telegram

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


NOFX is an open-source trading terminal where the strategy is a language model. Each trader runs a continuous loop — read market structure, decide, execute, record the reasoning — while a Go runtime clamps every order to hard risk limits the model cannot override.

Traders compose freely: any model, any of nine exchanges, any strategy. Run several side by side and compare them on a public leaderboard by realized return. Everything runs on your own machine; exchange credentials are encrypted at rest and never leave it.

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

The terminal opens at http://127.0.0.1:3000.

First run

  1. Register — the first account becomes the owner of the instance.
  2. Follow the guided launch: put $1+ USDC (Base network) in the AI fee wallet it creates for you, then connect Hyperliquid and deposit $12+ USDC to trade with.
  3. Start Autopilot. The AI scans the market every few minutes and trades on its own; every decision appears on the dashboard as it happens. Stop it anytime with one click.

Register exchanges

NOFX is free and open source. Opening an account through the partner links below carries reduced trading fees and funds continued development.

ExchangeStatusRegister with fee discount
BinanceRegister
BybitRegister
OKXRegister
HyperliquidRegister
BitgetRegister
KuCoinRegister
GateRegister
AsterRegister
LighterRegister

Demo

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


The model proposes. The runtime disposes.

Decisions come from a language model reading the Claw402.ai · Vergex data stack: a live signal board that ranks every market with directional bias and signal strength, per-symbol Signal Lab deep signals, cost-basis and liquidation heatmaps that show where the crowd's fuel and walls sit, and real-time market net flow — cross-checked against raw candles and the trader's own live track record. Execution does not.

Every order passes through limits enforced in code, outside the model's reach:

Position limitsMax concurrent positions, notional capped as a ratio of equity, one position per symbol
Leverage clampsHard caps applied at order-sizing time, independent of what the model requests
Exchange-side protectionStop-loss and take-profit placed on the exchange immediately after every entry
Drawdown auto-closeProfitable positions that give back too much from their peak are closed
Trade throttlingMinimum hold times, per-symbol re-entry cooldowns, per-cycle and per-hour entry limits
Safe modeRepeated model failures block new entries until the model recovers
Launch preflightModel access, wallet funds, strategy, and exchange balances verified before a trader may start

Each decision is stored with the model's full reasoning. There is no position without a paper trail.


Terminal

AutopilotGuided launch: fund, connect, deposit, start — with server-side preflight throughout
Strategy StudioStyle presets, coin universes, indicators, leverage, entry confidence, custom prompts
CompetitionPublic leaderboard ranked by realized return, each entry attributed to its model
DashboardLive positions, orders, statistics, and the reasoning behind every decision
Screenshots
OverviewMarket Chart
Trading StatsPosition History
Strategy EditorIndicators Config
CompetitionConfiguration

Models

Eight providers with your own keys — DeepSeek, OpenAI, Claude, Qwen, Gemini, Grok, Kimi, MiniMax — including custom endpoints and model names.

Or no keys at all: Claw402 meters model usage per call in USDC over the x402 protocol. A wallet on Base replaces every API key.

ProviderAccess
Claw402Pay-as-you-go AI models with official discount

Markets

Crypto perpetuals on all nine exchanges. On Hyperliquid, the same runtime also trades tokenized US equities, commodities, indices, FX, and pre-IPO perps — TSLA, NVDA, GOLD, SPX, EUR, OPENAI — alongside crypto.


Architecture

    ┌─────────────────────────────────────────────────┐
    │                 Trading Terminal                 │
    │        React · TypeScript · TradingView          │
    │   Dashboard · Strategy Studio · Competition      │
    ├─────────────────────────────────────────────────┤
    │                  API Server (Go)                  │
    │      JWT auth · encrypted credential store        │
    ├──────────────┬──────────────┬───────────────────┤
    │   Strategy    │  Autopilot   │   Trader Runtime  │
    │    Engine     │  Preflight   │    Risk Engine    │
    ├──────────────┴──────────────┴───────────────────┤
    │                 AI Model Layer                    │
    │  DeepSeek · OpenAI · Claude · Qwen · Gemini      │
    │  Grok · Kimi · MiniMax · Claw402 (x402 USDC)     │
    ├─────────────────────────────────────────────────┤
    │              Exchange Connectivity                │
    │ Binance · Bybit · OKX · Hyperliquid · Bitget     │
    │ KuCoin · Gate · Aster · Lighter                  │
    └─────────────────────────────────────────────────┘

Install

Linux / macOS

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

Railway

Deploy on Railway

Docker

curl -O https://raw.githubusercontent.com/NoFxAiOS/nofx/main/docker-compose.prod.yml
docker compose -f docker-compose.prod.yml up -d

Windows — install Docker Desktop, then:

curl -o docker-compose.prod.yml https://raw.githubusercontent.com/NoFxAiOS/nofx/main/docker-compose.prod.yml
docker compose -f docker-compose.prod.yml up -d

From source — Go 1.21+, Node.js 18+:

git clone https://github.com/NoFxAiOS/nofx.git && cd nofx
go build -o nofx && ./nofx            # backend
cd web && npm install && npm run dev  # frontend, in a second terminal

Update — re-run the install script; it upgrades in place.

Server deployment

HTTP

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

HTTPS via Cloudflare

  1. Add the domain to Cloudflare (free plan)
  2. A record → server IP, proxied
  3. SSL/TLS → Flexible
  4. TRANSPORT_ENCRYPTION=true in .env

Documentation

Getting StartedDeployment and exchange API guides
ArchitectureSystem design and module index
Strategy ModuleCoin selection, AI prompts, execution
FAQCommon questions
TroubleshootingDiagnosing 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.

ContributionWeight
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.

关于 About

Your AI trading terminal assistant for US stocks, commodities, forex, and crypto.
agentictradingaiai-tradingarbitragebinancebitcoincommoditiesexchangeforexhyperliquidmetalsperp-dexstockstradingus-stocksx402x402-agent

语言 Languages

Go59.9%
TypeScript38.0%
Shell0.7%
Python0.6%
CSS0.5%
JavaScript0.1%
Makefile0.1%
HTML0.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
1202
Total Commits
峰值: 436次/周
Less
More

核心贡献者 Contributors