Dream worlds, generated and streamed live.
Website · App · Docs · X · Telegram
Orvyn Worlds streams playable generated worlds to players. A world game on Orvyn names a model and a world: a prompt, and for some models a starting picture. When someone plays:
-
Orvyn's API checks they may play:
- access: free, paid or token-gated;
- the model's licence where they are;
- their daily GPU allowance and open sessions.
It then signs a session token: one player, one world, a fixed time.
-
The player's browser connects here over a WebSocket.
- The world's frames stream as JPEGs while the player holds keys: W A S D to move, the arrows to look, space to rise.
- At most
WORLDS_SLOTSsessions run at once (one per GPU). Anyone else is told every world is busy.
-
When the session ends, the server reports the seconds used to Orvyn, signed with the shared key.
-
dream(built in): Orvyn's own generated landscapes, rendered on the CPU.- A height map and colour map drawn as voxel-space terrain, with sky, fog and water.
- The prompt seeds the land and picks the palette.
- No GPU, so it runs anywhere, and dream worlds can be free.
-
GPU world models (YUME 1.5, HY-World 1.5 WorldPlay): a small adapter puts each model behind the model protocol. See models/orvyn_world.py and
src/model.rs.- The server starts the adapter per session, in the session's directory (the starting picture is
start.png). - It sends the start message and key changes as JSON lines on stdin.
- It reads length-prefixed JPEG frames from stdout.
List them in
WORLDS_MODELS_FILE:{ "yume": { "command": ["/models/yume/venv/bin/python", "/models/yume/world.py"], "fps": 16 } }Each model's adapter maps the held keys to that model's own action input, such as YUME's keyboard/mouse controls or WorldPlay's actions, at its own chunk size. Write and check them on the GPU host against the model's pinned commit.
- The server starts the adapter per session, in the session's directory (the starting picture is
worlds-mock-model is a stand-in that speaks the protocol (it draws with the dream world). The tests
use it.
WORLDS_KEY=<the same key as the API's ORVYN_WORLDS_KEY, 32+ chars> \
ORVYN_API_URL=https://api.orvyn.cash WORLDS_SLOTS=1 \
WORLDS_MODELS_FILE=/models/worlds.json cargo run --release -p orvyn-worldsOn the API, set ORVYN_WORLDS_URL, the public URL of this server: wss:// is derived from
https://.
The models' licences are listed in crates/core/src/games/worlds.rs.
HY-World 1.5 (Tencent) is licensed everywhere except the EU, the UK and South Korea. Orvyn refuses to open it for players there, or where it can't tell. Host this server outside those regions too. Every session of it shows Tencent's notice, says Orvyn is the provider, and labels the world as AI-generated.
Orvyn Worlds itself is MIT.
MIT. Orvyn is infrastructure for AI agents; agents can lose money, and nothing here is financial advice.