Rego Editor

A fast, modern editor for Rego—crisp policy syntax, smart tooling, and no distractions.

Try Rego in Zed

Powered by Tree-sitter

Precise Syntax Highlighting

Rego policy rules, queries, and imports are highlighted clearly, making OPA policies easy to review.

Semantic Understanding

Tree-sitter parses your code into a syntax tree, enabling features like code folding, selection expansion, and precise highlighting.

Instant Updates

Syntax highlighting updates in real-time as you type, with no lag or delay even in large files.

Error Recovery

Even with syntax errors, Tree-sitter maintains accurate highlighting for the rest of your code.

Language Server Protocol

Full Rego LSP Integration

Zed provides intelligent code completion, diagnostics, and refactoring capabilities for Rego through seamless language server integration.

Popular Extensions

Enhance Zed with popular extensions from our growing ecosystem.

Browse all extensions

Debugging Support

Rego Debugging

While native Rego debugging isn't available yet, Zed offers powerful debugging capabilities for other languages with full DAP support.

Learn about Zed's Debugger

Debug Adapter Protocol

Zed supports the Debug Adapter Protocol (DAP) for standardized debugging across multiple languages.

Universal Debugging Features

Breakpoints, variable inspection, call stack navigation, and step-through debugging when supported.

Why Zed

Built for Modern Rego Development

Experience features that make Rego development faster and more enjoyable.

Download Zed

Fast

Open large Rego projects instantly. Navigate & edit with zero lag, even in massive codebases.

Agentic

Generate Rego code, write tests, and refactor with integrated AI that understands your context.

Collaborative

Pair program, debug together, and share your Rego projects with your team in real-time.