agentkernel start / stop
Manage the lifecycle of persistent sandboxes.
start
Start a stopped sandbox.
Usage
Options
| Option | Description |
|---|---|
--backend <BACKEND> |
Override backend (usually auto-detected from saved state) |
Examples
What Happens
- Loads sandbox configuration from disk
- Uses the backend that was used when creating the sandbox
- Starts the container/VM
- Sandbox is now ready for
execorattach
stop
Stop a running sandbox. The sandbox state is preserved and can be started again.
Usage
Examples
# Stop a sandbox
agentkernel stop my-sandbox
# Verify it's stopped
agentkernel list
# NAME STATUS BACKEND
# my-sandbox stopped docker
What Happens
- Sends stop signal to the container/VM
- Waits for graceful shutdown
- Sandbox state is preserved on disk
- Can be started again with
agentkernel start
remove
Permanently delete a sandbox and its state.
Usage
Examples
# Remove a stopped sandbox
agentkernel remove my-sandbox
# Force remove a running sandbox (stops it first)
agentkernel remove my-sandbox
What Happens
- Stops the sandbox if running
- Removes the container/VM
- Deletes saved state from
~/.local/share/agentkernel/sandboxes/
Lifecycle Summary
| State | Can exec/attach? | Persisted? |
|---|---|---|
| Created (not started) | No | Yes |
| Running | Yes | Yes |
| Stopped | No | Yes |
| Removed | - | No |