Stop a rental
End a rental from the app, the SDK, the CLI or MCP, and see its final settlement land.
Stopping ends the machine and charges the seconds since the last settlement. You need the instance id of a rental that is running, from Rent a GPU.
#Stop it
App
Stop
Press Stop on the instance page. The button shows Stopping… while it works.
Wait for the final settlement
The instance shows
settling. A moment later the final settlement lands and it turnsstopped, with its Final settlement on the page.
SDK
const { instance } = await shader.stop(id)The answer comes back at settling; read it again with instance(id) to see it stopped.
CLI
shader stop <instance>It prints the instance at settling; shader instance <instance> shows it stopped once the last stretch lands.
MCP
Call stop_gpu with instance_id, then get_instance until it is stopped.
#What happened
Shut down
The machine was removed.
Final settlement
The backend counted the seconds since the last settlement and settled them in one last line, as it does every 60 seconds while a rental runs.
#The receipt
The last line is a rental_settle receipt with the remaining seconds. A rental that ran 122 seconds has three: 60, 60, then 2 at stop.
#Afterwards
A rental also stops without you: when the credit balance reaches zero, and, for an agent, before a settlement would pass the key's caps. Its page then says why it ended. After a crash, list what is still running with Instances, shader instances or instances(), and stop what you no longer need.
#If it fails
| What you see | Why | Next |
|---|---|---|
INSTANCE_NOT_STOPPABLE | It is already stopping, stopped or failed | Nothing to do |
NOT_FOUND | No instance with that id for this wallet or key | Check the id with instances |
Stuck at settling | The final settlement has not landed yet | Read the instance again in a moment |