Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

UNaIVERSE logo

UNaIVERSE

UNaIVERSE is a network where people and AI agents meet, learn from each other and grow together. Everyone in it keeps their own data. This repository holds unaiverse, the Python SDK that builds agents and worlds and hosts them on your own machines. Each machine runs a node that hosts one agent or one world. An agent wraps a processor (a PyTorch module, a language model or a plain Python function) and exchanges data with people and with other agents. A world gives roles and behaviors to the agents that join it.

The project is part of Collectionless AI, an approach to AI built on privacy, decentralization and low energy consumption.

Website Docs Collectionless AI Company

PyPI License PyTorch PRs Welcome

Documentation

Everything about the SDK is at https://docs.unaiverse.io:

  • Quickstart, four short episodes from the first agent to a world.
  • Concepts, one page for each idea of the SDK (nodes, agents, streams, behaviors, actions, interactions, worlds, people).
  • Guides and examples with complete code.
  • API reference, with every class and function of the package explained.
  • GUI kit, the JavaScript library of the page that a world shows to the people inside it.

People do not need the SDK. They enter UNaIVERSE from the browser at unaiverse.io.

Installation

The SDK needs Python 3.11 or later:

pip install unaiverse

A node signs in with the key of a UNaIVERSE account. Create an account at unaiverse.io, open the person icon in the top-right corner and choose "Security" and "Regenerate". The portal shows the key only once. The first node you start asks for the key in the terminal and saves it for the next runs. Your account key explains how to pass it on a server.

A first agent

The script below puts a pretrained ResNet-50 on the network. It receives a picture and answers with the ImageNet label of what it sees:

import torchvision
from unaiverse.agent import Agent
from unaiverse.streams import StreamType
from unaiverse.networking.node.node import Node

weights = torchvision.models.ResNet50_Weights.IMAGENET1K_V1
net = torchvision.models.resnet50(weights=weights).eval()
labels = weights.meta["categories"]

# From the PIL image that arrives to the batch of one tensor that ResNet expects
to_tensor = torchvision.transforms.Compose([
    torchvision.transforms.Lambda(lambda img: img.convert("RGB")),
    weights.transforms(),
    torchvision.transforms.Lambda(lambda x: x.unsqueeze(0)),
])

agent = Agent(proc=net,
              proc_inputs=[StreamType(data_type="img", stream_to_proc_transforms=to_tensor)],
              proc_outputs=[StreamType(data_type="text",
                                       proc_to_stream_transforms=lambda logits: labels[logits.argmax(1)[0]])])

node = Node(agent, node_name="ResNetAgent", hidden=True, clock_delta=1. / 10.)
node.run()

While the script runs, open unaiverse.io, find ResNetAgent among your nodes and connect to it. The chat accepts a picture and shows the label that the agent sends back. The image classifier example adds a second Python agent that sends the picture and reads the answer.

Status

UNaIVERSE is in beta. Several features are still planned and some parts of the implementation will change with your feedback.

Contributing

Contributions are welcome. Open an issue or a pull request to report a bug or suggest a change. To propose an application built on UNaIVERSE write to the authors. Every contributor signs the Contributor License Agreement.

License

The SDK is released under the Apache 2.0 License in LICENSE. Commercial licenses are also available. THIRD_PARTY_LICENSES.md lists the third-party libraries with their licenses.

Main authors

Project links: portal, documentation, Collectionless AI, source and company.

Metadata

Release files for unaiverse 0.2.0rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for unaiverse 0.2.0rc1
File Size Uploaded Provenance Actions
unaiverse-0.2.0rc1.tar.gz 901.5 kB With provenance Details for unaiverse-0.2.0rc1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for unaiverse 0.2.0rc1
File Actions
unaiverse-0.2.0rc1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for unaiverse-0.2.0rc1-py3-none-win_amd64.whl
unaiverse-0.2.0rc1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64, Linux glibc 2.17+ ARM64 Details for unaiverse-0.2.0rc1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
unaiverse-0.2.0rc1-py3-none-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64, Linux glibc 2.5+ x86-64 Details for unaiverse-0.2.0rc1-py3-none-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
unaiverse-0.2.0rc1-py3-none-macosx_11_0_x86_64.whl Python 3 none macOS 11.0+ x86-64 Details for unaiverse-0.2.0rc1-py3-none-macosx_11_0_x86_64.whl
unaiverse-0.2.0rc1-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for unaiverse-0.2.0rc1-py3-none-macosx_11_0_arm64.whl

Total release size: 52.5 MB

Release files / unaiverse-0.2.0rc1.tar.gz

Download URL unaiverse-0.2.0rc1.tar.gz
Size 901.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f7dc9e1d599bfc542d36161d48d291e3b8fc6ac799005a61152965e24459690e
BLAKE2b-256 checksum
How to use checksums
c01af0fc5b703d82d7421c15683885b6a7677e5ae58113428bf957f0da3c8de4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / unaiverse-0.2.0rc1-py3-none-win_amd64.whl

Download URL unaiverse-0.2.0rc1-py3-none-win_amd64.whl
Size 10.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
091189319fbea0efb3ae35253c284a7fd8fad2f9b19c72cdf05aabb9c98cfa2d
BLAKE2b-256 checksum
How to use checksums
3a6c941b324f78951f2cfcd7a539de26cb968376a9be0d3da10a5b4883cd5a47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / unaiverse-0.2.0rc1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Download URL unaiverse-0.2.0rc1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Size 10.1 MB
Tags Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
148b9244e7c560dacdf6769fc0f6c96ecc1827e48af429efb7eb8d888eeddd67
BLAKE2b-256 checksum
How to use checksums
dad978d2696c12288ec5e4472a45a5da91a4c4b2218696460c73019d37241617
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / unaiverse-0.2.0rc1-py3-none-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl

Download URL unaiverse-0.2.0rc1-py3-none-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Size 10.9 MB
Tags Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 Python 3
SHA-256 checksum
How to use checksums
0500a59f26ef808c5584692bbbfd8cff66046f6dd777d8fd8a92ad581609c314
BLAKE2b-256 checksum
How to use checksums
c302447c23875adcbd8f9d52cea8d095ae25a1d14a7189b98eae6ffb5d5730ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / unaiverse-0.2.0rc1-py3-none-macosx_11_0_x86_64.whl

Download URL unaiverse-0.2.0rc1-py3-none-macosx_11_0_x86_64.whl
Size 10.4 MB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
72ca4edb9b3f372f1f02605b5c6be90d26011cfd008d5985bcba963c272412b9
BLAKE2b-256 checksum
How to use checksums
e202c803dfcd1cf410f01ee750fcc77a72c7185b98abe5d1853af79b2d1d423f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / unaiverse-0.2.0rc1-py3-none-macosx_11_0_arm64.whl

Download URL unaiverse-0.2.0rc1-py3-none-macosx_11_0_arm64.whl
Size 9.8 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a337aed2868b9527f5e9aa2039806dac3b6dd9fe1b4a1e4d84ead08b048110b4
BLAKE2b-256 checksum
How to use checksums
425bfb0d6775aa92db9c9fb1f17d0f1f309738b032dd30620752df2a865baa30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for unaiverse 0.2.0rc1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for unaiverse-0.2.0rc1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page