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
What changed for a hosted user
-
infercrane loginuses the hosted service. With no--url, noINFERCRANE_URLand no saved context, it signs in tohttps://api.infercrane.com, approved athttps://console.infercrane.com. For your own control plane, runinfercrane login --url https://YOUR_CONTROL_PLANEor setINFERCRANE_URL. Read Sign in the CLI. -
The CLI and SDKs pick the control plane the same way. Each reads the argument or
--urlfirst, thenINFERCRANE_CONTROL_URL, thenINFERCRANE_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 withset 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 initnow needs--urlor one of the URL variables. -
infercrane doctorworks 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 requestprints 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: 1anduser, so the OpenAI SDKs, LangChain and the Vercel AI SDK call it unchanged. A refusal names the field, for exampleField '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/ledgerlists each hosted Model API charge as asettlement, so the entries add up to your wallet balance. -
Every hosted call has a request ID you can look up.
infercrane requestprints the InferCrane request ID on stderr (infercrane_request_idwith--output json).infercrane request inspect IDshows 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(throughINFERCRANE_CONFIGorXDG_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 startwith 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.
connectis on the main help screen, and so arereportanddata. An emptydeploymentsorendpointslist prints the next command to run.infercrane principal listshows 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-unreachableremoves 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 withforget_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}addsactive_plan_pass_superseded_bywhen a later BLOCK or UNKNOWN has superseded the PASS its active plan serves on, andactive_plan_pass_read: falsewhen that could not be read.infercrane endpoint inspectwarns 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: falsewhen the lookup failed. Every plan and run checks its eval set the same way.infercrane data delete --with-upload DIGESTremoves 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
doctordiagnostics are for the operator only.GET /api/v1/doctordescribes the control plane itself. It now answers only the operator’s workspaces; any other workspace gets 403diagnostics_operator_only. Inv2.2.0and 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.