Developer Resources

Build Faster with CloudNexus SDKs

Interact with our global infrastructure programmatically. First-party libraries for Python, Go, and Node.js, plus community-supported packages.

🔍
Showing 7 SDKs
`
🐍
Official v2.4.1

Python SDK

Full-featured library with async support, type hints, and automatic retry logic. Ideal for Django, Flask, and FastAPI apps.

pip install cloudnexus
Official v3.1.0

Node.js SDK

First-class TypeScript support, streaming responses, and tree-shaking compatible. Works in Node 18+ and modern browsers.

npm install @cloudnexus/sdk
🐹
Official v1.8.2

Go SDK

High-performance client optimized for microservices. Includes context propagation, structured logging, and generated types.

go get github.com/cloudnexus/sdk-go
💻
Official v1.2.0

CloudNexus CLI

Manage servers, databases, and deployments from your terminal. Supports scripting, JSON output, and tab completion.

curl -sS https://cli.cloudnexus.sh | sh
🏗️
Community v0.9.4

Terraform Provider

Provision CloudNexus resources as code. Manage VPCs, instances, and networking with declarative configuration.

terraform init
💎
Community v1.5.0

Ruby Gem

Unofficial SDK maintained by the community. Great integration with Rails and Sinatra applications.

gem install cloudnexus-rb
📡
HTTP API

REST API

Raw HTTP access to all CloudNexus features. Fully documented with OpenAPI 3.0 spec available.

curl -H "Authorization: Bearer $KEY" ...
Get Started

Quick Integration

Initialize the client and spin up a server in seconds.

example_01_create_server
import cloudnexus as cn

# Initialize the client
client = cn.Client(
    api_key=os.environ["CN_API_KEY"],
    region="us-east-1"
)

# Create a new VPS instance
server = client.servers.create(
    name="production-api",
    plan="cn-pro-2x",
    image="ubuntu-22.04",
    tags=["production", "api"]
)

print(f"Server {server.id} created at {server.ip}")
const CloudNexus = require('@cloudnexus/sdk');

const client = new CloudNexus({
  apiKey: process.env.CN_API_KEY,
  region: 'us-east-1'
});

const server = await client.servers.create({
  name: 'production-api',
  plan: 'cn-pro-2x',
  image: 'ubuntu-22.04',
  tags: ['production', 'api']
});

console.log(`Server ${server.id} created at ${server.ip}`);
package main

import (
  "context"
  "os"
  "github.com/cloudnexus/sdk-go/v1"
)

func main() {
  client := cn.NewClient(os.Getenv("CN_API_KEY"))
  
  server, err := client.Servers.Create(
    context.Background(),
    &cn.CreateServerRequest{
      Name:  "production-api",
      Plan:  "cn-pro-2x",
      Image: "ubuntu-22.04",
    },
  )
  
  fmt.Printf("Server %s created at %s\n", server.ID, server.IP)
}
🔐

Secure by Default

Automatic API key encryption, scoped permissions, and audit logs built-in.

Auto-Retry Logic

Exponential backoff and circuit breakers handle transient network errors.

🔍

Full Observability

Structured logging and OpenTelemetry integration out of the box.

📚

Generated Types

SDKs are code-generated from the OpenAPI spec for perfect parity.

Copied to clipboard