Skip to content

[DOCS] Compute: compute.yaml, workspaces naming their compute, and infer compute #1131

Closed

Description

@edenreich

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, holds clusters (name, kubeconfig, context, namespace, mode, gateway_env), machines (name, address, token, tls) and gpus (provider, gpu_type, cloud_type, model, image, disk_gb, max_hourly). A project copy is ignored.
  • A workspace in daemon.yaml names its compute with compute and 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 compute commands:
    • infer compute clusters add | list | status | remove
    • infer compute machines add | list | status | remove
    • infer compute gpus provision | list | status | destroy, which replaces infer gpu. The old name still works as a hidden, deprecated alias.
  • The RunPod API key is RUNPOD_API_KEY in the environment or ~/.infer/auth.yaml, and is saved there on first use. The old provisioner block and key in config.yaml still work with a deprecation warning.
  • infer daemon workspaces shows 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:latest

Affected pages

  • cli.md, Workspace kinds section: the daemon.yaml example moves to workspaces naming their compute, with compute.yaml beside 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 of cli.md. It covers compute.yaml and the infer compute clusters, machines and gpus commands. infer gpu was never documented on the site, so gpus is new content: the llama.cpp handoff through LLAMACPP_API_URL and LLAMACPP_API_KEY, where the key lives, and the max_hourly cap.
  • cli.md, Configuration Files table: a compute.yaml row 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 onto compute.yaml.
  • Related: [DOCS] Hosted MCP servers in mcp.yaml and Kubernetes workspace secrets #1128 also touches the Workspace kinds section, for workspace secrets and hosted MCP servers.

Acceptance Criteria

  • The Workspace kinds section shows workspaces naming their compute, with compute.yaml and the one-Gateway-per-cluster behaviour.
  • A Compute section in cli.md documents compute.yaml and infer compute clusters, machines and gpus, including the RunPod key location and max_hourly.
  • The Configuration Files table lists compute.yaml as user only.
  • No tracker numbers or links in the doc content, per the repo's AGENTS.md.

Activity

  1. added
    documentation
    on Nov 8, 2026
  2. added theissue type on Nov 8, 2026
  3. moved this to Todo in 2026on Nov 8, 2026
  4. edenreich commented on Nov 8, 2026

    @edenreich
    ContributorAuthor

    @claude can you document this? use /ponytail:ponytail check for all the relevant code first before documenting.

  5. inference-gateway-maintainer commented on Nov 8, 2026

    @inference-gateway-maintainer
    Contributor

    Claude finished @edenreich's task in 3m 46s —— View job • docs/issue-1131-20261108-1950


    Documented the compute context

    • Read the relevant cli.md sections
    • Checked the CLI source first (config/compute.go, cmd/compute/{compute,clusters,machines,gpus,status}.go, internal/compute/README.md) rather than working from the issue summary alone
    • Workspace kinds section: workspaces naming their compute, with compute.yaml beside it
    • New ## Compute section at /cli/#compute
    • compute.yaml row in the Configuration Files table, scope "User only"
    • Validated: bun run lint:md, bun run format:check, bun run build all pass
    • Committed and opened the PR

    What landed

    Workspace kinds now leads with a workspace naming its compute, compute.yaml shown beside daemon.yaml. It states what a workspace on compute keeps for itself (image, storage, protocol, idle_ttl, env, forward_env, secrets), that setting kind or 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. The mode table said "one Gateway per workspace" - corrected to per cluster.

    New ## Compute section covers compute.yaml (clusters, machines, gpus, read from home only, project copy ignored), infer compute clusters and infer compute machines with their flags and what each status actually checks, and infer compute gpus as new content: the llama.cpp handoff through LLAMACPP_API_URL / LLAMACPP_API_KEY with the per-instance key, RUNPOD_API_KEY in the environment or ~/.infer/auth.yaml plus the deprecated provisioner block, the max_hourly cap, and the hidden infer gpu alias.

    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, and infer daemon workspaces prints a COMPUTE column.

    desktop.md untouched, as the issue asks. Issue is on the Roadmap board at QA.

    Skipped: the per-workspace secrets examples further down the Workspace kinds section still use kind: kubernetes with a per-workspace namespace - 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 at v0.249.0 but did not run the binary, so the exact RunPod proxy URL shape in the example is taken from runpod.go rather than observed output.

    Create a PR - already opened as #1137
    | Branch

  6. moved this from Todo to In progress in 2026on Nov 8, 2026
  7. moved this from In progress to QA in 2026on Nov 8, 2026
  8. inference-gateway-releaser commented on Nov 8, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.24 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

  9. moved this from QA to Done in 2026on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions