w.ai CLI Guide
To get started with the CLI, install it as mentioned in Quick Start
On a desktop environment
If on a device with a desktop environment/a browser, start by logging in:
And then run using
On a headless environment
If you want to run on a headless server, you need to run the above login command(in a desktop environment/somewhere with a browser), and then generate an API key using
You will get a key that you can set on the headless environment using
And then run normally (in the headless environment) as follows:
Headless environment key management
You can list generated API keys using
And revoke any using
For more info, run
Specifying GPUs (NVIDIA only)
If you want to run with a subset of your GPUs, add a -g
flag to the run command followed by a list of the GPU IDs. For example, to run on GPUs 0 and 1, the command would be:
If no GPU is provided, it will be ran on GPU 0
Last updated