VT Code includes a pods command family for managing remote GPU-backed model pods over SSH. It is a backend + CLI
feature in v1, with no TUI integration and no vtcode.toml section.
The pod manager keeps a small amount of state under the user state directory's pods/ path:
state.jsonstores the active pod, running model names, ports, PIDs, and GPU assignments.catalog.jsonstores the model/profile catalog used bypods known-modelsandpods start.
The current implementation is SSH-only. VT Code uploads a run script and a wrapper script to the remote host, starts the model in a detached session, and tracks the process locally.
vtcode pods start --name llama --model meta-llama/Llama-3.1-8B-Instruct \
--ssh "ssh root@gpu.example.com" \
--gpu 0:A100 --gpu 1:A100 \
--gpus 2 \
--memory 90 \
--context 32k
vtcode pods list
vtcode pods logs --name llama
vtcode pods stop --name llama
vtcode pods stop-all
vtcode pods known-modelsLaunches a model on the active pod.
--nameis the local label VT Code stores instate.json.--modelis the remote model identifier passed to the launch script.--sshprovides the SSH target used for all remote operations.--gpuentries define the visible GPU inventory asID:NAME.--gpusrequests a specific GPU count when matching a profile.--profileforces a catalog profile when you do not want automatic selection.--memoryand--contextoverride the profile's default vLLM arguments.
Shows the running models for the active pod and classifies each one as:
runningstartingcrasheddead
Streams the remote log file for the selected model.
Splits the catalog into compatible and incompatible profiles for the active pod. Compatibility is based on the pod's GPU inventory and the profile's GPU requirements.
Stops a single model or every tracked model on the active pod, then updates the persisted state.
- The command family is isolated from the existing
modelscommands. - The first version does not add config-file support or TUI controls.
- The bundled catalog is intentionally editable at runtime by replacing
catalog.json. - The default launch flow assumes
vllm serve, but the command template is stored per profile.
Run the pod-focused tests with:
cargo test -p vtcode-core pods -- --nocapture