whatisgithub

What is spatialclaw?

nvlabs/spatialclaw — explained in plain English

Analysis updated 2026-05-18

67PythonAudience · researcherComplexity · 5/5Setup · hard

In one sentence

SpatialClaw is a research framework from NVIDIA and KAIST where an AI agent writes step-by-step Python code to reason about object positions, distances, and motion in images.

Mindmap

mindmap
  root((SpatialClaw))
    What it does
      Step by step code agent
      Spatial reasoning for images
      Depth and object relations
    Tech stack
      Python
      SAM3
      Depth Anything 3
      vLLM
    Use cases
      Benchmark VLM spatial skills
      Research agentic tool use
      Reproduce paper results
    Audience
      Researchers
      AI engineers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Study how an AI agent can use code as its action interface for spatial reasoning tasks.

USE CASE 2

Benchmark a vision-language model's ability to estimate distances and object arrangements.

USE CASE 3

Reproduce spatial reasoning experiments across six different AI backbone models.

USE CASE 4

Extend the perception toolset with new segmentation or depth-estimation tools for research.

What is it built with?

PythonSAM3Depth-Anything-3vLLMSLURMFastAPI

How does it compare?

nvlabs/spatialclawhamid-k/nginx-rift-private-labshootthesound/comfyui-mesh
Stars676767
LanguagePythonPythonPython
Setup difficultyhardhardhard
Complexity5/55/54/5
Audienceresearcherresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1day+

Needs at least one GPU and separate model-serving, perception-tool, and agent services, SLURM setup adds more steps.

Terms are not stated in the source material provided.

So what is it?

SpatialClaw is a research framework from NVIDIA and KAIST that helps AI systems answer questions about where objects are, how they relate to each other, and how they move in three-dimensional space. It was designed to improve the performance of large vision-language models (AI systems that can both see images and understand text) on tasks that require thinking about depth, distance, and physical arrangement. The core idea is to let the AI write Python code one step at a time instead of trying to figure out everything at once. The framework keeps a running Python session loaded with image analysis tools, including a segmentation tool (SAM3, which can identify and outline objects in images), a depth estimation tool (Depth-Anything-3, which estimates how far away things are), and standard math and visualization libraries. The AI agent writes one short code block, sees the results, then writes the next block based on what it learned, repeating until it is confident enough to give a final answer. Running it requires at least one GPU machine and involves setting up two or three separate services: a model-serving process, a perception-tool server for the heavier image analysis tasks, and the agent itself, which manages the code-execution sessions. The README includes setup scripts and instructions for both single-machine and high-performance computing cluster (SLURM) environments, though it notes that downloading model weights and configuring the cluster takes additional steps beyond the basic install. The project was evaluated across 20 spatial reasoning benchmarks, covering tasks like estimating distances in photos, understanding object arrangements, and reasoning about motion over time. It reports 59.9% average accuracy across those benchmarks, outperforming the previous best comparable agent by 11.2 percentage points. It also works with six different AI backbone models ranging from 26 billion to 397 billion parameters, without any benchmark-specific tuning. This is a research codebase, not a finished product. It is aimed at researchers and engineers studying how AI agents handle spatial perception, not end users looking for a ready-made application.

Copy-paste prompts

Prompt 1
Explain how SpatialClaw's step-by-step code execution loop differs from single-pass tool calling agents.
Prompt 2
Walk me through setting up SpatialClaw on a single GPU machine without a SLURM cluster.
Prompt 3
Help me understand what SAM3 and Depth-Anything-3 contribute to SpatialClaw's spatial reasoning pipeline.
Prompt 4
Show me how to run one of SpatialClaw's 20 spatial reasoning benchmarks and interpret the accuracy results.

Frequently asked questions

What is spatialclaw?

SpatialClaw is a research framework from NVIDIA and KAIST where an AI agent writes step-by-step Python code to reason about object positions, distances, and motion in images.

What language is spatialclaw written in?

Mainly Python. The stack also includes Python, SAM3, Depth-Anything-3.

What license does spatialclaw use?

Terms are not stated in the source material provided.

How hard is spatialclaw to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is spatialclaw for?

Mainly researcher.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.