Skip to main content

1. Create an Account

2. Connect from Python

You need this for programmatic tasks like tracing or logging local evals. Many other tasks can be done directly on the platform.

Get a Token

Click the Key menu icon to open the Token page. Generate and save token securely.

Install Evidently

Install the Evidently Python library.
pip install evidently ## or pip install evidently[llm]

Connect

Import the cloud workspace and pass your API token to connect:
from evidently.ui.workspace import CloudWorkspace

ws = CloudWorkspace(
token="API_KEY",
url="https://app.evidently.cloud")
For Evidently 0.6.7 and Evidently Cloud v1, use from evidently.ui.workspace.cloud import CloudWorkspace. Read more.
You can also provide the API key by setting the environment variable EVIDENTLY_API_KEY.
You are all set! Create a Project and run your first evaluation.
I