Skip to main content

InferCrane v2.3.0

v2.3.0 makes the first run work against the hosted service. In v2.2.0, infercrane login with nothing configured tried a control plane on 127.0.0.1:8080 and failed as unreachable. Now it signs in to https://api.infercrane.com, and the SDKs send a key you pass in code there too.

Install

Then sign in:

What changed for a hosted user

  • infercrane login uses the hosted service. With no --url, no INFERCRANE_URL and no saved context, it signs in to https://api.infercrane.com, approved at https://console.infercrane.com. For your own control plane, run infercrane login --url https://YOUR_CONTROL_PLANE or set INFERCRANE_URL. Read Sign in the CLI.
  • The CLI and SDKs pick the control plane the same way. Each reads the argument or --url first, then INFERCRANE_CONTROL_URL, then INFERCRANE_URL. An empty variable counts as unset.
  • A key from the environment is never sent to the hosted service unasked. A server or CI job often holds its own operator key in INFERCRANE_API_KEY. With such a key and no URL named, the CLI and SDKs stop with set INFERCRANE_URL (https://api.infercrane.com for the hosted service). A key you pass in code (api_key, apiKey) goes to the hosted service. So for the hosted service, set both variables:
    infercrane init now needs --url or one of the URL variables.
  • infercrane doctor works before you sign in. It checks your side: the config file and context, whether the control plane answers, whether your key signs in, and your workspace. Each failed check names its fix. It lists what it could not check.
  • A low balance says so. When your prepaid balance is too low, the hosted service answers 402 with code: "insufficient_balance" and says to add credits under Billing. infercrane request prints a refusal as one line with the next step, the code and the request ID, never the raw body.
  • Common OpenAI clients work with hosted models. The hosted API accepts stream_options.include_usage, max_completion_tokens, top_p, stop, seed, the penalties, n: 1 and user, so the OpenAI SDKs, LangChain and the Vercel AI SDK call it unchanged. A refusal names the field, for example Field 'tools' is not supported for glm-5.3-flash. Read Request fields.
  • Checkout returns to your billing page with its session. After a Stripe payment the dashboard receives the Checkout session ID.
  • Hosted spend is in the billing ledger. GET /api/v1/billing/ledger lists each hosted Model API charge as a settlement, so the entries add up to your wallet balance.
  • Every hosted call has a request ID you can look up. infercrane request prints the InferCrane request ID on stderr (infercrane_request_id with --output json). infercrane request inspect ID shows the hosted call’s model, tokens, charge and timings, and says which fields are not recorded.
  • Two config folders keep two keys. A login from a config file other than ~/.config/infercrane/config.json (through INFERCRANE_CONFIG or XDG_CONFIG_HOME) stores its Keychain item under its own name, so it no longer replaces the default folder’s key. Existing logins keep working.

Other changes

Start

  • infercrane start with no flags uses the dashboard’s defaults (chat, 8 at once, 1,024 tokens in, 256 out) and lists them under “Defaults used”. Read Start from your workload.
  • First commands. connect is on the main help screen, and so are report and data. An empty deployments or endpoints list prints the next command to run. infercrane principal list shows your workspace’s keys, CLI sign-ins and service accounts, never a credential.

Operate

  • Remove a deployment whose provider is out of reach. When a delete fails with provider_backend_unavailable, infercrane delete NAME --forget-unreachable removes its records without calling the provider, and says that nothing at the provider was touched. It acts only on a delete that already stalled; a live deployment is refused with forget_requires_stalled_delete. A stalled delete can also be retried. Read the deployment lifecycle.
  • An endpoint says whether its PASS still holds. GET /api/v1/endpoints/{name} adds active_plan_pass_superseded_by when a later BLOCK or UNKNOWN has superseded the PASS its active plan serves on, and active_plan_pass_read: false when that could not be read. infercrane endpoint inspect warns on stderr in the first case.
  • CLI sessions show the version in use. The CLI names its version in its User-Agent, and a CLI session records the version that last used it, not only the one that signed in.

Prove and Own

  • Graded rows name their run and verdict. Each graded check row in a deployment’s quality evidence carries its campaign, its setup, and the verdict that decides that setup now, with migration_verdict_read: false when the lookup failed. Every plan and run checks its eval set the same way. infercrane data delete --with-upload DIGEST removes a registered set and its uploaded copy together.
  • A right-size receipt. The Qwen3-8B to Qwen3-4B migration Proof on an L4 is listed with the other results. It compared answer quality only. Read the receipt.

Security

  • doctor diagnostics are for the operator only. GET /api/v1/doctor describes the control plane itself. It now answers only the operator’s workspaces; any other workspace gets 403 diagnostics_operator_only. In v2.2.0 and older, any key with read access got the full report. Upgrade a self-hosted control plane that serves more than one workspace. Read control-plane diagnostics.

Documentation

  • The README, Start from your workload and the SDK pages say how a hosted user signs in and which URL to set, with your own control plane second.
  • The Python SDK installs into a virtual environment everywhere it is shown.

Upgrade

The control plane runs three new forward-only database migrations on start, each adding an index: 101_migration_verdict_evidence_index, 102_model_api_usage_ledger_tenant_time_index and 103_model_api_usage_request_lookup_index. Back up the database before you upgrade, as for every release. Scripts that ran the CLI or an SDK with only INFERCRANE_API_KEY set and relied on the 127.0.0.1 default now stop with an error: set INFERCRANE_URL to your control plane.

Qualification

This release passed the repository’s full local gate before tagging, and is built and scanned by the release workflow. Measured results for a specific model, runtime, accelerator and workload are on the evidence pages they link to; nothing here generalises them. Review compatibility and qualification.