CLI Reference

The clore CLI lets you manage the Clore.ai GPU marketplace directly from your terminal — search for GPUs, deploy instances, SSH in, and manage orders without writing any code.


Installation

pip install clore-ai

This installs both the Python SDK and the clore CLI command.

Requirements: Python 3.9+


Configuration

Set your API key

Get your key from the Clore.ai dashboardarrow-up-rightAPI section, then configure:

clore config set api_key YOUR_API_KEY

This saves the key to ~/.clore/config.json.

Or use an environment variable

export CLORE_API_KEY=your_api_key_here

View current config


Commands

Command
Description

clore search

Search the GPU marketplace

clore deploy <server_id>

Create a new order (rent a server)

clore orders

List your orders

clore cancel <order_id>

Cancel an order

clore ssh <order_id>

SSH into an active order

clore wallets

Show wallet balances

clore servers

List your hosted servers

clore server-config <name>

Get server configuration

clore spot <server_id>

View spot market for a server

clore spot-price <order_id> <price>

Set spot price

clore config set <key> <value>

Set a config value

clore config get <key>

Get a config value

clore config show

Show all configuration

clore --version

Show version


Detailed Usage

Search the GPU marketplace with filters and sorting.

Options:

Option
Type
Description

--gpu

text

Filter by GPU model (e.g. "RTX 4090")

--min-gpu

int

Minimum GPU count

--min-ram

float

Minimum RAM in GB

--max-price

float

Maximum price in USD/hour

--sort

choice

Sort by: price (default), gpu, ram

--limit

int

Max results to show (default: 20)

Example output:


clore deploy <server_id>

Create a new order to rent a GPU server.

Arguments:

Argument
Description

server_id

Server ID to rent (get from clore search)

Options:

Option
Type
Required
Description

--image

text

Yes

Docker image (e.g. cloreai/ubuntu22.04-cuda12)

--type

choice

Yes

on-demand or spot

--currency

text

Yes

Payment currency (e.g. bitcoin)

--ssh-password

text

No

SSH password (alphanumeric, max 32 chars)

--ssh-key

text

No

SSH public key

--port

text

No

Port mapping (repeatable), format: PORT:PROTOCOL

--env

text

No

Environment variable (repeatable), format: KEY=VALUE

--spot-price

float

No

Spot price per day (required for spot orders)


clore orders

List your active orders.

Options:

Option
Description

--completed

Include completed/expired orders

Example output:


clore cancel <order_id>

Cancel an active order.

Arguments:

Argument
Description

order_id

Order ID to cancel

Options:

Option
Description

--issue

Cancellation reason / issue report


clore ssh <order_id>

Auto-connect via SSH to a running order. The CLI resolves the hostname and port from your order details.

Arguments:

Argument
Description

order_id

Order ID to connect to

Options:

Option
Default
Description

--user

root

SSH username


clore wallets

Show your wallet balances and deposit addresses.

Example output:


clore servers

List servers you are hosting on the marketplace.


clore server-config <name>

Get the configuration of a specific server you host.

Example output:


clore spot <server_id>

View current spot market offers for a server.

Example output:


clore spot-price <order_id> <price>

Update the price on your spot market offer.

Note: You can only lower spot prices once every 600 seconds, and by a limited step size.


clore config

Manage CLI configuration.

Configuration is stored in ~/.clore/config.json.


Workflows

Search → Rent → SSH → Cancel

A typical end-to-end workflow:

Monitor balances before renting

Spot market workflow

Server hosting management


Next Steps

Last updated

Was this helpful?