Skip to main content
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.1

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.1
File Size Uploaded Provenance Actions
unaiverse-0.2.1.tar.gz 935.1 kB With provenance Details for unaiverse-0.2.1.tar.gz

Built distributions (wheels)

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

Total release size: 52.6 MB

Release files / unaiverse-0.2.1.tar.gz

Download URL unaiverse-0.2.1.tar.gz
Size 935.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d52d64e9afe81dbf243518df8b12fb0266f2f46b3f8cdd6eb4efe7fce51ad8ac
BLAKE2b-256 checksum
How to use checksums
5d9e464dc9210603041b19f0ecb2dbd86ba94cc043c0d5a427fdd8435c598422
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 27, 2026.

Transparency log

Release files / unaiverse-0.2.1-py3-none-win_amd64.whl

Download URL unaiverse-0.2.1-py3-none-win_amd64.whl
Size 10.5 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
501e75b46f28644dec369de47aec69e63dab43d2d327ae666233e622ccb9b756
BLAKE2b-256 checksum
How to use checksums
c228d0836caeb828894c2e0b21dcce3e03055baf8dfa293e6678b05ffd4d2864
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 27, 2026.

Transparency log

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

Download URL unaiverse-0.2.1-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
866ea524a2a8fa802f9b7b9dcfcedd52c153967a929637da97220b7be1ebf847
BLAKE2b-256 checksum
How to use checksums
e038f366a566ba14e814ffab873ed0a58c6862af1f05295d6288ca12e2658913
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 27, 2026.

Transparency log

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

Download URL unaiverse-0.2.1-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
f10fe26c388cd325010e9213a6b374a0b790350e1428f31072deb58e994712d2
BLAKE2b-256 checksum
How to use checksums
ac1ede6e156c393986fc38b18758ebbd0c8c769b765ebc761df0d7362170ab7e
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 27, 2026.

Transparency log

Release files / unaiverse-0.2.1-py3-none-macosx_11_0_x86_64.whl

Download URL unaiverse-0.2.1-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
4e1ec77fa8e938f6fb80b095ac69dff42220c248755161e300bf7444d226e631
BLAKE2b-256 checksum
How to use checksums
690ed16a5bb5c8d13aaaf02e70fe20890b6732605f623d09577723700d3270b2
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 27, 2026.

Transparency log

Release files / unaiverse-0.2.1-py3-none-macosx_11_0_arm64.whl

Download URL unaiverse-0.2.1-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
74eaeba38b3c8929800cf38cb1c9ddf053fbdbd7dd58aef58c7c11033aba1162
BLAKE2b-256 checksum
How to use checksums
c7beb618f018454f3eea0da365a68faeb3ad38f2711f188604f2b2f5aea59902
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 27, 2026.

Transparency log

Security for unaiverse 0.2.1

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.1.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 27, 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