DEV Community

TateLyman
TateLyman

Posted on

Deploy a Solana Trading Bot 24/7 for Free on Oracle Cloud

Running a trading bot 24/7 costs $0 on Oracle Cloud's Always Free tier.

Why Oracle Cloud?

The Always Free ARM instance gives you 1 OCPU + 6 GB RAM — forever, no charges. Perfect for a Node.js bot.

Quick Setup

  1. Create VM.Standard.A1.Flex instance with Ubuntu 22.04
  2. SSH in, install Node.js 20
  3. Upload bot files: scp bot.js package.json .token ubuntu@IP:~/solbot/
  4. npm install

Run as systemd Service

[Service]
Type=simple
ExecStart=/usr/bin/node bot.js
Restart=always
RestartSec=5
Enter fullscreen mode Exit fullscreen mode

Enable + start:

sudo systemctl enable solbot && sudo systemctl start solbot
Enter fullscreen mode Exit fullscreen mode

Bot runs 24/7, auto-restarts on crash, survives reboots. Zero cost.

Monitoring

Add a health endpoint + UptimeRobot (free tier). Get Telegram alerts when bot goes down.

My Setup

@solscanitbot runs exactly this way — 4,500 lines of Node.js, 44+ commands, $0/month.

Want to deploy your own? Source code — 2 SOL

Also: Free dev tools | Grid bot | DeFi toolkit

Top comments (0)