Skip to content
prodxcloudPublic

About

Official VxCloud SDKs and Go client for multi-cloud infrastructure, vxnode, AI agents, workflows, and SalesShift.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“¦ vxcloud SDK

Go Β· Python Β· TypeScript Β· C++ Β· Java β€” one wire contract, five SDKs

The multi-cloud SDK & framework for developers β€” program your cloud in Go, Python, TypeScript, C++, or Java.
Provision infrastructure as code β€” VMs, databases, Kubernetes, and serverless β€” across AWS, Azure, Google Cloud, Alibaba, Oracle, DigitalOcean & Linode.
Deploy apps, run CI/CD pipelines, and operate policy-governed AI agents and workflows straight from your code, terminal, or CI.
One wire contract, five first-class SDKs β€” no vendor lock-in, full multi-cloud portability.

npm PyPI Go Reference License

🌐 Website Β· πŸ“š Docs Β· πŸ’» CLI Β· 🐳 vxnode image Β· βš™οΈ node tooling

Language Install Registry
TypeScript / Node npm install @vxcloud/sdk npm
Python pip install vxsdk Β Β·Β  pip install vxcloud PyPI Β· vxcloud
Go go get github.com/prodxcloud/vxcloud pkg.go.dev
C++ (β‰₯ 17) cmake + libcurl β€” see cpp/ source (preview)
Java (JDK β‰₯ 11) Maven io.vxcloud:vxsdk β€” see java/ source (preview)

vxcloud (PyPI) is a brand alias that re-exports vxsdk β€” import vxcloud ≑ import vxsdk. Source: github.com/prodxcloud/vxcloud Β· Docs: vxcloud.io/docs/sdks

Current release: 2026.11.8. Go resolves it as v0.20261108.0 β€” see Install for why the Go tag looks different. API may still change before v1.0.


Install

TypeScript / Node (β‰₯ 18)

npm install @vxcloud/sdk
npm install @vxcloud/sdk@2026.11.8   # pin the current release
# pnpm add @vxcloud/sdk   |   yarn add @vxcloud/sdk

Python (β‰₯ 3.9)

pip install vxsdk==2026.11.8 # sync client, stdlib-only
pip install "vxsdk[async]"   # + async client (httpx)
# pip install vxcloud==2026.11.8  # identical, brand-name alias

Go (β‰₯ 1.22)

go get github.com/prodxcloud/vxcloud@latest
# or pin the exact release:
  go get github.com/prodxcloud/vxcloud@v0.20261108.0

Why the Go tag reads v0.20261108.0 and not 2026.11.8 β€” they are the same release. Go requires module versions to be semver, and it parses a v-prefixed CalVer tag as a major version: v2026.11.1 means major 2026, which it rejects unless the module path ends in /v2026. So the date is carried in the minor field instead, as YYYYMMDD:

Release Go tag
2026.11.8 v0.20261108.0
2026.11.1 v0.20261101.0
2026.12.25 v0.20261225.0
same-day hotfix v0.20260828.1

This sorts correctly for every date in any year β€” the encoding minor = YYYY*10000 + MM*100 + DD is strictly increasing and collision-free, and the patch field leaves room for same-day fixes. @latest always resolves to the newest release.

@2026.11.1 and @v2026.11.1 will not resolve, and v0.2.0 is retracted.


Quick start (30 seconds)

All five read ~/.vxcloud/credentials.json, so if you've logged in with vxcli (vxcli auth login -u <user> -k xc_live_…) the SDK is authenticated automatically. Otherwise pass an API key explicitly.

TypeScript

import { VxCloud } from '@vxcloud/sdk';

// from vxcli creds, or: new VxCloud({ apiKey: 'xc_live_…', username: 'alice' })
const c = await VxCloud.loadFromVxcli();

console.log(await c.cicd.pipelines.list());
console.log(await c.vxcomputer.run({ objective: 'Check disk usage', channel: 'cloudshell' }));

Python

import vxsdk   # or: import vxcloud

c = vxsdk.Client.load_from_vxcli()          # or vxsdk.Client(api_key="xc_live_…", username="alice")

print(c.cicd.pipelines.list())
print(c.vxcomputer.run("Check disk usage", channel="cloudshell"))

Go

package main

import (
    "context"
    "fmt"
    vxsdk "github.com/prodxcloud/vxcloud"
    "github.com/prodxcloud/vxcloud/vxcomputer"
)

func main() {
    ctx := context.Background()
    c, err := vxsdk.LoadFromVxcli(ctx) // or vxsdk.New(ctx, vxsdk.WithAPIKey("xc_live_…"))
    if err != nil { panic(err) }

    pipelines, _ := c.CICD().Pipelines().List(ctx)
    for _, p := range pipelines {
        fmt.Println(p.ID, p.Name, p.Repository)
    }

    res, _ := c.VxComputer().Run(ctx, vxcomputer.RunInput{
        Objective: "Check disk usage and report",
        Channel:   "cloudshell",
    })
    fmt.Println(res["status"])
}

