# Official SDKs

The official NodeRings SDKs cover the public API: virtual machines, DNS, firewalls, snapshots and backups, the marketplace, billing, access control, and the provider side for hosts who sell on NodeRings. Each client exposes the same 485 operations in 69 services. They are generated from the [API description](https://api.noderings.com/v1/openapi.json) and released as v0.1.0.

Use a [service account](https://noderings.com/organization/access-control) token. Set `NODERINGS_TOKEN`, or pass the token to the client. Keep the token out of source code and out of the browser. To act in another organization the token can access, set `NODERINGS_ORGANIZATION_ID` (the `X-Organization-ID` header). The default API endpoint is `https://api.noderings.com`.

The [Client API](/docs/client-api) and [Provider API](/docs/provider-api) references document every REST operation. To operate the account from an assistant instead of code, see [MCP](./mcp). For agents built with the Vercel AI SDK or LangChain, see [Vercel AI SDK](./vercel-ai-sdk) and [LangChain](./langchain).

To show NodeRings servers on Backstage entity pages and create them from Software Templates, see [Backstage](./backstage).

***

## Python

Install the [`noderings`](https://pypi.org/project/noderings/) package from PyPI (Python 3.10 or later):

```sh
pip install noderings
```

```python
from noderings import NodeRings

client = NodeRings()  # reads NODERINGS_TOKEN
for vm in client.virtual_machine.list_virtual_machines_all():
    print(vm.hostname, vm.operation_status, vm.ipv4)
```

There is also an asyncio client, `AsyncNodeRings`. Source and examples: [noderings-python](https://github.com/noderings/noderings-python) on GitHub. To give a LangChain or LangGraph agent NodeRings tools, see [LangChain](./langchain).

***

## JavaScript and TypeScript

Install the [`noderings`](https://www.npmjs.com/package/noderings/) package from npm. It has no runtime dependencies and runs on Node.js 20+, Vercel (serverless and Edge), Cloudflare Workers, Deno and Bun:

```sh
npm install noderings
```

```ts
import { NodeRings } from "noderings";

const client = new NodeRings(); // reads NODERINGS_TOKEN
for await (const vm of client.virtualMachine.listVirtualMachinesAll()) {
  console.log(vm.hostname, vm.operationStatus, vm.ipv4);
}
```

Source and examples: [noderings-js](https://github.com/noderings/noderings-js) on GitHub. To give an AI agent NodeRings tools, see [Vercel AI SDK](./vercel-ai-sdk).

***

## Go

```sh
go get github.com/noderings/noderings-go
```

```go
client, err := noderings.NewClient(os.Getenv("NODERINGS_TOKEN"))
if err != nil {
    log.Fatal(err)
}
for vm, err := range client.VirtualMachine.ListVirtualMachinesAll(ctx, nil) {
    if err != nil {
        log.Fatal(err)
    }
    log.Println(vm.Hostname, vm.OperationStatus, vm.Ipv4)
}
```

Package docs: [pkg.go.dev/github.com/noderings/noderings-go](https://pkg.go.dev/github.com/noderings/noderings-go). Source: [noderings-go](https://github.com/noderings/noderings-go) on GitHub.
