Overview
The Developer UI is a purpose-built interface that helps you:- Run: Execute and experiment with flows, prompts, queries, and more in dedicated playgrounds
- Inspect: Analyze detailed traces of past executions, including step-by-step breakdowns of complex flows
- Evaluate: Review evaluation results with performance metrics and links to relevant traces
Starting the Developer UI
There are two ways to launch the Developer UI:With Your Application (Recommended)
Launch the UI alongside your application usinggenkit start:
- Wraps your development server with telemetry collection
- Launches the Developer UI (typically on port 4000-4099)
- Automatically connects the UI to your running application
- Opens the browser (if you use the
-oflag)
-n, --noui- Run your app without starting the UI-p, --port <port>- Specify the UI port-o, --open- Automatically open the browser--disable-realtime-telemetry- Disable real-time telemetry streaming
Standalone Mode
Start the UI independently and connect to runtimes in the same directory:-p, --port <number>- Port to serve on (defaults to 4000)-o, --open- Open the browser on startup
Key Features
Flow Playground
Test and experiment with your flows interactively:- Input Editor: Provide JSON input data or use the visual form builder
- Real-time Execution: Run flows and see results immediately
- Streaming Support: Watch streamed responses as they generate
- Context Configuration: Pass additional context to flow executions
- Output Inspection: View formatted responses and structured data
- Navigate to the Flows section in the UI
- Select a flow (e.g.,
simpleGreeting) - Enter input:
{"customerName": "Sam"} - Click “Run” to execute
- View the generated greeting in the output panel
Trace Inspector
Analyze detailed execution traces to understand how your flows work:- Step-by-step Breakdown: See each operation in your flow execution
- Timing Information: Identify performance bottlenecks
- Model Interactions: Inspect prompts sent to models and responses received
- Error Details: View stack traces and error messages when flows fail
- Nested Flow Visualization: Understand complex multi-step workflows
- Span names and types
- Input and output data for each step
- Execution duration
- Model configuration and parameters
- Metadata and attributes
- Error information (if applicable)
- Run flows through the UI
- Execute flows via the CLI with
genkit start - Run your application with
GENKIT_ENV=dev
Prompt Testing
Experiment with prompts and compare model outputs:- Prompt Editor: Edit and test prompt templates
- Variable Substitution: Test prompts with different input variables
- Model Comparison: Compare outputs from different models
- Version History: Track prompt iterations
- Immediate Feedback: See results as you modify prompts
Evaluator Results
Review evaluation runs and analyze model performance:- Evaluation Dashboard: View all evaluation runs
- Performance Metrics: See scores from configured evaluators
- Trace Links: Jump to detailed traces for each evaluation
- Dataset Comparison: Compare results across different datasets
- Export Results: Download evaluation data for further analysis
Dataset Management
Manage test datasets for evaluation:- Browse existing datasets
- View dataset contents
- Create new test cases
- Export datasets for use with CLI commands
Development Workflow
The Developer UI integrates seamlessly into your development workflow:1. Initial Development
- Write flow code in your editor
- Test flows immediately in the UI
- Iterate based on results
2. Testing and Iteration
- Use the Flow Playground to test different inputs
- Inspect traces to understand behavior
- Modify prompts visually and see immediate results
- Compare different model configurations
3. Debugging Issues
- Review error traces in the Trace Inspector
- Examine input/output at each step
- Check timing to identify slow operations
- Verify model parameters and prompts
4. Evaluation
- Run evaluations via CLI or UI
- Review results in the Evaluation Dashboard
- Click through to traces for failed cases
- Export data for reporting
Connecting to Your Application
For the UI to interact with your flows, ensure:- Environment Variable: Set
GENKIT_ENV=devwhen running your application - Same Directory: The UI and your application must be in the same project directory
- Active Runtime: Your application must be running to execute flows
Real-time Telemetry
The Developer UI supports real-time telemetry streaming:- Traces appear instantly as flows execute
- Monitor live application behavior
- See streaming outputs in real-time
- Debug production-like scenarios locally
Tips
- Keyboard Shortcuts: Use browser developer tools (F12) to inspect network requests and responses
- Multiple Windows: Open the UI in multiple browser tabs to compare different views
- Bookmarks: Bookmark specific trace or evaluation URLs for quick access
- Export Data: Use the export features to save traces and evaluation results
- Port Conflicts: If port 4000 is busy, the CLI automatically finds an available port in the 4000-4099 range
Troubleshooting
UI Won’t Start
Check if the UI is already running:Can’t See Flows
Ensure your application is running withGENKIT_ENV=dev:
Traces Not Appearing
Verify that:- Your application is running in the same directory
GENKIT_ENV=devis set- You’re executing flows (not just starting the app)
Next Steps
- Learn about CLI commands for advanced workflows
- Explore Testing strategies for AI applications
- Read the Debugging guide for troubleshooting techniques