/datarobot-agent-skills:datarobot-agent-llm-selectionfrom datarobot-agent-skills
Configures LLM integration for DataRobot agent apps: switches models, integrations (LLM Gateway, DataRobot-deployed, external providers, LLM Blueprints), and sets provider credentials by reading llm.yml and running sync_llm_env.py.
Ships in datarobot-agent-skills. 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; scripts run unread.
Configure LLM integration without hand-editing .env. The skill drives
sync_llm_env.py with the user's answers as CLI arguments.
<skill_scripts_dir> = the scripts/ subdirectory of the directory containing this SKILL.md.
ls <skill_scripts_dir>/sync_llm_env.py
DATAROBOT_API_TOKEN in chatDATAROBOT_API_TOKEN yourself. The
token lives in $XDG_CONFIG_HOME/datarobot/drconfig.yaml (default
~/.config/datarobot/drconfig.yaml), populated by dr auth login, and
the dr CLI reads it internally. Do not run cat drconfig.yaml,
cat .env, env | grep TOKEN, echo $DATAROBOT_API_TOKEN,
curl -H "Authorization: Bearer $...", or any equivalent one-linersync_llm_env.py or write them to
tracked filessync_llm_env.py decide — it reads the section
from the project's configsync_llm_env.py merges LLM keys into .env — do not edit .env manuallystring rather than secret_string,
so this rule does not depend on what the config saysAnthropic,
ANTHROPIC_API_KEY, bedrock/anthropic.claude-..., azure, cohere).
Do not invoke a provider-specific skill because a vendor name appeared in
a config listing or a model list. You are wiring up credentials, not
calling that vendor's APIEvery menu in this skill — integrations, providers, gateway models — follows these rules. Dropping an option silently produces a config the user never chose.
Other, no Type something, no 5) something else. The user can always type a value anyway; that row exists only to hide
options you dropped...., no "and N more", no summarizing, no collapsing similar entries.name exactly as printed. Do not rename, regroup, or reorder.select: lines are internal plumbing. Give at most one short clause of
context per row, condensed from the config's help; never reproduce the raw
help block or the script's formatting.Long messages are fine. The token budget is not a reason to abbreviate a menu.
.datarobot/cli/llm.yml must be present. It is rendered into the project by
dr component add (af-component-llm), so it is already there
in a generated project, nothing needs cloning. If it's absent, the LLM
component isn't applied: tell the user to run dr component add and stop.
Never substitute a copy from elsewhere.$XDG_CONFIG_HOME/datarobot/drconfig.yaml (default
~/.config/datarobot/drconfig.yaml) exists. If it doesn't, tell the user
to run dr auth login (browser-based flow) and stop until they confirm
they're signed in. Do not cat the file to inspect its contents..env exist in the project:
.env is missing cp .env.template .env. That gives the base variables (DATAROBOT_*,
PULUMI_*, etc.) many are blank, it will be filled later. But the sync in Step 3
only needs the file to exist..env and no .env.template are missing, tell the user they're not in
a DataRobot agent project root and stop.Never recite integration names from memory or from this file. Each project's
.datarobot/cli/llm.yml declares its own, and they differ by component version.
python <skill_scripts_dir>/read_llm_config.py
If it reports the file is missing, the LLM component isn't applied to this
project. Tell the user to run dr component add and stop.
Do not run dr llm-gateway list, do not offer a model list, and do
not write any config file until the user has picked an option.
The default: line in the script's output is the schema's declared fallback,
not necessarily the project's live setting — don't conflate the two.
Before presenting the menu, find the actual current value:
grep -E '^INFRA_ENABLE_LLM=' .env
.env doesn't exist yet or has no match, tell the user no LLM
integration is configured yet.select: lines the script just
printed to report the current integration by its friendly name (e.g.
blueprint_with_external_llm.py → "External LLM"), not the raw filename.further choice: (a provider), also run
python <skill_scripts_dir>/read_llm_config.py --option <current_value>
and grep .env for the names of the env vars it lists, to report which
are already populated. Report only whether each key is set — per Hard
Rule 8, never print the value of a credential-shaped key, even to confirm
it's set.State this summary — e.g. "You're currently on <friendly name>[, provider
<provider>], with <N> of <M> fields already set" — before showing the
menu, so the user can decide to switch entirely or just change specific
fields on the current integration.
Present the options per Presenting choices above.
select: line. Once the user
picks, take that string verbatim — quote it if it contains spaces. The steps
below call it <selected_gateway>; it is also the INFRA_ENABLE_LLM value
written in Step 3.python <skill_scripts_dir>/read_llm_config.py --option <selected_gateway>
This prints the env vars the chosen integration declares. Handle each field by what the script reports about it:
hidden — never ask. Step 3 writes its default.llmgw_catalog — populate from the DataRobot CLI (see below).required — ask, using the printed help as the prompt text.optional with a default — apply it silently and say so in the
confirmation. Do not tell the user to "press enter".further choice: — another menu, presented per Presenting choices.
Show every row the script listed, with no catch-all and no picker widget.
Those rows carry their own select: field; call the user's pick
<selected_provider> and re-run --option <selected_provider> for its keys.llmgw_catalogFetch the model list only via the DataRobot CLI. Run exactly:
dr llm-gateway list --output-format json
The CLI authenticates via its own credential store (populated by
dr auth login). Do not read drconfig.yaml or .env for the token, and
do not pass DATAROBOT_API_TOKEN on the command line. If the command exits
non-zero or prompts for auth, tell the user to run dr auth login and stop —
do not attempt any manual API call and do not fabricate a menu.
Parse the JSON, which has the shape
{"llms": [{"id", "name", "provider", "model", "selected"}, ...]}. Use the
model field for each entry. The ids in the menu must come from that JSON,
verbatim, in the order returned. Do not invent ids or reuse them from your
training data. If the command did not produce JSON, stop and report the error.
Count the entries; call it N. Present exactly N labelled lines, one per
model, per Presenting choices. The letter scheme is A..Z, then AA..AZ,
BA..BZ, and so on. This list is the clearest case for never using a picker
widget — it routinely exceeds any picker's capacity.
sync_llm_env.py prepends datarobot/ for this field type, so pass the id
exactly as the CLI returned it.
Before presenting the list, check whether agent_spec.yaml exists at the
project root; if it does not, check for the legacy agent_spec.md. If either
exists, read it for context — the agent's purpose, task
complexity, and any stated cost or latency constraint — and use that to flag
one entry as recommended. This mirrors the recommendation logic in the
datarobot-agent-assist skill's llm-selection.md:
gpt-5, claude-4-5/4-6/4-8, or gemini-2.5/3 family
gateway model unless the spec or the user states a cost or latency
constraint.mini/haiku/flash
tier of that same family instead.deployed ones), recommend a
deployed entry instead and say why — the LLM Gateway is disabled or empty
on this instance, which is normal for an on-prem install, not an error.Announce them up front — do not let the user discover them via the sync
error message. Once the further choice is made, re-run
--option <selected_provider> and
tell the user exactly which keys they need and where the file lives:
For <choice>, I'll need these values in a per-user credentials file:
~/.config/datarobot/llm-<section>.env (or $XDG_CONFIG_HOME/...)
<KEY_1>
<KEY_2>
...
Step 3 will create that file as a blank template, with the help text for
each key as a comment, if it doesn't exist. Please fill it in your own
editor — do not paste the values in chat — then tell me "credentials ready"
and I'll re-run the sync.
<section>. Do not create the
file yourself, do not cat it, and do not accept secret values in chat..envFirst back up the current .env (sync overwrites it, and .env isn't in git):
cp .env .env.bak.$(date +%Y%m%d%H%M%S)
Run the sync script with the values collected in Step 2 as CLI args. No intermediate config file, no JSON to write.
python <skill_scripts_dir>/sync_llm_env.py \
--infra-enable-llm <selected_gateway> \
--set <ENV_NAME>=<value>
Repeat --set once per value, using the env var names the script printed in
Step 2 — they carry a per-project prefix and are not always LLM_*. Add
--provider "<selected_provider>" when Step 2 reported a further choice. Pass no
--set for fields reported as hidden; the script writes their defaults.
When the chosen option needs credentials, the script reads them from
$XDG_CONFIG_HOME/datarobot/llm-<section>.env:
.env
in one shot.dr dotenv validate echoes the full .env (including DATAROBOT_API_TOKEN)
to stdout. If you run it without redirection, the token lands in the chat
transcript and must be rotated. Same risk for dr dotenv update, dr task run,
dr run, cat .env, env | grep, or any other command that reads .env.
Run validation with all output suppressed and check only the exit code:
dr dotenv validate >/dev/null 2>&1
dr dotenv validate themselves in their own terminal
so the error stays local.
Then tell the user (do not run these yourself — they also echo secrets):LLM configuration synced to .env.
Please run these yourself in your terminal:
dr dotenv update # refresh DataRobot token if needed
dr task run infra:up-yes # push runtime params to deployment
dr run dev # local test
sync_llm_env.py derives its managed-key set from every env var declared
anywhere in the project's config, so switching integrations clears whatever the
previous one wrote before the fresh block goes in. Non-LLM .env lines are
preserved.
What SKILL.md sets; muted values are Claude Code's defaults
17 skills in this plugin
/datarobot-agent-assistUse when the user wants to design, build, code, simulate, or deploy an AI agent (not a predictive model) to DataRobot; mentions agent_spec.yaml, dr-assist, datarobot-agent-assist, dress rehearsal, swarm simulation, or the DataRobot agent template; wants to scaffold a LangGraph, CrewAI, LlamaIndex, NAT, or Base agent targeting DataRobot; wants to add an MCP server, backend API, or React frontend to a DataRobot agent application; or uses the DataRobot CLI (dr) to build or deploy an agentic custom application; or wants to harden, stress-test, or battle-test an agent. Covers the full workflow: agent design, agent_spec.yaml authoring, dress-rehearsal simulation via the DataRobot LLM Gateway, adversarial swarm simulation, template-based coding, and deployment./datarobot-app-framework-cicdGuidance for setting up CI/CD pipelines for DataRobot application templates using GitLab, GitHub Actions, and Pulumi for infrastructure as code. Use when setting up CI/CD pipelines, configuring deployments, or managing infrastructure for DataRobot application templates./datarobot-connectivity-datastore-sqlQuery, explore, and update databases through existing DataRobot data connections (datastores) with the connection's stored credentials: no connection strings, no app scaffolding. Use when the user wants to list DataRobot data connections, browse schemas, tables, or columns, preview a table, or run a SQL SELECT against any database connected in DataRobot; or run INSERT/UPDATE/DELETE/MERGE/CREATE (DML/DDL) through a Snowflake, Databricks, BigQuery, SAP Datasphere, or Trino connection. Examples: "query my Snowflake data connection", "show 10 rows from SALES.ORDERS in datastore <id>", "insert yesterday's totals into daily_summary in my Databricks connection". With only a JDBC URL and credentials, use datarobot-connectivity-jdbc-sql. Creating a connection happens in the DataRobot UI./datarobot-connectivity-jdbc-sqlRun SQL against a database through DataRobot with a JDBC URL (or host, port, and database) and credentials you supply; no DataRobot data connection needed. Also use it to point an existing app such as Talk to My Data at DataRobot's low-latency /jdbcDataPreview/ route (/jdbcExecution/ only for user-approved writes). Use when the user wants to test a connection to PostgreSQL, MySQL, SQL Server, Snowflake, Databricks, Trino, SAP HANA or Datasphere, Redshift, or BigQuery, list tables or columns, run read queries, or run DML/DDL, e.g. "run this SQL on jdbc:postgresql://… through DataRobot". If the database is already a DataRobot data connection, use datarobot-connectivity-datastore-sql./datarobot-data-preparationTools and guidance for data upload, dataset management, data validation, and preparing data for DataRobot projects. Use when uploading datasets, managing data, or validating data for DataRobot./datarobot-discoverUse when the user wants to find DataRobot capabilities — skills, MCP servers, agents, or platform resources — for a task. Fetches the live DataRobot catalog directly so results are always current, regardless of third-party search index lag. Also checks the user's own DataRobot instance if DATAROBOT_ENDPOINT is set.Other plugins' skills for the same job
npx claudepluginhub datarobot-oss/datarobot-agent-skills --plugin datarobot-agent-skills