Skip to main content
ic is the Infinite Compute command line. It uses the API, with the same rules as the console.

Install and sign in

ic needs Python 3.10 or later. Install it with pipx:
Sign in with an API key. ic checks it and stores it in your operating system’s keychain:
Set INFINITECOMPUTE_API_URL to your console address followed by /api/public/v1 so you don’t need --api-url each time. Your console address is in your welcome email. In CI, set INFINITECOMPUTE_API_KEY instead of running ic login; it takes precedence over the stored key. ic logout removes the stored key.

Launch a server and connect

ic ssh turns on SSH access for the server if it’s off, then runs ssh for you. Anything after the server name goes to ssh, for example a port forward for Jupyter:
Use -i ~/.ssh/<key> if your key isn’t the default one. ic ssh llm-finetune-01 --close turns SSH access off again.

Commands

You can name a server or give its id. ic --help and ic <command> --help show every option.

Scripting

Every command takes --json and prints JSON instead of a table:
Errors go to stderr with the API’s message and request id, and ic exits with status 1. ic servers create sends an Idempotency-Key, so retrying a failed create in a script never launches two servers; pass --idempotency-key to choose it yourself.

Park instead of stop

A stopped server keeps its GPU, so it stays billed. Park a server you won’t use for a while: the GPU is released and GPU billing stops, and your disk is kept.
See Park, stop or delete.