Getting Started with WhiteBoxXAI¶
An auditor, a regulator or your own review board will eventually ask how a production AI system behaves and who signed off on it. This guide gets you from a new account to a monitored model with evidence you could hand over: real predictions logged, drift and explanations computed from them, and a report generated from the result.
It takes about 20 minutes. Prefer to explore first? Load sample data (step 2) and skip to Find your way around.
Using an AI coding agent?
Give it this instruction and it can do steps 3 to 5 for you:
Read https://whiteboxxai.com/.well-known/skills/whitebox-getting-started/SKILL.md and set up WhiteBoxXAI for this repository.
See Agent Skills.
Before you start¶
- Python 3.9 or later, if you'll connect a model with the SDK
- A model you can call: scikit-learn, XGBoost, LightGBM, PyTorch, TensorFlow/Keras, Hugging Face, an LLM app, or anything else you can call from Python
No Python? You can still register models, review evidence, run the readiness setup and generate reports entirely from the dashboard.
1. Create your account¶
- Go to whiteboxxai.com and choose Get Started for Free.
- Sign up with Google or Microsoft, or with email. The email form asks for:
- Full Name
- Password: at least 10 characters, with at least one letter and one number
- Confirm Password
- Optionally tick the box to receive product updates. You can change this later in Settings → Data & privacy.
- Click Create Account. If you're asked to verify your email, follow the link we send.
You're the Administrator of a new organization on the Free plan: one Governed AI System and 2,500 Governance Events a month. You can invite colleagues later from Settings → Users & roles.
Turn on two-factor authentication now
Two-factor authentication protects the account that will hold your compliance evidence. You'll also need it to vote on governance review requests. Go to Settings → Profile & security. See Two-Factor Authentication.
2. Set up compliance readiness¶
The first time you sign in, WhiteBoxXAI opens on the Enhanced Dashboard and offers Set up your compliance readiness. You can also start it any time from Overview → Set up readiness.
The setup has five steps. Each step is checked against your real data, not a checkbox you tick:
- Frameworks: adopt the frameworks you're accountable to: ISO/IEC 42001, the EU AI Act, GDPR, CCPA, or NIST AI RMF.
- Audit dates: set your next audit date for each framework. It appears on the compliance calendar and drives deadline reminders.
- Applicability: review the default decisions about which controls apply to you.
- Connect the SDK: send real data from a model (steps 3 to 5 below).
- Invite a reviewer: invite a colleague who will review and approve AI changes.
Your progress shows on the Overview as Your readiness setup: N of 5 steps done. Analysts can propose framework adoptions and dates, and an administrator confirms them.
Want to see a populated dashboard first?
Go to Settings → Sample data & tour → Load sample data. Sample models, predictions, drift events, bias audits and reports are added and clearly marked as sample data. They don't count against your plan, and Reset sample data removes them. WhiteBoxXAI never shows invented numbers on your own systems: an account with no data shows empty states.
3. Install the SDK and create an API key¶
Optional extras install framework integrations: whitebox-xai-sdk[sklearn], [pytorch],
[tensorflow], [xgboost], [lightgbm], [huggingface], [langchain], or [all].
Create an API key in Settings → API keys (administrators only). Copy it when it's shown; it's
displayed once. Keys look like wbx_live_.... Then put it in your environment rather than in code:
Check the connection:
import os
from whiteboxxai import WhiteBoxXAI
client = WhiteBoxXAI(api_key=os.environ["WHITEBOX_API_KEY"])
print(client.models.list(limit=5))
An authentication error means the key is wrong or revoked. See API Keys.
Business Cloud
On Business Cloud, your organization has its own tenant. Use the API address you were given
when the tenant was set up, by passing base_url= or setting WHITEBOX_BASE_URL.
4. Register a model and log predictions¶
Register the model once. Calling register again with the same name and version returns the
existing model, so it's safe to run on every start-up.
model = client.models.register(
name="credit_scoring",
model_type="xgboost", # xgboost, random_forest, neural_network, linear_model, llm or custom
framework="xgboost",
version="1.0.0",
features=["income", "utilisation", "tenure_months"],
baseline_metrics={"accuracy": 0.94}, # only values you actually measured; {} if none
auto_detect_git=True, # records the commit and branch the model came from
)
model_id = model["id"]
Then log what the model actually received and returned:
client.predictions.log(
model_id=model_id,
input_data={"income": 52000, "utilisation": 0.31, "tenure_months": 18},
output_data={"prediction": 0, "probability": 0.12},
latency_ms=4.2,
)
Rather not call log yourself? Wrap the model and every prediction is logged for you:
from whiteboxxai.integrations.sklearn import SklearnMonitor, SklearnWrapper
monitor = SklearnMonitor(client, model=clf) # clf: your fitted estimator
monitor.register_from_model(
name="credit_scoring",
model_type="random_forest",
version="1.0.0",
features=["income", "utilisation", "tenure_months"],
baseline_metrics={},
)
wrapped = SklearnWrapper(clf, monitor)
wrapped.predict(X) # logged automatically
Integrations exist for XGBoost, LightGBM, PyTorch, TensorFlow/Keras and Hugging Face too. See SDK & API. For LLM, RAG and agent apps, see LLM monitoring.
Log only what you need
Log the features the model uses. Don't log names, addresses or government ids. Put a
non-identifying reference such as a customer id in metadata if you need to trace a decision.
Each logged prediction is one Governance Event. For very high-volume models, log a representative sample, or group related records into runs.
You can also register a model without code: Model Register → Register a system.
5. Find your way around¶
Open the Enhanced Dashboard. The sidebar is grouped by what you're trying to do:
| Area | What you'll find |
|---|---|
| Overview | Where your AI systems stand: trust score, open findings, framework readiness, and what changed |
| Needs Attention | Every alert, risk, review and deadline that needs a person, worst first |
| Model Register | Every AI system you govern, with a dossier per system |
| Assurance | Explainability, fairness and drift for a system |
| Observability | Runtime performance, LLM & RAG activity, agents and prompt evaluations |
| Compliance & Evidence | Frameworks, controls, evidence, reports, the compliance calendar and the audit trail |
| Reviews & Decisions | Review requests, boards, votes and the decision archive |
| Risk Register | Your AI risks, scored by likelihood and impact |
Press ⌘K (or Ctrl+K) to search systems, controls, reports and reviews, and ? to see keyboard shortcuts. Choose Take the product tour from the ⌘K menu for a guided walkthrough.
6. Check drift and explain a prediction¶
Once predictions are flowing, ask for evidence computed from them:
report = client.drift.create_report(model_id, window_size=1000) # stored, citable by id
explanation = client.explanations.generate(
model_id,
instance={"income": 52000, "utilisation": 0.31, "tenure_months": 18},
method="shap",
)
Explanations run the model itself, so they need the model file stored with WhiteBoxXAI: register
the model through GitHub with storage_mode: full.
With metadata-only registration, as in step 4, drift and fairness work but explanation requests
are recorded as failed.
Or use Assurance in the dashboard, which shows each result with a plain-language verdict and a How was this computed? note. With little or no data, WhiteBoxXAI says the result can't be computed yet rather than showing a number. Drift needs a meaningful window of predictions to compare against the baseline.
See Assurance.
7. Generate your first report¶
- Go to Compliance & Evidence → Reports.
- Pick a report type: for example Model Card, Drift Report or Quarterly Board Pack. Each card says whether it's Ready or what data it still needs.
- Choose PDF, Word (DOCX) or HTML and click Generate.
The report is saved to History, where you can download it, record Preparer / Reviewer / Approver sign-off, or share it with an auditor through a verified, expiring link.
From code:
types = client.reports.list() # pick a report type id from this list
result = client.reports.generate(report_type_id="drift_report", model_id=model_id, format="pdf")
See Reports.
Next steps¶
Set up governance
- Compliance & Evidence: adopt frameworks, decide control applicability and attach evidence
- Reviews & Decisions: review boards and approval workflows
- AI Risk Register and Trust Score
Instrument more systems
- LLM monitoring: OpenAI, Anthropic, Gemini, Grok, Mistral, Bedrock and more
- Multi-agent monitoring: CrewAI, LangChain/LangGraph, AutoGen, n8n
- MCP Server: let an AI assistant query and act on WhiteBoxXAI
Reference
- Plans & Limits and Governance Events
- SDK & API and the REST API reference
- Troubleshooting and the FAQ
Quick troubleshooting¶
AuthenticationError or 401. The key is missing, mistyped or revoked. Check that
WHITEBOX_API_KEY is set in the same shell that runs your code, and create a new key if needed.
429 with QuotaExceeded. Your Free plan's monthly Governance Events are used up. See
Governance Events.
403 when registering a model. All of your plan's Governed AI Systems are in use. Archive one
you no longer govern, or register a new version of an existing system instead.
422 when registering a model. Check that model_type is one of xgboost, random_forest,
neural_network, linear_model, llm or custom, and that version, features and
baseline_metrics are present.
Predictions don't appear. Make sure you're looking at the model id you logged to, and call
client.predictions.get_recent(model_id) to confirm they arrived. If you enabled offline mode, the
SDK may still be holding them in its local queue. See Offline Mode.
Lost your authenticator. Sign in with one of your backup codes. See Two-Factor Authentication.
Still stuck? Email support@whiteboxxai.com or use Support in the dashboard sidebar.