Skip to main content

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/project
3

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):
Or set the environment variable:

Initialize Project

In your workspace directory, initialize a Chucky project:
This creates a .chucky.json configuration file:

Deploy

Deploy your workspace to the cloud:
The CLI automatically:
  • 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.db
  • dist/**, build/**, .next/**, .nuxt/**
  • coverage/**, .cache/**
  • *.tgz, *.tar.gz
  • .chucky.json

CI/CD Integration

GitHub Actions

The chucky init command can generate a GitHub Actions workflow for automatic deployments:
Add your CHUCKY_API_KEY to your repository secrets.

CLI Commands Reference

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:

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
Session files are stored at:
  • /root/.claude/ - Claude’s memory and context
  • /root/.claude.json - Session configuration

Best Practices

Large workspaces increase session startup time. Only include files Claude needs.Do include:
  • Documentation
  • Type definitions
  • Configuration files
  • Small code samples
Don’t include:
  • node_modules (auto-excluded)
  • Build artifacts (auto-excluded)
  • Large binary files
  • Test fixtures
Create a .chuckyignore file for project-specific exclusions (same syntax as .gitignore):
Add a file describing the workspace contents:
Set up automatic deployments on push to main branch. This ensures Claude always has the latest context.

Example: Documentation Bot

Example: Code Review Bot