Skip to content

context setup

The setup command is the fastest way to get started with ContextKit. It opens a 5-step wizard in your browser that creates a data product from scratch.

Terminal window
context setup
context setup --port 4040 # custom port (default: 4040)
context setup --no-browser # don't auto-open the browser

The setup wizard opens at http://localhost:4040/setup and walks through five steps:

Name your data product and provide a description. The name becomes the directory under context/products/.

Set the owner name, team, and email. This metadata is used for governance tracking and shows up in the tier scorecard.

  • Sensitivity level: Choose from public, internal (default), confidential, or restricted
  • Data sources: Auto-detected from environment variables (DATABASE_URL, POSTGRES_URL, etc.) and local database files (.duckdb, .sqlite)
  • Documentation upload: Drag-and-drop SQL files, data dictionaries, markdown, CSV, or YAML to give the enrichment engine more context

Review all your inputs before submitting. Edit any field before proceeding.

The pipeline runs automatically in the browser with real-time progress:

  1. Introspect — connect to database, read schema
  2. Scaffold — generate Bronze-tier OSI YAML files
  3. Enrich to Silver — add glossary, lineage, sample values, trust status
  4. Enrich to Gold — suggest semantic roles, aggregation rules, guardrails
  5. Verify — lint and validate the result
  6. Auto-fix — apply automatic fixes for common issues
  7. Agent Instructions — generate AGENT_INSTRUCTIONS.md for AI curation

The wizard saves a Context Brief at context/products/{name}/context-brief.yaml and scaffolds all associated metadata files.

context-brief.yaml
product_name: sales-analytics
description: "Revenue and order metrics for the analytics team"
owner:
name: Alice Chen
team: Analytics
email: alice@company.com
sensitivity: internal
created_at: "2026-03-08T..."
ScenarioRecommendation
First time with ContextKitcontext setup (browser wizard)
Adding a new database sourcecontext introspect --db <url>
Upgrading existing context to Goldcontext dev --studio (visual editor)
CI/CD pipelinecontext lint && context build
Let an AI agent build itTell the agent: “Install @runcontext/cli and build a semantic layer”