Skip to content

CLI reference

The turion CLI ships in the turion Python package, together with the Python SDK. This page describes version 0.2.0. It needs Python 3.11 or newer:

Terminal window
uv tool install turion
# or: pipx install turion

turion --version prints the installed version, and turion with no arguments prints the help. uv tool upgrade turion updates it.

Results go to stdout. Progress, hints and errors go to stderr. Most read commands take --json for the raw API objects.

On a terminal, tables are drawn, statuses are coloured, uploads and evals show progress bars, and turion train shows a live view of the job. When the output is piped or written to a log, every command prints plain lines instead: tables are columns separated by two spaces, so grep and cut work on them.

VariableEffect
NO_COLOR (any value), TERM=dumbplain lines even on a terminal
TURION_NO_PROGRESS=1no spinners, progress bars or live views; tables and result panels still render
Exit codeMeaning
0success, including Ctrl-C while following a training job or an agent run (it keeps going)
1failure, printed as error: <code>: <message>; also a declined confirmation
2usage error (an unknown flag, a bad value), and turion host given a source it cannot import

Commands that delete or replace something (datasets rm, agent rm, keys revoke, providers rm, webhook secret --rotate) ask first; --yes (-y) skips the question. Without a terminal to ask on they stop with pass --yes to … instead, so a script must pass --yes.

What the common error codes mean, and how to fix each, is in Troubleshooting.

Apply before the subcommand: turion --token tk_… bases.

OptionEnvDescription
--tokenTURION_API_TOKENAPI key to use instead of the saved one
--base-urlTURION_BASE_URLAPI base URL to use instead of the saved one
--version—print turion <version> and exit
--install-completion—install shell completion for the current shell
--show-completion—print the completion script, to install it yourself

Each value resolves in this order: the option, the environment variable, then the config file turion login writes: ~/.config/turion/config.json ($XDG_CONFIG_HOME/turion/config.json when XDG_CONFIG_HOME is set, %APPDATA%\turion\config.json on Windows; TURION_CONFIG_PATH names another file). An older ~/.turion/config.json is read until that file exists; see Config file and precedence. For the key, TURION_API_KEY is read when TURION_API_TOKEN is not set; it is the variable a deployed agent receives.

Other environment variables: TURION_REGISTRY sets the container registry for login, host, migrate and cog (default: the one turion login saved, else registry.turion.ai), and REPLICATE_API_TOKEN is needed by host and migrate for Replicate sources.

turion --help groups the commands into four panels, and this page follows the same order:

PanelCommands
Train & servebases, datasets, train, jobs, eval, deploy, undeploy, chat, decide, extract, model
Agentsagent, brain, traces, providers
Accountlogin, logout, account, usage, keys, fleet, webhook
Image models (Cog)run, host, migrate, cog, prediction

The command groups and their subcommands:

GroupSubcommands
turion datasetsupload, convert, import, push, list, get, rm
turion jobslist, get, logs, cancel
turion modellist, get, set, archive
turion agentnew, run, deploy, list, get, pull, logs, eval, traces, distil, route, rm, secrets
turion agent secretsset, list, rm
turion brainstatus, overview, ask, search, show, schema, agents, tools, connect, disconnect, sync, matches, match, inbox, chat
turion brain inboxlist, show
turion brain chattelegram
turion brain chat telegramlist, link, unlink
turion traceslist, get
turion providersset, list, rm
turion keyscreate, list, revoke
turion fleetcreate, list, get, join-token, revoke-token, delete
turion webhooksecret, deliveries, retry
turion cogdeploy, build, push, predict
turion predictionget, list, cancel, logs, stream

Older spellings that still work but are not listed in --help are in Hidden aliases.

Fine-tune a base model on your data, score it on an eval set, deploy it behind the OpenAI-compatible gateway and call it. Decision models (typed answers with probabilities) train, deploy and answer through the same commands, plus turion decide. Extract models (typed fields from a document) deploy from a base with turion deploy --base and answer turion extract.

Without ID, a table of the base models turion train can fine-tune, smallest first: id, name, parameters, training methods (the default marked *), the GPU memory training with the default method needs, and the licence. After them come the bases that are ready to use: you deploy them as they are and call them, and they cannot be trained. They show ready to use (extract), the runtime in brackets. --all also lists the teachers: frontier models used to label data, which show teacher and cannot be trained.

With ID, one base in detail: its runtime (chat, extract (POST /v1/extract) or decision (POST /v1/systemone)), vendor, parameters, context length, input (text, or text and images), methods, GPU memory to train per method and to serve, whether a fine-tune of it parses tool calls, licence, weights, what it is good for and notes. An ID that is not in the catalog is a usage error that lists the catalog ids.

Any other Hugging Face model trains with --base hf:<org>/<repo>, provided the repo is public and not gated (422 base_not_public otherwise).

Argument / optionDefaultDescription
ID—show one base in detail
--alloffalso list the teacher models
--jsonoffraw JSON instead of the table
Terminal window
turion bases
# ID NAME PARAMS METHODS MIN VRAM LICENCE
# qwen3.5-0.8b Qwen3.5 0.8B 0.8B lora*, full, decision 4 GB Apache-2.0
# qwen3.5-2b Qwen3.5 2B 2B lora*, full, decision 8 GB Apache-2.0
# …
# gemma-4-e4b Gemma 4 E4B 4.5B … lora*, qlora, full, decision 18 GB Apache-2.0
# ministral-3-8b Ministral 3 8B ~8.8B lora*, qlora, full, decision 24 GB Apache-2.0
# …
# qwen3.8-27b Qwen3.8 27B 27B lora* 56 GB Apache-2.0
# …
# turion-extract-alpha Turion Extract alpha 12B ready to use (extract) — Apache-2.0
#
# * default method · MIN VRAM to train with it · details: turion bases ID
# any Hugging Face model: --base hf:<org>/<repo> · 2 teacher models: --all
# serve one as is, without training: turion deploy --base ID
# ready to use: not trainable; deploy as is, call with turion extract MODEL
turion bases gemma-4-e4b
# base gemma-4-e4b Gemma 4 E4B
# runtime chat
# vendor Google
# params 4.5B effective (~8B incl. per-layer embeddings)
# context 131,072 tokens
# input text, images
# methods lora*, qlora, full, decision
# train lora 18 GB, qlora 10 GB, full 64 GB
# serve 24 GB
# tool calls yes
# licence Apache-2.0
# weights https://huggingface.co/google/gemma-4-E4B-it
# good for on-device, extraction, routing
# notes LoRA ~17 GB. Full fine-tune needs 8-bit AdamW and gradient checkpointing.
#
# train on it: turion train --base gemma-4-e4b --data data.jsonl
# deploy it as is: turion deploy --base gemma-4-e4b

Training data. Every upload is validated and normalised on your machine first, so a bad record is reported as file:line before anything is sent, and exact duplicates are dropped and counted. A Hugging Face dataset repo is copied in with turion datasets import and a dataset sent to one with turion datasets push, using the token from turion providers set huggingface.

Accepted inputs, one format per dataset:

InputFormatRecord
JSONL with messageschat{"messages": [{"role", "content", "tool_calls"?, "tool_call_id"?, "name"?}], "tools"?: [...]}
JSONL with prompt / completionprompt_completion{"prompt": "…", "completion": "…"}
JSONL with texttext{"text": "…"}
JSONL with question / questionsdecision{"state": …, "question": {…}, "answer": …}, plus two shapes expanded into it (Decision models → Dataset format)
CSV with a prompt,completion headerprompt_completionone row per example
a folder of .jsonl / .csv filesthe files’ formatall files must share one format

A chat record needs at least one assistant message. Roles are system, developer, user, assistant and tool; content is a string or a list of text parts (training data is text only). Eval files may also carry expected, match and threshold per record (see turion eval); those keys are kept.

Argument / optionDefaultDescription
PATH(required)JSONL file, CSV file, or a folder of them
--namefile/folder stemdataset name
--eval-split F—hold out this share (0–0.5, e.g. 0.1) as a second dataset <name>-eval; the split is deterministic. 0 uploads one dataset
--jsonoffprint the dataset(s) as JSON
Terminal window
turion datasets upload support.jsonl --eval-split 0.1
# validated support.jsonl: chat, 1,197 examples, 3 duplicates dropped
# uploaded ds_0123456789abcdef support (1,077 examples, train)
# uploaded ds_fedcba9876543210 support-eval (120 examples, 0.1 held out for eval)
# ds_0123456789abcdef ds_fedcba9876543210
# train on it: turion train --base gemma-4-e4b --data ds_0123456789abcdef --evals ds_fedcba9876543210

Only the dataset ids go to stdout. A local problem fails before upload with error: invalid_dataset: support.jsonl:42: …. If the server’s own check rejects the upload, the error carries its line numbers too.

Convert spreadsheets, exports, documents and mailboxes into a Turion dataset with the data-converter agent on your account. Each path is uploaded (a folder is zipped first), the agent runs on them, and the new dataset’s id goes to stdout. The CLI carries the agent’s code: the first run deploys it to your account, after asking on a terminal (--yes skips the question).

Argument / optionDefaultDescription
PATH...(required)files or folders, any mix of formats
--formatautoauto, chat, prompt_completion, text or decision
--instructions TEXT—what the data is and what the model should learn
--namefirst path’s stemdataset name
--max-synthesized N500cap on examples written from documents
--agentdata-converterthe converter agent to run
--push hf:OWNER/NAME—then push the new dataset to this Hugging Face dataset repo, created private when missing, and print its URL (see datasets push)
--jsonoffprint the agent’s result as JSON (with --push, the finished transfer under push)
--yes, -yoffdeploy the data-converter agent without asking when the account has none (another --agent name is never deployed)
Terminal window
turion datasets convert ./raw --format chat --instructions "support replies" --name support
# uploaded 2 files (2 MB)
# tickets.csv map 1,180 records
# faq.md synthesize 40 examples
# chat, 1,217 examples; dropped 3 duplicates
# ds_0123456789abcdef
# train on it: turion train --base gemma-4-e4b --data ds_0123456789abcdef

