Skip to content

Installation

Requirements

Install the SDK

pip install canard-sdk

Save Your API Key

You can authenticate three ways. The SDK checks them in this order:

export CANARD_API_KEY="your_api_key"
from canard import save_api_key
save_api_key("your_api_key")

This saves to ~/.canard/credentials with 0600 permissions.

Option 3: Pass Directly

from canard import Client
client = Client(api_url="https://api.canard.cloud", api_key="your_api_key")

Verify

from canard import Client

client = Client(api_url="https://api.canard.cloud")
status = client.get_queue_status()
print(f"Platform: {status.active_workers} workers online")

If this prints without error, you're ready to go.