SoulFire SDK
Build typed, event-driven Minecraft automation with the official TypeScript and Python SDKs.
The SoulFire SDK lets your own program control one bot or a fleet.
SoulFire handles Minecraft connections, reconnects, permissions, tasks, and plugins.
These guides describe SDK 2.10.8. The TypeScript SDK uses Effect v4.
The Python SDK uses effect-py and requires CPython 3.14 or newer.
Start here
- Install the SDK for your language.
- Run your first program in TypeScript or Python. It installs a local SoulFire server and sends one chat message.
- Reuse named instances and bots, or connect to a SoulFire server that is already running.
- Copy a recipe for a common job.
TypeScript
Compose operations with Effect and scoped streams.
Python
Compose operations with effect-py and yield from.
The app calls saved automation containers Projects. The SDKs keep the older name instance,
as in client.instance(...) and getOrCreateInstance. See names and compatibility.
Find the right guide
- Observe: events and state, world queries, registries, camera and maps.
- Act: player actions, pathfinding, inventory, durable tasks.
- Scale: beat-game runner, fleets, behaviors, server administration.
- Extend: plugins, raw protocol, migration from Mineflayer.
How the SDK is organized
SoulFire client
├── server metadata, administration, and plugins
└── instance(instanceId)
├── fleet lifecycle, selectors, and task groups
└── bot(botId)
├── synchronized state and events
├── world, registry, inventory, recipes, and chat
├── camera, player actions, and pathfinding
├── raw protocol access
└── durable tasksAn instance groups bots that share settings and permissions. Each Minecraft account is one bot in that instance.
How guide snippets run
Most guide snippets are fragments. They assume an open connection inside a scoped workflow. The first programs and recipes show the complete setup.
- TypeScript: put calls inside
Effect.genwithyield*, wrap the workflow inEffect.scoped, and run it once withEffect.runPromise. - Python: put calls inside an
@genfunction withyield from, wrap it inscoped, and run it once withrun_async.
The scope owns connections, subscriptions, and other resources. It closes them when the workflow ends. Keep code that reads a stream or session inside the same scope.
Actions, streams, and tasks
- An action is one short operation, such as sending chat or clicking a slot. It finishes as completed, cancelled, or failed.
- A stream delivers updates over time, such as chat, inventory, or task progress.
- A durable task is longer work that runs on the SoulFire server. You can read its progress, cancel it, or find it again by ID. See durable tasks.
bot.connect() starts the bot if needed and stops it again when the scope closes.
A bot that was already running stays running. See bot lifecycle.
API reference
The TypeScript API reference and Python API reference list every public class, method, and type. The server RPC reference covers the lower-level endpoints.
Last updated on
Was this page helpful?
