-
Notifications
You must be signed in to change notification settings - Fork 0
Managing Workspaces
This guide covers everything you need to know about creating, configuring, and managing your development workspaces.
- What is a Workspace?
- Creating Workspaces
- Workspace States
- Controlling Workspaces
- Updating Workspaces
- Monitoring Workspaces
- Deleting Workspaces
A workspace is your personal cloud-based development environment. Each workspace:
- Runs code-server (VS Code in the browser)
- Has persistent storage for your projects
- Can be started, stopped, and restarted on demand
- Is accessible via a unique URL
- Requires a password for access
- Belongs to a specific group
- Uses resources from its group's quota
| Characteristic | Description |
|---|---|
| Persistent | Your files remain even when stopped |
| Isolated | Each workspace is separate and secure |
| On-Demand | Start only when needed to save resources |
| Configurable | Choose CPU, memory, and storage |
| Accessible | Access from any browser, anywhere |
Before creating a workspace:
- ✅ You must belong to at least one group
- ✅ The group must have available resources
- ✅ You must have Member role or higher
-
Navigate to Workspaces
- Click Workspaces in the main navigation
- Click Create New Workspace button
-
Fill in Basic Information
Name (required)
- Choose a descriptive name
- Examples: "Frontend Development", "API Testing", "ML Training"
- Must be unique within your workspaces
Description (optional)
- Add notes about the workspace purpose
- Examples: "React app for customer portal", "Python data analysis"
Group (required)
- Select which group this workspace belongs to
- You can only choose groups you're a member of
- Workspace will use this group's resources
-
Choose Resources
Option A: Resource Tier (Recommended)
Select a predefined tier:
Tier CPU Memory Storage Use Case Single User 0.5 cores 1 GB 10 GB Light coding, config editing Small Team 2 cores 4 GB 50 GB Most development work Enterprise 4 cores 8 GB 100 GB Heavy builds, databases, ML Option B: Custom Resources (Advanced)
Specify exact resources:
- CPU: e.g., "1", "2", "4"
- Memory: e.g., "2Gi", "4Gi", "8Gi"
- Storage: e.g., "20Gi", "50Gi", "100Gi"
-
Advanced Options (Optional)
Workspace Image
- Default: System default image (usually latest)
- Custom: Specify a different code-server image
- Format:
ghcr.io/user/image:tag - Most users should use the default
-
Create
- Click Create Workspace
- Wait for confirmation
- IMPORTANT: Save the password shown!
What Happens:
- Workspace is created in "Stopped" state
- Kubernetes resources are provisioned
- Persistent volume is allocated
- Workspace is ready to start
Your Password:
Password: abc123xyz789...
- Save this securely!
- You'll need it to access the workspace
- It cannot be recovered if lost
- Store in password manager
Resource Allocation:
- Resources are reserved in the group quota
- Even stopped workspaces count toward storage quota
- Running workspaces use CPU and memory quota
Your workspace transitions through different states:
What it means:
- Workspace is not running
- No CPU or memory used
- Files are preserved in storage
- Storage quota is still used
When to use:
- End of workday
- When not actively developing
- To free resources for teammates
How to get here:
- Click Stop button
- Wait for transition (5-10 seconds)
What it means:
- Workspace is booting up
- Pod is being scheduled
- Container is starting
- Usually takes 30-60 seconds
What to do:
- Wait patiently
- Don't click Start again
- Monitor status indicator
What it means:
- Workspace is fully operational
- Accessible via Open button
- Using group CPU and memory quota
- Ready for development work
What you can do:
- Click Open to access
- View logs
- Monitor resource usage
- Stop or restart
What it means:
- Workspace is shutting down
- Containers are terminating
- Files being synced to persistent storage
- Usually takes 5-10 seconds
What happens:
- Graceful shutdown initiated
- Processes are terminated
- Pod is removed
- Storage is preserved
What it means:
- Something went wrong
- Workspace failed to start
- Pod encountered an error
- Intervention needed
What to do:
- Check workspace logs
- Try restarting
- Verify group has resources
- Contact administrator if persists
What it means:
- Workspace is waiting for resources
- Pod cannot be scheduled
- Insufficient cluster capacity
What to do:
- Wait a few minutes
- Check group resource usage
- Stop other workspaces
- Contact administrator
From Workspace List:
- Find your workspace
- Click Start button
- Wait for "Running" status
- Click Open when ready
From Workspace Details:
- Click workspace name
- Click Actions → Start
- Monitor status
Typical Start Time: 30-60 seconds
What happens during start:
- Kubernetes schedules pod
- Container image is pulled (if not cached)
- Storage volume is mounted
- Code-server starts
- Health checks pass
Why stop a workspace:
- Free resources for others
- Reduce group resource usage
- End of workday
- Switching to different workspace
How to stop:
- Save your work in the workspace first!
- In Codex Web, click Stop button
- Wait for "Stopped" status
What is preserved:
- All files in
/workspace/.codex-projects - Installed VS Code extensions
- Code-server settings
What is lost:
- Running processes
- Terminal sessions
- Unsaved editor changes (if not saved)
- Files outside persistent directory
When to restart:
- Workspace is unresponsive
- Need a clean environment
- After configuration changes
- Troubleshooting issues
How to restart:
- Click Restart button
- Workspace stops and starts automatically
- Wait for "Running" status
What happens:
- Workspace is stopped
- Resources are released
- Workspace starts fresh
- Storage is preserved
If workspace status seems incorrect:
- Click on workspace
- Click Sync button
- System fetches current Kubernetes state
- Status is updated
When to use:
- Status seems stuck
- After manual Kubernetes operations
- Discrepancy between UI and reality
Name and Description:
- Click workspace name
- Click Edit button
- Update name or description
- Click Save
Non-Editable Fields:
- Group assignment (cannot change)
- Resource allocation (create new workspace)
- Image (for running workspaces)
- Storage size (fixed at creation)
To change workspace resources:
- Save/backup your work
- Create new workspace with desired resources
- Copy files to new workspace
- Delete old workspace
Note: In-place resource updates are not supported to maintain stability.
Quick Status:
- Name and description
- Current state (icon and color)
- Group it belongs to
- Last accessed time
- Quick actions (Start/Stop/Open)
Filtering:
- View all workspaces
- Filter by group
- Filter by status
- Sort by name, date, status
Click a workspace to see:
Overview Tab:
- Full workspace information
- Current status
- Creation and update times
- URL and access info
- Resource allocation
Resources Tab:
- CPU usage (current)
- Memory usage (current)
- Storage usage
- Visual usage graphs
- Comparison to allocated amounts
Logs Tab:
- Recent container logs
- Error messages
- Startup logs
- Filter by time
- Download logs
Health Tab:
- Pod health status
- Container health
- Readiness status
- Recent health check results
Viewing Usage:
- Click on a running workspace
- Go to Resources tab
- See real-time usage:
CPU: 1.2 / 2.0 cores (60%)
Memory: 2.8 / 4.0 GB (70%)
Storage: 15 / 50 GB (30%)
Understanding Metrics:
- Current Usage: What's being used right now
- Allocated: What the workspace can use maximum
- Percentage: Usage relative to allocation
When to Worry:
- CPU at 100%: Workspace may be slow
- Memory at 90%+: Risk of out-of-memory errors
- Storage at 95%+: Won't be able to save new files
Accessing Logs:
- Click workspace name
- Go to Logs tab
- View recent output
Log Contents:
- Container startup messages
- Code-server initialization
- Application errors
- Connection logs
Using Logs:
- Troubleshoot startup failures
- Debug connection issues
- Identify errors
- Monitor workspace health
Download Logs:
- Click Download to save logs
- Useful for sharing with support
- Includes timestamp information
Before deleting:
- ✅ Save important work to git
- ✅ Download any needed files
- ✅ Stop the workspace
- ✅ Verify you're deleting the correct workspace
- ✅ Check with team if others depend on it
- Stop the workspace (recommended)
- Click Delete button
- Confirm deletion in dialog
- Workspace is immediately deleted
What gets deleted:
- All workspace files
- Persistent storage
- Kubernetes resources
- Configuration
- Logs
- Everything!
What is NOT deleted:
- Code in external git repositories
- Files you downloaded locally
- Your user account
- Group membership
You can delete:
- Workspaces you created
Group admins can delete:
- Any workspace in their group
Platform admins can delete:
- Any workspace on the platform
Resources Released:
- CPU quota returned to group
- Memory quota returned to group
- Storage quota returned to group
- Pod count decreases
Changes Take Effect:
- Immediately
- Group resources available for new workspaces
- Workspace disappears from UI
Right-Sizing:
- Start with smaller tiers
- Monitor actual usage
- Upgrade if consistently hitting limits
- Don't over-provision
Efficient Usage:
- Stop workspaces when done
- Delete unused workspaces
- Share resources fairly with team
- Monitor group quota impact
Version Control:
- Use git for all important code
- Push changes regularly
- Don't rely solely on workspace storage
- Keep remote backups
File Organization:
- Keep all work in
/workspace/.codex-projects - Organize by project
- Include README files
- Document setup steps
Regular Maintenance:
- Clean up old files
- Remove unused dependencies
- Clear logs and caches
- Keep storage usage reasonable
Clear Names:
- Use descriptive workspace names
- Include project or purpose
- Examples:
- ✅ "Customer Portal Frontend"
- ✅ "Data Pipeline Development"
- ❌ "Workspace 1"
- ❌ "Test"
Good Descriptions:
- Note the purpose
- List main technologies
- Include relevant links
- Document special setup
Password Management:
- Store passwords securely
- Use password manager
- Don't share passwords
- Don't commit passwords to git
Access Control:
- Only share workspace URLs with authorized users
- Log out when done on shared computers
- Use workspace-level authentication
- Report suspicious activity
Symptoms:
- Stuck in "Starting" state
- Changes to "Error" state
- Never reaches "Running"
Solutions:
- Check group has available resources
- View workspace logs for errors
- Try stopping and starting again
- Verify group quota isn't exceeded
- Contact administrator
Possible Causes:
- Resource limits reached
- Group quota nearly full
- Heavy workload
- Insufficient tier
Solutions:
- Check resource usage in Resources tab
- Stop other workspaces
- Restart the workspace
- Consider higher resource tier
- Close unused editor tabs/terminals
Check:
- Workspace status is "Running"
- URL is correct
- Password is correct
- Network connection is stable
- Firewall/proxy settings
Try:
- Restart workspace
- Check logs for errors
- Try different browser
- Clear browser cache
- Contact administrator
Problem: Lost workspace password
Solution:
- Passwords cannot be recovered
- Create new workspace
- Copy files from old workspace (if accessible)
- Delete old workspace
Prevention:
- Save passwords in password manager
- Document passwords securely
- Keep backup of critical access info
- Accessing Your Workspace - Detailed guide to using your workspace
- Understanding Groups - How groups and resources work
- Troubleshooting - Solutions to common problems