Do it all script?

# STEP 1: Install Node.js (via Homebrew)
brew install node

# STEP 2: Create agent folder and set up Node project
mkdir raysuite-agent && cd raysuite-agent
npm init -y

# STEP 3: Install required libraries
npm install simple-git express ngrok dotenv

# STEP 4: Create .env file for GitHub token and repo
cat < .env
GITHUB_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxxxxx
REPO=ray2407/bingo-checker
EOF

# STEP 5: Create bridge.js remote control agent
cat < bridge.js
require(‘dotenv’).config();
const simpleGit = require(‘simple-git’);
const express = require(‘express’);
const app = express();
const git = simpleGit();
const port = 3000;

app.use(express.json());

app.post(‘/push’, async (req, res) => {
try {
const { message, fileName, content } = req.body;

require(‘fs’).writeFileSync(fileName, content);
await git.add(fileName);
await git.commit(message);
await git.push(‘origin’, ‘main’);

res.send(‘✅ Code pushed successfully!’);
} catch (e) {
res.status(500).send(‘❌ Push failed: ‘ + e.message);
}
});

app.listen(port, () => {
console.log(\`🧠 RAYSUITE agent ready at http://localhost:\${port}\`); });
EOF

# STEP 6: Start the agent and open ngrok tunnel
node bridge.js &
npx ngrok http 3000

Leave a comment