Scan your whole stack
Are you using dreamlabs-client?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.1.12
dreamlabs-client was last scanned on 24 Nov 2026 at version 1.1.12. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.1.12 LATEST | 24 Nov 2026 | No rules fired |
| 1.1.7 | 17 Nov 2026 | No rules fired |
| 1.1.5 | 16 Nov 2026 | No rules fired |
| 1.1.4 | 16 Nov 2026 | Not shown |
| 1.1.3 | 7 Nov 2026 | Not shown |
Findings for v1.1.12. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.1.12; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
The Dream Labs client: fine-tune Dream-1 on your robot's data, and call the result for actions.
The public surface is one object, dream.DreamClient: it registers a robot body, checks and uploads a dataset, fine-tunes Dream-1 on it, lists the models your account may run, and runs a model for actions (see Running a model and Fine-tuning as a Service). It carries your key, so no call passes it; where the Dream Labs services are is set by Dream Labs in your credentials file, never by your code. The rest of the public API is the error types, the one warning type, __version__, and three submodules DreamClient is a front over: dream.datasets (embodiments and datasets on the data service), dream.fine_tuning (fine-tuning jobs), and dream.models (the checkpoints an account may run). The platform site's API documentation page is the reference, and its Fine-tuning page walks the whole path step by step, with a notebook to download.
pip install dreamlabs # the library: this client (dreamlabs-client) and everything fine-tuning needs
The client is dreamlabs-client on PyPI and the whole library, which brings it, is dreamlabs, for Python 3.10 to 3.12. pip install dreamlabs carries everything fine-tuning needs, with no extra to add; the client alone is pip install dreamlabs-client, which adds the dataset checks and upload with pip install "dreamlabs-client[datasets]" and the live view's encoder with [live]. A platform site also serves its own build of both, which its Setup API page installs; on a machine with no browser, fetch the two files with your api key and install both: curl -fOJ -H "Authorization: Bearer $DREAM_API_KEY" https://<the platform site>/downloads/latest-client, the same for /downloads/latest, then pip install ./dreamlabs_client-*.whl ./dreamlabs-*.whl. pip install dream installs an unrelated project.
The credentials file, ~/.dreamlabs/credentials, is four lines a shell could source; the platform's Fine-tuning page prints them filled in for its own site, and these are production's. Put your key in the last line and copy the three addresses as they are printed: they are set by Dream Labs, and nothing in your code sets them.
DREAM_GATEWAY_URL=https://api.dreamlabs.ai
DREAM_API_URL=https://platform.dreamlabs.ai
DREAM_DATA_URL=https://data.dreamlabs.ai
DREAM_API_KEY=dl_live_...
dream.DreamClient is the whole lifecycle in one object; the key comes from that file:
import dream
client = dream.DreamClient()
embodiment = client.add_embodiment("makersmod-yam", config) # describe the robot body once
dataset = client.upload_dataset("~/data/towels", "towels-v1", embodiment.name) # keep dataset.id
job = client.finetune(dataset.name, "towels") # once the dataset is processed
client.policy({"checkpoint": job["fine_tuned_model"]}) # once the job publishes the checkpoint
client.set_observation(frames, observation) # every camera tick: one base64 JPEG per camera, and the state
action = client.get_action() # the frames the client kept, with the newest state, checked before it is sent
Fine-tuning as a Service below walks every step; the platform's Fine-tuning page is the same as a tutorial, with a notebook to download.
Running a model is three calls on the same object: client.policy(config) chooses the checkpoint and returns nothing, client.set_observation(frames, observation) hands the client every camera tick, and client.get_action() sends the frames the client kept, with the newest state, and returns the next chunk of actions. The client keeps each camera's recent frames itself, in its frame window, so a tick carries one frame per camera, never a list of them. The full loop, for the YAM model dreamlabs/dream-1-beta:
import threading
import dream
config = {
"timeout_ms": 15000,
"strict": True, # validate observations and actions against "embodiment"; leave it on
"checkpoint": "dreamlabs/dream-1-beta", # required: the model to run, an id get_models() lists
"ik": {"arm": "yam", "head": "joint"}, # dream-1-beta reads hand poses: the client adds them
"embodiment": { # the YAM body's embodiment config: what every observation and reply is checked against
"state": {"right_arm": [0, 6], "right_gripper": [6, 7], "left_arm": [7, 13], "left_gripper": [13, 14]},
"action": {"right_arm": [0, 6], "right_gripper": [6, 7], "left_arm": [7, 13], "left_gripper": [13, 14]},
"video": {role: f"observation.images.{role}" for role in ("overhead", "wrist_l", "wrist_r")},
},
}
def tick(robot):
"""One camera tick: one frame per camera, and every other key the model reads."""
frames = { # each one base64 JPEG str with no data: prefix, resized to 320x176 and encoded at quality 85
"video.overhead": robot.overhead_camera.jpeg(),
"video.wrist_l": robot.left_wrist_camera.jpeg(),
"video.wrist_r": robot.right_wrist_camera.jpeg(),
}
observation = {
"state.right_arm": robot.right_arm.joints(), # float32 [6], radians
"state.right_gripper": robot.right_arm.gripper(), # float32 [1], 0 closed to 1 open
"state.left_arm": robot.left_arm.joints(),
"state.left_gripper": robot.left_arm.gripper(),
"prompt": "fold the towel",
}
return frames, observation
with dream.DreamClient() as client:
client.policy(config)
client.set_observation(*tick(robot)) # the episode's first tick, before the first get_action()
def act():
for _ in range(100):
robot.play(client.get_action()) # one get_action() at a time, on this thread
worker = threading.Thread(target=act)
worker.start()
while worker.is_alive(): # every camera tick, at the cameras' own rate (30 Hz on a YAM station)
robot.wait_for_frames()
client.set_observation(*tick(robot))
policy() sends nothing to the gateway: the session opens on the first get_action, which is a POST /v1/get_action carrying session_id: null; DreamAPI mints a session and every later request echoes its id. Calling policy() again closes the previous policy, which ends its session and drops the frames it kept, and starts over. The context manager is the documented default; client.close() is there for callers that cannot use one.
set_observation(frames, observation, *, timestamp=None) takes one camera tick, at whatever rate the cameras run. frames maps each window key (the observation key a camera's frames are sent under) to that tick's one frame: a base64 JPEG str with no data: prefix, which you resize and encode (320x176 at JPEG quality 85 is what the models read). The window keys are video.<role>: video.overhead, video.wrist_l and video.wrist_r for dreamlabs/dream-1-beta on a YAM (the older image_window.top, image_window.left and image_window.right are still accepted but deprecated), and one per role of a fine-tuned model's embodiment video (Running a fine-tuned model); pass the same keys on every call of an episode. observation is every other key the model reads, the state.<part> arrays and prompt, never a frame key; each call replaces the previous call's observation whole. timestamp is when the frames were captured, in seconds on a monotonic clock (time.monotonic() at the call when it is None), never earlier than the previous call's within an episode.
The client keeps one tick every 1 / obs_fps seconds of those timestamps (5 per second by default, the tick nearest each due time) and the last obs_window frames per window key (9 by default); every tick, kept or not, replaces the latest observation. It never waits on the network or on a get_action running on another thread, so the camera loop can call it on every tick.
get_action() takes no observation: it sends the latest observation plus, under each window key, the frames kept so far, oldest first (fewer than obs_window at the start of an episode, never none), and returns the action chunk. Before any set_observation in the episode it raises DreamObservationError. One get_action runs at a time, and a second one at once raises DreamError: run it on a thread of its own while set_observation keeps going. Its one keyword, commanded, anchors seam smoothing (EEF checkpoints and client IK) and is never sent.
The inference surface is policy, set_observation, get_action, reset_episode, refill_due and close, and the read-only properties last_timing (see "Timing" below), mode, execution_horizon and action_hz (see "Pacing" below), and session_id, the session the model answers the episode under once a get_action opened it. Called before policy(), each of them raises DreamConfigError, except close (which does nothing) and last_timing and session_id (which are None).
client.reset_episode() marks an episode boundary: it ends the session and empties the frame window, so the next set_observation is the first tick of a new episode and the next get_action carries session_id: null, for which DreamAPI mints a fresh session with a forced reset. The client releases the old session on the model's side in one short request that never raises (it waits at most two seconds; a session it could not release ends on its own once idle). Call it between trials:
with dream.DreamClient() as client:
client.policy(config)
for trial in range(10):
client.reset_episode()
robot.reset()
run_episode(client, robot) # set_observation() every camera tick, get_action() on its own thread
get_action returns the action dict itself. There is no info tuple; DreamAPI does not produce
one.
client.last_timing says where the milliseconds of the most recent get_action went. It is
read-only, None before the first request, and afterwards a plain dict, recorded for every
request that reached the wire, the ones that raised included, so a timeout is visible as its
rtt_ms:
action = client.get_action()
t = client.last_timing
# {"rtt_ms": 512.3, "serve_infer_ms": 412, "gateway_ms": 460, "network_ms": 52.3,
# "up_mbps": 38.2, "tcp_cwnd_kb": 140.8, "tcp_retrans": 0, "tcp_rtt_ms": 21.4, "tcp_app_limited": False,
# "request_bytes": 1_204_311, "response_bytes": 2_140}
rtt_ms is the client's own round trip around the HTTP exchange, connect included.
serve_infer_ms and gateway_ms come from DreamAPI's timing block: the serve's own inference
time and the wall time inside the gateway from receiving the request to building the response.
network_ms is rtt_ms - gateway_ms, the part spent on the network. The three are None when
DreamAPI sent no block: a refusal, or a gateway older than the block. request_bytes and
response_bytes are the body sizes on the wire; response_bytes is 0 when no reply was read.
Five more keys come from the kernel's own record of the request's connection, and are None off Linux: up_mbps, the upload rate achieved for this request in megabits per second, the first number to check when the round trip drifts; tcp_cwnd_kb, the congestion window in KB (small means the connection, not the bandwidth, limited the upload); tcp_retrans, the retransmits on the connection so far (a rising count is packet loss on the send path); tcp_rtt_ms, the connection's smoothed round-trip time; and tcp_app_limited, True when the upload was held back by the program not having bytes ready rather than by the network.
When the client's recent round trips stay slow, get_action says so once with a Python warning of category dream.DreamSlowNetworkWarning (a UserWarning), and writes the same line to the dream logger, so it is in the log file too. It fires when the median of the last five get_action round trips is at or above 1000 ms, and names where the time goes: the network, when it is the largest part of the round trip (with the upload rate when it is known), or the model:
DreamSlowNetworkWarning: Network is slow: get_action round trips are about 1450 ms (network 1100 ms, upload 2.1 Mb/s); the robot's motion may be less smooth. See client.last_timing.
It is not raised: the action is returned as usual, even when warnings are turned into errors. After one warning the client stays quiet for five minutes while the round trips stay slow, unless they first recover (their median under 800 ms) and then slow down again. To turn it off, use the standard filter; there is no setting or environment variable for it:
import warnings
warnings.filterwarnings("ignore", category=dream.DreamSlowNetworkWarning)
The observation is the serve's own dict, which the client builds from your calls and sends as the request's observation field: the latest set_observation's observation, where state.<part> entries are float32 arrays (for dreamlabs/dream-1-beta on a YAM, state.right_arm of shape [6], state.right_gripper of shape [1], and the same for the left arm, plus each hand's pose, which ik adds) and prompt is the task string, plus one list per window key (video.overhead, video.wrist_l, video.wrist_r) holding the base64 JPEG frames the client kept for that camera, oldest first. When the config's robot names one, or the client picks one for it (EEF checkpoints and client IK), the observation also carries embodiment, a string: "yam", the state is the model's own and is read as sent, or "other_embodiment", an arm other than the model's own, whose state the serve may ignore. It is the client's to send: an observation of yours that carries embodiment is refused with DreamObservationError. Numpy arrays go on the wire as JSON lists.
The action is the serve's action dict: q_r_chunk and q_l_chunk are [H, joints + 1] chunks, one row
per step of the horizon, with the arm's joint targets (six on a YAM) followed by the gripper as the last
column; the client filters them and blends them into the previous chunk before returning them
(see "Seam smoothing" below). The serve adds fields beyond those (q_r, q_l, per_key,
extra-DOF slots such as lower_body_chunk), and they are passed through untouched.
These are the YAM station keys of dreamlabs/dream-1-beta. A fine-tuned model reads the keys of the embodiment config it was trained on instead, and answers under per_key: Fine-tuning as a Service, Running a fine-tuned model.
The embodiment block groups those keys for the strict-mode checks: every group except action
describes observation keys, flattened to "<group>.<key>", and the action group describes the
action keys by their bare names. An empty entry ({}) only requires the key to be present.
The embodiment block may instead be the embodiment config of a fine-tuned body, the dict add_embodiment took; the client tells the two apart by their values (every entry of a shape spec is a dict, a config's are [start, end] spans and video keys), and checks the config's keys as Running a fine-tuned model describes.
DreamAPI computes every chunk from one observation and knows nothing of the chunk before it, so where a control loop swaps the old chunk for the new one the target can step in position and in velocity: the hitch a policy shows at every refill. The client therefore shapes every chunk before the loop sees it, from what it already holds: the observation the chunk answers (the arms' measured joint pose, state.<arm>.joint_pos, which says which row of the previous chunk the arms are on), the chunk it returned last (the plan the arms follow until this one lands), the round trip it measured, and your loop's row rate (action_hz), which together say which row of the new chunk your loop starts at.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.