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.0

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.0
File Size Uploaded Provenance Actions
unaiverse-0.2.0.tar.gz 908.6 kB With provenance Details for unaiverse-0.2.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for unaiverse 0.2.0
File Actions
unaiverse-0.2.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for unaiverse-0.2.0-py3-none-win_amd64.whl
unaiverse-0.2.0-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.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
unaiverse-0.2.0-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.0-py3-none-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
unaiverse-0.2.0-py3-none-macosx_11_0_x86_64.whl Python 3 none macOS 11.0+ x86-64 Details for unaiverse-0.2.0-py3-none-macosx_11_0_x86_64.whl
unaiverse-0.2.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for unaiverse-0.2.0-py3-none-macosx_11_0_arm64.whl

Total release size: 52.5 MB

Release files / unaiverse-0.2.0.tar.gz

Download URL unaiverse-0.2.0.tar.gz
Size 908.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7ad446419937b6c42ecde3430dd590362f806f8b7258c9f390af241535b7eb31
BLAKE2b-256 checksum
How to use checksums
ec7b52db0a1f676e8672f873b6ec93be373afbb33c32dd14219a955408bd4275
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.0-py3-none-win_amd64.whl

Download URL unaiverse-0.2.0-py3-none-win_amd64.whl
Size 10.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
19b4d341cd0a16fc8c9b7fefd1421c73118925e2d33ba72e25a7035b1c957156
BLAKE2b-256 checksum
How to use checksums
abe68e56c70879d41642758930cee40be163453278f0506973ce68a255ad9c1e
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.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Download URL unaiverse-0.2.0-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
e48065c7cc13416e4252dbb0f480c709fc43fc0d95ff11df42130a491d4fcf8d
BLAKE2b-256 checksum
How to use checksums
36a0b2401d00579f491b4089f482afba60753fb2ea352b7aebd64315a731538c
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.0-py3-none-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl

Download URL unaiverse-0.2.0-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
7d12a1d810ff5c26303089c24ea1314e86ec2ebeef6480a14f7a27d07f4c78c4
BLAKE2b-256 checksum
How to use checksums
73e26c63eea157113a90a379c93a938de1c4d587ef9f071951e6a0793ac11e9d
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.0-py3-none-macosx_11_0_x86_64.whl

Download URL unaiverse-0.2.0-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
008eca0ce22dacafa2219bc4d38974600e357f8e206337a044d8295c624f0297
BLAKE2b-256 checksum
How to use checksums
6943690bcfe0777658fb46d80a1684e8348e8c165834cf84fa4eea752005dd1d
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.0-py3-none-macosx_11_0_arm64.whl

Download URL unaiverse-0.2.0-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
5396f47102482eedb13e6b8e6d5866cea5c9787752124882793d4b75794ce4d9
BLAKE2b-256 checksum
How to use checksums
9f28f660f0aaa16d683dbd01d3f33a68df35bd8eba70f0b4ca50bbe13ae67b2d
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.0

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.0.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