System Requirements
Before installing Treeship, ensure your environment meets these requirements:- Node.js: Version 16.0 or higher (for JavaScript/TypeScript)
- Python: Version 3.8 or higher (for Python SDK)
- Operating System: macOS, Linux, or Windows
- Memory: Minimum 4GB RAM for proof generation
JavaScript/TypeScript Installation
Using npm
Using yarn
Using pnpm
Python Installation
Using pip
Using poetry
Configuration
1. Get Your API Key
Sign up at treeship.dev and generate an API key from your dashboard.2. Set Environment Variables
Create a.env file in your project root:
Never commit your
.env file to version control. Add it to your .gitignore:3. Initialize the SDK
Advanced Configuration
Custom API Endpoint
For enterprise or self-hosted deployments:Proxy Configuration
If you’re behind a corporate proxy:Verify Installation
Run this test script to verify everything is working:Troubleshooting
Common Issues
Module not found error
Module not found error
Ensure you’ve installed the SDK in the correct directory:
Authentication failed
Authentication failed
Verify your API key:Then add to your code:
Connection timeout
Connection timeout
Check your network connection and firewall settings: