Get a Windows VPS
Choose a Windows VPS with enough RAM and CPU for MetaTrader 5, Python, Codex and a browser. Keep the machine available continuously if you want the scheduler to run 24/7.
One clean sequence from an empty VPS to a running local dashboard: MT5, Node.js, Codex, environment setup, and the complete build prompt.
Finish each step before moving forward. Commands can be copied directly from the workbook.
Choose a Windows VPS with enough RAM and CPU for MetaTrader 5, Python, Codex and a browser. Keep the machine available continuously if you want the scheduler to run 24/7.
On your computer, open Remote Desktop, enter the VPS IP address, and sign in with the Windows username and password provided by your VPS company.
Install MT5 inside the VPS, open it, and sign in to the trading account you want the application to read. Keep the terminal running.
Install the current Node.js LTS release for Windows. Accept the standard installer options, then reopen Command Prompt so the new commands are available.
Open Command Prompt and install Codex globally.
Run Codex in Command Prompt. Choose the device-code sign-in flow, open the displayed verification URL in your browser, and enter the code shown in the terminal.
From the empty project folder where you want the bot created, start Codex with the following command.
Open the master prompt at the bottom of this workbook, copy it completely, and paste it into the Codex session. Let Codex create and verify the project.
Open Telegram and search for the verified @BotFather account. Send /newbot, choose a display name and a unique username ending in bot, then securely save the HTTP API token BotFather gives you.
Open your new bot from the link, tap Start, and send /start. To obtain your chat ID, open https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getUpdates in the VPS browser and copy the number shown inside message.chat.id.
Save as TELEGRAM_BOT_TOKENSave as TELEGRAM_CHAT_IDAfter the project is built, open its .env file and add your own credentials and local paths. Paste the Telegram token and chat ID saved in the previous step. Never share this file publicly.
DEEPSEEK_API_KEYMT5_PATHTELEGRAM_CHAT_IDTELEGRAM_BOT_TOKENTell Codex in plain English: “Run the app, fix any startup errors, and tell me the local dashboard address.” Keep the terminal open while it starts the application.
Copy the localhost address Codex provides and open it in the browser inside the VPS. The default requested by the build brief is http://127.0.0.1:8765. Begin in Preview or Sim mode before connecting execution.
Loading the master prompt…
Start with Preview or Sim mode. Do not enable demo or live execution until you have reviewed the generated project, configured the correct MT5 account, and completed controlled testing.