GreenA VS Code extension for deploying, monitoring, and managing machine learning workloads — without leaving your editor. Features
PrerequisitesInstall the CLIs for the platforms you intend to use:
Run Green: Check Dependencies ( InstallationInstall from the VS Code marketplace (search Green) or install the
Quick StartDeploy
Machine Learning
Configuration (
|
| Key | Type | Description |
|---|---|---|
schemaVersion |
1 |
Required. Must be 1. |
defaultTarget |
string | Default deploy target (docker, fly, railway, aws). |
defaultRegion |
string | Default cloud region. |
deploymentName |
string | Default Kubernetes deployment name. |
namespace |
string | Default Kubernetes namespace. |
autoRollback.enabled |
boolean | Auto-rollback if health check fails post-deploy. Default true. |
autoRollback.windowSecs |
number | Health monitoring window after deploy. Default 300. |
environments.* |
object | Per-environment overrides. Keys: target, region, service, cluster, namespace, deploymentName. |
Team Sync
Green can share deployment history and credentials across your team via a self-hosted backend.
Deploy the server
cd server/
cp .env.example .env # fill in POSTGRES_URL and ENCRYPTION_KEY (64-char hex)
npm ci && npm run db:migrate
npm start
The server exposes:
POST /teams— create a team, returns{ teamId, token, syncUrl }GET/POST /teams/:id/deployments— shared deployment historyGET/PUT /teams/:id/credentials— encrypted shared credentials
Connect team members
Each developer runs Green: Connect Team Sync and pastes the syncUrl and token. The token is stored in VS Code SecretStorage and never written to disk.
Add to .green.json:
{
"schemaVersion": 1,
"remote": {
"syncUrl": "https://your-server.example.com/teams/YOUR_TEAM_ID",
"credentialsSource": "https://your-server.example.com/teams/YOUR_TEAM_ID/credentials"
}
}
Contributing
git clone <repo>
cd green
npm ci
npm run check-types # type check
npm run lint # eslint
npm run test:unit # unit tests (95 tests, no VS Code required)
npm run compile # build extension
Press F5 in VS Code to launch the Extension Development Host.
Security
- All secrets entered through provider dialogs are stored in VS Code
SecretStorage(OS keychain), never in plaintext files. - Output panels redact stored secret values automatically.
- Pre-deploy validation runs security scans, env audits, and vulnerability scanning before every deploy.
- Shell commands are always quoted with
q()to prevent injection.
