Python SDK (clore-ai)
Installation
pip install clore-aiAuthentication
Option 1: Environment variable (recommended)
export CLORE_API_KEY=your_api_key_hereOption 2: CLI config file
clore config set api_key YOUR_API_KEYOption 3: Pass directly in code
Quick Start
Sync Client (CloreAI)
Constructor
wallets()
Field
Type
Description
marketplace()
Parameter
Type
Default
Description
Property
Type
Description
Field
Type
Description
my_servers()
Property
Type
Description
server_config(server_name)
Parameter
Type
Description
Property
Type
Description
my_orders(include_completed)
Parameter
Type
Default
Description
Field
Type
Description
spot_marketplace(server_id)
Parameter
Type
Description
Field
Type
Description
create_order(...)
On-demand order
Spot order
Parameter
Type
Required
Description
cancel_order(order_id, issue)
Parameter
Type
Required
Description
set_server_settings(...)
Parameter
Type
Required
Description
set_spot_price(order_id, price)
Parameter
Type
Description
Async Client (AsyncCloreAI)
Basic usage
Concurrent operations
Available methods
Method
Description
Error Handling
Error codes
Code
Exception
Description
Rate Limiting
Endpoint
Limit
How it works
Customize retry behavior
Configuration
Config file
Resolution order
Environment variables
Variable
Description
Next Steps
Last updated
Was this helpful?