Skip to content
Console

SDKs

Use an SDK when your code should talk directly to a Thalovant hub.

The Thalovant API is the control plane at https://api.thalovant.com. It discovers hubs and creates client identities. The SDK is the data plane. It sends runtime traffic to the hub over WSS, HTTPS, or MQTT over TLS.

  1. Pick the SDK for your runtime. Python, Node.js, Go, and Rust expose the same core behavior.
  2. Use the hosted API. Start with https://api.thalovant.com.
  3. Create one client identity per app, device, or agent. Store the returned identity in a secret store or protected SDK config file.
  4. Connect with WSS first. It is the default realtime path for public clients.
  5. Add HTTPS or MQTT only when needed. Create a fresh identity after enabling a new protocol on the hub.
LanguageInstallBest fit
Pythonpip install thalovantAgents, tools, notebooks, tests, and service workers.
Node.jsnpm install @thalovant/sdkTypeScript services, bots, scripts, and web backends.
Gogo get github.com/thalovant/thalovant-go-sdkGateways, CLIs, small services, and long-running workers.
Rustcargo add thalovantStrict clients, embedded work, and reliability-focused services.
  1. Discover a hub. Public hub discovery can be used before sign-in.
  2. Sign in for private API actions. Creating client identities requires API access on the workspace.
  3. Create a client identity. The SDK stores the returned identity locally or in your secret store.
  4. Connect to the hub. Runtime traffic goes directly to the hub endpoint.
  5. Send a request. Start with one ask call, then add sessions, context, actions, or rich output.
ProtocolUse it whenNotes
WSSYou want the default public realtime path.Best first choice for agents and clients that may listen for events.
HTTPSYou want request-response calls, health checks, CLIs, or jobs.Must be enabled on the hub before public clients can use it.
MQTT over TLSYou want broker-mediated device or edge traffic.Requires per-client broker credentials and topic access.

Every client identity is secret. Store it like a password.

Do not put identity files, access keys, passwords, broker passwords, setup links, or crypto keys in browser bundles, public repos, screenshots, logs, or support tickets.

CheckGood default
API base URLhttps://api.thalovant.com
First runtime protocolWSS
Browser usageNever ship hub identities to a browser bundle. Use a backend.
Identity storageUse a secret manager, CI secret, mounted secret file, or ~/.config/thalovant/config.yaml with mode 600.
MQTTUse mqtts://, per-client credentials, and SDK-managed topics.
RotationRotate by creating a new client identity and replacing the old secret.
LogsRedact identity JSON, broker passwords, API tokens, and crypto keys.

If you already know your language, open the SDK page.

Use SDK Functions when you need method names across languages. Use MQTT when the client connects through the broker. If you are designing a shared SDK feature, use the SDK Contract.