Deploys DataRobot models to production, manages deployments, configures prediction environments, and handles model swaps or A/B testing.
How this skill is triggered — by the user, by Claude, or both
Slash command
/datarobot-agent-skills:datarobot-model-deploymentThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill provides comprehensive guidance for deploying models, managing deployment configurations, and operating production deployments.
This skill provides comprehensive guidance for deploying models, managing deployment configurations, and operating production deployments.
Most common use case: Deploy a trained model to production
create_deployment(model_id, deployment_name) to deploy modelget_deployment_endpoint(deployment_id) to retrieve prediction URLExample: "Deploy the best model from project abc123 as 'Sales Prediction v1'"
Use this skill when you need to:
User request: "Deploy the best model from project abc123 to production with the name 'Sales Prediction v1'."
Agent workflow:
User request: "Replace the model in deployment xyz789 with the latest model from project abc123."
Agent workflow:
deployment.validate_replacement_model(...))deployment.perform_model_replace(...))This skill guides you to use the DataRobot Python SDK directly. Install the SDK if needed:
pip install datarobot
Use these DataRobot SDK methods for deployment management:
Deployments:
dr.Deployment.create_from_learning_model(model_id, label) - Create deploymentdr.Deployment.get(deployment_id) - Get deployment detailsdr.Deployment.list(project_id) - List deploymentsdeployment.delete() - Delete deploymentModel Replacement (champion swap):
deployment.validate_replacement_model(new_model_id=...) - Validate replacement eligibilitydeployment.perform_model_replace(new_model_id=..., reason=...) - Replace champion model (async)Challenger Models (limited via SDK):
deployment.list_challengers() - List challenger models (if enabled/configured)deployment.get_challenger_models_settings() / deployment.update_challenger_models_settings(...) - Configure challenger models settingsDeployment Info:
deployment.get_features() - Get required featuresSee the Common Patterns section below for complete examples.
import datarobot as dr
import os
# Initialize client
client = dr.Client(
token=os.getenv("DATAROBOT_API_TOKEN"),
endpoint=os.getenv("DATAROBOT_ENDPOINT")
)
# Get best model from project
models = dr.Model.list("abc123")
best_model = max(models, key=lambda m: m.metrics.get('AUC', 0))
# Create deployment
deployment = dr.Deployment.create_from_learning_model(
model_id=best_model.id,
label="Sales Prediction v1",
description="Production deployment for sales forecasting"
)
print(f"Deployment created: {deployment.id}")
import datarobot as dr
# Create deployment with primary model
deployment = dr.Deployment.create_from_learning_model(
model_id=primary_model.id,
label="Sales Prediction v2"
)
# List challengers (if challenger models are configured/enabled)
challengers = deployment.list_challengers()
print(f"Challengers: {len(challengers)}")
Common errors and solutions:
pip install datarobot
import datarobot as dr
import os
client = dr.Client(
token=os.getenv("DATAROBOT_API_TOKEN"),
endpoint=os.getenv("DATAROBOT_ENDPOINT", "https://app.datarobot.com")
)
npx claudepluginhub datarobot-oss/datarobot-agent-skills --plugin datarobot-agent-skillsMake predictions and generate prediction explanations (SHAP/XEMP) from DataRobot deployments, with support for batch scoring, dataset templates, and data validation.
Deploys trained ML models to production via REST APIs, Docker containers, Kubernetes clusters, with data validation, error handling, and performance monitoring.
Deploys ML models to production serving infrastructure using MLflow, BentoML, or Seldon Core with REST/gRPC endpoints. Implements autoscaling, monitoring, and A/B testing for real-time inference.