How to deploy?
Learn how to deploy your Worker to CoreClaw.
Quick Steps
Section titled “Quick Steps”1. Prepare Your Project
Section titled “1. Prepare Your Project”Ensure your project has the required files:
├── main.py # Entry file├── requirements.txt # Dependencies├── input_schema.json # Input configuration├── sdk.py # CoreClaw SDK - Core functionality module├── sdk_pb2.py # Data processing enhancement module└── sdk_pb2_grpc.py # Network communication module2. Upload to CoreClaw
Section titled “2. Upload to CoreClaw”Currently, only ZIP archive files are supported for uploading scripts.
- Log in to CoreClaw Console
- Go to My Workers → Create Worker
- Package your project as a ZIP file
- Upload the ZIP archive
- Click Create
3. Build
Section titled “3. Build”After upload, CoreClaw automatically builds your Worker:
- Installs dependencies
- Sets up the script runtime environment
- Runs build checks
Monitor the build logs for any errors.
4. Test
Section titled “4. Test”Before publishing, test your Worker:
- Click Run Worker
- Enter test input
- Verify output
- Check logs
5. Publish
Section titled “5. Publish”- Configure Worker settings
- Set pricing (optional)
- Click Publish
Common Issues
Section titled “Common Issues”Build Timeout
Section titled “Build Timeout”Cause: Dependencies take too long to install
Solution:
- Minimize dependencies
- Pin dependency versions
Import Errors
Section titled “Import Errors”Cause: Missing dependencies
Solution:
- Check
requirements.txt/package.json - Ensure correct package names
File Not Found
Section titled “File Not Found”Cause: Incorrect file names
Solution:
- Entry file must be
main.py/main.js/main.go - Check file paths in code