Repository navigation
Closed
Copy link
Labels
Description
Summary
The CLI gains a compute context: what sessions and models run on, written down once and apart from any daemon. Source: inference-gateway/cli#1761, implemented in inference-gateway/cli#1762 (the model) and inference-gateway/cli#1763 (the commands). Document it once both are merged and released.
What changed for users:
~/.infer/compute.yaml, read from home only, holdsclusters(name,kubeconfig,context,namespace,mode,gateway_env),machines(name,address,token,tls) andgpus(provider,gpu_type,cloud_type,model,image,disk_gb,max_hourly). A project copy is ignored.- A workspace in
daemon.yamlnames its compute withcomputeand takes its kind and connection from it. A workspace may not repeat what its compute sets. Workspaces that carry their own connection keep working as before. - One Gateway per cluster. Every standard-mode workspace on one cluster shares that cluster's Gateway and credentials Secret, instead of each deploying its own. The namespace belongs to the cluster.
infer computecommands:infer compute clusters add | list | status | removeinfer compute machines add | list | status | removeinfer compute gpus provision | list | status | destroy, which replacesinfer gpu. The old name still works as a hidden, deprecated alias.
- The RunPod API key is
RUNPOD_API_KEYin the environment or~/.infer/auth.yaml, and is saved there on first use. The oldprovisionerblock and key inconfig.yamlstill work with a deprecation warning. infer daemon workspacesshows the compute each workspace runs on.
Example to add:
# ~/.infer/compute.yaml
clusters:
- name: k3d-agents
context: k3d-agents
namespace: agents
gateway_env:
- ANTHROPIC_API_KEY
gpus:
max_hourly: 1.50# ~/.infer/daemon.yaml
workspaces:
- name: code-reviewer
compute: k3d-agents
image: ghcr.io/inference-gateway/cli:latest
- name: release-manager
compute: k3d-agents
image: ghcr.io/inference-gateway/cli:latestAffected pages
cli.md, Workspace kinds section: thedaemon.yamlexample moves to workspaces naming theircompute, withcompute.yamlbeside it. State that the cluster's namespace and Gateway are shared, and that a workspace with its own connection still works.cli.md, a new Compute section (anchor/cli/#compute), per the docs repo's rule that CLI features are sections ofcli.md. It coverscompute.yamland theinfer compute clusters,machinesandgpuscommands.infer gpuwas never documented on the site, sogpusis new content: the llama.cpp handoff throughLLAMACPP_API_URLandLLAMACPP_API_KEY, where the key lives, and themax_hourlycap.cli.md, Configuration Files table: acompute.yamlrow with scope "User only".desktop.md: no change until [FEATURE] Compute tab: configure clusters once and let workspaces pick one desktop#474 moves its Compute tab ontocompute.yaml.- Related: [DOCS] Hosted MCP servers in mcp.yaml and Kubernetes workspace secrets #1128 also touches the Workspace kinds section, for workspace
secretsand hosted MCP servers.
Acceptance Criteria
- The Workspace kinds section shows workspaces naming their compute, with
compute.yamland the one-Gateway-per-cluster behaviour. - A Compute section in
cli.mddocumentscompute.yamlandinfer compute clusters,machinesandgpus, including the RunPod key location andmax_hourly. - The Configuration Files table lists
compute.yamlas user only. - No tracker numbers or links in the doc content, per the repo's AGENTS.md.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(compute): write clusters and machines down once in compute.yaml (#…
feat(compute): manage clusters, machines and GPUs with infer compute (#…
edenreich commentedon Nov 8, 2026
@claude can you document this? use /ponytail:ponytail check for all the relevant code first before documenting.
inference-gateway-maintainer commentedon Nov 8, 2026
Claude finished @edenreich's task in 3m 46s —— View job •
docs/issue-1131-20261108-1950Documented the compute context
cli.mdsectionsconfig/compute.go,cmd/compute/{compute,clusters,machines,gpus,status}.go,internal/compute/README.md) rather than working from the issue summary alonecompute, withcompute.yamlbeside it## Computesection at/cli/#computecompute.yamlrow in the Configuration Files table, scope "User only"bun run lint:md,bun run format:check,bun run buildall passWhat landed
Workspace kinds now leads with a workspace naming its
compute,compute.yamlshown besidedaemon.yaml. It states what a workspace on compute keeps for itself (image,storage,protocol,idle_ttl,env,forward_env,secrets), that settingkindor a key its compute already sets fails at startup, the one-Gateway-per-cluster behaviour with the shared namespace and credentials Secret, and keeps a smaller second example of a workspace carrying its own connection. Themodetable said "one Gateway per workspace" - corrected to per cluster.New
## Computesection coverscompute.yaml(clusters,machines,gpus, read from home only, project copy ignored),infer compute clustersandinfer compute machineswith their flags and what eachstatusactually checks, andinfer compute gpusas new content: the llama.cpp handoff throughLLAMACPP_API_URL/LLAMACPP_API_KEYwith the per-instance key,RUNPOD_API_KEYin the environment or~/.infer/auth.yamlplus the deprecatedprovisionerblock, themax_hourlycap, and the hiddeninfer gpualias.Three details came from the code and not the issue: a cluster name has to be a valid Kubernetes label value, the llama.cpp API key is generated per instance and passed as
--api-key, andinfer daemon workspacesprints aCOMPUTEcolumn.desktop.mduntouched, as the issue asks. Issue is on the Roadmap board at QA.Skipped: the per-workspace
secretsexamples further down the Workspace kinds section still usekind: kuberneteswith a per-workspacenamespace- still valid config, so I left them rather than churn a section that was just rewritten. Risk: I verified every flag and field against the CLI source atv0.249.0but did not run the binary, so the exact RunPod proxy URL shape in the example is taken fromrunpod.gorather than observed output.Create a PR - already opened as #1137
| Branch
inference-gateway-releaser commentedon Nov 8, 2026
🎉 This issue has been resolved in version 0.9.24 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