Each source line says how the file was handled: map (rows filled into templates), synthesize (examples written from a document), passthrough (already in a Turion format) or skip (with the reason). The last line counts the duplicates and invalid records dropped, followed by the first reasons. Only the dataset id goes to stdout, followed by the repo’s URL with --push. The command waits for the run with no time limit; Ctrl-C stops waiting, not the run.

Two checks come before anything is uploaded. Without the agent deployed, and with no terminal to ask on and no --yes (or a “no” to the question), the command exits 1 with error: converter_not_deployed: no agent named data-converter on this account and hint: run it again with --yes to deploy the converter now. With --agent NAME and no agent of that name, the hint is hint: deploy your converter as NAME first, or leave out --agent to use data-converter; another name is never deployed for you. Files over 100 MiB in all exit 1 with error: input_too_large: … is over the converter's 100 MiB limit and hint: convert it in parts (one folder or file per run); a run that finds more than 100 MiB once archives are unpacked ends with the same error and hint. Any other failed run exits 1 with error: conversion failed: … (for example no valid examples: … with the agent’s reasons) and the turion agent logs command for it. With --push, a push that fails exits 1 after the dataset is made, and says the turion datasets push command that sends it again. A run is capped at 1 hour; Convert data covers the file types, the modes and what reaches the model.

Copy a split of a Hugging Face dataset repo into a new dataset. The copy runs on the server with the token from turion providers set huggingface; the command waits for it (a spinner on a terminal, a waiting … line every few seconds when piped) and prints the new dataset’s id on stdout. Ctrl-C stops waiting; the import keeps going and the dataset shows in turion datasets list once it is done. Importing a repo again at the same commit gives the same dataset back.

Argument / optionDefaultDescription
REF(required)hf:owner/name[@revision][:split]: a branch, tag or commit after @ (default: the repo’s default branch), a split after : (default: train)
--namethe repo’s namedataset name
--jsonoffprint the finished transfer as JSON
Terminal window
turion datasets import hf:acme/support-tickets
# imported acme/support-tickets into ds_0123456789abcdef (train split, commit 3f9a1c2, 1,200 examples)
# ds_0123456789abcdef
# train on it: turion train --base gemma-4-e4b --data ds_0123456789abcdef
turion datasets import hf:acme/support-tickets@v2:test --name support-evals

The repo’s files for that split (.jsonl, .parquet or .csv; which ones) must hold records in a Turion format, up to the 2 GiB dataset limit. Anything else fails with dataset_invalid, and the message gives the hf download … && turion datasets convert raw commands that convert the repo instead. A failed import exits 1 with the error and what to do about it:

