Installation
System Requirements
Section intitulée « System Requirements »Minimum Requirements
Section intitulée « Minimum Requirements »| Component | Requirement |
|---|---|
| OS | Linux, macOS, Windows |
| Rust | 1.95+ |
| Memory | 4 GB RAM |
| Disk | 2 GB free space |
Recommended
Section intitulée « Recommended »| Component | Requirement |
|---|---|
| Rust | 1.95+ (latest supported) |
| Memory | 8 GB RAM |
| CPU | Multi-core processor |
Installing Rust
Section intitulée « Installing Rust »If you don’t have Rust installed:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shSet the correct toolchain version:
rustup default 1.95Add the WASM target for building components:
rustup target add wasm32-wasip2Installing GTC CLI
Section intitulée « Installing GTC CLI »Install the gtc router first, then let gtc install install the Greentic companion tools. Do not install greentic-cli or the individual companion crates directly for normal use; gtc install keeps the delegated binaries aligned with the router.
cargo install cargo-binstallcargo binstall gtcgtc installgtc doctorcargo binstall gtc installs the thin gtc router binary. gtc install then installs the Greentic companion tools that gtc delegates to, such as greentic-dev, greentic-setup, greentic-start, greentic-pack, and greentic-flow.
git clone https://github.com/greenticai/greentic.gitcd greentic/greenticcargo build --release
# Add to PATHexport PATH="$PATH:$(pwd)/target/release"gtc installgtc doctorDownload from GitHub Releases:
# macOS (Apple Silicon)curl -LO https://github.com/greenticai/greentic/releases/latest/download/gtc-darwin-arm64.tar.gztar -xzf gtc-darwin-arm64.tar.gzsudo mv gtc /usr/local/bin/
# macOS (Intel)curl -LO https://github.com/greenticai/greentic/releases/latest/download/gtc-darwin-x64.tar.gz
# Linux (x86_64)curl -LO https://github.com/greenticai/greentic/releases/latest/download/gtc-linux-x64.tar.gz
# Windows# Download gtc-windows-x64.zip from releasesVerify Installation
Section intitulée « Verify Installation »gtc --versiongtc doctorOptional Dependencies
Section intitulée « Optional Dependencies »Redis (Session Storage)
Section intitulée « Redis (Session Storage) »For production session persistence:
docker run -d --name redis -p 6379:6379 redis:alpinebrew install redisredis-serverNgrok/Cloudflared (Public URLs)
Section intitulée « Ngrok/Cloudflared (Public URLs) »For webhook-based providers (Telegram, Slack, etc.):
# Installbrew install ngrok/ngrok/ngrok # macOS# or download from https://ngrok.com/download
# Configurengrok config add-authtoken YOUR_TOKEN
# Runngrok http 8080# Installbrew install cloudflared # macOS# or download from https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/
# Runcloudflared tunnel --url http://localhost:8080Development Tools
Section intitulée « Development Tools »Greentic Toolchain
Section intitulée « Greentic Toolchain »Install or update the delegated Greentic binaries used by the gtc router:
gtc installUse gtc install --dry-run to preview the install plan. For controlled environments, pin the toolchain:
gtc install --release 1.0.15gtc install --manifest ./greentic-toolchain.jsonComponent Authoring
Section intitulée « Component Authoring »gtc install installs the standard companion tools. For standalone component development you may also install cargo-component:
cargo binstall cargo-componentThen use the delegated component surface:
gtc dev component --helpVerifying Your Setup
Section intitulée « Verifying Your Setup »Run the following to verify everything is working:
# Check GTC CLIgtc --help
# Check Rust WASM targetrustup target list --installed | grep wasm32-wasip2
# Create and run a test bundlegtc wizard --dry-runTroubleshooting
Section intitulée « Troubleshooting »Common Issues
Section intitulée « Common Issues »Error: “wasm32-wasip2 target not found”
rustup target add wasm32-wasip2Error: “Permission denied”
# On Linux/macOS, ensure binary is executablechmod +x /usr/local/bin/gtcNext Steps
Section intitulée « Next Steps »- Quick Start - Create your first digital worker
- Architecture Overview - Understand the platform