Get started with Polaris
This guide will take you from zero to creating your first AI-powered project in Polaris IDE.Sign up for Polaris
Visit Polaris IDE and create your account using Stack Auth.
Free tier includes:
- 10 projects
- AI code suggestions
- Real-time collaboration
- WebContainer execution
Create your first project
From the projects dashboard, click “New Project” or use the keyboard shortcut Option 2: Import from GitHubOption 3: AI-generated project (Pro feature)
Cmd+N (Mac) / Ctrl+N (Windows).You can create a project in three ways:Option 1: Start from scratchProject names are automatically generated using the
unique-names-generator package, but you can customize them.Add files to your project
Once inside your project, use the file explorer to create files and folders.Create a new file:
- Right-click in the file explorer
- Select “New File”
- Name it
index.html - Press Enter
- Right-click in the file explorer
- Select “New Folder”
- Name it
src - Press Enter
Files auto-save after 1500ms of inactivity. You’ll see a loading indicator while saving.
Use AI code suggestions
Start typing in your editor and watch AI suggestions appear as ghost text.How it works:
- Type code naturally in the editor
- After 300ms, Polaris sends context to the AI:
- Current line
- 5 lines before cursor
- 5 lines after cursor
- File name and extension
- AI suggestion appears as gray text
- Press
Tabto accept the suggestion
Suggestions are powered by Moonshot AI Kimi K2.5 via OpenRouter (primary) or Cerebras GLM-4.7 as a fallback.
Try Quick Edit (Cmd+K)
Quick Edit lets you transform code using natural language.Steps:After Quick Edit with “add error handling and loading state”:
- Select code you want to change
- Press
Cmd+K(Mac) orCtrl+K(Windows) - A tooltip appears with an input field
- Describe your change: “add error handling”
- Press Enter or click “Submit”
- AI refactors your code instantly
Before
After
Chat with AI about your code
Open the conversation sidebar to ask questions about your project.Click the chat icon in the sidebar or use the keyboard shortcut.Example prompts:The AI assistant has access to:
- “Where is the authentication logic?”
- “Explain this function to me”
- “How do I add a new route?”
- “Find all usages of this variable”
- “Generate unit tests for this component”
- Your entire project file tree
- File contents
- Recent changes
- Conversation history
Conversations are saved per-project and persist across sessions. You can start multiple conversations for different topics.
Run your code (WebContainer)
Polaris includes in-browser code execution via WebContainer.Steps:
- Click the Terminal icon in the bottom panel
- Run commands like you would locally:
- Click Preview to see your app running
Terminal
WebContainer runs a real Node.js environment in your browser. Most npm packages work out of the box.
Export to GitHub
When you’re ready to deploy, export your project to GitHub.Steps:
- Click the GitHub icon in the top navigation
- Select “Export to GitHub”
- Authenticate with GitHub OAuth (if not already)
- Enter repository details:
- Repository name
- Description
- Public or Private
- Click “Export”
- Polaris creates a new repository and pushes all files
Keyboard shortcuts
Speed up your workflow with these shortcuts:| Action | Mac | Windows |
|---|---|---|
| New project | Cmd+N | Ctrl+N |
| Quick Edit | Cmd+K | Ctrl+K |
| Accept suggestion | Tab | Tab |
| Toggle sidebar | Cmd+B | Ctrl+B |
| Command palette | Cmd+P | Ctrl+P |
| Save file | Auto-save after 1500ms | Auto-save after 1500ms |
Next steps
Install locally
Set up Polaris for local development
Editor features
Learn advanced editor capabilities
AI features
Master AI-powered coding
API reference
Integrate Polaris into your tools
Troubleshooting
AI suggestions not appearing
AI suggestions not appearing
Possible causes:
- Check your internet connection
- Verify API keys are configured (for self-hosted)
- Wait at least 300ms after typing (debounce delay)
- Ensure file has valid content (not empty)
Quick Edit (Cmd+K) not working
Quick Edit (Cmd+K) not working
Requirements:
- Text must be selected
- Editor must be focused
- Browser must support clipboard API
File auto-save failing
File auto-save failing
Common issues:
- Network connectivity
- Convex database unavailable
- File size too large (>1MB)
WebContainer not loading
WebContainer not loading
Requirements:
- Modern browser (Chrome, Edge, or Firefox)
- Sufficient RAM (2GB+ recommended)
- Third-party cookies enabled
For more help, visit our Discord community or check the GitHub issues.