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:
ic checks it and stores it in your operating system’s keychain:
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:
-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:
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.