Docs · Open source · game automation

Bitburner scripts

A full automation stack for the programming game Bitburner: hacking from an early single-target loop to endgame batching, augmentation buying, faction and backdoor planning, stock trading, gang, Bladeburner, hacknet and corporation management, and a coding-contract solver. The scripts live in a normal repository and a small bridge process syncs them into the running game, so nothing is edited in the in-game editor.

How it fits together #

bridge.mjs only pushes files from src/ into the game's filesystem over Bitburner's Remote File API; it runs no game script itself. The game connects to it on port 12525, and a second local port, 12526, is an HTTP control port to push files, fetch the type definitions or calculate a script's RAM cost.

The automation itself is started once inside the game by running /auto/main.js, and runs in Bitburner's own JavaScript sandbox.

Setup #

npm install
node bridge.mjs

Then, in Bitburner under Options, Remote API, set the hostname to localhost and the port to 12525 and connect.

Services behind this project: Integrations . Found a mistake? Open an issue.