Interact with Apache Kafka® directly in VS Code. Manage clusters, produce and consume messages, and explore topics.
Browse your Kafka infrastructure in the sidebar:
- 📊 Clusters - Connect to multiple Kafka clusters simultaneously
- 📂 Topics - View, create, and delete topics with real-time updates
- 🖥️ Brokers - Monitor broker health and configuration
- 👥 Consumer Groups - Track consumer lag and group membership
- ⚙️ Configurations - Inspect and manage cluster settings
Create producers using simple .kafka files with rich features:
- 🎲 Randomized Data - Generate test data with Faker.js templates
- 🔑 Headers & Keys - Full support for message keys and custom headers
- ⏱️ Scheduled Production - Produce messages at regular intervals (
every: 5s,every: 1m) - 🔁 Batch Production - Send multiple messages at once for load testing
- 🎯 Multiple Producers - Define multiple producers in a single file
Example:
PRODUCER user-events
topic: user-activity
every: 3s
key: user-{{string.uuid}}
headers: source=web-app, version=1.0
{
"userId": "{{string.uuid}}",
"event": "{{helpers.arrayElement(['login', 'logout', 'purchase'])}}",
"timestamp": {{$timestamp}},
"user": {
"name": "{{person.fullName}}",
"email": "{{internet.email}}"
}
}
Consume messages with multiple visualization options:
- 📝 Text View - Traditional streaming text output with syntax highlighting
- 📊 Table View - Excel-like table with sortable columns, search, and CSV export
- 🎯 Targeted Consumption - Consume from specific partitions or offsets
- 💾 Export Data - Export consumed messages to CSV for analysis
Start consuming from:
- Right-click a topic in the explorer
- Use Command Palette (
Ctrl+Shift+P) - Define consumers in
.kafkafiles
CONSUMER analytics-team
topic: user-events
from: earliest
partitions: 0,1,2
- 🔒 SASL Authentication - PLAIN, SCRAM-256, SCRAM-512 (Kafka 0.10+)
- 🌐 OAUTHBEARER - OAuth 2.0 authentication with automatic token refresh
- ☁️ AWS MSK IAM - Native AWS IAM authentication for Amazon MSK clusters
- 🛡️ SSL/TLS Support - Secure connections with certificate validation
- 🔑 Secure Storage - Credentials stored in OS keychain (macOS Keychain, Windows Credential Manager, Linux Secret Service)
- 🧪 Development Mode - Optional hostname verification bypass for self-signed certificates
- ✅ Create Topics - Configure partitions, replication factor, and topic settings
- 🗑️ Delete Topics - Remove unwanted topics with confirmation dialogs
- 🧹 Delete Records - Empty topics by deleting all messages from all partitions
- 📋 Metadata Inspection - Dump detailed metadata for clusters, brokers, and topics
- 👥 Consumer Group Management - Delete consumer groups and monitor offsets
Search for "Kafka" in the VS Code Extensions marketplace or install from here.
Click the + icon in the Kafka Explorer or use Ctrl+Shift+P → "Kafka: Add Cluster"
- Browse topics and consumer groups
- Right-click to produce or consume messages
- Create
.kafkafiles for reusable workflows
📚 Need Help? Open documentation inside VS Code with
Ctrl+Shift+P→ "Kafka: Open Documentation"
| Topic | Description |
|---|---|
| Kafka Explorer | Navigating clusters, topics, brokers, and consumer groups |
| Producing Messages | Creating producers with Faker templates and scheduled production |
| Consuming Messages | Text view, table view, and consumption options |
| .kafka File Format | Syntax reference for producer and consumer definitions |
| Settings | Extension configuration options |
Extend the Kafka explorer by creating custom cluster providers. Your extension can:
- Discover clusters from external sources (cloud providers, configuration management)
- Auto-configure connection settings
- Provide custom authentication mechanisms
Create a Cluster Provider Extension:
- Add
"kafka-provider"to your extension'spackage.jsonkeywords - Implement the cluster provider API
- Users discover your extension via "Discover Cluster Providers"
We ❤️ contributions! Whether you're:
- 🐛 Reporting bugs
- 💡 Suggesting features
- 📝 Improving documentation
- 💻 Submitting pull requests
All contributions are welcome! See CONTRIBUTING.md for guidelines.
- Clone the repository
- Run
npm install - Open in VS Code and press
F5to launch Extension Development Host - Make your changes and run tests with
npm test
Try the latest development version:
- Go to the CI Workflow page
- Click on the most recent successful run
- Download the
vscode-kafkaartifact - Unzip and install the
.vsixfile:code --install-extension vscode-kafka-*.vsix
MIT License. See LICENSE file.
Apache, Apache Kafka®, Kafka® and associated logos are trademarks of the Apache Software Foundation (ASF). Tools for Apache Kafka® is not affiliated with, endorsed by, or otherwise associated with the Apache Software Foundation or any of its projects.




