# ComputeSDK Environment Configuration # Copy this file to .env and fill in your actual API keys # ============================================================================ # ZERO-CONFIG MODE (Recommended) 🚀 # ============================================================================ # The simplest way to use ComputeSDK - no code configuration needed! # Just set COMPUTESDK_API_KEY + provider credentials and you're ready to go. # # Get your API key from https://computesdk.com COMPUTESDK_API_KEY=computesdk_live_your_key_here # Provider Credentials (choose one or more) # Auto-detected in priority order: E2B → Railway → Daytona → Modal → etc. # E2B Provider - Get your API key from https://e2b.dev/ E2B_API_KEY=e2b_your_api_key_here # Railway Provider RAILWAY_API_KEY=your_railway_api_key_here RAILWAY_PROJECT_ID=your_railway_project_id_here RAILWAY_ENVIRONMENT_ID=your_railway_environment_id_here # Daytona Provider - Get your API key from https://daytona.io/ DAYTONA_API_KEY=your_daytona_api_key_here # Modal Provider - Get your token from https://modal.com/ MODAL_TOKEN_ID=your_modal_token_id_here MODAL_TOKEN_SECRET=your_modal_token_secret_here # Runloop Provider RUNLOOP_API_KEY=your_runloop_api_key_here # Vercel Provider - Get your token from https://vercel.com/account/tokens VERCEL_TOKEN=your_vercel_token_here VERCEL_TEAM_ID=your_team_id_here VERCEL_PROJECT_ID=your_project_id_here # Cloudflare Provider CLOUDFLARE_SANDBOX_URL=https://sandbox.your-subdomain.workers.dev CLOUDFLARE_SANDBOX_API_KEY=your_sandbox_api_key_here # CodeSandbox Provider - Get your token from https://codesandbox.io/ CSB_API_KEY=your_codesandbox_api_key_here # Blaxel Provider - Get your API key from https://blaxel.ai/ BL_API_KEY=your_blaxel_api_key_here BL_WORKSPACE=your_blaxel_workspace_here # Beam Provider - Get your token from https://app.beam.cloud BEAM_TOKEN=your_beam_token_here BEAM_WORKSPACE_ID=your_beam_workspace_id_here # ============================================================================ # OPTIONAL: Zero-Config Overrides # ============================================================================ # Force a specific provider (overrides auto-detection) # COMPUTESDK_PROVIDER=e2b # Custom gateway URL (defaults to https://gateway.computesdk.com) # COMPUTESDK_GATEWAY_URL=https://gateway.computesdk.com # Enable debug logging # COMPUTESDK_DEBUG=true # ============================================================================ # EXPLICIT MODE # ============================================================================ # If you prefer to use provider packages directly (e.g., @computesdk/e2b), # omit COMPUTESDK_API_KEY and configure providers explicitly in code. # # This mode requires: # npm install @computesdk/e2b # # Then in your code: # import { compute } from 'computesdk'; # import { e2b } from '@computesdk/e2b'; # compute.setConfig({ defaultProvider: e2b({ apiKey: process.env.E2B_API_KEY }) }); # # Note: Zero-config mode is the future!