ErrorHint
hf_token_missing, hf_token_invalidturion providers set huggingface (a token from https://huggingface.co/settings/tokens; write access to push)
hf_repo_not_foundcheck the repo name; a private repo needs a token that can read it
hf_forbiddenaccept the dataset’s terms on huggingface.co, or use a token with write access to push
hf_no_datahf:owner/name:SPLIT imports another split; files in another layout: download them and run turion datasets convert on them
hf_unavailabletry again in a few minutes

turion datasets push ID --to hf:OWNER/NAME

Section titled “turion datasets push ID --to hf:OWNER/NAME”

Push a ready dataset to a Hugging Face dataset repo as data/train.jsonl, in one commit (with a README.md dataset card when the repo has none; other files are left as they are). The repo is created when missing, private unless --public; an existing repo keeps its visibility. The token from turion providers set huggingface needs write access. The repo’s URL goes to stdout once the push is done.

Argument / optionDefaultDescription
ID(required)dataset id (ds_…), status ready
--to hf:OWNER/NAME(required)the dataset repo (no @revision or :split)
--publicoffcreate the repo public
--jsonoffprint the finished transfer as JSON
Terminal window
turion datasets push ds_0123456789abcdef --to hf:acme/support-tickets
# pushed ds_0123456789abcdef to acme/support-tickets (commit 8b1d0e4)
# https://huggingface.co/datasets/acme/support-tickets

Your datasets, newest first: id, name, status (uploading, ready, invalid), format, examples, estimated tokens, source (upload, traces or hf) and when each was created (3d ago). --limit N (default 50, at most 500), --json for the raw list.

One dataset: status, format, examples and duplicates, token estimate, size, source (and the agent, for a dataset built from traces) and, for an invalid one, why. --json for the raw object.

Delete a dataset and its file. Asks first unless --yes/-y. Refused (409 dataset_in_use) while a queued or running job trains on it.

Fine-tune a base model on your data, then follow the job until it finishes. Local --data / --evals paths are validated and uploaded first; a ds_… id is used as is; an hf:owner/name[@revision][:split] ref is imported first, as turion datasets import does.

OptionDefaultDescription
--base(required)base id from turion bases, or hf:<org>/<repo>
--data(required)training data: file, folder, ds_… id or hf:owner/name[@revision][:split]
--evals—eval set (file, folder, ds_… id or hf:…), scored on the base and the tuned model
--eval-split Fthe trainer holds out 0.1 (0.2, in whole states, for decision)hold out this share of --data as the eval set, 0–0.5 (split locally for a path, by the trainer for an id). 0 trains on all of it. Cannot be combined with --evals
--methodthe base’s default; decision for decision datalora, qlora or full, or decision: a decision model trained on decision data
--epochs N3 (10 for decision)passes over the data (1–10)
--lr F2e-4 (LoRA/QLoRA), 1e-5 (full), 1e-3 (decision)learning rate
--rank N16LoRA rank (4–128)
--max-seq-len N4096 (1024 for decision)max tokens per example (256–32768)
--batch-size N4 (16 for decision)examples per device step (1–64); lower it to save memory
--name<base>-<6 characters of the job id>name of the resulting model, which becomes <handle>/<name>
--fleetturionfleet to train on
--detachoffprint the job id and return
--jsonoffprint the created job as JSON and return

The defaults are the server’s; anything you leave out is filled in on the job (hyperparameters). Local decision data trains with --method decision without the flag; --method lora, qlora or full on decision data, or --method decision on any other format, is a usage error before anything is uploaded.

When the job is created, train prints the number of examples and optimizer steps, and warns when there are fewer than about 30 steps. On a terminal it then draws the job live on stderr: the dataset, the GPU, a spinner while it waits for a node, loads the base and scores the evals, a bar per epoch with its loss, then the adapter and the eval result. It ends with one line that gives how long the job took, its id and next: turion deploy …. Piped, it prints one line per phase and the training progress at most every 30 seconds:

Terminal window
turion train --base gemma-4-e4b --data support.jsonl \
--evals evals.jsonl --name support-v3 2>&1 | cat
# validated support.jsonl: chat, 1,197 examples, 3 duplicates dropped
# uploaded ds_0123456789abcdef support (1,197 examples)
# validated evals.jsonl: chat, 50 examples, no duplicates
# uploaded ds_fedcba9876543210 evals (50 examples)
# job ft_0123456789abcdef queued (base gemma-4-e4b, lora)
# 1,197 examples · 225 optimizer steps over 3 epochs
# starting launching the trainer
# downloading fetching the base model and the data
# baseline eval scoring the base model on the eval set
# training
# epoch 2/3 ▕█████░░░░░▏ loss 1.210 step 120/225 eta 7m
# tuned eval scoring the tuned model on the eval set
# eval base 61% → tuned 92% (50 cases)
# uploading saving the adapter
# model acme/support-v3 ready — turion deploy acme/support-v3

base — means the baseline eval was skipped. Ctrl-C stops following, not training: it prints detached; the job keeps running — follow it again: turion jobs get ft_… --follow (turion jobs cancel stops it). A failed or cancelled job prints the error and the turion jobs logs command, and exits 1.

Your training jobs, newest first: name, base, method, status, progress (training 40%), eval (61% → 92%), the model each produced and when it was created (3d ago). --limit N (default 50), --json.

One job: status and phase, base and method (and the base’s pinned revision), data and eval set, the hyperparameters it changed from its method’s defaults, live progress, the eval result, the model it produced (with turion deploy … until it is deployed), how long it took, GPU-seconds billed, fleet, timestamps, notes and the error if it failed. A decision job adds the states it held out (split 120 of 600 states held out), the training examples it dropped for sharing a state with the eval set (overlap), the first 5 of its split warnings (… and N more counts the rest) and its metrics table. A decision job trained before eval cases were held out in whole states has its eval marked (scored on the old split, which could share states with training). --json for the raw object, with every hyperparameter.

OptionDescription
--follow, -ffollow a running job with the same live view as turion train, until it ends; Ctrl-C stops following. Not with --json
--jsonthe raw job object
Terminal window
turion jobs get ft_0123456789abcdef
# ft_0123456789abcdef support-v3
# status succeeded
# base gemma-4-e4b (google/gemma-4-E4B-it), lora
# data ds_0123456789abcdef eval ds_fedcba9876543210
# params lora defaults
# eval base 61% → tuned 92% (50 cases)
# model acme/support-v3@v1 — turion deploy acme/support-v3
# took 40m
# gpu 1,235 gpu-seconds
# fleet turion
# created 2026-10-08 09:00 finished 2026-10-08 09:41

Without --follow it shows the job once.

The trainer’s log tail (the last 64 KiB): its own output, with its progress events printed as short phase, step and eval lines. --raw prints the log as stored, progress events as TURION_EVENT JSON lines. The first place to look when a job fails. A job that ended before the trainer started prints (no trainer output — the job ended before the trainer started) and the job’s error.

Cancel a queued or running job. A job that already finished answers 409 conflict.

Score any model the gateway can reach (your fine-tune, a provider model) on an eval file, client-side: each case is sent to POST /v1/chat/completions at temperature 0 and the reply is scored with the same deterministic matchers the trainer uses. Eval calls are not traced.

Argument / optionDefaultDescription
MODEL(required)model to score
--evals FILE(required)JSONL eval file
--against MODEL—also score this model, for a before/after comparison
--concurrency N4requests at once per model, at most your account’s limit
--max-tokens N—upper bound on tokens per reply
--jsonoffper-model summaries plus every case’s output and verdict

An eval case is a chat record (everything before the last assistant turn is the prompt, that turn is the answer) or a prompt/completion record, plus optionally:

KeyDefaultMeaning
matchf1exact (normalised equality), contains, regex, json (parsed equality, code fences tolerated) or f1 (token F1)
threshold0.5f1 only: the F1 a reply needs to pass (0–1)
expectedderivedthe answer, overriding the derived one (any JSON value for json)
Terminal window
turion eval acme/support-v3 --evals evals.jsonl --against openai/gpt-6-luna
# openai/gpt-6-luna 61% (31/50)
# acme/support-v3 92% (46/50)
# openai/gpt-6-luna 61% → acme/support-v3 92%

A call that errors counts as a failed case and is reported. If every call to a model fails (for example 409 model_not_deployed), eval exits 1 with the first error.

On a decision model, turion eval starts a server-side eval run instead: MODEL takes a version (acme/triage-2:v1), --evals takes decision data, and --against takes another version of the same model (:v1) or another decision model of your workspace (acme/triage, acme/triage:v1), as in turion eval acme/triage-2 --against acme/triage --evals ds_…. --base also scores the zero-shot base. When --evals is the dataset that trained a scored version (the same id, or the same content), it warns on stderr that the version’s scores will be inflated, and runs anyway. Ctrl-C stops the waiting, not the run, and prints the run’s dashboard page and client.evals.cancel(…), which stops it.

Eval calls are not streamed, so each one waits at most 180 seconds at the API, and the proxy in front of api.turion.ai gives up sooner, after 100 to 120 seconds with 524. A model on Turion that may have scaled to zero gets the first case on its own. When the API answers 504 garden_timeout while the model is still starting, eval prints MODEL is still starting; asking again and sends that case again (up to three tries), so the other cases do not all wait out the same cold start. A 524 (proxy_timeout) is not asked again, and that case fails: wake the model first with turion chat MODEL "ping", or wait until turion model logs MODEL --follow shows the replica ready. Calls to models on Turion count against your account’s jobs and model calls in flight (4 on a new account): --concurrency is lowered to that limit, with a note, and a call refused because every place is taken waits for one to free up instead of failing. If the month’s GPU-seconds run out, eval stops and says how many cases were answered. Models that refuse temperature (Anthropic’s Claude 5 models) are still scored: the gateway sends the call again without it.

Deploy an LLM, usually a fine-tune from turion train, so it answers on the OpenAI-compatible gateway (POST /v1/chat/completions). Deployments scale to zero by default: nothing runs or bills while idle, and the first call after a quiet spell waits for a cold start. Until a model is deployed, calls to it answer 409 model_not_deployed.

Argument / optionFirst deployDescription
MODEL(required, or --base)model slug, e.g. acme/support-v3
--base—deploy a base from turion bases as is, without training, instead of MODEL
--namethe base idwith --base: the model’s name
--fleetturionwith --base: a fleet you own to run on
--min-replicas0replicas kept warm even when idle (0 = scale to zero)
--max-replicas1upper bound on replicas; stored as given, capped while it runs by your account’s replica quota
--keep-alive300seconds an idle replica stays warm before scaling down

Deploying again changes only the options you pass; the others keep their values. --min and --max are accepted as short names for the first two.

--base ID serves a catalog base unchanged as a model of yours, <handle>/<name>, deployed like a fine-tune. The name defaults to the base id with dots turned into dashes (qwen3.8-27b becomes acme/qwen3-8-27b). Running it again with a name you already used for the same base redeploys that model; a name any other model uses is 409 name_taken, and the CLI suggests --name. Teachers cannot be deployed (422 base_not_deployable). See Deploy & call → Deploy a base model without training. An extract base (turion deploy --base turion-extract-alpha) becomes an extract model that answers on POST /v1/extract; the output then names turion extract and the endpoint instead of turion chat and the OpenAI base_url (Extract models). The decision base (turion deploy --base turion-jev-31b) becomes a decision model that answers on POST /v1/systemone, and the output names turion decide (Turion Jev 31B); turion train --base turion-jev-31b still makes chat fine-tunes of it.

Terminal window
turion deploy --base gemma-4-e4b
# deployed acme/gemma-4-e4b@v1
# replicas 0-1 (scales to zero when idle)
# keep-alive 300s
#
# try it: turion chat acme/gemma-4-e4b "hello"
# OpenAI: base_url=https://api.turion.ai/v1 model=acme/gemma-4-e4b
Terminal window
turion deploy acme/support-v3
# deployed acme/support-v3@v1
# replicas 0-1 (scales to zero when idle)
# keep-alive 300s
#
# try it: turion chat acme/support-v3 "hello"
# OpenAI: base_url=https://api.turion.ai/v1 model=acme/support-v3

When your quota is below --max-replicas, a line says so; a higher quota applies without deploying again. Only fine-tuned LLMs and decision models deploy this way (422 not_deployable otherwise). A decision model answers on POST /v1/systemone, so its summary shows a turion decide command and the base_url for TypeSafe’s SDK instead of the OpenAI lines.

Given a directory that contains cog.yaml, or run with no argument inside one, turion deploy prints hint: Cog projects deploy with `turion cog deploy`; running it for you on stderr and runs turion cog deploy with the Cog flags it was given. With no argument outside a Cog project it is a usage error.

Take a deployed LLM out of the gateway. Its weights and versions stay; calls answer 409 model_not_deployed until you turion deploy it again.

Terminal window
turion undeploy acme/support-v3
# undeployed acme/support-v3 — `turion deploy acme/support-v3` brings it back

Chat with any model through Turion’s OpenAI-compatible gateway (POST /v1/chat/completions, the endpoint the openai SDK reaches with base_url="https://api.turion.ai/v1" and your tk_ key). Replies stream by default. With a PROMPT it sends one message and prints the reply; with - it reads the message from stdin; with no PROMPT in a terminal it opens an interactive session that keeps the conversation (/reset clears it, /help lists the commands, /exit or Ctrl-D quits). An error in a session is printed and the session goes on.

MODEL resolves in this order:

FormServed by
agent:NAMEyour agent’s route (turion agent route); 404 if you have no such agent
owner/namea deployed LLM you can see, run on Turion GPUs
provider/modelthe provider directly, with your key from turion providers set (billed by the provider)
Argument / optionDefaultDescription
MODEL(required)model id, see above
PROMPT—the user message; - reads stdin; omit for the session
--system TEXT—system message sent ahead of the conversation
--max-tokens N—upper bound on tokens in each reply
--temperature Xthe model’ssampling temperature
--stream/--no-stream--streamstream tokens, or print the full reply when done
--jsonoffprint the completion JSON, with its trace id under _turion (implies --no-stream)
--no-traceoffdo not keep a trace of this call
Terminal window
turion providers set openai # once
turion chat openai/gpt-6-luna "Write a haiku about GPUs" \
--system "You are terse."
git diff | turion chat anthropic/claude-haiku-5-5 - --system "Review this diff."
turion chat acme/support-v3 # a session with your own model

A provider that refuses a sampling parameter for a model (Anthropic’s Claude 5 models refuse temperature) gets the call again without that parameter, so --temperature never fails a call on its own.

A decision model does not chat: the call fails with 409 decision_model, and chat prints a hint with the turion decide command (an interactive session ends there). An extract model fails the same way with 409 extract_model, and the hint names turion extract.

Ask a decision model typed questions about a state (POST /v1/systemone) and print each answer with its probabilities.

FormServed by
turion-jev-31bTurion Jev 31B, the copy Turion hosts; billed in input tokens
owner/nameyour deployed decision model, on Turion
typesafe/MODELTypeSafe, with your key from turion providers set typesafe
openrouter/typesafe/MODELOpenRouter’s Jev, with your openrouter key
Argument / optionDefaultDescription
MODEL(required)model id, see above
--state(required)the text; @FILE reads a file (a .json file is sent as JSON); - reads stdin
--noul SPEC—a yes/no question, 'id: question'; repeatable
--choice SPEC—pick one option, 'id: question [a|b|c]'; repeatable
--score SPEC—rate on 2–10 levels, lowest first, 'id: question [low|medium|high]'; repeatable
--questions FILE—a JSON file with TypeSafe’s questions map (or a whole request body)
--jsonoffprint the response body as the server sent it

At least one question is required. Questions from --questions come first, then --noul, --choice and --score, and the rows follow that order. A bad spec, an id used twice or no question at all is a usage error, before any request.

Terminal window
turion decide typesafe/jev-1.13 --state "I was charged twice for October." \
--noul "refund: does the customer ask for money back?" \
--choice "team: which team? [billing|tech|sales|other]" \
--score "urgency: how urgent? [can wait|this week|today]" | cat
# QUESTION ANSWER CONFIDENCE PROBABILITIES
# refund yes (0.93) 0.93 yes 0.93 · no 0.07
# team billing 0.88 billing 0.91 · tech 0.07 · sales 0.01 · …
# urgency today (score 1.63) 0.48 today 0.66 · this week 0.31 · can wait 0.03

A choice shows the chosen option, a score the most likely level’s description and the expected score (levels counted from 0), a noul yes or no with the probability of that answer. PROBABILITIES lists the three most likely answers. On a terminal the rows are a table, followed by the served model, the token counts and the trace id. turion decide on a chat model fails with 409 not_a_decision_model and a hint to use turion chat.

Pull typed fields out of a document with an extract model (POST /v1/extract) and print one value, or null, per field.

FormServed by
turion-extract-alphathe copy of Turion Extract alpha that Turion hosts
owner/nameyour deployed extract model, e.g. from turion deploy --base turion-extract-alpha
Argument / optionDefaultDescription
MODEL(required)model id, see above
--state(required)the document: a text FILE (or @FILE), or - for stdin
--fields(required)a JSON object of field name to field, inline or @FILE
--reference-date—YYYY-MM-DD that relative dates (“next Friday”) count from
--jsonoffprint the response body as the server sent it
  • --state is sent exactly as read, so the span offsets in --json count characters of the file. Text inline is not accepted: pipe it in with -.
  • A field is an object such as {"type": "number", "decimals": 2, "instructions": "…"}, or just its type name ("date"), which becomes {"type": "date"}. The types and their options are in Extract models → Fields. A file holding a whole request body works too; its fields are used.
  • Bad JSON, an empty object, a field that is neither an object nor a type name, a missing or empty file, or a malformed date is a usage error, before any request.
Terminal window
turion extract turion-extract-alpha --state invoice.txt \
--fields '{"invoice_number": "text", "total": {"type": "number", "decimals": 2},
"contacts": {"type": "list", "items": "text"}, "po_number": "text"}' | cat
# FIELD VALUE P_NULL CONFIDENCE
# invoice_number INV-2291 0.00 1.00
# total 1080.0 0.01 0.99
# contacts ["Dana Ruiz", "Priya Shah"] 0.02 —
# po_number null 0.98 0.98

The rows follow the order of --fields. VALUE is a text value as it is (on one line, cut at 80 characters), a number or list as JSON, or null when the document does not say. P_NULL is the model’s probability that the field has no value, CONFIDENCE its probability for the value; — when the model did not report one. On a terminal the rows are a table, followed by the served model, the input tokens and the trace id. turion extract on a chat or decision model fails with 409 not_an_extract_model and a hint naming the extract models.

List, inspect, tune and archive models, and read their replica logs.

The models you can see (yours plus the curated catalog): SLUG, KIND (llm, decision, extract, or model for a Cog model), DEPLOYED (yes or no for a fine-tune, decision or extract model, — for a Cog model), SOURCE (for a fine-tune, its base and method, such as gemma-4-e4b (lora)), FLEET, LATEST (the newest version) and LAST RUN. --json for the raw list.

One model and its versions. It starts with what the model is (about: for a fine-tune, its base, method and training job) and its fleet. For a fine-tune, a decision or an extract model it shows its kind, whether it is deployed and on which endpoint (/v1/chat/completions, /v1/systemone or /v1/extract), and the next command (turion chat …, turion decide … or turion extract … when deployed, turion deploy … when not). For every version it shows the warm-pool and scheduling knobs: keep-alive, replicas, concurrency, priority, the cold-start target and the observed cold start, plus the image for a Cog model. --json for the raw object, which has the image for every model.

acme/support-v3
turion model get acme/support-v3
# about Fine-tune of gemma-4-e4b (lora), job ft_0123456789abcdef
# fleet turion
# kind llm
# serving deployed (/v1/chat/completions)
#
# v1
# warm keep-alive 300s · replicas 0-1 · concurrency 16 · priority 0
# cold start target none · observed 41s
#
# try it: turion chat acme/support-v3 "hello"

Tune one version’s warm-pool and scheduling knobs. Only the flags you pass are sent, so raising --keep-alive cannot reset a replica count somebody else set. Passing no knob is a usage error.

Argument / optionDescription
REFSLUG or SLUG@VERSION (a bare slug means the latest version)
--keep-aliveseconds to keep a replica warm after a run
--min-replicasreplicas kept running even when idle
--max-replicasupper bound on warm replicas
--concurrencymax predictions of this version at once
--priorityclaim priority (higher goes first)
--cold-start-targetcold-start target in seconds
Terminal window
turion model set acme/support-v3 --keep-alive 900 --min-replicas 1
# acme/support-v3@v1
# keep-alive 900s · replicas 1-1 · concurrency 16 · priority 0 · cold-start target none

Your account’s max_replicas quota (see turion account) clamps whatever you set here. When --min-replicas or --max-replicas ask for more, the command still succeeds and prints note: your account allows at most 2 warm replicas; values above that are clamped on stderr. See Autoscaling replicas and Cold starts.

The model’s replica log: the newest cold start of any of its versions, as the node reported it. It prints the version, the node, the phase and the steps so far (pull, start, load), then the container’s own output with the time of each line. A start is logged whether a call or a warm replica (--min-replicas) began it, and it keeps going after the call that began it gave up. Only your own models; a shared model in the model garden is not_found.

OptionDescription
--follow, -fkeep printing new lines until the start is ready or fails (Ctrl-C stops; the replica keeps starting). With nothing under way (no start yet, or the last one ended more than two minutes ago), it waits for the next start
--version Vonly this version’s starts
--boot IDan earlier start (its id from --json) instead of the newest
--jsonthe raw response: every listed start, and the lines
Terminal window
turion model logs acme/invoices --follow
# acme/invoices@v1 on node-3f2a1c · started 2026-10-25 12:00 · pulling
# pull 4.1s so far
# 12:00:00 pulling image registry.turion.ai/turion/extract-runner@sha256:9c1f…
# 12:01:22 image pulled in 82.4s; starting container
# 12:01:23 container started in 1.3s; waiting for it to report ready
# 12:01:25 INFO … vLLM API server version 0.11.0
# 12:03:41 Loading safetensors checkpoint shards: 100% Completed | 5/5
# 12:04:20 container ready in 177.0s
# ready · pull 1m22s · start 1.3s · load 2m57s

With no start logged yet it says so: the next call to the model starts a replica. Container output is redacted on the node: keys, tokens and the container’s secrets read [redacted]. See Cold starts and GET /v1/models/{owner}/{name}/logs.

Archive a version so nothing new can run against it. It drops out of latest, and predictions that used it keep their history. SLUG@VERSION works too.

Terminal window
turion model archive acme/whisper v1 # or: acme/whisper@v1
# archived acme/whisper@v1

Create agents, run and deploy them, and read every model call they make. Provider keys sit here because agents, turion chat and turion eval call frontier models on your own key. The workflow is in Build & deploy agents.

An agent is deployed next to the models it calls. A new one starts from the template: instructions and skills that Turion runs on Pi, the harness in its agent runner. An agent can also be your own Python code, a run(input, ctx) function and its tools, which you can run on your machine before you deploy it. Once a deployed agent has enough usable traces, distil it: its traced model calls become a dataset, a small model is fine-tuned on them, and the agent is routed to it.

An agent is a directory with a turion.toml. The template’s adds harness = "pi" and a [pi] table; an agent with its own code looks like this:

[agent]
name = "support-triage"
version = "1.0.0"
description = "Classifies a support ticket, answers it from the help centre with citations, or escalates it to a person."
entry = "agent:run" # module:function
model = "openai/gpt-6-luna" # the frontier model, on your own provider key
# fallback = "anthropic/claude-haiku-5-5" # retried when `model` errors
distil_base = "ministral-3-3b" # what `turion agent distil` fine-tunes
secrets = ["ZENDESK_API_TOKEN"] # read as environment variables
timeout = 300 # seconds per run, 10–3600
[eval]
file = "evals.jsonl"

The agent reaches models through the gateway with TURION_BASE_URL, TURION_API_KEY, TURION_MODEL and TURION_AGENT_NAME, which run --local, eval and the hosted runner all set. run() returns a JSON value, by convention a dict whose output key is the final answer; that is what run prints and eval scores.

Copy the template into a new directory (it must not exist, or be empty), set the agent’s name in its turion.toml and print the next steps. The template is a Pi agent: instructions, skills, optional Turion Brain access, on Turion’s shared model, so it needs no provider key. The Agents guide lists its files.

ArgumentDefaultDescription
NAMEassistantthe agent’s name (lowercase letters, digits, -)
DIR./NAMEdirectory to create
Terminal window
turion agent new acme-support
# created acme-support (agent acme-support)
#
# next:
# cd acme-support
# turion agent deploy
# turion agent run acme-support -i "What can you help me with?"
#
# what it does is in instructions.md and skills/: edit them, then deploy again

A Pi agent has no local run, so the first run is the deployed one. Older versions of the CLI took a blueprint id first: turion agent new assistant --name acme-support still works and is the same as turion agent new acme-support. Any other old blueprint id is a plain agent name now: turion agent new support-triage creates an agent of that name from the template and prints note: support-triage is no longer a ready-made agent to copy; this one starts from the template. data-converter is refused: it is the agent turion datasets convert deploys and runs for you.

Run an agent on one input and print its output (the whole result with --json). Without --local it calls the deployed agent: TARGET is its name, or a directory whose turion.toml names it. With --local it runs the code in the TARGET directory on this machine, in the agent’s own environment (uv run --with-requirements requirements.txt when uv is installed and the file exists, else the current Python), with its model calls going through the gateway as you. Whatever the agent prints goes to stderr.

Argument / optionDefaultDescription
TARGET.agent name or agent directory
-i, --input(required without --file)TEXT, @file, or - for stdin; a JSON object or array is sent as JSON, anything else as a string
--file PATH—upload a file (a folder is zipped first) and add its turion:// ref to the input’s "files" list; repeatable. The input must be a JSON object or absent. With --local, the absolute path is added and nothing is uploaded
--localoffrun the local code instead of the deployed agent
--modelturion.toml’s--local only: the model the agent calls (TURION_MODEL); a deployed agent’s model is changed with turion agent route
--nameturion.toml’sagent name
--jsonoffprint the whole result (for a deployed agent, the run) as JSON
--wait60seconds the server holds the request before the CLI polls; 0 prints the run id and returns
--timeout300stop waiting after this many seconds in all (0 = no limit); the run keeps going
Terminal window
turion agent run --local -i "My invoice shows the wrong amount" # an agent with its own code
turion agent run acme-support -i @ticket.json --json

--local has nothing to run for a Pi agent such as the template: its agent.py stops with a message saying so. Deploy it and run the deployed agent.

While a deployed run waits for a node, a terminal shows a spinner with a running clock; piped, a waiting 00:05 run <id> starting line is printed every 5 seconds. Ctrl-C stops waiting (the run keeps going) and prints the commands to follow it (turion agent logs … --run ID) and to stop it (turion prediction cancel ID). Reaching --timeout does the same and exits 1. A failed run exits 1 with the agent’s error and the turion agent logs command for it.

