Manage Agents
Agent Lifecycle Controls
Control compute costs and agent availability with simple commands:
moltghost agent start my-agent # βΆοΈ Full compute
moltghost agent stop my-agent # βΈοΈ Storage only (-95% cost)
moltghost agent restart my-agent # π Fresh runtime
moltghost agent delete my-agent # ποΈ Release all resources
Live Status:
moltghost agent status my-agent --watch
# NAME: sales-agent STATUS: Running UPTIME: 2h14m GPU: 23% COST: $0.0417/h
State Machine
graph TD
A[Deployed] -->|start| B[Running]
A -->|never started| C[Paused]
B -->|stop| C
C -->|start| B
B -->|restart| D[Restarting]
D --> B
B -->|terminate| E[Terminated]
C -->|terminate| E
E -->|redeploy| A
classDef running fill:#90EE90
classDef paused fill:#FFA500
classDef terminated fill:#FFB6C1
class B running
class C paused
class E terminated
Management Operations
| Command | Purpose | Compute Cost | Endpoint | Data |
|---|---|---|---|---|
start | Launch runtime + model | β Full | β Active | Preserved |
stop | Pause runtime | β GPU/CPU β Storage | 503 Unavailable | Preserved |
restart | Fresh runtime init | Brief double | Brief 503 | Preserved |
delete | Destroy pod | β None | Gone | Backup only |
Start Agent
moltghost agent start my-agent
# βΆοΈ Starting runtime... (45s)
# β
Model loaded Endpoint: https://abc123.agent.moltghost.io
Stop Agent (Saves 95% cost)
moltghost agent stop my-agent
# βΈοΈ Pausing... State saved
# π° GPU released Storage only: $0.0021/h
Restart Agent (Zero downtime option)
moltghost agent restart my-agent --graceful
# π Rolling restart initiated
# β
New pod healthy 0s downtime
Terminate Agent
moltghost agent delete my-agent --confirm
# ποΈ Pod terminated Resources released
# π Backup available for 30 days
Cost Impact Dashboard
Current Month: 12 Agents
βββββββββββββββββββββββ¬βββββββββββ¬βββββββββββ
β Agent β State β Cost/h β
βββββββββββββββββββββββΌβββββββββββΌβββββββββββ€
β sales-agent β Running β $0.0417 β
β dev-chat β Paused β $0.0021 β
β qa-bot β Running β $0.0234 β
β legacy-agent β Paused β $0.0012 β
βββββββββββββββββββββββΌβββββββββββΌβββββββββββ€
β TOTAL RUNNING β β $0.0891 β
β TOTAL PAUSED β β $0.0078 β
β SAVINGS FROM PAUSE β β **$1.24**β
βββββββββββββββββββββββ΄βββββββββββ΄βββββββββββ
Bulk Operations:
# Pause all dev agents
moltghost agent stop dev-* --batch
# Start production agents
moltghost agent start prod-* --batch
# Cleanup terminated
moltghost cleanup --age 7d
Advanced Management
Auto-Pause Policies
moltghost agent set my-agent \
--auto-pause "cpu<5% for 15m" \
--auto-start "cron 09:00-17:00 WIB"
Health-Based Actions
moltghost agent set prod-agent \
--restart-if "gpu_temp>85C or error_rate>5%" \
--alert-slack "#ops"
Blue-Green Deployments
moltghost deploy sales-v2 \
--traffic 10% \ # Canary testing
--auto-promote-healthy
State Transitions Table
| From β To | start | stop | restart | delete |
|---|---|---|---|---|
| Running | - | β Pause | β Refresh | β Destroy |
| Paused | β Resume | - | β Resume+Refresh | β Destroy |
| Terminated | β Redeploy | β | β | - |
| Deploying | β³ Wait | β | β | β Cancel |
Data Safety:
β
start/stop/restart β 100% state preserved
β
delete β Backup retained 30 days (Pro)
β
Accident? β moltghost restore --latest
Monitoring Integration
Live Dashboard: https://app.moltghost.io/agents
ββββββββββββββββ¬βββββββββββββββ¬βββββββββββββ
β Agent β Status β Action β
ββββββββββββββββΌβββββββββββββββΌβββββββββββββ€
β sales-agent β π’ Running β[βΈοΈ][π][ποΈ]β
β dev-chat β π‘ Paused β[βΆοΈ][π][ποΈ] β
β qa-bot β π΄ Failed β[π][ποΈ] β
ββββββββββββββββ΄βββββββββββββββ΄βββββββββββββ
CLI Watch Mode:
moltghost agent watch "*" --cost --alerts
Summary
Full Lifecycle Control in 1 command:
β
start/stop β 95% cost savings
β
restart β Zero-downtime updates
β
Auto-policies β Hands-free optimization
β
Bulk ops β Manage 100+ agents
β
State guarantees β Never lose data
Run production, pause dev, scale smart.
Next: Update & Versioning β Schema changes, rollbacks
Power User: moltghost agent stop --idle across all accounts saves $100s/month.