Workspaces
Workspaces let you pre-configure the sandbox environment with files, dependencies, and settings. This is useful for:- Providing context (documentation, code, data files)
- Pre-installing dependencies
- Setting up configuration files
- Creating custom development environments
How Workspaces Work
1
Deploy
Use the Chucky CLI to deploy your workspace files to the cloud
2
Session Start
When a session starts, the workspace is extracted to
/workspace/project3
Access
Claude and tools can read/write files in the workspace directory
Deploying Workspaces with the CLI
Installation
Install the Chucky CLI globally:Authentication
Login with your API key (get it from app.chucky.cloud):Initialize Project
In your workspace directory, initialize a Chucky project:.chucky.json configuration file:
Deploy
Deploy your workspace to the cloud:- Creates a compressed archive of your files
- Excludes unnecessary files (node_modules, .git, build artifacts, etc.)
- Uploads to Chucky’s cloud storage
- Provides a test token for immediate use
Automatic Exclusions
The CLI automatically excludes these patterns when creating the archive:node_modules/**.git/**.env,.env.**.log.DS_Store,Thumbs.dbdist/**,build/**,.next/**,.nuxt/**coverage/**,.cache/***.tgz,*.tar.gz.chucky.json
CI/CD Integration
GitHub Actions
Thechucky init command can generate a GitHub Actions workflow for automatic deployments:
CHUCKY_API_KEY to your repository secrets.
CLI Commands Reference
| Command | Description |
|---|---|
chucky login | Authenticate with your API key |
chucky init | Initialize a new project in current directory |
chucky deploy | Deploy workspace to the cloud |
chucky list | List all your projects |
chucky keys | Show HMAC key for current project |
chucky config anthropic | Set Anthropic API key for project |
chucky delete | Delete a project |
Workspace Contents
Common things to include:Documentation
Code Context
Data Files
Templates
Alternative: Git Repositories
Instead of deploying a workspace, you can configure a Git repository to be cloned on each session:In Portal Settings
Configure Git in your project settings at app.chucky.cloud:| Option | Description |
|---|---|
url | Repository URL (HTTPS) |
ref | Branch, tag, or commit (default: main) |
token | Personal access token for private repos |
depth | Shallow clone depth (default: 1) |
Benefits of Git
- Always up-to-date: Latest code on each session
- Branch selection: Test different branches
- No manual deploys: Automatic syncing
Git clone happens on every session start, so it adds latency. For static content, deployed workspaces are faster.
Accessing Workspace Files
In Custom Tools
Claude Access
Claude can reference workspace files using built-in tools:Session Persistence
Session state is saved separately from the workspace:- Workspace: Shared across all users (read-only base)
- Session state: Per-user, persists between sessions
/root/.claude/- Claude’s memory and context/root/.claude.json- Session configuration
Best Practices
Keep workspaces small
Keep workspaces small
Large workspaces increase session startup time. Only include files Claude needs.Do include:
- Documentation
- Type definitions
- Configuration files
- Small code samples
- node_modules (auto-excluded)
- Build artifacts (auto-excluded)
- Large binary files
- Test fixtures
Use .chuckyignore
Use .chuckyignore
Create a
.chuckyignore file for project-specific exclusions (same syntax as .gitignore):Include a manifest
Include a manifest
Add a file describing the workspace contents:
Automate with CI/CD
Automate with CI/CD
Set up automatic deployments on push to main branch. This ensures Claude always has the latest context.