Pack the agent directory (DIR, default .) as a tarball, upload it, and create the agent or a new revision of it. Left out of the tarball: .git, __pycache__, .venv, venv, env, node_modules, .direnv, .mypy_cache, .pytest_cache, .ruff_cache, dist and build directories, *.pyc, .env, .env.* and .envrc files. The packed agent may be at most 50 MiB. Symlinks are not followed: each one is skipped with a skipped … line on stderr (copy the file in to ship it). --name deploys under another name than turion.toml’s.

Before anything is uploaded, deploy checks that the module entry names is in the directory (agent.py for agent:run) and stops with entry_not_found if it is not. It stops with invalid_config when turion.toml has a top-level [[schedule]]: schedules go under [agent] as [[agent.schedule]]. It also warns when the agent’s model or fallback runs on a provider you have no key stored for, since those calls would fail until you run turion providers set PROVIDER.

Terminal window
turion agent deploy
# created acme-support (revision 1)
# model deepseek-v4.1-flash
# endpoint https://api.turion.ai/v1/agents/acme/acme-support/runs
#
# next:
# turion agent run acme-support -i "hello"
# turion agent eval --remote
# turion agent traces acme-support

When turion.toml declares secrets the agent does not have yet, the first step is turion agent secrets set NAME KEY … for them. The run step uses the first eval case’s input when the agent has an eval file with a short one, and "hello" otherwise. A redeploy prints updated NAME: revision 1 → 2, shows a model change as old → new, notes (code and config unchanged from revision N) when nothing else changed, and adds a route row when a route is set. On a terminal, changing a deployed agent’s model asks first; --yes (-y) skips the question.

Your agents: name, current revision, configured model, route (primary share%) and when each last changed (NAME, REV, MODEL, ROUTE, UPDATED). With none, it prints no agents yet — `turion agent new NAME` creates one. --json for the raw list, which still has each agent’s blueprint field (null for agents made from the template).

One agent, headed by its name and owner (acme-support (owner acme)): description, current revision, configured model and fallback, route, secrets (set and not set), the Turion Brain sources it may read (brain, from brain_sources), a schedule line per schedule with its next run in UTC, trace count, distil progress toward its distil_base, its endpoint URL and every revision. With no route a calling line names the model calls go to; with a route, the route line says where they go. Distil progress reads like distil 1,000/1,000 usable traces (52 runs) → ministral-3-3b, ready: turion agent distil NAME. --json for the raw object.

Download the code of a deployed revision: the tarball deploy uploaded, unpacked with its files at the root of the directory, as they were in the agent directory. The CLI checks the download against the revision’s sha256 before it writes anything, and refuses an archive with links, absolute paths or paths that leave the directory.

Argument / optionDefaultDescription
NAME(required)agent name from turion agent list
--revision Nthe current onerevision to download (turion agent get lists them)
-o, --output-dir./NAMEdirectory to write the code into
--forceoffwrite into a directory that is not empty; files with the same names are replaced, others stay
Terminal window
turion agent pull acme-support --revision 3
# pulled acme-support revision 3 (sha 9f2c4e1ab07d): 7 files in acme-support

Without --force, a directory that is not empty is refused before anything is downloaded. Bytes that do not match the recorded sha256 stop with code_mismatch, and the directory is left as it was. Only the agent’s owner can pull its code; the agent’s own key cannot.

What a run logged: the agent’s prints and tracebacks. --run ID picks the run (default: the newest, named on stderr).

Score the agent on the cases in its [eval] file with the matchers of turion eval. By default every case runs locally, in one process, with TURION_MODEL set to --model (or turion.toml’s), so you can compare models before deploying. --remote runs each case on the deployed agent instead. A case’s agent input is its input key when present (for structured input), else its last user message; the agent’s output is what is scored. Eval runs are not traced (local runs get TURION_TRACE=off, remote runs are sent with "trace": false), so eval cases never end up in the data turion agent distil trains on.

Argument / optionDefaultDescription
DIR.agent directory
--modelturion.toml’slocal runs only: the model the agent calls
--remoteoffrun each case on the deployed agent (model label agent:<name>)
--nameturion.toml’sdeployed agent name (--remote, --save)
--saveoffrecord the result on the deployed agent
--revision N—with --save on a local run: the deployed revision this code is. Required there, since a local run scores the code on disk; its model is recorded as <model> (local)
--jsonoffsummary plus every case’s output and verdict
--concurrency N4--remote: runs in flight
--timeout300--remote: seconds to wait for each case’s run before failing that case (0 = no limit)
Terminal window
turion agent eval --model openai/gpt-6.1-sol
# CASE MATCH PASS OUTPUT
# 1 contains pass Billing — refund the duplicate charge…
# 2 json fail {"priority":"low","queue":"billing"}
#
# openai/gpt-6.1-sol 93% (14/15)

A case whose run errors counts as a fail. Locally, each distinct error is printed once on stderr, with where in your code it was raised; TURION_DEBUG=1 prints the full traceback instead. An error every case would hit (your key missing or refused, the model or the deployed agent not found) stops the eval at that case, and the rest are skipped (skipped in --json). When no case got an answer there is no score and eval exits 1. --save does not save a result with skipped cases, nor, with --remote, one whose runs spanned two revisions (a deploy landed mid-eval).

The model calls the agent made through the gateway, newest first, with the run and step each belongs to. --limit N (default 20, at most 200), --json for the raw rows; turion traces get ID shows one in full.

Build a dataset from the agent’s traced calls (successful, untruncated calls a provider or the garden served, de-duplicated, split 90/10 into train and eval) and fine-tune its distil_base on it, with the same training job as turion train. Evaluate, distil & route has the details. Until the agent has --min-traces usable traces it is refused with error: not_enough_traces: NAME has 12 of the 1,000 usable traces distil needs, and with 422 no_distil_base for an agent that keeps a frontier model and no --base is given.

OptionDefaultDescription
--basethe agent’s distil_basebase model to fine-tune
--min-traces N1000usable examples needed before distilling
--methodthe base’s defaultlora, qlora or full
--epochs N3passes over the data (1–10)
--job-name, --name<agent>-distil-<6 hex>name of the resulting model
--followofffollow the job until it finishes, like turion train
Terminal window
turion agent distil acme-support --follow
# dataset ds_0123456789abcdef acme-support traces (1,180 examples)
# eval set ds_fedcba9876543210 acme-support traces (eval) (131 examples)
# job ft_0123456789abcdef queued (base ministral-3-3b, lora)
# …
# model acme/acme-support-distil-1a2b3c ready — turion deploy acme/acme-support-distil-1a2b3c
# route the agent to it: turion agent route acme-support --model acme/acme-support-distil-1a2b3c (after turion deploy acme/acme-support-distil-1a2b3c)

Send the agent’s model calls to another model, typically its distilled fine-tune once deployed. --share N (0–100, default 100) sends that percent of calls to --model; the rest, and any call --model fails, go to --fallback (default: the agent’s own model). --clear removes the route and takes no --model or --fallback.

Terminal window
turion agent route acme-support \
--model acme/acme-support-distil-1a2b3c --share 20
# acme-support → acme/acme-support-distil-1a2b3c (20% of calls); rest and failures → openai/gpt-6-luna
turion agent route acme-support --clear
# route cleared — acme-support calls openai/gpt-6-luna

turion agent secrets set NAME KEY=VALUE…

Section titled “turion agent secrets set NAME KEY=VALUE…”

Set secrets the deployed agent reads as environment variables. KEY=@file reads the value from a file; a bare KEY prompts for it without echo. Names are letters, digits and _, not starting with a digit. Values are never shown again.

Terminal window
turion agent secrets set acme-support ZENDESK_SUBDOMAIN=acme ZENDESK_API_TOKEN
# ZENDESK_API_TOKEN: ********
# set ZENDESK_SUBDOMAIN, ZENDESK_API_TOKEN on acme-support (secrets: ZENDESK_API_TOKEN, ZENDESK_SUBDOMAIN)

The names of the agent’s secrets, one per line on stdout, then on stderr how many of the secrets turion.toml declares are set, for example 1 of 9 set (not set: …).

Remove secrets from the agent.

Delete the agent: its revisions, saved evals and secrets are deleted, its key is revoked and its endpoint stops. Its traces stay, but no longer count toward a distil, even if the name is deployed again. Asks first unless --yes/-y.

A workspace’s Turion Brain is a copy of the records in the tools it connects. These commands ask it questions, search and open its records, list the emails it received, and connect its tools. Every one takes --json for the API’s own answer, except connect, disconnect, sync, match and chat telegram unlink.

They read what your API key may read. A tool limited to owners and admins is not read with a key, so its records are left out and turion brain inbox answers 403 brain_inbox_limited when the inbox is the limited tool. Until a brain’s first tool is connected, the reads answer 409 brain_not_synced.

Some things stay on the Brain page of the members area: picking and paying for tools, signing in to Gmail, Google Drive and Slack, setting who can ask about a tool, and replacing Turion Inbox’s address.

The brain’s status, its MCP endpoint, its database, and each tool with how its sync stands. A tool whose last sync failed has its error on stderr.

Terminal window
turion brain status
# status active
# mcp https://api.turion.ai/v1/brain/mcp
# database Postgres 17, us-east, 1,234 records
#
# TOOL KEY SYNC RECORDS LAST SYNC WHO CAN ASK
# GitHub github synced 1,200 12m ago everyone
# Turion Inbox turioninbox synced 34 3m ago owners and admins

SYNC is not connected, waiting, syncing, synced or failed. Each connected tool is read again every hour.

What the brain holds, in counts: records by tool and type with their first and last date, then entities (people, repositories, threads) and links by kind, and the model that answers questions.

Ask a question. A model looks records up in the brain and answers from what it read, citing them as [1], [2]. The answer goes to stdout with the cited records under it; the model, the number of lookups and the time go to stderr.

OptionDefaultDescription
--detailoffa full answer instead of two to four sentences
--stepsoffalso print what the model looked up, on stderr
--no-traceoffkeep the question’s model calls out of your traces
--jsonoffthe whole answer: text, citations, steps, usage
Terminal window
turion brain ask "When did syncing become hourly?"
# It became hourly on 2 November, in pull request 12 [1].
#
# [1] Sync every hour (github pull_request)
# https://github.com/acme/web/pull/12
# deepseek-v4.1-flash · 2 lookups · 3.2s

The model calls are your workspace’s own: billed and traced like any other call.

Full-text search over the brain’s records, best match first. Each result is its title, then its tool, type, author and age, its id, and the part that matched.

OptionDefaultDescription
--source—only this tool’s records, by its key (github)
--type—only records of this type (email, pull_request)
--limit10how many results, 50 at most
--jsonoffraw JSON instead of the list
Terminal window
turion brain search "renewal quote" --source turioninbox
# Renewal quote
# turioninbox email · Jane Doe · 2d ago
# turioninbox:email:bim_01JD…
# Here is the quote for next year.

One record with its fields, its text and its newest links, or one entity (a person, a repository, a thread) with its other names and links. Quote the id: record ids hold # and /.

Terminal window
turion brain show 'github:pull_request:acme/web#12'
turion brain show person:github:ada

The brain’s entity types, each kind of link with who made it (source, rule, model or person), links whose other end is not in the brain, and how matching people stands.

The agents whose own key reads the brain, the tools each may read (brain_sources), their schedules and their last run.

How each of the brain’s tools is connected: whether it is, its credential (token …9f2c for a saved token, by its last four characters; signed in for an account), its settings and when they last changed. Turion Inbox shows its address. Needs platform.credentials.manage, as do connect, disconnect and sync.

Terminal window
turion brain tools
# TOOL KEY CONNECTED CREDENTIAL SETTINGS
# GitHub github yes token …9f2c {"repos": ["acme/web"]}
# Turion Inbox turioninbox yes — acme-k7f3qx@turionmail.com
# Notion notion by Turion — —

by Turion marks a tool Turion connects for you.

Connect one of the brain’s tools, or change its settings or token. Its sync is queued. Settings and a token you leave out stay as they are.

Argument / optionDefaultDescription
KEY(required)the tool’s key from turion brain tools
-c, --config—one setting, repeatable: key=value, or key:=json
--config-file—a JSON file holding the tool’s settings
--tokenstdin, when pipedthe tool’s access token

The settings per tool:

ToolSettingsToken
githubrepos: a list of owner/name, at least onea GitHub access token
websiteurl; sitemaps when the sitemap is not at a usual pathnone
googlesearchconsolesite: sc-domain:example.com or a URL prefix ending in /the service account’s JSON key
railwayproject: the project’s id; environmenta Railway token
stripemetadata, links (both optional)a restricted Stripe key
postgresqlrecords, metrics: the queries to read, at least onethe connection address
turioninboxnonenone
Terminal window
echo "$GITHUB_TOKEN" | turion brain connect github \
-c 'repos:=["acme/web","acme/api"]'
# connected GitHub; its sync is queued (bsr_01JD…)
turion brain connect website -c url=https://acme.com
turion brain connect googlesearchconsole \
-c site=sc-domain:acme.com < service-account.json
turion brain connect turioninbox
# connected Turion Inbox; its sync is queued (bsr_01JD…)
# forward email to acme-k7f3qx@turionmail.com

Pipe the token in rather than passing --token, so it stays out of your shell history. A setting the API refuses answers 422 validation_error with what is wrong.

Disconnect a tool. Its records are removed from the brain and it stops syncing; a saved token is deleted, an account signed in to is disconnected, and Turion Inbox’s address stops taking mail and its emails are deleted. The tool stays one of the brain’s tools, and on the bill. Asks first unless --yes/-y. 409 brain_sync_running while the tool syncs.

Read a tool again now, instead of at its next hourly sync. turion brain status shows when it has finished.

The emails Turion Inbox received, newest first. FROM and SUBJECT are what the brain read: for a forwarded email, the original’s sender and subject. An email that just arrived is not read yet for about a minute and shows the address that sent it.

OptionDefaultDescription
--limit20how many to show
--jsonoffraw JSON instead of the table
Terminal window
turion brain inbox list --limit 2
# ID RECEIVED STATUS FROM SUBJECT FILES
# bim_01JE… just now not read yet balys@acme.com — —
# bim_01JD… 2d ago read Jane Doe <jane@customer.io> Renewal quote 2

One email as the brain read it: subject, sender, recipients, when it was sent and received, its record id in the brain, each attached file with whether its text was read (text read) or only its name is known (name only), and the text the brain keeps (20,000 characters at most). For a forward, what was written above the original comes first, then a line of ---.

Terminal window
turion brain inbox show bim_01JD…

Pairs of identities that may be one person (two addresses, an address and a GitHub login), waiting for an answer, each with the model’s probability. --all also lists the pairs already linked or rejected.

Terminal window
turion brain matches
# to confirm
# ada (person:github:ada) = Ada L (person:email:ada@acme.com) 83%

Answer one pair, by its two person ids in either order: --same links them as one person, --different keeps them apart. One of the two is required. It changes what answers say about people, so it needs platform.credentials.manage.

Terminal window
turion brain match person:github:ada person:email:ada@acme.com --same

The team chats that may ask the brain, one group per chat app. Telegram is the one there is today.

The brain’s Telegram bot and the chats that may ask the brain through it, with their ids.

Make a one-time code, good for half an hour. Sent in a chat (or opened through one of the two links it prints), it lets everyone in that chat ask this brain, so share it only with your team.

Terminal window
turion brain chat telegram link
# send this in the chat: /connect K7F3QX
# or open a private chat: https://t.me/…?start=K7F3QX
# or add the bot to a group: https://t.me/…?startgroup=K7F3QX

Stop a linked chat from asking the brain. Asks first unless --yes/-y.

Every call through the chat gateway leaves a trace: the request, the response (a streamed reply is stored assembled), the route that served it, latency, tokens and status. Attribute calls with the X-Turion-Agent, X-Turion-Run and X-Turion-Step headers (the SDK’s agent=, run=, step= arguments); send X-Turion-Trace: off (--no-trace) to skip one.

Recent calls, newest first.

OptionDefaultDescription
--agent—only calls attributed to this agent
--model—only calls that asked for this model
--run—only calls in this run
--status—ok, error or cancelled
--limit20how many to show
--jsonoffraw JSON (without request and response bodies) instead of the table
Terminal window
turion traces list --agent support --limit 5
# ID WHEN MODEL ROUTE STATUS LATENCY TOKENS AGENT RUN
# 0192… 2m ago openai/gpt-6-luna provider ok 0.8s 41/9 support r-17

TOKENS is input/output, and LATENCY is in seconds (45ms under a tenth of a second). A failed call’s status reads error <code>. On a narrow terminal ROUTE, RUN and AGENT are left out first, then TOKENS and LATENCY; piped output keeps every column.

One call as a conversation (system, user, tool and assistant turns, tool calls included) with its requested and served model, route, status, latency and tokens, the agent, run and step it belongs to, and a note when a body was truncated. --json prints the stored trace.

Terminal window
turion traces get 0192f3a1-6c2e-7b40-8d51-9a7c4e2b1d03

Store your own API key per provider so turion chat PROVIDER/MODEL (and any OpenAI client pointed at Turion) goes straight to that provider. Keys are encrypted at rest and never shown again; listings carry the last four characters. Supported: openai, anthropic, google, openrouter, groq, together, mistral, deepseek, and typesafe, which serves decision models only: turion decide typesafe/jev-1.13 …. huggingface stores a Hugging Face token for turion datasets import and push, not for model calls; pushing needs a token with write access, and the token is checked with Hugging Face before it is stored.

Store (or replace) your key for PROVIDER. Without --key the key is read from stdin when piped, otherwise prompted for without echo, so it stays out of your shell history.

Argument / optionDefaultDescription
PROVIDER(required)provider name, see above
--keystdin, else promptedthe provider’s API key
Terminal window
turion providers set anthropic
# anthropic API key: ********
# stored anthropic key …x9Qa
echo "$OPENAI_API_KEY" | turion providers set openai
echo "$HF_TOKEN" | turion providers set huggingface

Every supported provider, whether you have a key stored, when it was set, and its base URL. --json for the raw listing.

Terminal window
turion providers list
# PROVIDER KEY UPDATED BASE URL
# openai …abcd 2026-10-08 09:12 https://api.openai.com/v1
# anthropic — — https://api.anthropic.com/v1

Delete your stored key for PROVIDER. Asks first unless --yes/-y. Calls to PROVIDER/… then go to the model garden when it serves that id, or answer 404 model_not_found.

Credentials, quota and usage, API keys, your own GPU fleets, and webhooks.

Sign this machine in and save its key to ~/.config/turion/config.json, with the base URL and the registry. In a terminal it signs in through the browser: it prints a code, opens turion.ai/members/cli, and once you approve there, the CLI gets its own API key (cli: <machine> on the Keys page). login does not touch Docker unless you pass --registry-login, which only the Cog commands need.

OptionDefaultDescription
--tokenstdin, else the browser sign-ina tk_ API key, for CI and scripts
--no-browseroffprint the sign-in link instead of opening a browser (SSH sessions)
--base-urlenv, then config, then https://api.turion.aiAPI base URL, remembered in the config file
--registry-loginoffalso docker login the registry with this key, and exit 1 if that fails (needed before turion cog deploy / cog push)
--registrysaved, else registry.turion.airegistry host (env TURION_REGISTRY), remembered in the config file
Terminal window
turion login
# Sign in through your browser. Check that it shows this code:
#
# KPRT-7WQM
#
# https://turion.ai/members/cli?code=KPRT-7WQM
#
# opened your browser
# logged in as acme (config: ~/.config/turion/config.json)
# next: turion bases · docs: https://turion.ai/docs/

Cancelling in the browser, or a code that expires (after 10 minutes), ends login with exit 1. A key the API refuses fails with 401 and a pointer to turion.ai/members/keys, where keys are made. If stdin is not a terminal, login reads the token from stdin, which keeps the key out of the process table and your shell history in CI:

