How runtm-ai/runtm works
Runtm provides local, isolated workspaces for coding agents and a hosted deployment control plane. The main workflow is to start a sandbox, let an agent build in it, and deploy the result to a live URL; users can then inspect logs and iterate. The graph also includes the documented hosted API/worker deployment path, agent adapters, and shared telemetry. Some deployment internals are unsampled, so those links are marked unverified rather than presented as confirmed calls.
Main entry points: runtm_api/main.py API Application · session.py Session Commands · deploy.py Deploy Commands · runtm_worker/main.py Deployment Worker
Components 20
User CLIs
- Python CLI
packages/cli/runtm_cli/main.py - Session Commands
packages/cli/runtm_cli/commands/session.py - Deploy Commands
packages/cli/runtm_cli/commands/deploy.py - Agent API CLI
packages/agent/internal/cmd/session.go
Local Agent Sessions
- Local Sandbox
packages/sandbox/runtm_sandbox/providers/local.py - Session State
packages/sandbox/runtm_sandbox/state.py - Agent Runner
packages/agents/runtm_agents/runner.py - Agent Adapters
packages/agents/runtm_agents/adapters/base.py
Hosted Control Plane
- API Application
packages/api/runtm_api/main.py - Deployment Routes
packages/api/runtm_api/routes/deployments.py - API Repository
packages/api/runtm_api/db/repository.py - API Database
packages/api/runtm_api/db/models.py
Deployment Runtime
- Deployment Worker
packages/worker/runtm_worker/main.py - Deployment Job
packages/worker/runtm_worker/jobs/deploy.py - Docker Builder
packages/worker/runtm_worker/builder/docker.py - Fly Provider
packages/worker/runtm_worker/providers/fly.py
Shared Capabilities
- Domain Types
packages/shared/runtm_shared/types.py - Telemetry Service
packages/shared/runtm_shared/telemetry/service.py
Other components
- Developer
- Live Service
Connections 21
- Developer → Python CLI: runs commands
README.md - Python CLI → Session Commands: dispatches sessions
packages/cli/runtm_cli/main.py - Session Commands → Local Sandbox: creates sandbox
packages/cli/runtm_cli/commands/session.py - Session Commands → Session State: records session
packages/cli/runtm_cli/commands/session.py - Session Commands → Agent Runner: runs agent
- Agent Runner → Agent Adapters: uses adapter
- Developer → Agent API CLI: drives hosted API
README.md - Developer → Deploy Commands: requests deploy
README.md - Deploy Commands → API Application: calls hosted API
- API Application → Deployment Routes: includes routes
packages/api/runtm_api/main.py - Deployment Routes → API Repository: persists deployment
- API Repository → API Database: uses models
packages/api/runtm_api/db/repository.py - API Application → Deployment Worker: queues deployment
- Deployment Worker → Deployment Job: processes job
packages/worker/runtm_worker/main.py - Deployment Job → Docker Builder: builds image
- Deployment Job → Fly Provider: deploys workload
- Fly Provider → Live Service: provisions endpoint
README.md - Deploy Commands → Live Service: deploys to URL
README.md - API Application → Domain Types: loads configuration types
- Deployment Worker → Domain Types: uses limits
packages/worker/runtm_worker/main.py - API Application → Telemetry Service: exports telemetry