ClearML Agent

2.0.7 · active · verified Mon Apr 13

ClearML Agent is a Python library that provides auto-magical DevOps capabilities for Deep Learning. It serves as a worker to execute machine learning tasks remotely, integrating with the ClearML Python package and ClearML Server. The library maintains an active release cadence with frequent updates.

Warnings

Install

Quickstart

The ClearML Agent is primarily a CLI tool. This quickstart guides through installation, interactive initialization to connect to a ClearML server and configure Git, and finally starting the agent daemon to listen for and execute tasks. For a full non-interactive setup, consider setting environment variables for credentials and pre-configuring `clearml.conf`.

# 1. Install ClearML Agent
pip install clearml-agent

# 2. Initialize the agent (interactive setup for server connection and git credentials)
# You'll be prompted to paste ClearML credentials and optionally configure Git.
# Ensure CLEARML_API_ACCESS_KEY and CLEARML_API_SECRET_KEY are set as environment variables
# or paste them when prompted.
# os.environ['CLEARML_API_ACCESS_KEY'] = os.environ.get('CLEARML_API_ACCESS_KEY', 'YOUR_ACCESS_KEY')
# os.environ['CLEARML_API_SECRET_KEY'] = os.environ.get('CLEARML_API_SECRET_KEY', 'YOUR_SECRET_KEY')
clearml-agent init

# 3. Start the ClearML Agent daemon (listening for tasks)
# For simple virtual environment mode (default):
# clearml-agent daemon

# For Docker mode (recommended for complex environments):
clearml-agent daemon --docker

view raw JSON →