/confident-client:confident-clientfrom Confident AI Client
Work with the Confident AI API from code using the `confident-ai` package for Python and TypeScript. TRIGGER when the user wants to manage an account — organizations, projects, members, invitations, roles, policies, permissions, governance policies, API keys — or to read and write the resources a project holds: prompts, datasets and goldens (with images), traces, spans and threads, metrics and metric collections, test runs, evaluations, dashboards, annotation queues, red teaming. Also TRIGGER to provision or rotate API keys, onboard or offboard team members, set up RBAC (permissions → policies → roles → members), automate project provisioning, or gate a deployment on the project's governance policy in CI (`confident-ai gate`). Account-level calls need an Organization API Key (`CONFIDENT_ORG_API_KEY`); everything else needs a Project API Key (`CONFIDENT_PROJ_API_KEY`). DO NOT TRIGGER to instrument an application with tracing (use the `confident-tracing` or `confident-otel` skill) or to write a pytest eval suite; this skill calls the API, it does not run evals or emit spans from a running app.
Trending skills
7-day visitors to each skill page
Ships in Confident AI Client. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill to call the Confident AI API from code with the
confident-ai package, available for both Python and TypeScript. It covers
275 operations across 35 resources: the account (organizations, projects,
members, RBAC, governance, API keys) and the resources a project holds
(prompts, datasets, traces, spans, threads, metrics, test runs, evaluations,
dashboards, annotation queues, red teaming).
This skill does not instrument a running application or write eval suites. For
instrumentation, see the confident-tracing and confident-otel skills.
Which key a call needs is decided by the resource, not by the operation:
| Key | Environment variable | Reaches |
|---|---|---|
| Organization | CONFIDENT_ORG_API_KEY | client.organization, client.projects, client.project(id) |
| Project | CONFIDENT_PROJ_API_KEY | every other resource — prompts, datasets, traces, metrics, test runs, … |
One client can hold both, and picks the right one per call:
client = ConfidentAI() # reads both environment variables
client.organization.get() # organization key
client.datasets.list() # project key
Neither is CONFIDENT_API_KEY, which confident-trace uses — the distinct names let
both be configured at once.
confident-client) — call the API: administer the account,
and create, read, update or delete the resources a project holds.confident-tracing skill — instrument an app with the confident-trace
SDK and its integrations.confident-otel skill — export raw OpenTelemetry / OTLP traces.Use this skill for API calls: pulling a prompt, pushing goldens to a dataset, or reading a test run's results. Use the tracing skills for work inside a running program, such as emitting a span from a live request.
pip install confident-ai (Python) or
npm install confident-ai (TypeScript).confident_us_org_...) for account work, a
Project API Key (confident_us_proj_...) for everything else, or both.
Read by default from CONFIDENT_ORG_API_KEY and CONFIDENT_PROJ_API_KEY.Each reference file contains both Python and TypeScript examples. Before writing
code, determine which language the user is working in, then use the matching
code block (```python or ```typescript) within the
reference.
*.py, pyproject.toml, requirements.txt, setup.py, Pipfile, a .venv/venv*.ts, *.tsx, package.json, tsconfig.json, node_modules (JavaScript-only counts as TypeScript — same confident-ai package)ts/ next to a bare .venv is still ambiguous). Fall back to
Python (never TypeScript) only after asking and getting no answer, and say
you're defaulting.Within each reference, the code block for the target language is authoritative for exact method names, argument shapes (keyword arguments vs positional), and casing (snake_case vs camelCase). Do not guess a binding from the other language's examples.
references/quickstart.md.references/introduction.md maps the whole surface.permissions, bundle them into policies,
bundle policies into roles, then assign roles to members. Read
references/roles-policies-permissions.md.value immediately — it is shown only once. Read
references/api-keys.md.client.organization.list_api_keys().client.organization.get(),
client.datasets.list().list_members() returns an
OrganizationMemberList: .members holds the rows, .page and
.page_size describe the window. Read the rows off the named field.client.project(id), client.prompt(id) and client.dataset(id) return
a stateful handle that holds the record's id, so its methods take only
what is left. get() fills the handle and returns it; update() sends what
the handle holds.from confident_ai.datasets import SingleTurnGolden (Python), import { SingleTurnGolden } from "confident-ai/datasets" (TypeScript).value is returned only at creation (creating a
project also mints its first project key). Store it securely then; later
reads are masked. Prefer rotate_api_key over delete-and-recreate when a key
is in use — it can issue the replacement with a grace period.valid to false) over
deleting when you only need to revoke temporarily.client.governance.assess(),
or confident-ai gate in CI.a_:
await client.organization.a_get(). TypeScript is already promise-based.email), and which role (role_id) to
grant when inviting members or adding them to a project. Ask first, then act.Media. Format a Media into a golden's, test
case's, annotation's or prompt's text and the SDK fills imagesMapping; never build
it by hand. Read them back with parse_multimodal. See
references/media.md.Each topic has one reference file containing both Python and TypeScript examples; use the code block matching the target language.
| Topic | File |
|---|---|
| Install, configure both keys, first call | references/quickstart.md |
| The whole surface, the two scopes, stateful handles | references/introduction.md |
| Read and rename the organization | references/organization.md |
| Create, read, update, delete projects | references/projects.md |
| Members, invitations, and role assignment | references/members-and-invitations.md |
| RBAC: permissions, policies, and roles | references/roles-policies-permissions.md |
| Provision, rotate, enable/disable, and delete API keys | references/api-keys.md |
| Governance policies: CRUD, assign/unassign to projects, and the deployment gate | references/governance.md |
| Images in goldens, test cases, annotations and prompts | references/media.md |
| Prompts, datasets, traces, metrics, test runs and evaluations | references/resources.md |
| Background: why observability matters for AI products | references/ai-pm-observability.md |
Every method carries the route's own summary and description as its docstring (Python) or JSDoc (TypeScript), so a resource with no worked example here is still readable from the method itself.
LICENSE (opens in a new tab)references/ai-pm-observability.md (opens in a new tab)references/api-keys.md (opens in a new tab)references/governance.md (opens in a new tab)references/introduction.md (opens in a new tab)references/media.md (opens in a new tab)references/members-and-invitations.md (opens in a new tab)references/organization.md (opens in a new tab)references/projects.md (opens in a new tab)references/quickstart.md (opens in a new tab)references/resources.md (opens in a new tab)references/roles-policies-permissions.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub confident-ai/confident-skills --plugin confident-client