Core development tools
- Oso Cloud CLI: validate, test, and deploy Polar policies from the command line.
- Editor extensions: syntax highlighting, error detection, and in-editor testing.
- Local testing: use the Oso Dev Server for fast iteration without network calls.
Install the Oso Cloud CLI
Key CLI commands
Once installed, use these commands in your development workflow:Editor integrations
VS Code
Install the official VS Code extension to enable:- Syntax highlighting for
.polar
files - Real-time error detection
- Inline test runner
- Auto-complete for built-in Polar functions
- Open VS Code Extensions panel (
Ctrl+Shift+X
) - Search for “Oso”
- Install the official extension
Other editors
Oso supports the Language Server Protocol (LSP) for syntax validation, auto-completion, and testing. Use any LSP-compatible editor with the CLI as the language server.Console Editors (Vim, Emacs)
Console Editors (Vim, Emacs)
Start the LSP server using the CLI:Configure your editor to use this LSP for
.polar
files.JetBrains IDEs (WebStorm, IntelliJ)
JetBrains IDEs (WebStorm, IntelliJ)
Install syntax highlighting:
- Clone oso-vscode-extension
- In JetBrains settings:
Editor
→TextMate bundles
→ Add bundle - Select the cloned
oso-vscode-extension
folder
- Install the LSP4IJ plugin
- Go to
Language & Frameworks
→Language Servers
- Add new server:
- Command:
oso-cloud lsp
- File patterns:
*.polar
- Language ID:
polar
- Command:
Web-based development
Web-based development
Use the built-in policy editor at ui.osohq.com. No setup required. Supports LSP features out of the box.
Troubleshooting
CLI Issues
CLI Issues
CLI not found:
- Check if the binary is in your system PATH
- Restart your terminal
- Verify installation by running:
oso-cloud --version
- Make the binary executable:
chmod +x oso-cloud
- Use
sudo
for system-wide installation
Editor Issues
Editor Issues
VS Code extension not working:
- Restart VS Code
- Check the Extensions panel for errors
- Verify
.polar
files have syntax highlighting
- Ensure CLI is installed and on PATH
- Check LSP configuration in your editor
- Restart the editor
Next steps
Your development tools are ready. Here’s how to start building:- Set up local testing with the Oso Dev Server
- Write your first policy in Polar
- Model your authorization data as facts
- Implement authorization checks in your application