Terminal window
echo "$TURION_API_TOKEN" | turion login

With no token, nothing piped and no terminal, login explains where the first key comes from (the workspace at turion.ai/members) and exits 1. The config file is created with permissions 0600 in a directory with 0700. See Authentication & keys.

Remove the key turion login saved. The base URL and registry stay in the config file, and the key itself stays valid until turion keys revoke ends it. The key also goes from an older ~/.turion/config.json if one is still there. If TURION_API_TOKEN is set, logout warns that commands keep using it.

Terminal window
turion logout
# logged out: removed the API key from ~/.config/turion/config.json

Who this key belongs to and the quota the account runs under. The quickest way to check a key works. --json prints the account object (id, name, handle, email, created_at, the key’s prefix and label, and the quota block).

Terminal window
turion account
# account Acme Research (@acme)
# email you@acme.io
# key tk_a1b2c… laptop
# since 2026-06-01 12:00
#
# quota this month, 2026-10-01 to 2026-11-01 (UTC)
# jobs and model calls in flight 4
# gpu-seconds this month 13 / 7,200
# warm replicas ceiling 1
# full ledger: turion usage · per-version knobs: turion model get SLUG

unlimited in place of a number means the account has no ceiling on that axis. jobs and model calls in flight counts training jobs, agent runs and calls to your models together. The GPU-seconds are month-to-date over the UTC calendar month, from the same ledger turion usage reads, so the two always agree; they are rounded here, and --json has the exact decimal strings.

Metered usage for this account over the last 30 days: GPU-seconds (run and slot), tokens per model, and managed-node passthrough cost, with a table per bucket. node cost is only what managed nodes you launched cost at the provider’s rate, not your bill; Usage & billing has the prices.

OptionDefaultDescription
--granularitydayday, month or total
--jsonoffraw JSON instead of the summary
Terminal window
turion usage --granularity month
# window 2026-09-10 00:00 → 2026-10-10 12:31 (month)
# gpu 3,720 gpu-seconds (run 3,600 · slot 120)
# tokens 15
# node cost 0.00 USD (managed-node passthrough)
#
# BUCKET GPU CLASS KIND GPU-SECONDS
# 2026-10-01 rtx-6000 run 3,600
# 2026-10-01 rtx-6000 slot 120

The numbers are rounded for reading and the times are in your machine’s time zone. --json prints the exact decimal strings the API sent. Other windows are available through GET /v1/usage. See Usage & billing.

Mint, list and revoke the API keys for this account. Every key has the same access, so one key per machine or job is how you limit what a leak exposes. Keys that belong to a deployed agent are not listed here; they go with the agent.

Mint a key. The token is printed to stdout once and cannot be recovered; the label and id go to stderr, so turion keys create > key.txt captures only the secret.

OptionDefaultDescription
--namedefaultlabel for this key (e.g. ci)
Terminal window
turion keys create --name ci
# tk_… ← stdout, shown once
# label ci id 0192… — shown once, copy it now

The account’s keys, newest first, prefixes only. LAST USED tells you which key a forgotten script still holds, and STATUS in use marks the key this CLI is sending. Revoked keys are hidden unless --all. --json for the raw list, revoked keys included.

Terminal window
turion keys list
# ID PREFIX LABEL CREATED LAST USED STATUS
# 0192… tk_a1b2c laptop 2026-09-01 10:04 just now in use
# 0192… tk_f9e8d ci 2026-08-20 16:30 2h ago active

Revoke a key. KEY is its id, its prefix from turion keys list (tk_a1b2c), or a unique start of its id (at least four characters). Asks first, and says so when the key is the one this CLI is using; --yes/-y skips the question. Revoking takes effect at once: every later call with that token is a 401, including the key you are logged in with. When it is the key turion login saved, it is also removed from the config file.

Terminal window
turion keys revoke tk_f9e8d
# revoke key tk_f9e8d (ci, last used 2h ago)? [y/N]: y
# revoked tk_f9e8d (ci)

A fleet is a pool of GPU machines. Every account can use the shared turion fleet; a private fleet is your own hardware, and models pinned to it only ever run there. See Fleets and Join a node.

Create a private fleet. Pass a bare name; the server namespaces it as {handle}/{name}.

Terminal window
turion fleet create gpus
# created acme/gpus (private) id 0192…
# enroll a machine: turion fleet join-token gpus

Your fleets, plus the shared turion fleet.

Terminal window
turion fleet list
# SLUG KIND ID
# turion shared 0192…
# acme/gpus private 0192…

One fleet, the nodes enrolled in it (status, when each was last seen, whether its key is verified, and its GPU) and the fleet’s join tokens. Accepts a bare name, a slug or an id.

Terminal window
turion fleet get gpus
# acme/gpus (private) id 0192…
#
# NAME STATUS LAST SEEN VERIFIED GPU
# box-a active 4s ago yes NVIDIA L4 · 24 GB
#
# join tokens
# ID PREFIX CREATED EXPIRES STATUS
# 0192aaaa-0000-7000-8000-000000000001 fjt_ab12 2026-10-01 09:00 2026-10-08 09:00 active
# 0192bbbb-0000-7000-8000-000000000002 fjt_cd34 2026-09-01 09:00 2026-09-08 09:00 revoked

A token is stored only as a hash and shown once at mint time, so this section shows PREFIX (its first 8 characters), not the secret. STATUS is active, revoked or expired. Tokens are listed for the fleet’s owner only; the shared turion fleet shows none.

Mint a join token and print the command that enrolls a machine. The token goes to stdout once; the id, expiry and installer command go to stderr.

Argument / optionDefaultDescription
NAME(required)fleet name, slug or id
--ttl-hours, --ttl168 (one week)token lifetime in hours
--label—note on the token
Terminal window
turion fleet join-token gpus --ttl 24 --label "rig in the office"
# fjt_…
# id 0192… expires 2026-10-11 12:00 — shown once
#
# run this on the machine you want to enroll:
# curl -fsSL https://get.turion.ai | TURION_JOIN_TOKEN=fjt_… TURION_CONTROL_PLANE_URL=… sh -

The token enrolls any machine that runs that command until it expires or is revoked. Pasted as is, it also lands in your shell history; the CLI suggests read -rs TURION_JOIN_TOKEN or an env file instead.

Revoke a join token so it can no longer enroll anything. Nodes that already joined with it stay enrolled; revoking a token does not evict a machine.

TOKEN_ID is the full id, an unambiguous start of one, or the fjt_… prefix from turion fleet get. A value that matches more than one token is refused, with the matches listed.

Terminal window
turion fleet revoke-token gpus 0192abcd # id prefix
turion fleet revoke-token gpus fjt_ab12 # token prefix
# revoked join token 0192abcd-0000-7000-8000-000000000001

Delete one of your fleets. Its join tokens and nodes are revoked (a node’s agent stops on its next call), it leaves fleet list, and the name is free for a new fleet. Training jobs that ran on it keep showing it. It cannot be undone.

Argument / optionDefaultDescription
NAME(required)fleet name, slug or id
--yes, -yoffdo not ask; required when there is no terminal

Without --yes the CLI shows the fleet’s live nodes and active join tokens and asks you to type the full slug; anything else deletes nothing.

acme/gpus
turion fleet delete gpus
# acme/gpus: 1 node, 1 active join token
# …
# deleted fleet acme/gpus: its join tokens and nodes are revoked
# the name is free again: turion fleet create gpus

While nodes run work, rented nodes are up, models are pinned to the fleet or training jobs are queued or running, the API refuses with 409 fleet_in_use and the CLI lists each blocker with what clears it, then exits 1. The shared turion fleet cannot be deleted (403 fleet_not_deletable). See Fleets → Delete a fleet.

The webhook signing secret and the delivery log. See Webhooks.

Show the account’s webhook signing secret, or create or rotate it with --rotate. Your endpoint verifies X-Turion-Signature with it; rotating invalidates the old one immediately.

OptionDefaultDescription
--rotateoffcreate or rotate the secret
--yes, -yoffwith --rotate: replace an existing secret without asking
Terminal window
turion webhook secret --rotate
# whsec_…

Every attempt to POST a result to your webhook URL, newest first: how many attempts, the last HTTP status, when the next retry is due, and when it was delivered. This is where a webhook that never arrived is diagnosed.

OptionDefaultDescription
--prediction—only deliveries for this prediction id
--limit50rows per page
--cursor—next_cursor from a previous page
--jsonoffraw JSON instead of the table
Terminal window
turion webhook deliveries --prediction 0192f3a1-6c2e-7b40-8d51-9a7c4e2b1d04
# ID EVENT ATTEMPTS LAST STATUS NEXT ATTEMPT DELIVERED
# 0192… prediction.completed 3 502 2026-10-09 12:40 —

When there is another page, the last line is more: --cursor <cursor>.

Re-queue one delivery for an immediate retry (id from turion webhook deliveries). A delivery that already succeeded answers 409 rather than sending the payload twice.

Terminal window
turion webhook retry 0192abcd-...
# requeued 0192abcd-... attempts 0 next 2026-10-09 12:35

Running Cog images and imported checkpoints, such as image models, as predictions. To fine-tune and serve a language model, see Train & serve.

Used by run, cog predict and cog deploy --smoke-input; repeatable.

FormMeaning
key=valuestring value
key=@pathfile: uploaded for a remote run, inlined as a data URI for cog predict
key:=jsonraw JSON, e.g. temperature:=0.7, steps:=20, flag:=true

Run a Cog model on its fleet’s nodes: upload file inputs, create the prediction, wait for it (with status lines, a heartbeat and the model’s setup log on stderr), and print the output JSON.

