factor technologies
Reference

CLI reference

gft is the command-line tool for GFT Studio. Run gft --help, or gft <command> --help, to see every option. Install it with the Quickstart.

Settings#

NameMeaning
--jsonPrint machine-readable JSON. Put it before the command: gft --json run list.
--yes, -ySkip the cost confirmation on billable commands.
GFT_API_URLAPI origin. Use https://studio.g-ftech.com; the default is http://127.0.0.1:8787.
GFT_API_KEYAPI key for scripts. Takes priority over the saved key.
GFT_STUDIO_API_TOKENToken for a local Studio operator API, used by --local and gft deploy bundle.
~/.config/gft/config.tomlWhere gft login saves your key, readable only by you.

Account#

CommandWhat it does
gft loginCheck an API key and save it.
gft logoutDelete the saved key. The key stays valid on the server.
gft whoamiShow the current user and organization.
gft doctorCheck API health and authentication.

Gyms#

CommandWhat it does
gft env listSearch and filter gyms: --ready, --evaluation-ready, --search, --family, --provider, --source, --owner, --status, --limit.
gft env info <slug>Show one gym, its readiness and schemas.
gft env add <manifest>Publish a gym whose implementation is installed on the Hub.
gft env push <wheel> --manifest <file>Upload a wheel and build its sandbox. Add --follow to wait.
gft env connectionsList private gym connections.
gft env connect --manifest <file>Publish a gym backed by --image or --connection.

Training and evaluation#

CommandWhat it does
gft train start <slug> --model <model>Start a GRPO training run. See Train with RL.
gft eval start <slug> --model <model>Start a held-out evaluation. See Evaluate a model.
gft run listList runs. Filter with --kind training or --kind evaluation.
gft run show <id>Show one run or evaluation.
gft run watch <id>Follow a run until it finishes. Add --exit-status for scripts.
gft run cancel <id>Cancel a run or a queued evaluation.

Models and inference#

CommandWhat it does
gft deploy artifactsList promoted adapters you can deploy.
gft deploy start <artifact-id>Provision, canary-test and activate an adapter.
gft deploy list, show, token, removeManage adapter deployments.
gft deploy machines <model>List cloud machine tariffs for a model.
gft deploy cloud <model>Deploy a model on a cloud machine.
gft deploy bundlePrepare a Helm bundle for your own cluster.
gft chat <model> <prompt>Send a prompt. Add --stream to print tokens as they arrive.
gft bench <model>Measure latency and throughput.

Containers#

CommandWhat it does
gft image add <reference>Register an image by digest. Add --private for a private registry.
gft image listList registered images.
gft container capabilitiesShow tariffs, modes and whether containers are available.
gft container run <image-id>Start a job or a service.
gft container list, get, logs, outputs, stopInspect, download results from and stop runs.
gft container request <run-id>Send one HTTP request to a running service.
gft container shell <run-id>Open an interactive terminal.

Python SDK#

The same package provides a Python client. Client() reads GFT_API_URL and GFT_API_KEY:

python
from gft_client import Client

with Client() as client:
    print(client.me())
    for environment in client.environments.list():
        print(environment)

The client exposes environments, runs, benchmarks, deployments, chat, images and containers. It retries reads and idempotent writes automatically after network errors and 429, 502, 503 or 504 responses.