-
Notifications
You must be signed in to change notification settings - Fork 0
Accessing Your Workspace
This guide explains how to log into your workspace, use the development environment, and work effectively in your cloud-based IDE.
Before accessing your workspace:
- ✅ Workspace status is "Running"
- ✅ You have the workspace password
- ✅ Modern web browser (Chrome, Firefox, Safari, Edge)
- ✅ Stable internet connection
-
Start Your Workspace (if not already running)
- Go to Codex Web dashboard
- Find your workspace
- Click Start button
- Wait for status: "Running"
-
Open Workspace
- Click the Open button
- New browser tab opens
-
Enter Password
- You'll see code-server password prompt
- Enter your workspace password
- Click Submit
-
Welcome to Your Workspace!
- VS Code interface loads
- You're now in your development environment
Your workspace URL follows this pattern:
https://preview.codexeditor.app/{namespace}/{workspace-name}
Example:
https://preview.codexeditor.app/codex-platform-grp123/workspace-abc456
Tips:
- Bookmark the URL for quick access
- URL remains the same (even after restart)
- Share URL only with authorized users
- Each workspace has unique URL
Code-Server Password:
- Set when workspace was created
- Required every time you access
- Separate from Codex Web login
- Cannot be changed (create new workspace instead)
Browser Session:
- Password is remembered during browser session
- Closing tab requires re-authentication
- Different workspace = different password
The code-server interface is VS Code running in your browser:
┌─────────────────────────────────────────────────┐
│ Menu Bar (File, Edit, View, etc.) │
├─────────┬───────────────────────────────────────┤
│ │ │
│ File │ Editor Area │
│ Explorer│ (Your code files) │
│ │ │
│ Search │ │
│ │ │
│ Git │───────────────────────────────────── │
│ │ Terminal │
│ Exten- │ $ cursor_here │
│ sions │ │
│ │ │
└─────────┴───────────────────────────────────────┘
1. Activity Bar (Left Side)
- 📁 Explorer: Browse files and folders
- 🔍 Search: Find across all files
- 🔀 Source Control: Git integration
- 🐛 Debug: Run and debug code
- 🧩 Extensions: Install add-ons
2. Side Bar
- Context-specific content
- File tree in Explorer view
- Search results in Search view
- Git changes in Source Control
3. Editor Area (Center)
- Multiple tabs for open files
- Split editor layouts
- Code editing
- Syntax highlighting
4. Terminal (Bottom)
- Full command-line access
- Multiple terminal sessions
- Run commands, scripts
- Install packages
5. Status Bar (Bottom)
- Current branch
- Line/column position
- File encoding
- Language mode
Important: Your persistent storage is located at:
/workspace/.codex-projects
What This Means:
- ✅ Files HERE are preserved when workspace stops
- ❌ Files ELSEWHERE may be lost
- 🔒 Always work in this directory!
Option 1: Using Terminal
cd /workspace/.codex-projects
mkdir my-project
cd my-project
git initOption 2: Using File Explorer
- Click Explorer icon
- Navigate to
/workspace/.codex-projects - Right-click → New Folder
- Name your project
cd /workspace/.codex-projects
git clone https://github.com/username/repo.git
cd repoCreating Files:
- Click File → New File
- Or right-click in Explorer → New File
- Or use terminal:
touch filename.js
Opening Files:
- Click file in Explorer
- Or use File → Open File
- Or use terminal:
code filename.js
Saving Files:
-
Ctrl/Cmd + Sto save - File → Save All for multiple files
- Auto-save can be enabled in settings
Deleting Files:
- Right-click file → Delete
- Or use terminal:
rm filename.js - Files go to trash (recoverable)
Methods:
- Click Terminal → New Terminal
- Press
Ctrl/Cmd + ```` - Use terminal icon in activity bar
Multiple Terminals:
- Create multiple terminal sessions
- Switch between them using dropdown
- Each terminal is independent
Terminal Commands:
# Navigate directories
cd /workspace/.codex-projects
ls -la
# Run your code
npm run dev
python app.py
go run main.go
# Install dependencies
npm install
pip install -r requirements.txt
cargo build
# Git operations
git status
git add .
git commit -m "message"
git pushTypical workspace includes:
- Git
- Node.js and npm
- Python 3
- Common Unix utilities
Check versions:
git --version
node --version
python --versionInstalling Additional Tools:
# Node packages
npm install -g typescript
# Python packages
pip install pandas numpy
# System packages (if you have sudo)
sudo apt-get update
sudo apt-get install [package]Accessing:
- Click Source Control icon (left sidebar)
- Or press
Ctrl/Cmd + Shift + G
Features:
- View changed files
- Stage/unstage changes
- Commit with messages
- Push/pull from remote
- View history
- Create branches
1. Stage Changes:
- Click
+next to changed file - Or stage all: click
+next to "Changes"
2. Commit:
- Enter commit message in text box
- Click ✓ checkmark to commit
3. Push:
- Click
...menu → Push - Or use terminal:
git push
4. Pull:
- Click
...menu → Pull - Or use terminal:
git pull
# Check status
git status
# Stage files
git add file.js
git add .
# Commit
git commit -m "Add new feature"
# Push to remote
git push origin main
# Pull from remote
git pull origin main
# Create branch
git checkout -b feature-branch
# Switch branch
git checkout main- Click Extensions icon (left sidebar)
- Or press
Ctrl/Cmd + Shift + X - Search for extensions
Languages:
- Python
- JavaScript/TypeScript
- Go
- Java
- PHP
Tools:
- Prettier (code formatting)
- ESLint (JavaScript linting)
- GitLens (advanced Git)
- Docker
- Live Share (collaboration)
- Search for extension name
- Click Install button
- Extension activates automatically
- Some require workspace reload
Extensions Persist:
- Installed extensions remain after workspace restart
- Stored in persistent storage
- No need to reinstall
Accessing Settings:
- File → Preferences → Settings
- Or press
Ctrl/Cmd + ,
Common Settings:
- Theme (color scheme)
- Font size
- Tab size
- Auto-save
- Format on save
Essential Shortcuts:
| Action | Windows/Linux | macOS |
|---|---|---|
| Command Palette | Ctrl+Shift+P |
Cmd+Shift+P |
| Quick Open | Ctrl+P |
Cmd+P |
| Terminal | Ctrl+` |
Cmd+` |
| Save | Ctrl+S |
Cmd+S |
| Find | Ctrl+F |
Cmd+F |
| Replace | Ctrl+H |
Cmd+H |
| Go to Line | Ctrl+G |
Cmd+G |
| Comment Line | Ctrl+/ |
Cmd+/ |
View Shortcuts:
- File → Preferences → Keyboard Shortcuts
- Or press
Ctrl/Cmd + K, Ctrl/Cmd + S
Changing Theme:
-
Ctrl/Cmd + Shift + P(Command Palette) - Type "Color Theme"
- Select theme from list
- Preview by arrow keys
Popular Themes:
- Dark+ (default dark)
- Light+ (default light)
- Monokai
- Dracula
- One Dark Pro
Via Terminal:
# Node.js
node app.js
# Python
python script.py
# Go
go run main.go
# With package managers
npm run dev
npm start
yarn devVia Run Button:
- Some languages support Run button
- Appears in upper right of editor
- Runs current file
Setup Debug Configuration:
- Click Debug icon (left sidebar)
- Click create a launch.json file
- Select environment (Node, Python, etc.)
- Configuration file is created
Start Debugging:
- Press
F5 - Or click Debug icon → Start Debugging
Debug Features:
- Set breakpoints (click line number)
- Step through code
- Inspect variables
- Watch expressions
- Call stack
# Clone repository
cd /workspace/.codex-projects
git clone https://github.com/user/my-app.git
cd my-app
# Install dependencies
npm install
# Start dev server
npm run dev
# Server runs on port (e.g., 3000)
# Access via workspace URL + port forwarding# Create project
cd /workspace/.codex-projects
mkdir python-project
cd python-project
# Create virtual environment
python -m venv venv
source venv/bin/activate
# Install dependencies
pip install flask pandas
# Run application
python app.pySeparate Directories:
/workspace/.codex-projects/
├── frontend-app/
├── backend-api/
├── data-analysis/
└── personal-scripts/
Switch Between Projects:
- Use terminal:
cd /workspace/.codex-projects/project-name - Open different folder in File Explorer
- Open new workspace window: File → Open Folder
When running a web server in your workspace:
Local Development Servers:
- Express on port 3000
- Flask on port 5000
- Django on port 8000
Accessing from Browser: Port forwarding is typically handled automatically. Check with your administrator for specific URLs.
Viewing Forwarded Ports:
- Click Ports tab in terminal panel
- Shows forwarded ports
- Click to open in browser
Organization:
/workspace/.codex-projects/
├── project-name/
│ ├── src/
│ ├── tests/
│ ├── docs/
│ ├── .git/
│ ├── README.md
│ └── package.json
Naming Conventions:
- Use clear, descriptive names
- Follow language conventions
- Include README files
- Document setup steps
Commit Often:
- Small, focused commits
- Clear commit messages
- Push regularly
Branch Strategy:
- Main branch for stable code
- Feature branches for development
- Don't commit directly to main
Gitignore:
- Exclude node_modules
- Exclude build artifacts
- Exclude environment files
- Include .gitignore in repository
Monitor Usage:
- Check terminal processes
- Close unused tabs
- Kill finished processes
- Clear logs periodically
Optimize Performance:
- Close large files when done
- Limit open editor tabs
- Stop dev servers when not needed
- Clear terminal output
Don't Commit Secrets:
# Use .env files (add to .gitignore)
API_KEY=secret_key_here
DATABASE_URL=postgres://...
# Load in code
require('dotenv').config()Good Practices:
- Store credentials in .env
- Add .env to .gitignore
- Use environment variables
- Don't hardcode passwords
Via Git:
- Push code to shared repository
- Team clones repository
- Everyone has own workspace
- Collaborate via pull requests
Not via Workspace:
- Don't share workspace passwords
- Don't work in same workspace simultaneously
- Each developer gets own workspace
Workflow:
- Work in your workspace
- Commit and push to feature branch
- Create pull request
- Team reviews on GitHub/GitLab
- Merge when approved
Symptoms:
- "Connection lost" message
- Editor unresponsive
- Commands don't work
Solutions:
- Check internet connection
- Refresh browser page
- Restart workspace if persistent
- Check workspace status in Codex Web
Check:
- File is not read-only
- Sufficient storage space
- File is in persistent directory
- No permission issues
Solutions:
- Check file permissions
- Save to different location
- Check workspace storage usage
- Copy content and recreate file
Issues:
- Terminal won't open
- Commands not executing
- Unexpected errors
Solutions:
- Close and reopen terminal
- Create new terminal session
- Restart workspace
- Check terminal process limit
Symptoms:
- Slow editor response
- Terminal lag
- File operations slow
Solutions:
- Check resource usage (Codex Web)
- Close unused tabs and terminals
- Stop background processes
- Restart workspace
- Consider higher resource tier
Command Palette:
-
Ctrl/Cmd + Shift + Pfor any action - Search for any command
- Fastest way to access features
Quick File Open:
-
Ctrl/Cmd + Pto open files quickly - Type filename
- No need to navigate tree
Multi-Cursor:
-
Alt + Clickto add cursor -
Ctrl/Cmd + Dto select next occurrence - Edit multiple locations at once
Split Editor:
- Drag tabs to split view
- Work on multiple files
- Compare code side-by-side
# Find files
find . -name "*.js"
# Search in files
grep -r "search term" .
# Disk usage
du -sh /workspace/.codex-projects/*
# Process management
ps aux | grep node
kill [PID]
# Check resource usage
htopFor Web Dev:
- ESLint
- Prettier
- Auto Rename Tag
- Path Intellisense
For Python:
- Python
- Pylance
- Python Docstring Generator
For Everyone:
- GitLens
- Bracket Pair Colorizer
- Better Comments
- Error Lens
- Managing Workspaces - Workspace lifecycle and management
- Understanding Groups - Groups and resources
- Troubleshooting - Common issues and solutions
- Quick Reference - Commands and shortcuts