nodetool-deployment
Deploy NodeTool servers using Docker, SSH, RunPod, GCP, or Supabase. Use when user asks to deploy, host, set up a server, configure Docker, use RunPod/GCP/Supabase, manage deployment.yaml, or configure environment variables for production.
- License 许可
- AGPL-3.0
- 最近更新
- 2026-08-18
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- nodetool-deployment
- description
- Deploy NodeTool servers using Docker, SSH, RunPod, GCP, or Supabase. Use when user asks to deploy, host, set up a server, configure Docker, use RunPod/GCP/Supabase, manage deployment.yaml, or configure environment variables for production.
03 SKILL.md 正文
You help users deploy NodeTool to various environments. Choose the right deployment type based on requirements.
Decision Tree
Need GPU? ──yes──→ Own hardware? ──yes──→ Self-Hosted (Docker/SSH)
│ │
no no──→ RunPod (serverless GPU)
│
├── Need auth/storage? ──yes──→ Supabase + any deployment
│
└── Just API server? ──→ GCP Cloud Run or Self-Hosted
Deployment Modes
| Mode | Auth | Use Case |
|---|---|---|
desktop |
local |
Local development, Electron app |
private |
static |
Team/personal server, single token |
public |
supabase |
Multi-user, full auth/storage |
Quick Start
nodetool deploy init # Create deployment.yaml
nodetool deploy add <name> # Add a deployment
nodetool deploy list # List deployments
nodetool deploy show <name> # Show config
nodetool deploy plan <name> # Preview changes
nodetool deploy apply <name> # Deploy
nodetool deploy status <name> # Check status
nodetool deploy logs <name> # View logs
nodetool deploy destroy <name> # Tear down
Environment Variables (All Deployments)
# Required
NODETOOL_ENV=production
NODETOOL_SERVER_MODE=private # desktop | private | public
# Auth (pick one)
AUTH_PROVIDER=static # none | local | static | supabase
SERVER_AUTH_TOKEN=<token> # for static auth
# Security
SECRETS_MASTER_KEY=<strong-random-key>
ADMIN_TOKEN=<admin-token>
# Database
DB_PATH=/workspace/nodetool.sqlite3
# API Keys (as needed)
OPENAI_API_KEY=<key>
ANTHROPIC_API_KEY=<key>
GEMINI_API_KEY=<key>
HF_TOKEN=<token>
FAL_API_KEY=<key>
OLLAMA_API_URL=http://localhost:11434
Self-Hosted: Docker
deployment.yaml
deployments:
my-server:
type: docker
host: 192.168.1.10
ssh:
user: ubuntu
key_path: ~/.ssh/id_rsa
container:
name: nodetool-server
port: 8000
gpu: "0" # GPU device ID, or omit
paths:
workspace: /data/nodetool
hf_cache: /data/hf-cache
image:
name: ghcr.io/nodetool-ai/nodetool
tag: latest
Docker Run (manual)
docker run --gpus all --memory 8g --cpus 4 \
-p 7777:7777 \
-e NODETOOL_ENV=production \
-e NODETOOL_SERVER_MODE=private \
-e AUTH_PROVIDER=static \
-e SERVER_AUTH_TOKEN=<token> \
-e SECRETS_MASTER_KEY=<secret> \
-v $(pwd)/workspace:/workspace \
-v $(pwd)/hf-cache:/hf-cache:ro \
-e HF_HOME=/hf-cache \
nodetool:latest
Resource Limits
# Docker Compose
services:
nodetool:
mem_limit: 8g
cpus: 4
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
Self-Hosted: SSH
deployments:
my-ssh:
type: ssh
host: 192.168.1.11
ssh:
user: ubuntu
key_path: ~/.ssh/id_rsa
port: 8000
service_name: nodetool-8000
paths:
workspace: /home/ubuntu/nodetool
hf_cache: /home/ubuntu/.cache/huggingface
Self-Hosted: Local
deployments:
my-local:
type: local
host: localhost
port: 8000
paths:
workspace: /home/me/.nodetool-workspace
hf_cache: /home/me/.cache/huggingface/hub
RunPod (Serverless GPU)
export RUNPOD_API_KEY="your-key"
nodetool deploy add my-runpod --type runpod
nodetool deploy apply my-runpod
Config fields: template_id, endpoint_id, compute_type, gpu_types, gpu_count, workers_min, workers_max, env
GCP Cloud Run
gcloud auth login
nodetool deploy add my-gcp --type gcp
nodetool deploy apply my-gcp
Config fields: service_name, region, registry, cpu, memory, gpu_type, gpu_count, min_instances, max_instances, concurrency, timeout
Supabase Integration
# Environment variables
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_KEY=your-service-role-key
ASSET_BUCKET=assets
ASSET_TEMP_BUCKET=assets-temp
AUTH_PROVIDER=supabase
Setup steps:
- Create Supabase project
- Create storage buckets:
assets,assets-temp - Set bucket policies (public or signed URLs)
- Copy service-role key (not anon key)
- Set environment variables
Server Startup
# Development
nodetool serve --host 127.0.0.1 --port 7777
# Production
nodetool serve --host 0.0.0.0 --port 7777
# Custom port
nodetool serve --port 8080
# With TypeScript build
npm run build:packages && npm run dev:server
# Or directly:
PORT=7777 HOST=0.0.0.0 node packages/websocket/dist/server.js
Workflow Sync
nodetool deploy workflows sync <deployment> <workflow-id>
nodetool deploy workflows list <deployment>
nodetool deploy workflows run <deployment> <workflow-id>
Production Checklist
- [ ] Set
NODETOOL_ENV=production - [ ] Set strong
SECRETS_MASTER_KEY - [ ] Set
ADMIN_TOKEN - [ ] Configure
AUTH_PROVIDER(nevernonein prod) - [ ] Set appropriate
SERVER_AUTH_TOKENif using static auth - [ ] Configure API keys for needed providers
- [ ] Set resource limits (memory, CPU, GPU)
- [ ] Mount persistent volumes for workspace and model cache
- [ ] Set up health monitoring (
GET /health,GET /ready) - [ ] Configure logging (
NODETOOL_LOG_LEVEL=info) - [ ] Set up backups for
DB_PATH
Common Pitfalls
- Using anon key for Supabase: Use service-role key, not anon key
- No persistent volume: Data lost on container restart without
-vmount - Port conflicts: Check nothing else runs on 7777
- Missing SECRETS_MASTER_KEY: Required for encrypted secret storage in prod
- AUTH_PROVIDER=none in production: Security risk, always use static or supabase
- HF cache not mounted: Models re-download on every container start
04 同仓库更多 Skills
sandbox-zip
Read and write zip archives in a Code node or CodeAct action, with fflate running on the host under a 50 MB inflation cap
sandbox-yaml
Read and write YAML inside a Code node or CodeAct action, with js-yaml running in the guest
sandbox-xml
Parse XML feeds and sitemaps in a Code node or CodeAct action, with fast-xml-parser running on the host
sandbox-xlsx
Read and write Excel workbooks in a Code node or CodeAct action, with exceljs running on the host
sandbox-twilio
Send SMS and WhatsApp messages and look up numbers from a Code node or CodeAct action, with NodeTool's Twilio request builder running on the host
sandbox-tfjs
Classify and embed images, detect objects, and answer from a passage in a Code node or CodeAct action, with TensorFlow.js running on the host