Getting Started
Welcome to Vertex! This guide will help you get up and running in minutes.
Prerequisites
- Visual Studio Code v1.107.0 or higher
- An API key from one of the supported providers (optional for Local Ollama)
- Internet connection (for cloud-based AI Integration)
Installation
Choose your preferred installation method:
Your First Lesson
Let's start with a simple coding lesson to experience Vertex's core features.
Step 1: Create or Open a File
Open any JavaScript, Python, or other supported language file. If you don't have one, create a new file:
File → New File → Select Language (e.g., JavaScript)
Step 2: Load a Sample Lesson
Open the Command Palette and run the lesson command:
Ctrl+Shift+P → Vertex: Load Sample Lesson
Step 3: Follow the Ghost Text
You'll see gray ghost text appear in your editor. Start typing to follow along:
- ✅ Correct characters stay gray
- ❌ Incorrect characters turn red
- 🎯 Ghost text shows you what to type next
Step 4: Open Visual Intelligence
See your code relationships in real-time:
Ctrl+Shift+V → Visual Intelligence panel opens
Configuration
Customize Vertex to match your preferences and workflow.
Accessing Settings
File → Preferences → Settings → Search "Vertex"
Available Settings
AI Provider Settings
-
vertex.aiProvider
string
Global fallback AI provider. Options: Gemini, OpenRouter, Ollama Cloud, Local Model (Ollama)
Default: "Gemini"
-
vertex.senseiProvider
string
Provider for Sensei's motivational feedback
Default: "Gemini"
-
vertex.codeGenProvider
string
Provider for code generation
Default: "Gemini"
Model Settings
-
vertex.senseiModel
string
Model used by Sensei for mentoring
Default: "gemini-2.0-flash"
-
vertex.codeGenModel
string
Model used for code generation
Default: "gemini-2.0-flash"
Ollama Settings
-
vertex.ollamaEndpoint
string
Endpoint URL for local Ollama instance
Default: "http://localhost:11434"
AI Integration Setup
Google Gemini
1 Get Your API Key
Visit Google AI Studio and create an API key.
2 Configure in Vertex
Ctrl+Shift+P → Vertex: Reset Gemini API Key
3 Select Model
Available models:
gemini-2.0-flash- Fastest, great for learninggemini-2.5-flash- Balanced speed and capabilitygemini-2.5-pro- Most capable, best for complex tasksgemini-1.5-flash-latest- Latest stable version
OpenRouter
OpenRouter gives you access to multiple AI models through a single API.
1 Sign Up
Create an account at openrouter.ai
2 Get API Key
Navigate to your account settings and generate an API key
3 Configure
Ctrl+Shift+P → Vertex: Reset OpenRouter API Key
Local Ollama (Recommended for Privacy)
1 Install Ollama
Download from ollama.ai and follow installation instructions
2 Pull a Model
ollama pull codellama
Popular models: codellama, llama3, mistral
3 Configure Vertex
In VS Code settings, set:
vertex.aiProvider→ "Local Model (Ollama)"vertex.ollamaEndpoint→ "http://localhost:11434"
Features Guide
Teacher's Slate (Interactive Learning)
Ghost text that guides you character-by-character through code.
How It Works
- Load a lesson with
Vertex: Load Sample Lesson - Ghost text appears showing what to type
- Type to follow along - correct characters stay gray
- Mistakes are highlighted in red immediately
- Sensei provides encouragement as you progress
Supported Languages
Tips & Tricks
- 💡 Take your time - it's not a race!
- 💡 If you make a mistake, backspace and correct it
- 💡 Watch the status bar for Sensei's feedback
- 💡 Clear the lesson anytime with
Vertex: Clear Lesson
Visual Intelligence
Dynamic call graphs that visualize code relationships in real-time.
Features
- Live Arrows: SVG arrows connect variable usage to definitions
- Function Tracing: See where functions are called and defined
- Multi-Language: Works with 7+ programming languages
- Cursor Sync: Highlights update as you move your cursor
- Real-time Updates: Graph updates as you type
Opening the Visualizer
Ctrl+Shift+P → Vertex: Show Visual Intelligence
Or use the keyboard shortcut: Ctrl+Shift+V / Cmd+Shift+V
What Gets Visualized?
- Variable definitions and usages
- Function definitions and calls
- Parameter usages within functions
- Class and method relationships
Sensei AI (Your Coding Mentor)
Context-aware AI that provides motivational feedback and code assistance.
Capabilities
- Motivational Feedback: Encouragement as you learn
- Code Generation: Ask Sensei to write code for you
- Context Awareness: Understands what you're working on
- Smart Debouncing: Only speaks up when needed
Asking Sensei for Help
Ctrl+I → Describe what code you need
Example Prompts
- "Create a function that sorts an array"
- "Write a class for managing user authentication"
- "Add error handling to this function"
- "Refactor this code to use async/await"
API Reference
Complete API documentation for developers extending or integrating with Vertex.
Core Services
AIService
Get the singleton instance of the AI service.
Methods:
-
initialize(context)
Promise<boolean>
Initialize the service with extension context
-
generateSenseiResponse(code, context)
Promise<string>
Generate motivational feedback from Sensei
-
generateCode(prompt, language)
Promise<string>
Generate code based on natural language prompt
-
listModels(provider)
Promise<string[]>
List available models for a provider
TeacherSlateService
Manage interactive learning sessions.
Methods:
-
setLesson(code)
void
Start a lesson with the provided code
-
deactivate()
void
End the current lesson
-
showFeedback(message)
void
Display inline feedback from Sensei
-
isActive()
boolean
Check if a lesson is currently active
ParserService
Parse code to extract relationships.
Parameters:
-
code
string
Source code to parse
-
languageId
string
Language identifier (javascript, python, etc.)
Returns:
Array of Relationship objects containing start and end definitions
Commands Reference
Learning Commands
Vertex: Load Sample Lesson
Start a guided coding lesson with ghost text
Vertex: Clear Lesson
Clear all decorations and end the active lesson
AI Commands
Vertex: Ask Sensei for Code
Get AI-powered code suggestions (Keyboard: Ctrl+I / Cmd+I)
Vertex: Select Gemini Model
Choose which AI model to use (Keyboard: Ctrl+J / Cmd+J)
Visualization Commands
Vertex: Show Visual Intelligence
Open the visual intelligence sidebar
Vertex: Toggle Visual Intelligence
Toggle visualizer visibility (Keyboard: Ctrl+Shift+V / Cmd+Shift+V)
API Key Management
Vertex: Reset Gemini API Key
Vertex: Reset OpenRouter API Key
Vertex: Reset Ollama Cloud API Key
Vertex: Reset ALL API Keys
Keyboard Shortcuts
| Command | Windows/Linux | Mac |
|---|---|---|
| Ask Sensei | Ctrl+I | Cmd+I |
| Toggle Visualizer | Ctrl+Shift+V | Cmd+Shift+V |
| Select Model | Ctrl+J | Cmd+J |
| Change Provider | Ctrl+H | Cmd+H |
| Command Palette | Ctrl+Shift+P | Cmd+Shift+P |
Troubleshooting
Ghost text not appearing
- ✅ Ensure learning mode is active (
Vertex: Load Sample Lesson) - ✅ Check VS Code inline completion settings are enabled
- ✅ Verify you're in a supported file type
Visualizer not updating
- ✅ Make sure the visualizer panel is visible
- ✅ Check for syntax errors in your code
- ✅ Try toggling the visualizer off and on
- ✅ Verify the language is supported
AI not responding
- ✅ Verify API key is configured (
Vertex: Reset API Keys) - ✅ Check internet connection (for cloud providers)
- ✅ Ensure you haven't hit rate limits
- ✅ Try switching to a different provider
Local Ollama not working
- ✅ Verify Ollama is installed and running
- ✅ Check endpoint URL in settings (
vertex.ollamaEndpoint) - ✅ Ensure you've pulled at least one model
- ✅ Test with:
ollama listin terminal
Open an issue on GitHub with:
- VS Code version
- Vertex extension version
- Console errors (Help → Toggle Developer Tools)
- Steps to reproduce the issue
Usage Examples
Example 1: Learning Python
# Open a .py file
Ctrl+Shift+P → Vertex: Load Sample Lesson
# Follow the ghost text to learn Python syntax
Example 2: Generating Code with Sensei
# Press Ctrl+I and describe what you need:
"Create a React component that displays a user profile with name, avatar, and bio"
Example 3: Multi-Provider Setup
Use fast models for feedback and powerful models for generation:
vertex.senseiProvider→ "Gemini"vertex.senseiModel→ "gemini-2.0-flash" (fast)vertex.codeGenProvider→ "Gemini"vertex.codeGenModel→ "gemini-2.5-pro" (powerful)
Example 4: Visualizing Complex Code
# Open a file with functions and variables
Ctrl+Shift+V → Watch arrows connect your code
# Move cursor to see highlights update