C++ (β‰₯ 17, libcurl) β€” see cpp/

#include "vxsdk/vxsdk.hpp"
#include <iostream>

int main() {
    vx::ClientOptions o;
    o.api_key   = std::getenv("VX_API_KEY");    // xc_live_…
    o.username  = "alice";
    o.tenant_id = std::getenv("VX_TENANT_ID");  // needed for agentcontrol.*
    vx::Client c(std::move(o));

    std::cout << c.ensure_node_url() << "\n";
    std::cout << c.health() << "\n";                       // no auth
    std::cout << c.agentcontrol_llm_providers() << "\n";   // authenticated
}
// build: cmake -S cpp -B build && cmake --build build   (or the g++ line in cpp/README.md)

Java (JDK β‰₯ 11, zero runtime deps) β€” see java/

import io.vxcloud.sdk.VxClient;

VxClient c = VxClient.builder()
        .apiKey(System.getenv("VX_API_KEY"))       // xc_live_…
        .username("alice")
        .tenantId(System.getenv("VX_TENANT_ID"))   // needed for agentcontrol.*
        .build();

System.out.println(c.ensureNodeUrl());
System.out.println(c.health());                    // no auth
System.out.println(c.agentcontrolLlmProviders());  // authenticated
// build: mvn -f java package   (or the javac line in java/README.md)

Authentication

Two interchangeable credentials, identical across all five SDKs:

  • API key β€” xc_live_*, xc_dev_*, or xc_test_*. The SDK exchanges it for a JWT on first call and auto-refreshes on 401. Generate one at vxcloud.io/developer/keys.
  • vxcli credentials β€” load_from_vxcli() / LoadFromVxcli() reads ~/.vxcloud/credentials.json, so anyone already signed in via vxcli is ready.

