Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
databricks avatar

Run Locally

  • 28 installs
  • 179 repo stars
  • Updated July 28, 2026
  • databricks/app-templates

run-locally runs Databricks template agents on local machine.

About

The run-locally skill explains local development workflows for app-templates agents including environment setup, uv dependencies, and local server execution before bundle deploy to Databricks Apps.

  • Local dev execution before cloud deploy.
  • uv and env configuration for local run.
  • Debug agent locally then deploy.
  • Part of app-templates dev loop.

Run Locally by the numbers

  • 28 all-time installs (skills.sh)
  • Ranked #9,462 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
At a glance

run-locally capabilities & compatibility

Capabilities
run locally workflow
Works with
databricks
Use cases
orchestration
From the docs

What run-locally says it does

run-locally
SKILL.md
npx skills add https://github.com/databricks/app-templates --skill run-locally

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs28
repo stars179
Last updatedJuly 28, 2026
Repositorydatabricks/app-templates

How do I run my Databricks agent locally?

Run Databricks app-templates agents locally for development and debugging.

Who is it for?

Developers iterating on agents before deploy.

Skip if: Skip when only cloud deploy needed.

When should I use this skill?

Local development or debug of template agent.

What you get

Locally running agent for development testing.

Files

SKILL.mdMarkdownGitHub ↗

Run Agent Locally

Start the Server

uv run start-app

This starts the agent at http://localhost:8000

Server Options

# Hot-reload on code changes (development)
uv run start-server --reload

# Custom port
uv run start-server --port 8001

# Multiple workers (production-like)
uv run start-server --workers 4

# Combine options
uv run start-server --reload --port 8001

Test the API

Streaming request:

curl -X POST http://localhost:8000/invocations \
  -H "Content-Type: application/json" \
  -d '{ "input": [{ "role": "user", "content": "hi" }], "stream": true }'

Non-streaming request:

curl -X POST http://localhost:8000/invocations \
  -H "Content-Type: application/json" \
  -d '{ "input": [{ "role": "user", "content": "hi" }] }'

Run Evaluation

uv run agent-evaluate

Uses MLflow scorers (RelevanceToQuery, Safety).

Run Unit Tests

pytest [path]

Troubleshooting

IssueSolution
Port already in useUse --port 8001 or kill existing process
Authentication errorsVerify .env is correct; run quickstart skill
Module not foundRun uv sync to install dependencies
MLflow experiment not foundEnsure MLFLOW_TRACKING_URI in .env is databricks://<profile-name>

MLflow Experiment Not Found

If you see: "The provided MLFLOW_EXPERIMENT_ID environment variable value does not exist"

Verify the experiment exists:

databricks -p <profile> experiments get-experiment <experiment_id>

Fix: Ensure .env has the correct tracking URI format:

MLFLOW_TRACKING_URI="databricks://DEFAULT"  # Include profile name

The quickstart script configures this automatically. If you manually edited .env, ensure the profile name is included.

Next Steps

  • Modify your agent: see modify-agent skill
  • Deploy to Databricks: see deploy skill

Related skills

FAQ

What does run-locally do?

run-locally runs Databricks template agents on local machine.

When should I use run-locally?

Local development or debug of template agent.

Is this skill safe to install?

Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.