PluginWorks in Claude CodeCurrent
Dominodatalab
Full Domino Data Lab platform support — workspaces, jobs, model deployment, experiment tracking, GenAI tracing, Spark/Ray/Dask, and app deployment for data science teams
0
Try it
See what this would do for you. No sign-up needed.
Install in Claude Code
Run these in Claude Code, in order. The first adds the marketplace, the second installs the plugin.
Step 1
/plugin marketplace add anthropics/claude-plugins-official
Step 2
/plugin install dominodatalab@claude-plugins-official
Review commands before running them. Promptu never runs code on your machine or pushes changes to your repo.
What's inside
26 skills
- ai-gateway
- apps
- data-connectivity
- datasets
- distributed-computing
- domino-api-intro
- domino-data-sdk
- domino-extensions
- domino-governance
- domino-model-serving
- domino-ui-bootstrap
- domino-ui-design
- environments
- experiment-tracking
- flows
- genai-tracing
- jobs
- launchers
- model-endpoints
- model-monitoring
- modeling-assistant
- netapp-volumes
- projects
- python-sdk
- tags-and-properties
Security scan
Flagged
Promptu's text scan flagged something in this plugin. Read its files before you install it.
rm-rf in skills/environments/SKILL.md:59
Details
# This repository has moved to [dominodatalab/domino-ai-plugin](https://github.com/dominodatalab/domino-ai-plugin)
> [!CAUTION]
> **`domino-claude-plugin` is deprecated and receives no new releases.** The Domino plugin now
> lives at **[github.com/dominodatalab/domino-ai-plugin](https://github.com/dominodatalab/domino-ai-plugin)**,
> for Claude Code, Codex, Cursor, Gemini CLI and Antigravity. Install it, report issues and open
> pull requests there. Issues and pull requests are closed here.
>
> **Switch an existing clone to the new repository** and start a new session:
>
> ```bash
> P=~/.claude/marketplaces/domino/plugins/domino-claude-plugin # or the path of your clone
> git -C $P remote set-url origin https://github.com/dominodatalab/domino-ai-plugin.git
> git -C $P fetch origin main
> git -C $P checkout -B main origin/main
> ```
>
> Every other install method: [Installation](https://github.com/dominodatalab/domino-ai-plugin#installation-claude-code).
---
# Domino Data Lab Plugin for Claude Code
A comprehensive Claude Code plugin providing full coverage of the Domino Data Lab platform for AI-assisted development.
## Overview
This plugin enables Claude Code to help you with all aspects of Domino Data Lab, including:
- **Workspaces**: Jupyter, VS Code, RStudio configuration and management
- **Jobs**: Batch execution, scheduled jobs, and monitoring
- **Environments**: Custom Docker environments and package management
- **Datasets**: Data versioning with snapshots and sharing
- **NetApp Volumes**: Enterprise-grade multi-terabyte storage with near-instant snapshots
- **Apps**: Deploy React, Streamlit, and Dash applications
- **Models**: Deploy, monitor, and manage model endpoints
- **GenAI**: Trace and evaluate AI agents with the Domino SDK
- **Distributed Computing**: Spark, Ray, and Dask clusters
- **And more...**
## Installation
### Prerequisites
- **Claude Code CLI** v1.0.33 or later (`claude --version` to check)
- Access to a Domino Data Lab instance
- Domino API key (for API operations when running outside a Domino workspace)
- **`uv`** package manager ([install guide](https://github.com/astral-sh/uv)) — required for the bundled Domino MCP server
---
### Option 1: Marketplace Install (Recommended)
This approach registers the plugin through Claude Code's native marketplace system so it persists across sessions.
**Step 1: Clone the repository and create a marketplace wrapper**
```bash
# Clone the plugin
git clone https://github.com/dominodatalab/domino-claude-plugin.git
# Create the marketplace directory structure
mkdir -p ~/.claude/marketplaces/domino/.claude-plugin
mkdir -p ~/.claude/marketplaces/domino/plugins
# Move the plugin into the marketplace
mv domino-claude-plugin ~/.claude/marketplaces/domino/plugins/domino-claude-plugin
```
**Step 2: Create the marketplace manifest**
```bash
cat > ~/.claude/marketplaces/domino/.claude-plugin/marketplace.json << 'EOF'
{
"name": "domino-marketplace",
"owner": {
"name": "Domino Data Lab",
"email": "support@dominodatalab.com"
},
"plugins": [
{
"name": "domino-claude-plugin",
"description": "Domino Data Lab plugin for Claude Code - workspaces, jobs, environments, datasets, apps, models, and more",
"source": "./plugins/domino-claude-plugin",
"category": "development"
}
]
}
EOF
```
**Step 3: Register the marketplace and install the plugin**
Launch Claude Code and run:
```
/plugin marketplace add /home/<your-username>/.claude/marketplaces/domino
/plugin install domino-claude-plugin@domino-marketplace
```
> **Note:** Replace `<your-username>` with your actual username, or use the full absolute path (e.g., `/home/ubuntu/.claude/marketplaces/domino`). The `~` shorthand may not expand correctly.
**Step 4: Restart Claude Code**
```
/exit
claude
```
The plugin should appear in your loaded plugins on startup. Verify with:
```
/plugin
```
Navigate to the **Installed** tab to confirm `domino-claude-plugin` is listed.
---
### Option 2: Direct Plugin Directory (Development / Quick Start)
Use the `--plugin-dir` flag to load the plugin directly. This is ideal for development, testing, or quick evaluation.
```bash
# Clone the plugin (the manifest .claude-plugin/plugin.json is part of the repo; do not overwrite it)
git clone https://github.com/dominodatalab/domino-claude-plugin.git
# Run Claude Code with the plugin loaded in place
claude --plugin-dir ./domino-claude-plugin
```
Loaded this way the plugin is read in place: a `git pull` (or checking out a `release-*` branch
or tag) takes effect at the next session with no reinstall.
To make this persistent without the marketplace approach, add a shell alias:
```bash
echo 'alias claude="claude --plugin-dir /path/to/domino-claude-plugin"' >> ~/.bashrc
source ~/.bashrc
```
### Versions and updates
The plugin version is `YYYY.DDD.N` (for example `2026.603.3`): the release year, the Domino
line the content is correct for as a floor (`603` = Domino 6.3 and later, including Cloud; the
major followed by the two-digit minor), and a release counter. Each release is tagged
`release-YYYY.DDD.N` and published as a GitHub Release. Marketplace installs (Option 1
and the Anthropic marketplace) are cached by that version string and update only when it
changes; check what you have with `claude plugin list` and update with
`claude plugin update <name>@<marketplace>`. See CONTRIBUTING.md "Release branches, tags and
backports" for the branch and tag policy.
---
### Option 3: Team / Project-Level Install
For teams sharing a project, add the marketplace to your project's `.claude/settings.json`:
```json
{
"extraKnownMarketplaces": {
"domino-marketplace": {
"source": {
"source": "directory",
"path": "/path/to/domino-marketplace"
}
}
},
"enabledPlugins": {
"domino-claude-plugin@domino-marketplace": true
}
}
```
When team members trust the repository folder, Claude Code will prompt them to install the marketplace and plugin automatically.
---
## Verifying the Installation
After installation, test that the plugin is working:
1. **Check slash commands are available:**
```
/domino-app-init
```
2. **Test skill auto-invocation** by asking a Domino-related question:
```
Help me deploy a Streamlit app to Domino
```
Claude should automatically invoke the `domino-app-deployment` skill.
3. **Check the plugin is listed:**
```
/plugin
```
Navigate to the **Installed** tab.
> **Note:** Plugin skills do not appear in the `/skills` list. They are auto-invoked by Claude based on task context and will show in Claude's init message at the top of a new session.
---
## Updating the Plugin
How you update depends on how you installed:
- **Marketplace install (Option 1, Option 3, or the Anthropic marketplace):** Claude Code keeps a
cached copy keyed by the plugin version. Pulling the source directory does **not** change what
Claude loads. Run the update command and restart:
```bash
claude plugin update domino-claude-plugin@domino-marketplace # local marketplace (Option 1 / DSE)
claude plugin update dominodatalab@claude-plugins-official # Anthropic marketplace
```
If it reports "already at the latest version", the published version has not changed yet
(see "Versions and updates" above).
- **`--plugin-dir` (Option 2):** the plugin is read in place. `git pull` in the clone, or check
out a `release-*` branch or tag, then start a new session.
---
## What's Included
### Bundled MCP Server
The plugin includes a vendored copy of the [Domino MCP Server](https://github.com/dominodatalab/domino_mcp_server) that **starts automatically** when the plugin is enabled. It provides tools for running Domino jobs, checking job status/results, and syncing files with DFS-based projects.
- **Inside a Domino workspace:** Fully automatic — authentication uses ephemeral tokens, project info is auto-detected.
- **Outside Domino (laptop):** Set `DOMINO_API_KEY` and `DOMINO_HOST` as environment variables in your shell.
Requires `uv` to be installed (see [Prerequisites](#prerequisites)).
### Skills (20 Total)
| Skill | Description |
| --- | --- |
| `domino-workspaces` | Jupyter, VS Code, RStudio workspace management |
| `domino-jobs` | Jobs and scheduled jobs execution |
| `domino-environments` | Compute environments and Dockerfile customization |
| `domino-datasets` | Data management, snapshots, and versioning |
| `domino-projects` | Git integration and project collaboration |
| `domino-app-deployment` | Deploy web apps (React, Streamlit, Dash) |
| `domino-experiment-tracking` | MLflow experiment tracking and model registry |
| `domino-genai-tracing` | `@add_tracing` decorator and `DominoRun` |
| `domino-model-endpoints` | Deploy and call model APIs |
| `domino-model-monitoring` | Drift detection and model quality tracking |
| `domino-flows` | Flyte-based workflow orchestration |
| `domino-distributed-computing` | Spark, Ray, Dask cluster management |
| `domino-ai-gateway` | LLM proxy for OpenAI, Bedrock, etc. |
| `domino-launchers` | Parameterized web forms for self-service |
| `domino-modeling-assistant` | MCP server for AI-assisted model development |
| `domino-data-connectivity` | S3 Mountpoint, AWS IRSA, Azure credentials |
| `domino-python-sdk` | Python SDK (python-domino) and REST API |
| `domino-data-sdk` | Data SDK (domino-data) for data sources, datasets, training sets |
| `domino-ui-design` | Knowledge on Domino UI styling for integrated App design |
| `netapp-volumes` | Enterprise-grade multi-terabyte NetApp ONTAP storage with near-instant snapshots and versioning |
### Slash Commands
| Command | Description |
| --- | --- |
| `/domino-app-init` | Initialize a new Domino app with framework templates |
| `/domino-debug-proxy` | Debug reverse proxy issues for apps |
| `/domino-experiment-setup` | Set up MLflow experiment tracking |
| `/domino-trace-setup` | Set up GenAI tracing with the Domino SDK |
### Subagents
| Agent | Description |
| --- | --- |
| `domino-deploy` | Specialized agent for deploying apps, models, and endpoints |
| `domino-debug` | Agent for debugging Domino issues and troubleshooting |
| `domino-setup` | Agent for setting up new projects and configurations |
### Output Styles
Switch output styles with `/output-style`:
| Style | Description |
| --- | --- |
| `domino-learning` | Educational mode with Domino Insights after each task |
| `domino-mlops` | Production-focused with MLOps checklists and best practices |
---
## Project Structure
```
domino-claude-plugin/
├── .claude-plugin/
│ └── plugin.json # Plugin manifest
├── .mcp.json # Bundled MCP server config (auto-starts)
├── mcp-servers/ # Vendored MCP servers
│ └── domino_mcp_server/ # Domino MCP Server (jobs, DFS sync)
├── agents/ # Subagents
│ ├── domino-deploy.md
│ ├── domino-debug.md
│ └── domino-setup.md
├── output-styles/ # Custom output styles
│ ├── domino-learning.md
│ └── domino-mlops.md
├── skills/ # 18 skill directories
│ ├── workspaces/
│ ├── jobs/
│ ├── environments/
│ ├── datasets/
│ ├── projects/
│ ├── app-deployment/
│ ├── experiment-tracking/
│ ├── genai-tracing/
│ ├── model-endpoints/
│ ├── model-monitoring/
│ ├── flows/
│ ├── distributed-computing/
│ ├── ai-gateway/
│ ├── launchers/
│ ├── modeling-assistant/
│ ├── data-connectivity/
│ ├── python-sdk/
│ ├── domino-data-sdk/
│ └── netapp-volumes/
├── commands/ # Slash commands
├── hooks/ # Example automation hooks
├── templates/ # Code templates
│ ├── vite-react/
│ ├── streamlit/
│ ├── dash/
│ ├── experiment/
│ └── tracing/
├── CONTRIBUTING.md
├── LICENSE
└── README.md
```
---
## Troubleshooting
| Issue | Solution |
| --- | --- |
| `/skills` shows "No skills found" | Plugin skills don't appear in `/skills` — they are auto-invoked by Claude based on context. Check `/plugin` → Installed tab instead. |
| Plugin not loading from settings.json | Claude Code does **not** support a `"plugins"` array in `settings.json`. Use the marketplace approach or `--plugin-dir` flag. |
| `~` path not expanding | Always use absolute paths (e.g., `/home/ubuntu/...`) in marketplace commands and settings. |
| Slash commands not appearing | Restart Claude Code after installing. Commands are loaded at session start. |
| "Failed to parse marketplace file" | Ensure `marketplace.json` has the `owner` object and `source` is a string path (e.g., `"./plugins/domino-claude-plugin"`), not a nested object. |
---
## Usage Examples
### Deploy a Streamlit App
```
User: Help me deploy a Streamlit dashboard to Domino
Claude: I'll help you set up a Streamlit app for Domino...
```
### Set Up Experiment Tracking
```
User: /domino-experiment-setup
Claude: I'll configure MLflow experiment tracking for your project...
```
### Create a Scheduled Job
```
User: How do I run a training script every day at midnight?
Claude: I'll show you how to create a scheduled job in Domino...
```
### Deploy a Model API
```
User: I need to deploy my scikit-learn model as an API
Claude: I'll help you create a model endpoint in Domino...
```
---
## API Reference
The `domino-python-sdk` skill includes comprehensive REST API documentation:
- `API-PROJECTS.md` — Projects, collaborators, Git repos
- `API-JOBS.md` — Jobs, logs, scheduled execution
- `API-DATASETS.md` — Datasets, snapshots, permissions
- `API-MODELS.md` — Model APIs, deployments, registry
- `API-ENVIRONMENTS.md` — Environments, revisions
- `API-APPS.md` — Apps, versions, instances
- `API-ADMIN.md` — Users, orgs, hardware tiers
---
## Documentation
- [Domino Documentation](https://docs.dominodatalab.com/en/cloud/user_guide/71a047/what-is-domino/)
- [Domino API Guide](https://docs.dominodatalab.com/en/latest/api_guide/f35c19/api-guide/)
- [Domino Blueprints](https://domino.ai/resources/blueprints)
- [python-domino GitHub](https://github.com/dominodatalab/python-domino)
- [Claude Code Plugin Docs](https://code.claude.com/docs/en/plugins)
- [Claude Code Marketplace Docs](https://code.claude.com/docs/en/plugin-marketplaces)
## Contributing
Contributions are welcome! Please feel free to submit issues and pull requests.
## License
This project is licensed under the MIT License — see the [LICENSE](LICENSE) file for details.
## Support
- For Domino platform issues: [Domino Support](https://support.dominodatalab.com/)
- For plugin issues: [GitHub Issues](https://github.com/dominodatalab/domino-claude-plugin/issues)
## skills/ai-gateway/SKILL.md
---
name: domino-ai-gateway
description: Access external LLM providers through Domino AI Gateway - a secure proxy with centralized API key management, usage monitoring, and compliance. Supports OpenAI, AWS Bedrock, Azure OpenAI, Anthropic, and more. Use when calling LLMs from Domino, configuring AI Gateway endpoints, or monitoring LLM usage and costs.
---
# Domino AI Gateway Skill
## Description
This skill helps users work with Domino AI Gateway - a secure proxy for accessing external Large Language Model (LLM) providers with centralized management, monitoring, and compliance.
## Activation
Activate this skill when users want to:
- Access LLM providers (OpenAI, AWS Bedrock, etc.) in Domino
- Configure AI Gateway endpoints
- Monitor LLM usage and costs
- Understand secure API key management
- Use LLMs in workspaces and jobs
## What is AI Gateway?
Domino AI Gateway provides:
- **Secure LLM Access**: Proxy to external LLM providers
- **Centralized API Keys**: Keys stored securely, never exposed to users
- **Usage Monitoring**: Track all LLM interactions
- **Access Control**: Granular permissions per endpoint
- **Audit Logging**: Compliance-ready logs
## Supported LLM Providers
| Provider | Models |
|----------|--------|
| OpenAI | GPT-4, GPT-4 Turbo, GPT-3.5 |
| AWS Bedrock | Claude, Titan, Llama 2 |
| Azure OpenAI | GPT-4, GPT-3.5 |
| Anthropic | Claude 3, Claude 2 |
| Google Vertex AI | PaLM, Gemini |
| Cohere | Command, Embed |
## Creating an AI Gateway Endpoint
### Via Domino UI
1. Go to **Endpoints** > **Gateway LLMs**
2. Click **Create Endpoint**
3. Configure:
- **Name**: Endpoint name (e.g., `openai-gpt4`)
- **Provider**: Select LLM provider
- **Model**: Specific model to use
- **API Key**: Provider API key (stored securely)
- **Access**: Who can use this endpoint
4. Click **Create**
### Via API
```python
# Create endpoint via Domino API
import requests, os
TOKEN = requests.get("http://localhost:8899/access-token").text.strip()
BASE = os.environ["DOMINO_API_HOST"]
response = requests.post(
f"{BASE}/api/aigateway/v1/endpoints",
headers={"Authorization": f"Bearer {TOKEN}"},
json={
"name": "openai-gpt4",
"provider": "openai",
"model": "gpt-4",
"providerApiKey": "sk-..."
}
)
```
## Using AI Gateway in Code
### OpenAI-Compatible Interface
AI Gateway provides an OpenAI-compatible interface:
```python
from openai import OpenAI
# Configure client to use AI Gateway
client = OpenAI(
api_key="not-needed", # Handled by AI Gateway
base_url="https://your-domino.com/api/aigateway/v1/openai"
)
# Use like standard OpenAI
response = client.chat.completions.create(
model="openai-gpt4", # Your endpoint name
messages=[
{"role": "user", "content": "Hello, how are you?"}
]
)
print(response.choices[0].message.content)
```
### With LangChain
```python
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(
model="openai-gpt4", # Endpoint name
openai_api_key="not-needed",
openai_api_base="https://your-domino.com/api/aigateway/v1/openai"
)
response = llm.invoke("What is machine learning?")
print(response.content)
```
### Direct API Call
```python
import requests, os
TOKEN = requests.get("http://localhost:8899/access-token").text.strip()
BASE = os.environ["DOMINO_API_HOST"]
response = requests.post(
f"{BASE}/api/aigateway/v1/chat/completions",
headers={
"Content-Type": "application/json",
"Authorization": f"Bearer {TOKEN}",
},
json={
"model": "openai-gpt4",
"messages": [{"role": "user", "content": "Hello!"}]
}
)
result = response.json()
print(result["choices"][0]["message"]["content"])
```
## Access Control
### Endpoint Permissions
Configure who can use each endpoint:
- **Everyone**: All Domino users
- **Specific Users**: Named individuals
- **Organizations**: Specific Domino organizations
### Setting Permissions
1. Go to endpoint settings
2. Click **Access Control**
3. Add users or organizations
4. Save changes
## Monitoring and Logging
### View Usage
1. Go to **Endpoints** > **Gateway LLMs**
2. Click on endpoint name
3. View metrics:
- Request count
- Token usage
- Response times
- Error rates
### Download Logs
```bash
# Via UI: Endpoints > Gateway LLMs > Download logs
# Logs include:
# - Timestamp
# - User
# - Model
# - Input/Output tokens
# - Response time
# - Status
```
### Log Format
```json
{
"timestamp": "2024-01-15T10:30:00Z",
"user": "user@company.com",
"endpoint": "openai-gpt4",
"model": "gpt-4",
"inputTokens": 150,
"outputTokens": 200,
"durationMs": 1500,
"status": "success"
}
```
## Cost Management
### Track Costs
AI Gateway tracks token usage per:
- User
- Project
- Endpoint
- Time period
### Set Limits (Admin)
Admins can configure:
- Token limits per user/project
- Request rate limits
- Cost alerts
## Best Practices
### 1. Use Endpoint Names Consistently
```python
# Define endpoint once
LLM_ENDPOINT = "production-gpt4"
# Use throughout code
response = client.chat.completions.create(
model=LLM_ENDPOINT,
messages=[...]
)
```
### 2. Handle Rate Limits
```python
import time
from openai import RateLimitError
def call_llm_with_retry(messages, max_retries=3):
for attempt in range(max_retries):
try:
return client.chat.completions.create(
model="openai-gpt4",
messages=messages
)
except RateLimitError:
if attempt < max_retries - 1:
time.sleep(2 ** attempt)
else:
raise
```
### 3. Log Important Calls
```python
import logging
logger = logging.getLogger(__name__)
def query_llm(prompt):
logger.info(f"Querying LLM with prompt length: {len(prompt)}")
response = client.chat.completions.create(
model="openai-gpt4",
messages=[{"role": "user", "content": prompt}]
)
logger.info(f"Response tokens: {response.usage.total_tokens}")
return response.choices[0].message.content
```
### 4. Use Streaming for Long Responses
```python
# Streaming response
stream = client.chat.completions.create(
model="openai-gpt4",
messages=[{"role": "user", "content": "Write a long story"}],
stream=True
)
for chunk in stream:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="")
```
## Security
### API Key Management
- Keys stored in Domino's secure vault
- Never exposed to end users
- Rotatable without code changes
### Data Privacy
- Requests logged for audit
- PII can be masked (admin config)
- Data retention policies configurable
## Troubleshooting
### Authentication Error
```
Error: 401 Unauthorized
```
- Verify Domino API key is valid
- Check endpoint access permissions
- Ensure correct base URL
### Rate Limit Exceeded
```
Error: 429 Too Many Requests
```
- Implement retry logic
- Contact admin for limit increase
- Use multiple endpoints for load distribution
### Model Not Found
```
Error: Model 'model-name' not found
```
- Verify endpoint name is correct
- Check endpoint exists and is active
- Confirm you have access to the endpoint
## API Reference
Before writing or verifying any API call, use the cluster swagger to confirm current endpoint paths and field names. Use public docs for workflow context and field explanations.
**Get the cluster base URL:** `$DOMINO_API_HOST` (injected by Domino into every workspace, job, and app).
Fetch the swagger spec:
```bash
# No authentication required for the public API spec
curl "$DOMINO_API_HOST/assets/public-api.json"
# Browser UI: $DOMINO_API_HOST/assets/lib/swagger-ui/index.html?url=/assets/public-api.json#/
```
**Public docs (workflow context and field explanations):**
- [API Guide](https://docs.dominodatalab.com/en/latest/api_guide/f35c19/api-guide/)
- [AI Gateway](https://docs.dominodatalab.com/en/latest/user_guide/c9ac47/ai-gateway/)
- [Monitor AI Gateway LLM logs](https://docs.dominodatalab.com/en/cloud/admin_guide/984c09/monitor-ai-gateway-large-language-model-llm-logs/)
## skills/apps/SKILL.md
---
name: domino-apps
description: Deploy web applications to Domino Data Lab with expertise in React apps (Vite) behind Domino's reverse proxy. Covers app.sh configuration, port configuration, base path handling for SPAs, CI/CD with GitHub Actions, and proxy troubleshooting. Use when deploying apps to Domino, setting up CI/CD pipelines, fixing broken routing, or configuring JavaScript frameworks for Domino's proxy.
---
# Domino Apps Skill
This skill provides comprehensive knowledge for deploying web applications to Domino Data Lab, with special focus on React applications using Vite.
## Key Concepts
### Domino App Architecture
Domino apps run in containers behind a reverse proxy that:
1. Authenticates users via Domino's auth system
2. Strips the URL prefix before forwarding to your app
3. Routes traffic to your app container
4. Handles infrastructure provisioning, routing, and resource management
**Note:** Port selection is flexible; port 8888 is no longer required. You can use any port your application prefers.
### Critical Configuration Points
1. **Host Binding**: Bind to `0.0.0.0` (not localhost) so Domino can reach your app
2. **Relative Base Path**: Use `base: './'` in Vite config for React apps
3. **app.sh**: Entry point script (launch file) that Domino executes
## Related Documentation
- [API-APPS.md](./API-APPS.md) - REST automation: v1 vs beta, publish chain, management vs app URL, inference split
- [REACT-VITE-GUIDE.md](./REACT-VITE-GUIDE.md) - Deep dive into Vite + React configuration
- [REACT-CICD.md](./REACT-CICD.md) - CI/CD setup with GitHub Actions
- [FRAMEWORKS.md](./FRAMEWORKS.md) - Streamlit, Dash, Flask configurations
- [TROUBLESHOOTING.md](./TROUBLESHOOTING.md) - Common issues and solutions
## Quick Start
### React with Vite
```javascript
// vite.config.js
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
base: './', // CRITICAL for Domino proxy
server: { host: '0.0.0.0', port: 8888, strictPort: true },
preview: { host: '0.0.0.0', port: 8888, strictPort: true },
})
```
```bash
# app.sh
#!/bin/bash
set -e
cd /mnt/code
npm ci
npm run build
npx serve -s dist -l 8888 --no-clipboard
```
### Streamlit
```bash
# app.sh
#!/bin/bash
streamlit run app.py --server.port 8888 --server.address 0.0.0.0
```
### Dash/Flask
```bash
# app.sh
#!/bin/bash
python app.py # Must bind to 0.0.0.0:8888
```
## Environment Variables
Domino provides these environment variables to your app:
| Variable | Description |
|----------|-------------|
| `DOMINO_PROJECT_NAME` | Current project name |
| `DOMINO_PROJECT_OWNER` | Project owner username |
| `DOMINO_RUN_ID` | Current run identifier |
| `DOMINO_STARTING_USERNAME` | User who started the app |
## Inter-App Communication
Domino apps can communicate with each other using bearer token authentication. This is useful for:
- Calling Model APIs from an app
- App-to-app service calls
- Accessing internal Domino services
### Getting the Access Token
Domino provides an access token service at `localhost:8899`:
```python
import requests
# Get bearer token for inter-app communication
API_TOKEN = requests.get("http://localhost:8899/access-token").text
```
### Making Authenticated Requests
```python
import requests
# 1. Get access token from Domino's token service
API_TOKEN = requests.get("http://localhost:8899/access-token").text
# 2. Set up headers with bearer token
headers = {
"Authorization": f"Bearer {API_TOKEN}",
"Content-Type": "application/json"
}
# 3. Make request to another Domino app or service
payload = {
"query": "Your request data here"
}
try:
resp = requests.post(
"https://your-domino-instance/apps-internal/APP_ID/endpoint",
json=payload,
headers=headers,
timeout=100
)
resp.raise_for_status()
data = resp.json()
print(data)
except requests.exceptions.RequestException as err:
print("API call failed:", err)
```
### Key Points
- **Token endpoint**: `http://localhost:8899/access-token` (only accessible from within Domino)
- **Token type**: Bearer token for Authorization header
- **Use cases**: Model API calls, app-to-app communication, internal services
- **Timeout**: Set appropriate timeouts for long-running requests
## REST automation (apps API)
For create, publish, start, and stop from code, read [API-APPS.md](./API-APPS.md). Use `/api/apps/v1` for writes; use `/api/apps/beta` only for instance logs, views, and runtime telemetry.
## API Reference
OpenAPI and route discovery: [API-SPECS.md](../domino-api-intro/API-SPECS.md) (public routes section).
### API Version Prioritization Rules
- **Prioritize the Apps v1 API (`/api/apps/v1`)** for all apps creation, update, preview, publication, start and stop workflows.
- **The Beta API (`/api/apps/beta`) is deprecated** for new automation and maintained for backward compatibility and runtime reads. Do not build new functionality against `beta` endpoints if a `v1` equivalent exists.
- **Instance Read Operations Exception**: Instance read operations (such as fetching active container logs, `realTimeLogs`, `views`, listing active running instances, or issuing an instance-level `DELETE`) were not migrated to the `v1` spec. They remain under `/api/apps/beta`.
*Rule of Thumb:* Use `v1` for automating write or publish actions. Fall back to `beta` for streaming runtime telemetry like logs or views.
**Authentication:** https://docs.domino.ai/cloud/reference/api/domino-api-authentication . In-run: `DOMINO_API_PROXY` (no Authorization header) or `DOMINO_USER_HOST` + `http://localhost:8899/access-token`. Outside run: public deployment URL + PAT/SA. Do not use API keys.
**Get the cluster base URL:** `$DOMINO_USER_HOST` or `$DOMINO_API_HOST` in-run; confirm apps routes with `GET .../api/apps/v1/apps?limit=1`.
**Public docs:**
- https://docs.domino.ai/cloud/platform-capabilities/features/apps
**Blueprint Reference:**
- [React CI/CD Blueprint](https://github.com/dominodatalab/domino-blueprints/tree/main/React-app-deployment-with-CICD)
## skills/data-connectivity/SKILL.md
---
name: domino-data-connectivity
description: Connect Domino workloads to external data sources including AWS S3 (via Mountpoint CSI driver), credential propagation with AWS IRSA and Azure Entra ID, and External Data Volumes. Use when configuring S3 access, setting up credential propagation, or connecting to cloud data sources from Domino.
---
# Domino Data Connectivity Skill
This skill provides comprehensive knowledge for connecting Domino workloads to external data sources, including AWS S3, Azure storage, and credential propagation.
## Key Concepts
### Data Access Options in Domino
| Option | Use Case |
|--------|----------|
| **Datasets** | Project-level data storage |
| **Data Sources** | External database connections |
| **External Data Volumes (EDV)** | Mount external storage as volumes |
| **S3 Mountpoint** | Direct S3 access as file system |
| **Credential Propagation** | Pass user identity to cloud services |
### Credential Propagation Methods
| Method | Cloud | Description |
|--------|-------|-------------|
| **IRSA** | AWS | IAM Role for Service Accounts via OIDC |
| **Azure Entra ID** | Azure | User-based credential propagation |
## Related Documentation
- [S3-MOUNTPOINT.md](./S3-MOUNTPOINT.md) - AWS S3 as local file system
- [AWS-IRSA.md](./AWS-IRSA.md) - AWS IAM Role for Service Accounts
- [AZURE-CREDENTIALS.md](./AZURE-CREDENTIALS.md) - Azure Entra ID integration
## Quick Start
### Accessing S3 Data
With Mountpoint S3 configured, access S3 as a local file system:
```python
import pandas as pd
# S3 data appears as local files
df = pd.read_parquet("/mnt/s3-data/datasets/sales.parquet")
```
### Using IRSA for AWS Services
With IRSA configured, AWS SDK uses automatic credentials:
```python
import boto3
# No explicit credentials needed - IRSA provides them
s3 = boto3.client('s3')
response = s3.list_objects_v2(Bucket='my-bucket')
```
### Accessing External Data Volumes
EDVs are mounted at configured paths:
```python
# Read from external volume
with open("/mnt/external-data/config.json") as f:
config = json.load(f)
```
## When to Use Each Option
### Use S3 Mountpoint When:
- Working with large datasets stored in S3
- Need file system interface to S3
- Want to avoid EFS costs for large data
- Require multi-region data access
### Use IRSA When:
- Need AWS service access from Domino workloads
- Policy prohibits long-lived credentials
- Require user-level audit trails
- Need cross-account role assumption
### Use Azure Entra When:
- Working with Azure data services
- Need OAuth-based authentication
- Require user-level access control
- Need centralized RBAC
## Blueprint References
- [S3 Mountpoint Blueprint](https://domino.ai/resources/blueprints/transforming-s3-into-local-storage)
- [AWS IRSA Blueprint](https://domino.ai/resources/blueprints/aws-irsa)
- [Azure Credential Propagation Blueprint](https://domino.ai/resources/blueprints/domino-azure-credential-propagation)
## GitHub Repository
Implementation templates available at:
https://github.com/dominodatalab/domino-blueprints
## skills/datasets/SKILL.md
---
name: domino-datasets
description: Work with Domino Datasets - high-performance, versioned filesystem storage. Covers dataset creation, snapshots for versioning, sharing across projects, mounting paths (/domino/datasets/), and performance optimization. Use when managing data storage, creating reproducible data versions, or sharing data between projects.
---
# Domino Datasets Skill
## Description
This skill helps users work with Domino Datasets - high-performance, versioned filesystem storage for data science projects.
## Activation
Activate this skill when users want to:
- Create or manage Domino Datasets
- Work with dataset snapshots and versioning
- Share data between projects
- Access large datasets efficiently
- Understand dataset paths and mounting
## What is a Domino Dataset?
A Domino Dataset is:
- **High-performance storage**: Network filesystem optimized for data science
- **Versioned**: Create snapshots for reproducibility
- **Shareable**: Access across projects
- **Scalable**: No file size or count limits
- **Persistent**: Data persists across executions
## Creating a Dataset
### Via Domino UI
1. Navigate to your project
2. Go to **Data** > **Domino Datasets**
3. Click **Create New Dataset**
4. Enter:
- **Name**: Dataset name (e.g., `training-data`)
- **Description**: What the dataset contains
5. Click **Create**
### Via Python SDK
```python
from domino import Domino
domino = Domino("project-owner/project-name")
# Create a new dataset
dataset = domino.datasets_create(
name="training-data",
description="Training data for classification model"
)
```
## Dataset Paths
Dataset paths differ based on your **project type**. Domino has two project types with different mount structures.
### DFS (Domino File System) Projects
DFS projects use `/domino` as the root:
```
/domino
|--/datasets
|--/local <== Local datasets and snapshots
|--/clapton <== Read-write dataset for owner and editor, read-only for reader
|--/mingus <== Read-write dataset for owner and editor, read-only for reader
|--/snapshots <== Snapshot folder organized by dataset
|--/clapton <== Read-write for owner and editor, read-only for reader
|--/tag1 <== Mounted under latest tag
|--/1 <== Always mounted under the snapshot number
|--/2
|--/mingus
|--/tag2
|--/1
|--/2
|--/ella <== Read-write shared dataset for owner and editor, Read-only for reader
|--/davis <== Read-write shared dataset for owner and editor, Read-only for reader
|--/snapshots <== Shared datasets snapshots organized by dataset
|--/ella <== Read-write for owner and editor, read-only for reader
|--/tag3 <== Mounted under latest tag
|--/1 <== Always mounted under the snapshot number
|--/2
|--/davis
|--/tag4
|--/1
|--/2
```
| Dataset Type | Path |
|-------------|------|
| Local datasets | `/domino/datasets/local/{dataset-name}/` |
| Local snapshots | `/domino/datasets/local/snapshots/{dataset-name}/{tag-or-number}/` |
| Shared datasets | `/domino/datasets/{dataset-name}/` |
| Shared snapshots | `/domino/datasets/snapshots/{dataset-name}/{tag-or-number}/` |
### Git-Based Projects
Git-based projects use `/mnt` as the root:
```
/mnt
|--/data <== Local datasets and snapshots
|--/clapton <== Read-write dataset for owner and editor, read-only for reader
|--/mingus <== Read-write dataset for owner and editor, read-only for reader
|--/snapshots <== Snapshot folder organized by dataset
|--/clapton <== Read-write for owner and editor, read-only for reader
|--/tag1 <== Mounted under latest tag
|--/1 <== Always mounted under the snapshot number
|--/2
|--/mingus
|--/tag2
|--/1
|--/2
|--/imported
|--/data
|--/ella <== Read-write shared dataset for owner and editor, read-only for reader
|--/davis <== Read-write shared dataset for owner and editor, read-only for reader
|--/snapshots <== Shared dataset snapshots organized by dataset
|--/ella <== Read-write for owner and editor, read-only for reader
|--/tag3 <== Mounted under latest tag
|--/1 <== Always mounted under the snapshot number
|--/2
|--/davis
|--/tag4
|--/1
|--/2
```
| Dataset Type | Path |
|-------------|------|
| Local datasets | `/mnt/data/{dataset-name}/` |
| Local snapshots | `/mnt/data/snapshots/{dataset-name}/{tag-or-number}/` |
| Shared datasets | `/mnt/imported/data/{dataset-name}/` |
| Shared snapshots | `/mnt/imported/data/snapshots/{dataset-name}/{tag-or-number}/` |
### How to Identify Your Project Type
Check which paths exist in your execution:
```python
import os
if os.path.exists("/domino/datasets"):
print("DFS Project")
dataset_root = "/domino/datasets/local"
elif os.path.exists("/mnt/data"):
print("Git-Based Project")
dataset_root = "/mnt/data"
```
### Permissions
Both project types follow the same permission model:
- **Owners/Editors**: Read-write access to datasets
- **Readers**: Read-only access
### Example: Reading Data
```python
import pandas as pd
# Git-Based Project
df = pd.read_csv("/mnt/data/training-data/customers.csv")
# DFS Project
df = pd.read_csv("/domino/datasets/local/training-data/customers.csv")
# List files
import os
files = os.listdir("/mnt/data/training-data/") # Git-Based
files = os.listdir("/domino/datasets/local/training-data/") # DFS
```
## Uploading Data
### Via Domino UI
1. Go to dataset page
2. Click **Upload**
3. Select files (up to 50GB or 50,000 files via UI)
4. Click **Upload**
### Via Domino CLI (Large Uploads)
```bash
# For large uploads, use CLI
domino upload /local/path/to/data /mnt/data/training-data/
```
### Via Code in Workspace
```python
import shutil
# Copy from local to dataset
shutil.copy("local_file.csv", "/mnt/data/training-data/")
# Write directly
df.to_csv("/mnt/data/training-data/processed.csv", index=False)
```
## Snapshots
### What is a Snapshot?
A snapshot is a read-only, immutable version of your dataset at a point in time. Use snapshots for:
- Reproducibility
- Versioning training data
- Rolling back to previous states
### Create a Snapshot
```python
# Via Python SDK
snapshot = domino.datasets_snapshot(
dataset_name="training-data",
tag="v1.0"
)
```
Or via UI:
1. Go to dataset page
2. Click **Create Snapshot**
3. Add optional tag (e.g., `v1.0`, `production`)
### Access Snapshots
```python
# Latest snapshot
df = pd.read_csv("/mnt/data/training-data/data.csv")
# Specific tagged snapshot
df = pd.read_csv("/mnt/data/training-data@v1.0/data.csv")
```
### Snapshot Limits
- Default limit: 20 snapshots per dataset
- Configurable by admins
- Oldest snapshots auto-deleted when limit reached
## Tags
### What are Tags?
Tags provide friendly names for snapshots:
- `production`: Current production data
- `v1.0`, `v2.0`: Version numbers
- `2024-01-15`: Date-based tags
### Move Tags
Tags can be moved to different snapshots:
```python
# Move 'production' tag to latest snapshot
domino.datasets_tag(
dataset_name="training-data",
snapshot_id="snapshot-123",
tag="production"
)
```
## Sharing Datasets
### Within Organization
1. Go to dataset settings
2. Set visibility to **Organization**
3. Other projects can mount the dataset
### Cross-Project Access
```python
# Import dataset from another project
# Configure