Argument / optionDefaultDescription
REF(required)owner/name or owner/name:version, e.g. acme/whisper:v2 (no version = latest)
-i, --input—inputs (repeatable)
--webhook—https URL to POST the signed result to on completion
-o, --output-dir—save every output file as DIR/{prediction_id}/{key}.{ext}
--timeoutwait indefinitelymax seconds to wait for the result
--poll-interval2seconds between status polls
-q, --quietoffno heartbeat and no setup-log tail; just the output
--streamoffprint output chunks as the model produces them (guide)
--syncoffone round-trip via POST /v1/run/{owner}/{model} (guide)
--wait-timeout60--sync only: seconds the server holds the connection (capped at 300)
Terminal window
turion run acme/sdxl -i prompt="a lighthouse at dusk" -o ./out
# [0192f3a1-…] status=starting
# │ Downloading weights… ← the model's own setup log, live
# waiting 00:42 starting queue 3
# [0192f3a1-…] status=processing
# [0192f3a1-…] status=succeeded
# "https://…/output.png"
# saved out/0192f3a1-…/output.png

A cold start is minutes of image pull, weight download and setup(), so run prints a heartbeat every 5 seconds with the queue position (queue 3, or next up at the front of the line) and tails the container’s setup output while the prediction is starting. --quiet turns both off.

Output URLs expire 24 hours after the run, so --output-dir is how a result outlives the day. It needs the finished result, so it is refused with --stream.

--stream and --sync are mutually exclusive. --stream prints string chunks with no separator (non-string chunks as JSON, one per chunk) and no status lines; --timeout and --poll-interval do not apply to it. --sync needs an owner-scoped REF like acme/whisper, and falls back to polling (with the same heartbeat and setup-log tail) if the server’s wait runs out.

Host a model on Turion with one command, recording where the version came from. A Civitai URL is imported server-side in one API call; anything else is resolved, packaged and pushed to the registry from your machine (the same pipeline as turion migrate --to turion; use migrate for a directory or SSH target instead).

Argument / optionDefaultDescription
SOURCE(required)https://civitai.com/models/{id}[?modelVersionId=…], https://replicate.com/owner/name[/versions/id], replicate:owner/name[:version], cog:path-or-image, or a local Cog directory
--fleet—fleet to pin the model to (name, slug or id). A Civitai import runs on turion without it; any other source pushes your own image, which needs a fleet you own, and is refused with image_needs_own_fleet before anything is built or pushed
--namefrom the sourcemodel name (the slug becomes <handle>/<name>)
--registrysaved, else registry.turion.airegistry host (env TURION_REGISTRY); not used for Civitai URLs
--workdir.turion-migratescratch directory for scaffolded projects; not used for Civitai URLs
--gpus/--no-gpusprobe nvidia-smiforce GPU on or off for local builds; not used for Civitai URLs
Terminal window
turion host "https://civitai.com/models/827184?modelVersionId=1490781"
turion host https://replicate.com/openai/whisper --fleet acme/lab
turion host replicate:openai/whisper:8099696689d2 --fleet acme/lab
turion host ./my-cog-project --fleet acme/lab

On success it prints hosted <handle>/<name>@v1 https://turion.ai/members/models/<handle>/<name> (already hosted … when the same Civitai version was imported before).

A Civitai URL needs no Docker, registry or local build: the platform resolves the Civitai version, checks the file downloads without a Civitai login, and registers a version on Turion’s shared SDXL runner image. A bare /models/{id} URL imports the newest version; ?modelVersionId= pins one. Re-running the same import returns the same model. Only SDXL-family checkpoints (SDXL 1.0, Pony, Illustrious, NoobAI) that download without a Civitai login are imported; a LoRA, a checkpoint that needs a login or another family fails with a named error. See Host a Civitai model and POST /v1/imports/civitai.

Replicate sources need REPLICATE_API_TOKEN (an r8_… key) and Docker; the same digest-pull and scaffold fallback as turion migrate applies, and a scaffold cannot be hosted until you implement predict().

A Hugging Face URL (https://huggingface.co/…, https://hf.co/…) is not imported as a Cog model: host prints hugging face URLs are not imported as Cog models; fine-tune one with `turion train --base hf:<org>/<repo>` on stderr and exits 2. To fine-tune a Hugging Face model, see turion train. Any other source it cannot parse is an ordinary error (exit 1).

Rebuild a model from Replicate or a local Cog source, and deliver it to Turion, to a Docker host over SSH, or to a directory. See Migrate from Replicate and Self-host on your own box.

OptionDefaultDescription
--from(required)replicate:owner/name[:version] or cog:path-or-image
--to(required)turion, ssh://[user@]host, or an output directory
--registrysaved, else registry.turion.airegistry host for --to turion (env TURION_REGISTRY)
--fleet—--to turion: a fleet you own (name, slug or id) to run the model on; your image does not run on the shared turion pool
--workdir.turion-migratescratch directory for scaffolded projects
--port5000SSH target only: host port for the Cog server
--gpus/--no-gpusprobe nvidia-smiSSH target only: force GPU on or off
Terminal window
turion migrate --from replicate:openai/whisper --to turion --fleet acme/lab
# migrating replicate:openai/whisper → turion
# done: turion: acme/whisper@v1 (registry.turion.ai/acme/whisper@sha256:…)

Replicate sources need REPLICATE_API_TOKEN and Docker. If the digest-pinned r8.im image pull is denied, the model is scaffolded from its schema instead; a scaffold can only go to a directory target until you implement predict() (scaffold_only otherwise). The SSH target needs a runnable image, not a project.

Your own Cog projects: build them into images, push them to the Turion registry as model versions, and run them once locally. Your images run on a fleet you own, never on the shared turion pool; see Deploy a Cog model.

cog build and push in one command, with an optional remote smoke prediction.

Argument / optionDefaultDescription
PATH.Cog project directory
--modeldirectory namemodel name
--registrysaved, else registry.turion.airegistry host (env TURION_REGISTRY)
--tag<model>:latestlocal image tag to build
--fleetthe model’s current fleeta fleet you own (name, slug or id) to pin the model to; an existing model is moved there
--smoke-input—run one remote prediction with these inputs (repeatable; same syntax as -i)
--concurrencyuncappedmax predictions of this version at once (how exact)
--priority0claim priority for this version (higher goes first, ±1000)
--soci/--no-soci--socibuild a SOCI lazy-pull index after pushing
Terminal window
turion cog deploy . --model whisper --fleet acme/lab --smoke-input audio=@clip.mp3
# deployed acme/whisper@v1 (registry.turion.ai/acme/whisper@sha256:…)
# smoke prediction OK
# {"text": "…"}

Build a Cog project directory into a local image (wraps cog build; needs Docker). PATH (default .) must contain cog.yaml (not_a_cog_project otherwise).

Argument / optionDefaultDescription
PATH.Cog project directory
-t, --tagdirectory nameimage tag, e.g. my-model:latest
Terminal window
turion cog build . -t whisper:latest
# built whisper:latest

Push a built image to the Turion registry and register a model version.

Argument / optionDefaultDescription
IMAGE(required)local image from turion cog build / cog build
--modelimage namemodel name (the slug becomes <handle>/<name>)
--registrysaved, else registry.turion.airegistry host (env TURION_REGISTRY)
--fleetthe model’s current fleeta fleet you own (name, slug or id) to pin the model to; an existing model is moved there
--concurrencyuncappedmax predictions of this version at once
--priority0claim priority for this version (higher goes first, ±1000)
--soci/--no-soci--socibuild a SOCI lazy-pull index after pushing
Terminal window
turion cog push whisper:latest --model whisper --concurrency 4
# pushed registry.turion.ai/acme/whisper@sha256:…
# model acme/whisper@v2
# run it: turion run acme/whisper:v2 -i ...

Creates the model if needed, registers the next version (v1, v2, …) with the Cog schema read from the image, and pins the version to the pushed digest. Fails with not_a_cog_image if the image was not built by Cog (no schema label). Without --fleet, a model that is on the shared turion pool, or would land there as a new model, is refused with image_needs_own_fleet before anything is pushed. Retune --concurrency and --priority later with turion model set.

--soci builds a SOCI (Seekable OCI) index after the push, so a node with the SOCI snapshotter can start the container from a partial pull. The index is stored beside the image; the registered digest is unchanged, and nodes without the snapshotter pull the image as usual. It needs the soci binary (v0.10.0) on your PATH. If it is missing or the index build fails, the push still succeeds with a warning. --no-soci skips it.

Run a local image once on your machine: start the container (with --gpus all when nvidia-smi is present), wait for it to be ready, predict, print the output, tear down. File outputs are written as output.N.ext. See Local testing.

Argument / optionDefaultDescription
IMAGE(required)local image to run once
-i, --input—inputs (repeatable; see input syntax above)
--timeout600seconds for setup plus the prediction
Terminal window
turion cog predict whisper:latest -i audio=@clip.mp3

Prediction ids are UUIDs, printed by turion run.

One prediction as JSON: status, input, output, error, timestamps, and queue_position while it is starting.

Recent predictions for this account, newest first, as {"predictions": [...], "next_cursor": …}.

OptionDefaultDescription
--limit20rows per page (at most 100)
--cursor—a previous response’s next_cursor

Cancel a prediction that has not finished yet. Prints canceled.

The prediction’s container logs as text. While the prediction is starting this is the setup log (image pull, weight download, setup()), which turion run tails for you; after that it is the model’s own output.

Live status over SSE: one line per transition, and the output when it lands. Exits when the prediction reaches a terminal status.

Terminal window
turion prediction stream 0192f3a1-6c2e-7b40-8d51-9a7c4e2b1d04
# status=starting
# status=processing
# status=succeeded
# {"text": "…"}

Older spellings that still work for existing scripts, but are not listed in --help:

AliasUse instead
turion model build, push, predictturion cog build, push, predict
turion webhook-secretturion webhook secret
turion brain telegram list, link, unlinkturion brain chat telegram …
turion garden models, garden chat MODEL PROMPTturion chat, which reaches the same garden ids
turion deploy PATH (a Cog directory)turion cog deploy PATH
turion login --docker, --no-dockernothing; they are accepted so old scripts run. --registry-login asks for the Docker login
turion agent blueprintsturion agent new; it prints agents start from one template now: run `turion agent new NAME` to create one
turion agent new BLUEPRINT --name NAMEturion agent new NAME; only assistant is still accepted as BLUEPRINT