domino-python-sdk

A Python library and REST API guide for Domino Data Lab, a platform for running data and machine-learning work. It covers authentication, jobs, projects, files, deployments, and automation.

In plain words
What is it for?
Use it to write Python integrations, call Domino’s API, run jobs, manage projects and files, deploy models, and connect Domino to automated workflows.
Why use it?
It helps you control Domino from programs or scripts instead of performing every task manually in its web interface.

Skill for Claude CodeCodex

Part of the domino-claude-plugin plugin — 23 skills, 4 commands, 3 agents, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/dominodatalab/domino-claude-plugin/python-sdk
Any agent
npx skills add dominodatalab/domino-claude-plugin --skill python-sdk
Clone the repo
git clone --depth 1 https://github.com/dominodatalab/domino-claude-plugin

Made for: Claude Code, Codex.

Or install domino-claude-plugin, the plugin that ships this one along with the rest of its 23 skills, 4 commands, 3 agents, 1 MCP server.

Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,800 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00056 $0.02800
Opus 5 $0.00028 $0.01400
Sonnet 5 $0.00011 $0.00560
Haiku 4.5 $0.00006 $0.00280

Measured 3d ago against content hash a944423b73e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

domino-python-sdk scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

TOKEN = requests.get("http://localhost:8899/access-token").text.strip()
skills/python-sdk/SKILL.md · 464 lines

How it starts

The opening of the file, as written. The whole thing — 464 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Domino Python SDK Skill

Description

This skill helps users work with the Domino Python SDK (python-domino) and REST APIs to programmatically interact with Domino.

Activation

Activate this skill when users want to:

  • Use the Domino Python SDK
  • Make API calls to Domino
  • Automate Domino workflows
  • Integrate Domino with external systems
  • Query Domino programmatically

Overview

Domino provides two main programmatic interfaces:

  • python-domino: Python SDK for common operations
  • REST API: Full HTTP API for all Domino features

Installation

python-domino

# Install from PyPI
pip install dominodatalab

# Or install with extras
pip install "dominodatalab[data]"

In Domino Environment

Add to requirements.txt:

dominodatalab>=1.4.0

Or Dockerfile:

RUN pip install dominodatalab

Authentication

Preferred: Access Token (inside Domino)

When running inside Domino (workspace, job, app, model), fetch a short-lived bearer token from the local sidecar:

import requests, os

TOKEN = requests.get("http://localhost:8899/access-token").text.strip()
BASE = os.environ["DOMINO_API_HOST"]
headers = {"Authorization": f"Bearer {TOKEN}", "Content-Type": "application/json"}

Use headers on all requests calls. Prefer this over the SDK for new code — see REST API section below.

SDK Authentication (deprecated pattern)

Note: DOMINO_USER_API_KEY and the api_key= parameter are deprecated and will be removed in a future Domino release. Use the access-token endpoint above for new code. The SDK options below are documented for reference only.

from domino import Domino

# Option 1: Pass credentials directly (deprecated)
domino = Domino(
    host="https://your-domino.com",
    api_key="your-api-key",
    project="owner/project-name"
)

# Option 2: Environment variables (deprecated)
import os
os.environ["DOMINO_API_HOST"] = "https://your-domino.com"
os.environ["DOMINO_USER_API_KEY"] = "your-api-key"

domino = Domino("owner/project-name")

# Option 3: Inside Domino (auto-configured via injected env vars)
domino = Domino("owner/project-name")

Read the full file on GitHub · 464 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 464 lines · 56 tokens per session scan A a944423b73e8

Subscribe to this mod's changes

domino-python-sdk is a skill published in the GitHub repository dominodatalab/domino-claude-plugin (6 stars, last pushed 1mo ago), licensed MIT. It adds 56 tokens to every session and 2,800 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

dali-dynamic-mode

DALI imperative dynamic mode (nvidia.dali.experimental.dynamic, ndd): use when working on ndd code or migrating pipelines; skip pipeline-only tasks.

NVIDIA/skills · 38 tokens

datachain-core

Use ONLY for abstract DataChain SDK questions — API usage, method signatures, or code patterns — when no specific dataset or bucket is referenced. If the request mentions creating, saving, listing, exploring datasets or buckets, use datachain-knowledge instead.

datachain-ai/datachain · 54 tokens

mflux-model-porting

Port ML models into mflux/MLX with correctness-first validation, then refactor toward mflux style.

mflux-community/mflux · 28 tokens

minicpm5-finetune-trl

Fine-tune MiniCPM5-1B with bare-metal TRL + PEFT, including assistant-only loss via a chat-template patch. Use when the user wants minimal Python, no YAML, full control, or asks for "TRL", "SFTTrainer", "PEFT", "LoraConfig", "assistantonlyloss".

OpenBMB/MiniCPM · 78 tokens

minicpm5-finetune-unsloth

Fine-tune MiniCPM5-1B with unsloth for tight-VRAM single-GPU LoRA / QLoRA. Use when the user wants "unsloth", "FastLanguageModel", QLoRA on a 24 GB consumer GPU, or asks for the smallest VRAM footprint.

OpenBMB/MiniCPM · 74 tokens

minicpm5-deploy-transformers

Run MiniCPM5-1B with Hugging Face Transformers for one-shot Python generation on GPU (bfloat16) or CPU (float32). Use when the user wants a quick Python script, no server, no extra deps, or asks for "Transformers", "AutoModelForCausalLM", "model.generate" with MiniCPM5.

OpenBMB/MiniCPM · 82 tokens