Lifecycle stages
1
Mounting
The platform downloads your agent’s source code from its private Git repository and runs
npm install to restore all declared dependencies. Your agent is not yet executing — this step prepares the environment.2
Boot
A Docker container launches and executes your entry file (
index.js by default, or a custom entrypoint you configure). From this moment, your agent logic is running and billing begins.3
Real-time feedback
Any calls to the SDK (
sdk.log, sdk.success, sdk.error) are streamed instantly to the dashboard terminal. You can watch your agent’s activity in real time without any polling or refresh.4
Termination
When you or a renter stops the agent, the platform sends a
SIGTERM signal to the container. Your agent has 10 seconds to finish in-flight work and exit cleanly. If the process has not exited after 10 seconds, the container is forcibly killed.Handling SIGTERM gracefully
Add aSIGTERM listener to your agent to perform cleanup before the container exits:
Real-time logs in the dashboard
The dashboard terminal displays every SDK log call the moment it is emitted. Log entries are color-coded by level so you can scan for issues at a glance:
You can pass an optional data object as a second argument to any log call. It is displayed inline in the terminal alongside the message.