The SDK only ever sends Authorization: Bearer <jwt> and X-API-Key: xc_*, plus X-Username next to the key when a username is configured (a Vault-issued developer key β€” the vxcli / node key β€” is accepted only with its username). The correct tenant node (https://<your-node>) is resolved automatically.

const c = new VxCloud({ apiKey: 'xc_live_…', username: 'alice' }); // explicit
c = vxsdk.Client(api_key="xc_live_…", username="alice")
c, _ := vxsdk.New(ctx, vxsdk.WithAPIKey("xc_live_…"))

Platform architecture and runtime ports

VxCloud is a multi-tenant control plane plus tenant-owned execution nodes. The browser, vxcli and every SDK exchange a developer key for a scoped JWT; workspace, organization and node ownership are checked before a request is dispatched. The node runtime is the sealed multi-arch vxcloud/vxnode image; it provides VxComputer, Docker/Terraform deployment, governed tools, vxcli and the SalesShift Go email worker.

Browser / vxcli / SDKs
        β”‚ auth + workspace scope
        β–Ό
FastAPI :8741 ── Django/admin :8742 (local)
        β”œβ”€β”€ Go core :8743 ── billing, nodes, provisioning, workflows
        β”œβ”€β”€ node*.vxcloud.click β†’ vxnode/VxComputer :8744
        β”œβ”€β”€ VxThinkingLLM :8745 (optional legacy sidecar :8746)
        β”œβ”€β”€ Vault :8200 ↔ Consul :8500
        β”œβ”€β”€ Redis :6379 (Celery broker/results/cache/pub-sub)
        β”œβ”€β”€ Kafka :9092 (+ Zookeeper :2181 where used)
        β”œβ”€β”€ Temporal :7233 (long-running workflow history/retries)
        β”œβ”€β”€ PostgreSQL :5432
        └── vxalerts/notifications :8014

Public ingress is normally Nginx/Cloudflare on 80/443: vxcloud.io (web, chat, studio, messaging) serves the production frontend on 3000, api.vxcloud.io routes to 8741, cloud.vxcloud.io to 8743, node domains to 8744, and llm.vxcloud.io to 8745. Local development uses vxcloud_web 3010, SalesShift 3020/3021, and vxadmin 3009 when its Vite port is overridden (5173 is Vite's default). OpenVSCode is fronted at 8443 with a node-local backend on 8089; OpenClaw is 18789; Ollama is 11434; Celery Flower, Kafka UI and mailcow are operator-only surfaces when their optional compose profiles publish 5555, 8289, and 8443.

SalesShift uses the same tenant/audit model for lead enrichment, CRM contacts, opportunities, proposals, compose/reply, sequences, campaigns, tasks and messaging. Mail and other external actions are approval-gated; a draft is not a send. @nodes <hostname> targets another node owned by the current workspace, while the selected node remains the default. The result should include provider/model, node, job/audit ID and delivery or workflow status.

After purchasing a node, the required readiness sequence is: activate billing, register the node, Sync With Workspace, verify /api/v2/health and /api/v2/version, then test the developer-key exchange. A running container without the correct workspace binding is not a ready node.


What you can do

Every SDK exposes the same resource modules off the client:

Module Go Β· Py Β· TS Covers
auth βœ“ βœ“ βœ“ API-key β†’ JWT exchange, whoami, refresh-on-401
sessions βœ“ βœ“ βœ“ Deploy/install sessions β€” list, show, apply, pull, delete
cicd βœ“ βœ“ βœ“ Pipelines, builds, Git provider connections
install βœ“ βœ“ βœ“ Run remote install scripts / docker-compose stacks over SSH
deploy βœ“ βœ“ βœ“ Container + language-stack deploys to a VM
marketplace βœ“ βœ“ βœ“ Agents, models, Terraform solutions
cloud βœ“ βœ“ βœ“ VM, S3, IAM, network, database, k8s, serverless provisioning
nodes βœ“ βœ“ βœ“ Tenant-node management (control plane)
services βœ“ βœ“ βœ“ Container/host lifecycle β€” start/stop/restart/remove
networks βœ“ βœ“ βœ“ Network-diagnostic scripts (DNS, bandwidth, ports, audits)
agents βœ“ βœ“ βœ“ AI agents β€” coding / devops / git / parallel / tools
chat βœ“ βœ“ βœ“ Multi-provider AI chat
observability βœ“ βœ“ βœ“ Backups, migrations, resource sync
billing βœ“ βœ“ βœ“ Multicloud cost / optimization reports
workspace βœ“ βœ“ βœ“ Workspace + credential storage (incl. SSL certs)
metaldb βœ“ βœ“ β€” Self-managed PostgreSQL over SSH
agentcontrol βœ“ βœ“ β€” Fine-tuning, training, knowledge bases, datasets
vxcomputer βœ“ βœ“ βœ“ Node-local policy-governed agent runtime (Planβ†’Actβ†’Reflect)
workflow βœ“ βœ“ βœ“ Visual DAG workflow orchestration
vxchrono βœ“ βœ“ βœ“ Autonomous goal executor & scheduler

metaldb and agentcontrol are Go + Python only for now. Python also ships an async client (import vxsdk_async β†’ AsyncClient) covering the same modules.

A few real calls (Go)

// trigger a build
build, _ := c.CICD().Pipelines().Trigger(ctx, pipelineID, "main")

// deploy a Docker container over SSH
c.Deploy().Container(ctx, deploy.ContainerOpts{
    SSH:   deploy.SSH{Host: ip, User: "ubuntu", KeyPairName: keyName},
    Image: "grafana/grafana:latest", Name: "grafana", Ports: []string{"3000:3000"},
})

// deploy a language stack from a git repo
c.Deploy().Stack(ctx, deploy.StackGolang, deploy.StackOpts{
    SSH: deploy.SSH{Host: ip, User: "ubuntu", KeyPairName: keyName},
    RepoURL: "https://github.com/youruser/yourapp.git", Branch: "main",
    AppName: "yourapp", HTTPPort: "80", GoVersion: "1.22",
})

Python and TypeScript expose the same operations with idiomatic naming (c.deploy.container(...), await c.deploy.stack(...)).


Design contracts (stable across versions)

Contract Promise
Auth headers Only Authorization: Bearer, X-API-Key, and X-Username (sent with the key when a username is configured). No other custom headers, no query-param tokens.
Errors Typed error hierarchy per language; categories may be added, never removed.
Retries Network / 5xx / rate-limit retried with exponential backoff (default 3). Others surface immediately.
Wire format snake_case JSON matching the API verbatim; idiomatic identifiers per language.
Versioning CalVer YYYY.M.D (currently 2026.11.8); the Go module tag encodes the same date as v0.20261108.0. v1.0 will guarantee stability across minor releases.

Releasing a new version (maintainers)

This repo (github.com/prodxcloud/vxcloud) is the SDK's home. Each language publishes independently:

# Go β€” tagging IS the release (no registry)
git tag v0.2.0 && git push origin v0.2.0          # then: go get github.com/prodxcloud/vxcloud@v0.2.0

# TypeScript β†’ npm
cd typescript && npm version 0.2.0 && npm publish --access public

# Python β†’ PyPI (vxsdk first, then the vxcloud alias)
cd python         && python -m build && twine upload dist/*
cd ../python-vxcloud && python -m build && twine upload dist/*

Keep all five versions in lock-step. npm publishing requires a 2FA-bypass (automation/granular) token; PyPI uses an API token.

Author

VxCloud SDK is created and maintained by Joel O. Wembo.

License

Apache-2.0.

About

Official VxCloud SDKs and Go client for multi-cloud infrastructure, vxnode, AI agents, workflows, and SalesShift.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages