KS
Killer-Skills

setup-dev — how to use setup-dev how to use setup-dev, setup-dev vs sentry, setup-dev install guide, what is setup-dev, setup-dev alternative, setup-dev setup tutorial, error tracking with setup-dev, performance monitoring using setup-dev

Verified
v1.0.0
GitHub

About this Skill

Ideal for DevOps Agents requiring streamlined error tracking and performance monitoring with Sentry setup-dev is a skill for setting up a local development environment for error tracking and performance monitoring using Sentry.

Features

Sets up a local Sentry development environment
Utilizes Docker images for efficient setup
Supports detailed troubleshooting with al_search_docs and al_read_doc
Compatible with Python and Django
Enables error logging and monitoring

# Core Topics

getsentry getsentry
[43.2k]
[4615]
Updated: 3/1/2026

Quality Score

Top 5%
52
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add getsentry/sentry/setup-dev

Agent Capability Analysis

The setup-dev MCP Server by getsentry is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use setup-dev, setup-dev vs sentry, setup-dev install guide.

Ideal Agent Persona

Ideal for DevOps Agents requiring streamlined error tracking and performance monitoring with Sentry

Core Value

Empowers agents to set up a local Sentry development environment, leveraging Docker and dependencies for comprehensive monitoring, and utilizing protocols like al_search_docs and al_read_doc for detailed troubleshooting

Capabilities Granted for setup-dev MCP Server

Setting up local Sentry environments for development teams
Troubleshooting devservices and common issues with AL MCP server
Streamlining devops workflows with performance monitoring

! Prerequisites & Limits

  • Requires 30-45 minutes for setup due to dependency and Docker image downloads
  • Needs access to AL MCP server for advanced troubleshooting
  • Limited to local development environment setup
SKILL.md
Readonly

Set Up Sentry Development Environment

Walk the user through getting Sentry running locally. The full process from a bare machine takes 30-45 minutes — most of that is downloading dependencies and Docker images. Set expectations clearly at each step.

AL MCP: If the al MCP server is available, use al_search_docs and al_read_doc for detailed troubleshooting. The AL docs cover devenv, devservices, and common issues in depth. The AL server is part of the devinfra-mcp project — see that repo for setup instructions if the server isn't configured yet. The SSE endpoint is configured in .pi/mcp.json (pi) or .mcp.json / .cursor/mcp.json (Claude Code / Cursor).

Step 1: Detect Current State

Before doing anything, assess what's already installed. Run all of these:

bash
1# Check OS 2uname -s && uname -m 3 4# Check shell 5echo $SHELL 6 7# Check if devenv exists 8which devenv 2>/dev/null || ls ~/.local/share/sentry-devenv/bin/devenv 2>/dev/null 9 10# Check devenv version (outdated versions cause failures) 11devenv --version 2>/dev/null || ~/.local/share/sentry-devenv/bin/devenv --version 2>/dev/null 12 13# Check Docker runtime 14docker context ls 2>/dev/null 15docker info --format '{{.Name}}' 2>/dev/null 16 17# Check OrbStack 18which orbctl 2>/dev/null && orbctl status 2>/dev/null 19 20# Check Colima 21which colima 2>/dev/null && colima status 2>/dev/null 22 23# Check direnv 24which direnv 2>/dev/null 25 26# Check if repo is already set up 27ls .venv/bin/sentry 2>/dev/null && ls node_modules/.bin 2>/dev/null

Based on results, skip to the appropriate step. If everything is installed, jump to Step 6.

Step 2: Install Prerequisites (macOS)

Xcode Command Line Tools

bash
1xcode-select -p 2>/dev/null || xcode-select --install

If not installed, the user must complete the interactive install dialog (~10 min). Wait for it.

Homebrew

bash
1which brew || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Docker Runtime — OrbStack or Colima

Ask the user which they prefer. Explain the tradeoffs:

RuntimeProsCons
ColimaOfficial Sentry recommendation, all scripts support itCan have DNS issues on WiFi changes
OrbStackFaster, lower resource usage, better UISome Sentry scripts assume Colima — may need workarounds

If choosing OrbStack:

bash
1brew install --cask orbstack

Then start OrbStack from Applications. Verify: docker info

If choosing Colima: Colima gets installed by devenv bootstrap — no separate step needed.

Important: Do NOT run Docker Desktop alongside either runtime — it causes conflicts.

Step 3: Install devenv

bash
1# For external (non-Sentry-employee) contributors: 2# export SENTRY_EXTERNAL_CONTRIBUTOR=1 3 4curl -fsSL https://raw.githubusercontent.com/getsentry/devenv/main/install-devenv.sh | bash

This installs to ~/.local/share/sentry-devenv/bin/devenv.

Shell Configuration

The user's shell MUST have devenv on PATH and direnv hooked in. Check and fix:

bash
1# Check if already configured 2grep -q "sentry-devenv" ~/.zshrc 2>/dev/null || grep -q "sentry-devenv" ~/.bashrc 2>/dev/null

If not configured, add to the appropriate shell config (~/.zshrc for zsh, ~/.bashrc for bash):

bash
1# devenv 2export PATH="$HOME/.local/share/sentry-devenv/bin:$PATH" 3 4# direnv 5eval "$(direnv hook zsh)" # or: eval "$(direnv hook bash)"

Tell the user to restart their terminal (or source ~/.zshrc) after this change.

Verify devenv Version

Minimum version changes frequently. If devenv is already installed, check it's not outdated:

bash
1devenv --version

If the version is old (e.g., < 1.22), upgrade:

bash
1devenv update

If devenv update itself fails because the version is too old, reinstall:

bash
1curl -fsSL https://raw.githubusercontent.com/getsentry/devenv/main/install-devenv.sh | bash

Step 4: Bootstrap (First Time Only)

For a completely fresh setup, run bootstrap first:

bash
1devenv bootstrap

This is interactive (~5 min) — it prompts for SSH keys, coderoot directory, etc. It installs Homebrew, Colima, Docker CLI, and direnv.

After bootstrap completes, close and reopen the terminal.

Step 5: Sync the Environment

This is the longest step. Tell the user:

This will take 10-20 minutes on first run. It installs Python, Node, all pip/npm dependencies, and runs database migrations. Subsequent syncs are much faster (2-5 min).

If direnv hangs

The .envrc runs Docker checks. If the Docker runtime isn't running, direnv will hang. Symptoms:

direnv: ([...]/direnv export zsh) is taking a while to execute. Use CTRL-C to give up.

Fix: Start the Docker runtime first:

  • OrbStack: Open OrbStack.app or open -a OrbStack
  • Colima: devenv colima start

Then direnv allow again.

Chicken-and-Egg Problem

direnv checks node version and sentry installation. On a fresh setup, these don't exist yet, so direnv will fail. This is normal. Bypass direnv and run devenv sync directly:

bash
1~/.local/share/sentry-devenv/bin/devenv sync

Or if devenv is on PATH:

bash
1devenv sync

After sync completes, direnv allow should succeed.

If devenv sync fails

Common causes:

  1. Outdated devenvdevenv update or reinstall
  2. Docker not running — start OrbStack/Colima first
  3. Network issues — retry; some downloads are large

Run devenv doctor for automated diagnosis.

Step 6: Start Services

First: Start Docker Images

bash
1devservices up

⏱️ First run: 5-10 minutes. It pulls many Docker images (PostgreSQL, Redis, Kafka, ClickHouse, Snuba, Relay, etc.). This is a one-time cost. Tell the user:

This is downloading all the Docker images Sentry needs. It looks like a lot — that's normal. Subsequent starts take ~30 seconds.

Subsequent runs: ~30 seconds.

OrbStack Socket Issue

If devservices up or devservices serve fails with:

Make sure colima is running. Run `devenv colima start`.

...but the user is using OrbStack, the devservices.py command is checking for the Colima socket only. Check src/sentry/runner/commands/devservices.py:

bash
1grep -n "colima\|docker.sock\|orbstack" src/sentry/runner/commands/devservices.py

The _find_docker_socket() function needs to check multiple socket paths. On macOS it should try, in order:

  1. ~/.colima/default/docker.sock (Colima)
  2. ~/.orbstack/run/docker.sock (OrbStack)
  3. /var/run/docker.sock (Docker Desktop / default)

If only Colima is checked, patch it to support all runtimes. Read ${CLAUDE_SKILL_ROOT}/references/orbstack-fix.md for the exact pattern.

Then: Seed the Database

If this is a first-time setup, the database needs seeding:

bash
1.venv/bin/sentry upgrade --noinput

This runs all Django migrations AND creates default data (organizations, roles, projects). Without this, the dev server will 500 on every page.

Do NOT just run sentry django migrate — that only runs migrations without seeding the required default data.

Create Superuser

bash
1.venv/bin/sentry createuser --superuser --email admin@sentry.io --password admin --no-input

Step 7: Start the Dev Server

bash
1devservices serve

Or directly:

bash
1.venv/bin/sentry devserver

What to Expect on Startup

Kafka topic warnings are normal. On first start, you'll see many lines like:

[WARNING] sentry.batching-kafka-consumer: Topic 'taskworker' or its partitions are not ready, retrying...

These settle down after 30-60 seconds as Kafka auto-creates topics. Don't panic.

Access the Dev Server

Required: Sentry Cookie Sync Extension

Without this extension, the UI shows a blank white screen. Install it:

https://chromewebstore.google.com/detail/sentry-cookie-sync/kchlmkcdfohlmobgojmipoppgpedhijh

This syncs auth cookies between sentry.io and dev.sentry.localhost. It's not optional.

Day-to-Day Commands

After initial setup, the daily workflow is:

bash
1cd ~/Projects/sentry # (or wherever the repo lives) 2devservices up # start background services (~30s) 3devservices serve # start dev server 4# → http://dev.sentry.localhost:8000

After pulling new code:

bash
1devenv sync # update dependencies + migrations (2-5 min)

Troubleshooting Decision Tree

SymptomLikely CauseFix
direnv hangsDocker runtime not runningStart OrbStack / Colima
devenv sync fails with version errorOutdated devenvdevenv update or reinstall
devservices up says "colima not running"Using OrbStack, script only checks ColimaPatch devservices.py — see Step 6
Server 500s on every pageDB not seeded.venv/bin/sentry upgrade --noinput
relation "sentry_organization" does not existMigrations not run.venv/bin/sentry upgrade --noinput
White/blank screen in browserCookie Sync extension missingInstall the Chrome extension
Kafka topic warnings on startupNormal first-boot behaviorWait 30-60 seconds
Port already in useStale containersdocker rm -f $(docker ps -aq) then retry
Everything is brokenNuclear optiondevservices purge && devenv sync && devservices up
DNS failures in DockerColima DNS staledevenv doctor or devenv colima restart

For deeper troubleshooting, use the AL MCP if available (devinfra-mcp):

al_search_docs(query="<symptom keywords>")
al_read_doc(path="devenv/troubleshooting.md", query="<specific issue>")

Related Skills

Looking for an alternative to setup-dev or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication