Skip to content
SoulFire LogoSoulFire

Run the dedicated JAR with Java

Start a local SoulFire server with Java 25, create an API token, and verify client access.

The dedicated JAR starts a SoulFire server independently of a desktop client. It keeps bot sessions running after remote clients disconnect. Use Docker if you prefer a managed container.

Prepare Java and the JAR

Install Java 25 and check the executable:

java -version

Download the dedicated JAR from Downloads. Place it in an empty deployment directory and open a terminal there. Use the exact downloaded filename in the command below. The SoulFire server uses this working directory for its persistent data.

Start a local listener

java -Xmx2G -XX:+EnableDynamicAgentLoading -Dsf.grpc.host=127.0.0.1 -jar SoulFireDedicated.jar

SoulFireDedicated.jar represents the downloaded filename. Released assets can include a version suffix. The 2 GB heap illustrates a small trial, not a bot-capacity guarantee. The first start can take longer while the launcher prepares its dependencies and data. Wait for the SoulFire server to finish loading before connecting a client.

The SoulFire server can print recommended JVM tuning flags. Those flags tune performance. The sf.flags.v2 property acknowledges that warning; it does not apply the flags itself. Use measured SoulFire server performance to choose a heap and tuning settings.

Generate an API token

In the server's interactive console, run:

generate-token api

Open the desktop app and select Connect to a SoulFire server. Use http://127.0.0.1:38765 and the generated token for a client on the same computer. Expect the project pages to load. Then connect one bot to check the complete workflow.

Configure the listener

PropertyDefault for dedicated modePurpose
sf.grpc.host0.0.0.0Address to bind
sf.grpc.port38765API port

Without -Dsf.grpc.host, the API listens on all network interfaces over plain HTTP. Anyone who can reach the port can try to log in, and tokens cross the network unencrypted.

Pass system properties before -jar. This example listens only on loopback and moves the API to port 38766, for example because another SoulFire server uses 38765:

java -Xmx2G -XX:+EnableDynamicAgentLoading -Dsf.grpc.host=127.0.0.1 -Dsf.grpc.port=38766 -jar SoulFireDedicated.jar

For remote clients, keep the listener on loopback and put a reverse proxy or tunnel with HTTPS in front of it. See Manage access and HTTPS. A remote client's 127.0.0.1 refers to that client, not this SoulFire server.

Other listener properties

PropertyDefaultPurpose
sf.grpc.tls.enabledfalseServe HTTPS directly from the SoulFire server
sf.grpc.tls.cert(none)PEM certificate chain file for HTTPS
sf.grpc.tls.key(none)PEM private key file for HTTPS
sf.grpc.tls.key.password(none)Password for an encrypted private key
sf.grpc.proxy-protocolfalseAccept the PROXY protocol header from a load balancer
sf.prometheus.enabledfalseStart a Prometheus endpoint at /metrics
sf.prometheus.port9090Port of the Prometheus endpoint

With built-in HTTPS, the API port still accepts plain HTTP, so keep the port firewalled from untrusted networks. The Prometheus endpoint binds to the same address as sf.grpc.host and has no authentication.

Store properties in a file

Instead of -D flags, you can put sf.* properties in soulfire.properties in the working directory, one key=value per line. The SoulFire server reads the file at startup and ignores lines that start with #. A value in the file replaces the same property passed with -D. Keys that do not start with sf. are rejected, so set database and mysql.* properties with -D flags.

soulfire.properties
sf.grpc.host=127.0.0.1
sf.grpc.port=38765

Console and shutdown

-Dterminal.jline=true or false controls the interactive terminal. -Dterminal.ansi=true or false controls terminal colors.

Pause scripts and stop bots before maintenance. Run stop in the SoulFire server console for a clean shutdown. Restart from the same directory to preserve its saved data. Use backup and restore before replacing the JAR or moving that directory. If the SoulFire server does not start or clients cannot connect, see Dedicated server and Docker troubleshooting.

Last updated on

Was this page helpful?