Setup and Installation
Create an account and install the SDKs
Overview
Welcome to Confident AI! Getting set up takes a couple of minutes. You'll need to:
- Create a free account and grab your project API key
- Install the SDK for what you want to do — DeepEval for running evals locally,
confident-tracefor tracing your production app, and the Confident AI SDK for working with Confident AI from code - Point the SDK at your project with
CONFIDENT_API_KEY(CONFIDENT_PROJ_API_KEYfor the Confident AI SDK)
Login with your API key
Create an account
Navigate to cloud.confident-ai.com and create a free account. Once logged in, you'll be able to access your project API key from the dashboard.
Set API key as env variable
Set your project API key as an environment variable:
export CONFIDENT_API_KEY="confident_us..."Both DeepEval and
confident-traceread this same variable. For Confident AI SDK, set your project API key asCONFIDENT_PROJ_API_KEY:export CONFIDENT_PROJ_API_KEY="confident_us..."If you're using DeepEval, you can alternatively login through the CLI:
deepeval loginThis will prompt you to enter your API key and save it locally.
Install the SDK
At the root of your project directory, install the package you need. Requires Python 3.10+.
pip install -U deepevalpip install confident-tracepip install confident-aiNot sure which one? See the note below — most teams end up installing both.
Create an account
Navigate to cloud.confident-ai.com and create a free account. Once logged in, you'll be able to access your project API key from the dashboard.
Set API key as env variable
Set your project API key as an environment variable:
export CONFIDENT_API_KEY="confident_us..."Or add it to your
.envfile:CONFIDENT_API_KEY=your-api-key-here CONFIDENT_PROJ_API_KEY=your-api-key-hereBoth DeepEval and
confident-tracereadCONFIDENT_API_KEY, and the Confident AI SDK reads the same key fromCONFIDENT_PROJ_API_KEY.Install the SDK
At the root of your project directory, install the package you need.
confident-tracerequires Node.js 22+ (andtsxif you run TypeScript source directly).npm install deepevalnpm install confident-trace npm install -D tsxnpm install confident-aiNot sure which one? See the note below — most teams end up installing both.
Next Steps
Now that you have Confident AI set up, the next section will guide you through LLM evaluation in development. This is where you'll learn to systematically test and improve your AI applications before deployment.
LLM Evaluation
Run your first evaluation with DeepEval and see test results on Confident AI.
LLM Tracing
Instrument your app with confident-trace and see your first trace in the
Observatory.
Last updated on